changed button-more style for faqs and featured posts

This commit is contained in:
jorge-vitrubio 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 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>
Version: 1.0.3
Version: 1.0.4
Tested up to: 6.2
Requires PHP: 5.6
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
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;
}
.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="email"],
.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 {
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 {
grid-template-columns: repeat(1, 1fr);
}
.edit-post-visual-editor__content-area .oficinasuport-titol-opcions {
/* applied in forms and contactforms */
display: inline-block;
width: 100%;
max-width: 13em;
margin-bottom: 0;
margin-bottom: 1rem;
padding: 0.6em 1em 0.4em;
clear: both;
cursor: pointer;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 0.9rem;
border: 1px solid #000;
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) {

File diff suppressed because one or more lines are too long

View File

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

View File

@ -106,8 +106,6 @@
margin: 1em 0;
}
.oficinasuport-titol-opcions {
max-width: 13em;
margin-bottom: 0;
}
}
.archive-posts {
@ -115,16 +113,38 @@
}
.oficinasuport-titol-opcions {
/* applied in forms and contactforms */
// applied in forms and contactforms
display: inline-block;
width: 100%;
max-width: 13em;
margin-bottom: 0;
margin-bottom: 1rem;
padding: 0.6em 1em 0.4em;
clear: both;
cursor: pointer;
font-family: $font__black;
font-size: $font__size-body*0.9;
border: 1px solid $color__border-button;
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 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>
Version: 1.0.3
Version: 1.0.4
Tested up to: 6.2
Requires PHP: 5.6
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ofisuport

View File

@ -5,9 +5,9 @@ Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - 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>
Version: 1.0.3
Version: 1.0.4
Tested up to: 6.2
Requires PHP: 5.6
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ofisuport
@ -903,6 +903,34 @@ input[type="submit"]:focus,
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="email"],
input[type="url"],
@ -1490,25 +1518,40 @@ textarea {
.ofisuport-filters section {
margin: 1em 0;
}
.ofisuport-filters .oficinasuport-titol-opcions {
max-width: 13em;
margin-bottom: 0;
}
.archive-posts {
grid-template-columns: repeat(1, 1fr);
}
.oficinasuport-titol-opcions {
/* applied in forms and contactforms */
display: inline-block;
width: 100%;
max-width: 13em;
margin-bottom: 0;
margin-bottom: 1rem;
padding: 0.6em 1em 0.4em;
clear: both;
cursor: pointer;
font-family: "din-black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 0.9rem;
border: 1px solid #000;
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) {

File diff suppressed because one or more lines are too long