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

@ -68,34 +68,34 @@ input[type="submit"],
} }
} }
} }
// .category-faq { .category-faq {
// .entry-title { .more-link {
// a { .button-more {
// &::before { &::before {
// content: "accedir"; content: "accedir";
// position: absolute; position: absolute;
// bottom: 1em; bottom: 1em;
// left: 0.5em; left: 0.5em;
// font-family: $font__light; font-family: $font__light;
// font-size: 1rem; font-size: 1rem;
// line-height: 0; line-height: 0;
// } }
// &::after { &::after {
// content: "+"; content: "+";
// width: 8rem; display: inline-block;
// height: 2rem; width: 8rem;
// padding: 0 0.5rem; height: 2rem;
// text-align: right; padding: 0 0.5rem;
// font-size: 2.5rem; text-align: right;
// line-height: 0.7; font-size: 2.5rem;
// } line-height: 0.7;
// &:hover::after { }
// content: ">"; &:hover::after {
// padding: 0 0.1rem; content: ">";
// font-size: 1.5rem; padding: 0 0.1rem;
// line-height: 1.2; 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