styled colors, buttons, functions calls

This commit is contained in:
jorge 2024-01-14 20:13:11 +01:00
parent 2474db20a0
commit ad5f8daf6a
17 changed files with 2144 additions and 822 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -76,7 +76,7 @@ if ( ! function_exists( 'xarxaprod_display_faqs_labels' ) ) :
// https://developer.wordpress.org/reference%2Ffunctions%2Fwp_list_categories%2F/
wp_list_categories(
array(
'child_of' => 1, // category FAQ id=1
'child_of' => 38, // category FAQ id=1
'hide_empty' => 1,
'hide_title_if_empty' => true,
'separator' => '<li>',

View File

@ -42,10 +42,8 @@ get_header();
endif;
?>
<aside id="xarxaprod-faqs-nav" class="xarxaprod-faqs-aside">
<?php //if( in_category('faq') ) : ?>
<?php xarxaprod_display_faqs_labels(); ?>
<?php xarxaprod_display_faqs_search(); ?>
<?php //endif; //end if is_category faq ?>
</aside>
<content class="archive-posts <?php xarxaprod_class_posttype(); ?>">
<?php

View File

@ -10,7 +10,9 @@ input[type="submit"],
background: $color__background-button;
color: $color__text-screen;
line-height: 1;
padding: 0.6em 1em 0.4em;
// padding: 0.6em 1em 0.4em;
padding: 0.5em;
margin: 0;
//text-transform: uppercase;
&:hover {
@ -23,28 +25,66 @@ input[type="submit"],
}
}
.button-more {
//&::before {
// content: "accedir";
// position: absolute;
// bottom: 1em;
// left: 0.5em;
// font-family: $font__light;
// font-size: 1rem;
// line-height: 0;
//}
// line-height: 2.5;
display: inline-block;
&::after {
content: "+";
display: inline-block;
width: 1.5rem;
height: 2rem;
padding: 0 0.5rem;
font-family: $font__black;
font-size: 1.5rem;
font-weight: bold;
text-align: center;
}
&:hover::after {
content: ">";
padding-left: 0.2rem;
font-size: 1.2rem;
line-height: 1.5;
}
}
.more-link {
.button-more {
&::after {
font-size: 4rem;
width: 4rem;
}
&:hover::after {
}
}
}
.category-faq {
.button-more {
&::before {
content: "accedir";
}
}
}
.xarxaprod-search-form {
display: flex;
margin: 0.5rem 0;
.search-field {
padding: 0.5em;
}
.search-submit{
z-index: 10;
margin: 0rem;
border: none;
width: 2.5rem;
height: 2.5rem;
background: none;
cursor: pointer;
font-size: 0px;
}
}
.xarxaprod-icon-search:before {
position: absolute;
padding: 0;
margin: 0.2rem 0 0 -1.5rem;
z-index: 0;
min-width: 2.5rem;
min-height: 2.5rem;
font-size: 2rem;
content: "\26b2";
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}

View File

@ -34,61 +34,61 @@ a {
text-decoration: none;
}
}
.home-featured,.archive-posts {
.category-faq,.type-xarxaprod-ajut {
position: relative;
padding-bottom: 4rem;
.entry-title {
a {
&::after {
content: "+";
position:absolute;
bottom: 0;
left: 0;
width: 3rem;
height: 3rem;
padding: 0 0.38rem;
border: 1px solid $color__black;
font-size: 4rem;
line-height: 0.8;
}
&:hover::after {
content: ">";
padding: 0 0.38rem;
font-size: 2.5rem;
line-height: 1.3;
}
}
}
}
.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;
}
}
}
}
}
//.home-featured,.archive-posts {
// .category-faq,.type-xarxaprod-ajut {
// position: relative;
// padding-bottom: 4rem;
// .entry-title {
// a {
// &::after {
// content: "+";
// position:absolute;
// bottom: 0;
// left: 0;
// width: 3rem;
// height: 3rem;
// padding: 0 0.38rem;
// border: 1px solid $color__black;
// font-size: 4rem;
// line-height: 0.8;
// }
// &:hover::after {
// content: ">";
// padding: 0 0.38rem;
// font-size: 2.5rem;
// line-height: 1.3;
// }
// }
// }
// }
// .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;
// }
// }
// }
// }
//}

View File

@ -27,38 +27,86 @@ dd {
padding: 0;
}
.xarxaprod-label {
article:not(.type-post){
.xarxaprod-label {
margin: 0;
padding: 0;
display: inline;
li {
display:inline-block;
margin:0.1rem;
padding: 0 0.2rem;
margin:0.1em 0;
padding: 0.2em 0.2em 0 0.2em;
color: $color__white;
background-color: $color__black;
font-family: $font__black;
font-size: $font__size-body*0.7;
//text-transform: uppercase;
text-transform: uppercase;
}
}
.item-os_fund_target li {
}
.item-os_fund_target li {
background-color: $color__orange;
}
.item-os_fund_source li {
}
.item-os_fund_source li {
background-color: $color__lightblue;
}
.item-os_fund_field li {
}
.item-os_fund_field li {
background-color: $color__yellow;
}
.item-os_fund_dates li {
}
.item-os_fund_dates li {
background-color: $color__green;
}
.item-os_fund_call {
}
.item-os_fund_call {
display: block;
margin:0.2rem 0.1rem;
margin:0.2rem 0;
li {
font-size: $font__size-body*1.2;
}
}
.item-os_fund_apply_text {
display:inline-block;
margin:0.1em 0;
padding: 0.2em 0.2em 0 0.2em;
color: $color__white;
background-color: $color__green;
font-family: $font__black;
font-size: $font__size-body*0.7;
text-transform: uppercase;
}
}
.xarxaprod-faqs-types {
ul {
margin: 0;
}
.cat-item {
display:inline-block;
margin: 0.1em 0.5em 0.1em 0;
padding: 0.2em 0.2em 0 0.2em;
color: $color__white;
background-color: $color__black;
font-family: $font__black;
font-size: $font__size-body*1.1;
text-transform: uppercase;
}
.current-cat{
background-color: $color__orange;
}
a {
color: $color__white;
text-decoration: none;
&:visited, &:hover{
color: $color__white;
}
}
}
.single-xarxaprod-ajut {
article:not(.type-post) {
.xarxaprod-label {
li {
font-size: $font__size-body*1.1;
}
}
.item-os_fund_apply_text {
font-size: $font__size-body*1.1;
}
}
}

View File

@ -4,31 +4,57 @@
h3,
h4,
h5,
h6 {
font-family: $font__header;
h6,
.h1,.h2,.h3,.h4,.h5,.h6{
clear: both;
line-height: $font__line-height-header;
a {
text-decoration: none;
}
}
h1 {
h1,.h1 {
font-family: $font__light;
font-size: $font__size-body*1.8;
}
h2 {
text-transform: uppercase;
&.small {
font-size: $font__size-body*1.5;
}
h3 {
font-size: $font__size-body*1.3;
}
h4 {
h2,.h2 {
font-family: $font__light;
font-size: $font__size-body*1.5;
text-transform: uppercase;
&.small {
font-size: $font__size-body*1.2;
}
h5 {
font-size: $font__size-body*1.1;
}
h6 {
h3,.h3 {
font-family: $font__black;
font-size: $font__size-body*1.3;
text-transform: uppercase;
&.small {
font-size: $font__size-body*1;
}
}
h4,.h4 {
font-family: $font__bold;
font-size: $font__size-body*1.2;
text-transform: uppercase;
&.small {
font-size: $font__size-body*0.9;
}
}
h5,.h5 {
font-family: $font__medium;
font-size: $font__size-body*1.1;
text-transform: uppercase;
&.small {
font-size: $font__size-body*0.8;
}
}
h6,.h6 {
font-family: $font__light;
font-size: $font__size-body*1.1;
&.small {
font-size: $font__size-body*0.8;
}
}
.site-main {
h1,
@ -37,17 +63,18 @@
h4,
h5,
h6,
.h1,.h2,.h3,.h4,.h5,.h6,
.entry-content {
margin: 0;
}
}
.single {
h1 {
h1,.h1 {
font-family: $font__black;
}
}
.home-featured {
h2 {
h2,.h2 {
margin: 1.2rem 0;
font-size: $font__size-body*2;
line-height: 1.2;
@ -56,27 +83,54 @@
}
}
@media screen and (min-width: 48em) {
h1 {
h1,.h1 {
font-size: $font__size-body*3.5;
}
h2 {
h2,.h2 {
font-size: $font__size-body*2.5;
}
h3 {
font-size: $font__size-body*2;
h3,.h3 {
font-size: $font__size-body*1.5;
}
h4 {
h4,.h4 {
font-family: $font__black;
font-size: $font__size-body*1.7;
font-size: $font__size-body*1.3;
}
h5 {
font-size: $font__size-body*1.5;
h5,.h5 {
font-size: $font__size-body*1.3;
}
h6 {
font-size: $font__size-body*1.5;
h6,.h6 {
font-size: $font__size-body*1.3;
}
.home-featured {
h2 {
h2,.h2 {
font-size: $font__size-body*3.5;
border-bottom: 0.8rem solid $color__black;
}
}
}
@media screen and (min-width: 1440px) {
h1,.h1 {
font-size: $font__size-body*3.5;
}
h2,.h2 {
font-size: $font__size-body*2.5;
}
h3,.h3 {
font-size: $font__size-body*1.6;
}
h4,.h4 {
font-family: $font__black;
font-size: $font__size-body*1.4;
}
h5,.h5 {
font-size: $font__size-body*1.4;
}
h6,.h6 {
font-size: $font__size-body*1.4;
}
.home-featured {
h2,.h2 {
font-size: $font__size-body*3.5;
border-bottom: 0.8rem solid $color__black;
}

View File

@ -9,7 +9,23 @@ textarea {
font-size: $font__size-body;
line-height: $font__line-height-body;
}
.hide {
display: inline-block;
margin: 0;
padding: 0;
min-width: unset;
max-width: unset;
width: 0px;
min-height: unset;
max-height: unset;
height: 0px;
font-size: 0px;
line-height: 0px;
text-decoration: none;
border: 0;
background: none;
background-color: transparent;
}
@import "headings";
@import "copy";
@import "fonts";

View File

@ -5,7 +5,7 @@
.post,
.page {
margin: 0 0 1.5em;
margin: 0 0 5em;
}
.updated:not(.published) {
@ -22,7 +22,13 @@
clear: both;
margin: 0 0 1.5em;
}
/* used in
* ./template-parts/section-eachpost.php
* */
.xarxaprod-card-each {
display: flex;
flex-direction: column;
.entry-title,h6 {
border-bottom: 1px solid $color__black;
margin: 0;
@ -32,7 +38,19 @@
padding: 0.5rem 0;
margin:0;
}
.more-link {
// display: inline-blocK;
margin-top: 2rem;
}
.button-more {
padding:0;
margin:0;
}
}
/* used in
* ./template-parts/content-xarxaprod-ajut.php
* ./template-parts/section-eachpost.php
* */
.xarxaprod-fund-info-fields,
.xarxaprod-fund-info-contact-fields {
display: grid;
@ -61,8 +79,6 @@
margin: 1rem 0 0.5rem 0;
}
}
.xarxaprod-label {
}
.xarxaprod-funder-name,
.xarxaprod-fund-contact-name,
.xarxaprod-fund-web {
@ -78,49 +94,123 @@
font-size: 0.8rem;
}
}
// .page-template-funds-search {
/* filters form custom fields
*/
.xarxaprod-filtered-funds {
display:grid;
grid-template-columns: 1fr 1fr;
grid: 1fr;
.os_fund_target,
.os_fund_source,
.os_fund_field {
.filter {
display: none;
}
}
}
.xarxaprod-filters {
section {
margin: 1em 0;
}
.button-more {
width: 100%;
max-width: 11.7em;
&::after {
margin-left: 1rem;
}
}
.xarxaprod-fund-filter {
display: grid;
grid-template-columns: repeat(1 , 1fr);
gap: $grid__gap;
}
.archive-posts {
grid-template-columns: repeat(1 , 1fr);
// https://stackoverflow.com/questions/47601564/equal-width-columns-in-css-grid#61240964
grid-template-columns: repeat(1 , minmax(0,1fr));
}
.xarxaprod-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: $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);
}
}
}
//}
}
@media screen and (max-width: 48em) {
//only smaller than 48em
.post,
.page {
margin: 0 0 1em;
}
.xarxaprod-filters {
section {
display: block;
h5 {
display: block;
width: 100%;
}
.filter {
display: inline-block;
width: 45%;
margin-top: 0.5rem;
margin-right: 0.3em;
float: left;
&:last-of-type {
margin-bottom: 2rem;
}
}
}
}
}
@media screen and (min-width: 48em) {
//only bigger than 48em
//.page-template-funds-search {
.xarxaprod-filters {
padding-right: 2em;
section {
margin: 1em 0;
}
}
.xarxaprod-filtered-funds {
grid-template-columns: 1fr 2fr;
}
.xarxaprod-fund-filter {
}
.archive-posts {
grid-template-columns: repeat(2 , 1fr);
grid-template-columns: repeat(2 , minmax(0,1fr));
grid-gap: 3em;
}
//}
}
@media screen and (min-width: 80em) {
//only bigger than 80rem
//.page-template-funds-search {
.xarxaprod-filtered-funds {
grid-template-columns: 1fr 3fr;
}
.xarxaprod-fund-filter {
}
.archive-posts {
grid-template-columns: repeat(3 , 1fr);
grid-template-columns: repeat(3 , minmax(0,1fr));
}
//}
}

View File

@ -18,53 +18,14 @@
margin: 0;
padding-left: 0;
ul {
background-color: $color__white;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
flex-direction: column;
float: left;
position: absolute;
top: 100%;
left: -999em;
z-index: 99999;
ul {
left: -999em;
top: 0;
}
li {
&:hover > ul,
&.focus > ul {
//display: block;
left: 30%;
top: 2.5rem;
}
}
a {
width: 200px;
}
:hover > a,
.focus > a {
}
a:hover,
a.focus {
}
}
li:hover > ul,
li.focus > ul {
left: auto;
ul.sub-menu {
padding-top: 0.5rem;
padding-left: 1rem;
}
}
li {
position: relative;
padding: 1rem;
&:hover > a,
&.focus > a {
@ -100,7 +61,7 @@
}
}
.secondary-navigation {
padding: 1em 0;
padding: 0 1em 1em 0;
ul {
display: inline-block;
li {
@ -108,45 +69,22 @@
}
}
a {
// text-transform: uppercase;
text-transform: uppercase;
}
}
.menu-item-has-children {
&::after {
content: "";
display: inline-block;
position: absolute;
top: 40%;
right: 0.3em;
//vertical-align: middle;
//margin: -3em 0 0.5em;
width: 0.3em;
height: 0.3em;
border: 1px solid $color__black;
border-top: none;
border-left: none;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
&:hover {
&::after {
border-color: $color__grey-dark;
}
}
}
/* begin of menu-hidden */
.toogle-secondary-navigation .show-mobile{
.toggle-secondary-navigation .show-mobile{
display:inherit;
}
.toogle,
.toogled-menu {
.toggle,
.toggled-menu {
display: none;
}
.toogle:checked+.toogled-menu{
.toggle:checked+.toggled-menu{
display: block;
position: absolute;
left:0;
@ -154,31 +92,32 @@
width: 100%;
height: 100vh;
margin-top: 0;
padding: 7em 4em 0 4em;
background-color: $color__white;
padding: 0 2rem;
//background-color: $color__white;
}
.toogle-show {
.toggle-show {
position: relative;
display: inline-block;
width: 1.8em;
height: 1.4em;
margin-right: 0.3em;
//border-top: 0.3em solid $color__black;
//border-bottom: 0.3em solid $color__black;
border-top: 0.3em solid $color__black;
border-bottom: 0.3em solid $color__black;
}
.toogle-show::before {
.toggle-show::before {
content: "";
position: absolute;
top: 0.3em;
left: 0;
width: 100%;
//border-top: 0.3em solid $color__black;
border-top: 0.3em solid $color__black;
}
.toogle-hide {
.toggle-hide {
display: flex;
justify-content: center;
justify-content: end;
margin-right: -0.5em;
}
.toogle-hide::after{
.toggle-hide::after{
content: "x";
padding: 0;
font-size: 3rem;
@ -187,15 +126,52 @@
/* end of menu hidden*/
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
.main-navigation.toggled {
ul {
display: block;
}
.xarxaprod-filters {
.xarxaprod-filter {
//float: left;
.main-navigation-content {
display: inline-block;
position: absolute;
top: 5rem;
left: 0;
width: 100%;
height: calc(100vh - 5rem);
padding: 3rem;
background-color: $color__white;
}
}
.menu-toggle {
display: inline-block;
width: 10rem;
height: 4rem;
margin: 0;
padding: 0;
font-size: 0;
border: none;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
}
@media screen and (max-width: 47.99em) {
.site-branding {
display: block;
width: 0px;
height: 0px;
overflow: hidden;
margin: 0;
padding: 0;
}
.main-navigation-content {
text-transform: uppercase;
li {
padding: 0.5rem 0;
}
}
.secondary-navigation-content {
padding: 4rem 2rem;
}
}
@media screen and (min-width: 48em) {
.site-branding {
@ -211,7 +187,50 @@
.main-navigation,.secondary-navigation {
ul {
display: flex;
ul {
background-color: rgba(255,255,255,0.9);
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
float: left;
position: absolute;
top: 100%;
left: -999em;
z-index: 99999;
ul {
left: -999em;
top: 0;
}
li {
&:hover > ul,
&.focus > ul {
display: block;
left: 4em;
top: 1em;
}
}
a {
width: 200px;
}
:hover > a,
.focus > a {
}
a:hover,
a.focus {
}
}
li:hover > ul,
li.focus > ul {
left: auto;
}
}
a {
padding: 0 0.5rem;
}
@ -226,6 +245,15 @@
padding-bottom: 1em;
ul {
justify-content: end;
ul.sub-menu {
flex-direction: column;
padding-top: 2rem;
padding-left: 1rem;
padding-bottom: 1rem;
li {
margin: 0.5rem 0;
}
}
}
a[href^="http://localhost"],
a[href^="http://xarxaprod.cat"],
@ -238,31 +266,58 @@
a[href^="http://xarxaprod.cat"]::after,
a[href^="https://xarxaprod.cat"]::after,
.current-menu-item a::after {
//display: inline-block;
//content: "";
//position: absolute;
//left: 5%;
//min-height: 2px;
//height: 100%;
//width: 90%;
//margin-top: 2.3em;
display: inline-block;
content: "";
position: absolute;
left: 5%;
min-height: 2px;
height: 100%;
width: 90%;
margin-top: 2.3em;
//border-bottom: 0.3rem solid $color__black;
}
.menu-item-has-children {
ul {
}
}
}
.secondary-navigation {
padding: 1.5em 0;
}
.menu-item-has-children {
&::after {
content: "";
display: inline-block;
position: absolute;
top: 40%;
right: 0.3em;
width: 0.3em;
height: 0.3em;
border: 1px solid $color__black;
border-top: none;
border-left: none;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
&:hover {
&::after {
//border-color: $color__grey-dark;
}
}
}
/*
* css menu toogler
* css menu toggler
* */
.toogle-secondary-navigation .show-mobile,
.toogle-secondary-navigation .hide-not-mobile{
.toggle-secondary-navigation .show-mobile,
.toggle-secondary-navigation .hide-not-mobile{
display: none;
}
.toogled-menu {
.toggled-menu {
display: inherit;
}
/* end css menu toogler
/* end css menu toggler
* */
}
@ -272,6 +327,7 @@
.site-main & {
margin: 0 0 1.5em;
align-self: end;
}
.nav-links {
@ -283,14 +339,14 @@
}
.nav-next {
text-align: end;
//text-align: end;
flex: 1 0 50%;
}
}
@media screen and (min-width: 80em) {
.main-navigation,.secondary-navigation {
.toogle-sidebar-segona .show-mobile,
.toogle-sidebar-segona .hide-not-mobile{
.toggle-sidebar-segona .show-mobile,
.toggle-sidebar-segona .hide-not-mobile{
display:none;
}

View File

@ -29,18 +29,17 @@
z-index: 900;
top: 0;
margin-bottom: 2rem;
//background-color: $color__white;
//box-shadow: 0 15px 30px rgba(0,0,0,0.05), 0 1px 0 0 rgba(0,0,0,0.0);
.main {
display: flex;
flex-flow: row;
align-items: center;
justify-content: space-around;
flex-flow: column;
align-items: initial;
justify-content: space-between;
padding-left: 1rem;
}
.secondary {
display: flex;
flex-flow: column;
align-items: center;
align-items: end;
}
}
.site-main {
@ -60,6 +59,10 @@
@media screen and (max-width: 48em) {
//only smaller than 48em
.site-header {
display: grid;
grid-template-columns: 1fr 1fr;
padding: 0.5rem 0;
align-items: center;
}
.site-main {
}
@ -83,11 +86,24 @@
}
}
.site-header {
display: grid;
grid-template-columns: 1fr minmax(0, 35em) minmax(0, 35em) 1fr;
grid-template-areas:
"main "
"secondary ";
margin: auto;
padding: 0;
.main {
flex-flow: column;
grid-column: 2/4;
flex-flow: row;
align-items: center;
width: 100%;
}
.secondary {
//border-top: 1px solid $color__grey-lighter;
grid-column: 2/4;
align-items: center;
width: 100%;
}
}
.site-main {
@ -100,13 +116,24 @@
}
&.single {
.site-main {
//width: 45rem;
width: 45rem;
margin: 0 auto;
}
}
.xarxaprod-destacats,.xarxaprod-featured,.archive-posts {
grid-template-columns: repeat(4 , 1fr);
}
.xarxaprod-faqs-aside {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
.xarxaprod-search-form {
&:hover,&:active,&:focus,&:target {
flex-grow: 1;
}
}
}
}
@media screen and (min-width: 80em) {
//only bigger than 80rem
@ -123,8 +150,8 @@
.site-header {
.main {
//width: 80em;
margin: auto;
flex-flow: row;
//margin: auto;
//flex-flow: row;
}
.secondary {
}

View File

@ -1,8 +1,4 @@
//.wpcf7-form-control-wrap {
// input {
// margin-top: -1em;
// }
//}
/* contact forms styles used in wp backend with CF7 */
.wpcf7-not-valid:not(:focus) {
background-color: $color__red;
@ -23,7 +19,37 @@
padding: 0rem;
}
.wpcf7-form {
.contactform-name, .wpcf7-form .contactform-email {
.wpcf7-submit {
margin-left: 1rem;
}
.wpcf7-spinner {
margin: 0 -24px 0 0;
}
}
.wpcf7-list-item-label {
margin: 0 0.3rem;
}
/* styles applied if written in wp backend
* class="contactform contactform-WHATEVER"
* */
.contactform {
margin-bottom: 1rem;
br {
display: none;
}
p {
display: block;
break-inside: avoid-column;
margin-top: 0;
}
.break-after-column, .saltar-columna{
break-after:column;
}
}
.contactform-consultoria {
.contactform-name, .contactform-email {
max-width: 40%;
display: inline-block;
}
@ -36,16 +62,54 @@
}
.contactform-message {
}
.contactform-acceptance {
}
.contactform-acceptance {
display: flex;
align-items: center;
justify-content: end;
}
.wpcf7-submit {
margin-left: 1rem;
}
.wpcf7-spinner {
margin: 0 -24px 0 0;
}
.contactform-fund-info {
display: inline-block;
column-count: 2;
column-gap: 2em;
width: 100%;
.contactform-descripcio textarea {
display: inline-block;
min-height: 15.5em;
}
}
.contactform-fund-options {
display: flex;
justify-content: space-between;
p{
display: inline-block;
}
.wpcf7-list-item {
display:block;
label {
display: flex;
flex-direction: row-reverse;
justify-content: left;
}
}
.wpcf7-form-control-wrap {
&[data-name="oferta-data-start"],&[data-name="oferta-data-end"] {
display: block;
input[type="date"] {
width: auto;
background-color: $color__white;
}
&::before {
display: inline-block;
width: 2rem;
}
}
&[data-name="oferta-data-start"]::before {
content:"inici: ";
}
&[data-name="oferta-data-end"]::before {
content:"fi: ";
}
}
}

View File

@ -1,22 +1,22 @@
/*
Theme Name: Xarxaprod theme
Theme URI: http://underscores.me/
Author: jorge-vitrubio.net
Author URI: https://vitrubio.net
Description: theme for the Xarxaprod.cat
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Theme Name: XarxaProd.cat 2024
Theme URI: https://git.hangar.org/xarxaprod/
Author: Hangar.org Tech Lab - hangar.org
Author URI: https://hangar.org
Description: theme for the <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.7
Tested up to: 6.2
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: xarxaprod
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Tags: custom-logo, custom-menu, search,custom post-type, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
Xarxaprod theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
The Xarxaprod.cat theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
Normalizing styles have been helped along thanks to the fine work of

950
style.css

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long