changed button-more style for faqs and featured posts

This commit is contained in:
jorge 2023-01-31 17:32:36 +01:00
parent c8f082f964
commit a118b1c11b
7 changed files with 182 additions and 76 deletions

View File

@ -16,9 +16,9 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org Author URI: https://hangar.org
Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a> Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
Version: 1.0.3 Version: 1.0.4
Tested up to: 6.2 Tested up to: 6.2
Requires PHP: 5.6 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ofisuport Text Domain: ofisuport
@ -972,6 +972,34 @@ Add your custom styles in this file so it is easier to update the theme.
line-height: inherit; line-height: inherit;
} }
.edit-post-visual-editor__content-area .category-faq .more-link .button-more::before {
content: "accedir";
position: absolute;
bottom: 1em;
left: 0.5em;
font-family: "din-light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1rem;
line-height: 0;
}
.edit-post-visual-editor__content-area .category-faq .more-link .button-more::after {
content: "+";
display: inline-block;
width: 8rem;
height: 2rem;
padding: 0 0.5rem;
text-align: right;
font-size: 2.5rem;
line-height: 0.7;
}
.edit-post-visual-editor__content-area .category-faq .more-link .button-more:hover::after {
content: ">";
padding: 0 0.1rem;
font-size: 1.5rem;
line-height: 1.2;
}
.edit-post-visual-editor__content-area input[type="text"], .edit-post-visual-editor__content-area input[type="text"],
.edit-post-visual-editor__content-area input[type="email"], .edit-post-visual-editor__content-area input[type="email"],
.edit-post-visual-editor__content-area input[type="url"], .edit-post-visual-editor__content-area input[type="url"],
@ -1555,25 +1583,40 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .ofisuport-filters section { .edit-post-visual-editor__content-area .ofisuport-filters section {
margin: 1em 0; margin: 1em 0;
} }
.edit-post-visual-editor__content-area .ofisuport-filters .oficinasuport-titol-opcions {
max-width: 13em;
margin-bottom: 0;
}
.edit-post-visual-editor__content-area .archive-posts { .edit-post-visual-editor__content-area .archive-posts {
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
} }
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions { .edit-post-visual-editor__content-area .oficinasuport-titol-opcions {
/* applied in forms and contactforms */
display: inline-block; display: inline-block;
width: 100%; width: 100%;
max-width: 13em;
margin-bottom: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0.6em 1em 0.4em; padding: 0.6em 1em 0.4em;
clear: both; clear: both;
cursor: pointer;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 0.9rem; font-size: 0.9rem;
border: 1px solid #000; border: 1px solid #000;
text-transform: uppercase; text-transform: uppercase;
} }
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions:after {
content: ">";
display: inline;
float: right;
}
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions:hover:after {
transform: rotate(90deg);
animation: rotate 0.5s;
}
@keyframes rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(90deg);
}
}
} }
@media screen and (max-width: 48em) { @media screen and (max-width: 48em) {

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@ input[type="submit"],
width: 1.5rem; width: 1.5rem;
height: 2rem; height: 2rem;
padding: 0 0.5rem; padding: 0 0.5rem;
font-family: $font__black; font-family: $font__black;
font-size: 1.5rem; font-size: 1.5rem;
} }
&:hover::after { &:hover::after {
@ -42,60 +42,60 @@ input[type="submit"],
.home-featured,.archive-posts { .home-featured,.archive-posts {
.more-link { .more-link {
position: relative; position: relative;
.button-more { .button-more {
border:none; border:none;
&::after { &::after {
content: "+"; content: "+";
position: absolute; position: absolute;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 3rem; width: 3rem;
height: 3rem; height: 3rem;
bottom: 0; bottom: 0;
left: 0; left: 0;
padding: 0; padding: 0;
border: 1px solid $color__black; border: 1px solid $color__black;
font-size: 4rem; font-size: 4rem;
line-height: inherit; line-height: inherit;
} }
&:hover::after { &:hover::after {
content: ">"; content: ">";
padding: 0; padding: 0;
font-size: 2.5rem; font-size: 2.5rem;
line-height: inherit; line-height: inherit;
}
} }
} }
} }
// .category-faq { }
// .entry-title { .category-faq {
// a { .more-link {
// &::before { .button-more {
// content: "accedir"; &::before {
// position: absolute; content: "accedir";
// bottom: 1em; position: absolute;
// left: 0.5em; bottom: 1em;
// font-family: $font__light; left: 0.5em;
// font-size: 1rem; font-family: $font__light;
// line-height: 0; font-size: 1rem;
// } line-height: 0;
// &::after { }
// content: "+"; &::after {
// width: 8rem; content: "+";
// height: 2rem; display: inline-block;
// padding: 0 0.5rem; width: 8rem;
// text-align: right; height: 2rem;
// font-size: 2.5rem; padding: 0 0.5rem;
// line-height: 0.7; text-align: right;
// } font-size: 2.5rem;
// &:hover::after { line-height: 0.7;
// content: ">"; }
// padding: 0 0.1rem; &:hover::after {
// font-size: 1.5rem; content: ">";
// line-height: 1.2; padding: 0 0.1rem;
// } font-size: 1.5rem;
// } line-height: 1.2;
// } }
// } }
//} }
}

View File

@ -106,8 +106,6 @@
margin: 1em 0; margin: 1em 0;
} }
.oficinasuport-titol-opcions { .oficinasuport-titol-opcions {
max-width: 13em;
margin-bottom: 0;
} }
} }
.archive-posts { .archive-posts {
@ -115,16 +113,38 @@
} }
.oficinasuport-titol-opcions { .oficinasuport-titol-opcions {
/* applied in forms and contactforms */ // applied in forms and contactforms
display: inline-block; display: inline-block;
width: 100%; width: 100%;
max-width: 13em;
margin-bottom: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0.6em 1em 0.4em; padding: 0.6em 1em 0.4em;
clear: both; clear: both;
cursor: pointer;
font-family: $font__black; font-family: $font__black;
font-size: $font__size-body*0.9; font-size: $font__size-body*0.9;
border: 1px solid $color__border-button; border: 1px solid $color__border-button;
text-transform: uppercase; text-transform: uppercase;
&:after {
content: ">";
display: inline;
float:right;
}
&:hover {
&:after {
transform: rotate(90deg);
animation: rotate 0.5s;
}
}
@keyframes rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(90deg);
}
}
} }
} }

View File

@ -5,9 +5,9 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org Author URI: https://hangar.org
Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a> Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
Version: 1.0.3 Version: 1.0.4
Tested up to: 6.2 Tested up to: 6.2
Requires PHP: 5.6 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ofisuport Text Domain: ofisuport

View File

@ -5,9 +5,9 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org Author URI: https://hangar.org
Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a> Description: theme for the Espai d'assessorament, projecte oficina de suport de <a href="https://xarxaprod.cat">XarxaProd</a>. Inclou la possibilitat de publicar, catalogar i cercar ajuts, resoldre dubtes amb FAQs i altres. Design by Eudald Van der Pla <a href="https://vanderpla.com">vanderpla.com</a>. Coding template and theme by <a href="https://vitrubio.net">Jorge - vitrubio.net</a>
Version: 1.0.3 Version: 1.0.4
Tested up to: 6.2 Tested up to: 6.2
Requires PHP: 5.6 Requires PHP: 7.4
License: GNU General Public License v3 or later License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ofisuport Text Domain: ofisuport
@ -903,6 +903,34 @@ input[type="submit"]:focus,
line-height: inherit; line-height: inherit;
} }
.category-faq .more-link .button-more::before {
content: "accedir";
position: absolute;
bottom: 1em;
left: 0.5em;
font-family: "din-light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 1rem;
line-height: 0;
}
.category-faq .more-link .button-more::after {
content: "+";
display: inline-block;
width: 8rem;
height: 2rem;
padding: 0 0.5rem;
text-align: right;
font-size: 2.5rem;
line-height: 0.7;
}
.category-faq .more-link .button-more:hover::after {
content: ">";
padding: 0 0.1rem;
font-size: 1.5rem;
line-height: 1.2;
}
input[type="text"], input[type="text"],
input[type="email"], input[type="email"],
input[type="url"], input[type="url"],
@ -1490,25 +1518,40 @@ textarea {
.ofisuport-filters section { .ofisuport-filters section {
margin: 1em 0; margin: 1em 0;
} }
.ofisuport-filters .oficinasuport-titol-opcions {
max-width: 13em;
margin-bottom: 0;
}
.archive-posts { .archive-posts {
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
} }
.oficinasuport-titol-opcions { .oficinasuport-titol-opcions {
/* applied in forms and contactforms */
display: inline-block; display: inline-block;
width: 100%; width: 100%;
max-width: 13em;
margin-bottom: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0.6em 1em 0.4em; padding: 0.6em 1em 0.4em;
clear: both; clear: both;
cursor: pointer;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 0.9rem; font-size: 0.9rem;
border: 1px solid #000; border: 1px solid #000;
text-transform: uppercase; text-transform: uppercase;
} }
.oficinasuport-titol-opcions:after {
content: ">";
display: inline;
float: right;
}
.oficinasuport-titol-opcions:hover:after {
transform: rotate(90deg);
animation: rotate 0.5s;
}
@keyframes rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(90deg);
}
}
} }
@media screen and (max-width: 48em) { @media screen and (max-width: 48em) {

File diff suppressed because one or more lines are too long