Compare commits

..

No commits in common. "032308252bf7541311b6426a095b421a6567d951" and "96ada7b5c7cb2bb19416672b19de8eb81d18ba36" have entirely different histories.

10 changed files with 207 additions and 218 deletions

View File

@ -17,7 +17,7 @@ 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.1.7
Version: 1.1.6
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later
@ -1400,10 +1400,6 @@ Add your custom styles in this file so it is easier to update the theme.
@media screen and (min-width: 48em) {
.edit-post-visual-editor__content-area .editor-styles-wrapper .site {
grid-template-columns: 1fr 2fr 2fr 1fr;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .site > header {
grid-column: 1 / -1;
}
@ -1422,7 +1418,7 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-header {
display: grid;
grid-template-columns: 1fr 2fr 2fr 1fr;
grid-template-columns: 1fr minmax(0, 35em) minmax(0, 35em) 1fr;
grid-template-areas: "main " "secondary ";
margin: auto;
padding: 0;
@ -1497,6 +1493,8 @@ Add your custom styles in this file so it is easier to update the theme.
/* begin of menu-hidden */
/* end of menu hidden*/
/* Small menu. */
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .hide-content {
@ -1537,44 +1535,20 @@ Add your custom styles in this file so it is easier to update the theme.
display: flex;
align-items: center;
min-height: 100%;
padding: 0 0.5rem;
text-decoration: none;
font-size: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled ul {
display: block;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled .main-navigation-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
padding: 4rem;
background-color: rgba(255, 255, 255, 0.95);
overflow: auto;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled .menu-toggle {
position: relative;
z-index: 9999;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled .current-menu-ancestor > a::after {
background-color: transparent;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled .current-menu-item > a::after {
display: inline-block;
content: "";
position: absolute;
left: 0;
top: 2em;
height: 2px;
width: 100%;
background-color: #000;
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current_page_item > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current_page_ancestor > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-ancestor > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation .current_page_item > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation .current-menu-item > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation .current_page_ancestor > a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation .current-menu-ancestor > a {
text-decoration: underline;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation {
@ -1644,6 +1618,22 @@ Add your custom styles in this file so it is easier to update the theme.
font-size: 3rem;
font-weight: 700;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled ul {
display: block;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation.toggled .main-navigation-content {
display: inline-block;
position: absolute;
top: 5rem;
left: 0;
width: 100%;
height: calc(100vh - 25rem);
padding: 0 3rem;
background-color: #fff;
overflow: auto;
}
}
@media screen and (max-width: 47.99em) {
@ -1683,13 +1673,9 @@ Add your custom styles in this file so it is easier to update the theme.
display: flex;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul .menu-item-has-children > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul .menu-item-has-children > ul {
background-color: rgba(255, 255, 255, 0.95);
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul .sub-menu,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul .sub-menu {
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul ul {
background-color: rgba(255, 255, 255, 0.8);
float: left;
position: absolute;
top: 100%;
@ -1697,31 +1683,26 @@ Add your custom styles in this file so it is easier to update the theme.
z-index: 99999;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul .sub-menu ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul .sub-menu ul {
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul ul ul {
left: -999em;
top: 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul .sub-menu li:hover > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul .sub-menu li.focus > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul .sub-menu li:hover > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul .sub-menu li.focus > ul {
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul li:hover > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul li.focus > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul ul li:hover > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul ul li.focus > ul {
display: block;
left: 4em;
top: 1em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul .sub-menu a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul .sub-menu a {
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul ul a {
width: 200px;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul li,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul li {
padding: 0 1em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul li:hover > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul li.focus > ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul li:hover > ul,
@ -1729,6 +1710,11 @@ Add your custom styles in this file so it is easier to update the theme.
left: auto;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation a {
padding: 0 0.5rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation {
padding-bottom: 1em;
}
@ -1739,24 +1725,22 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul.sub-menu {
flex-direction: column;
padding: 0.5rem;
padding: 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation ul ul.sub-menu li {
margin: 0.5rem 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-ancestor > a::after,
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item > a::after {
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item a::after {
display: inline-block;
content: "";
position: absolute;
left: 1em;
bottom: -0.5em;
left: 5%;
min-height: 2px;
height: 2px;
width: calc(100% - 2em);
background-color: #000;
height: 100%;
width: 90%;
margin-top: 2.3em;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation {
@ -1830,9 +1814,18 @@ Add your custom styles in this file so it is easier to update the theme.
display: none;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation a {
padding: 0 1rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation {
padding-bottom: 0;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item a::after {
margin-top: 5em;
}
}
@media screen {
@ -2241,6 +2234,7 @@ Add your custom styles in this file so it is easier to update the theme.
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section .filter {
display: inline-block;
width: 45%;
margin-top: 0.5rem;
margin-right: 0.3em;
@ -2250,12 +2244,6 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section .filter:last-of-type {
margin-bottom: 2rem;
}
.edit-post-visual-editor__content-area .editor-styles-wrapper .xarxaprod-filters section:last-of-type::after {
content: "";
display: inline-block;
width: 100%;
}
}
@media screen and (min-width: 48em) {
@ -2683,8 +2671,7 @@ Add your custom styles in this file so it is easier to update the theme.
}
.edit-post-visual-editor__content-area .editor-styles-wrapper h1,
.edit-post-visual-editor__content-area .editor-styles-wrapper figure,
.edit-post-visual-editor__content-area .editor-styles-wrapper button {
.edit-post-visual-editor__content-area .editor-styles-wrapper figure {
margin-left: auto;
margin-right: auto;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,7 @@
// max-width: 80rem;
//``}
font-family: $font__main;
h1,figure,button {
h1,figure {
margin-left: auto;
margin-right: auto;
}

View File

@ -339,6 +339,7 @@
width: 100%;
}
.filter {
display: inline-block;
width: 45%;
margin-top: 0.5rem;
margin-right: 0.3em;
@ -347,11 +348,6 @@
margin-bottom: 2rem;
}
}
&:last-of-type:after {
content: "";
display: inline-block;
width: 100%;
}
}
}
}

View File

@ -23,56 +23,40 @@
padding-left: 1rem;
}
}
li {
position: relative;
&:hover > a,
&.focus > a {
}
}
a {
display: flex;
align-items: center;
min-height: 100%;
padding: 0 0.5rem;
text-decoration: none;
font-size: 1rem;
}
.current_page_item > a,
.current-menu-item > a,
.current_page_ancestor > a,
.current-menu-ancestor > a {
text-decoration: underline;
}
}
.main-navigation {
&.toggled {
ul {
display: block;
}
.main-navigation-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
padding: 4rem;
background-color: rgba(255,255,255,0.95);
overflow: auto;
}
.menu-toggle {
position: relative;
z-index: 9999;
}
.current-menu-ancestor > a::after {
background-color: transparent;
}
.current-menu-item > a::after {
display: inline-block;
content: "";
position: absolute;
left: 0;
top: 2em;
height: 2px;
width: 100%;
background-color: $color__black;
}
}
}
//.main-navigation {
// a[href^="http://localhost"],
// a[href^="http://xarxaprod.cat"],
// a[href^="https://xarxaprod.cat"]
// {
// font-family: $font__bold;
// border-left: 1px solid $color__black;
// }
//}
.secondary-navigation {
padding: 0 1em 1em 0;
ul {
@ -85,6 +69,7 @@
text-transform: uppercase;
}
}
.menu-item-has-children {
}
@ -136,6 +121,25 @@
}
/* end of menu hidden*/
/* Small menu. */
.main-navigation.toggled {
ul {
display: block;
}
.main-navigation-content {
display: inline-block;
position: absolute;
top: 5rem;
left: 0;
width: 100%;
height: calc(100vh - 25rem);
padding: 0 3rem;
background-color: $color__white;
overflow: auto;
}
}
.menu-toggle {
}
}
@media screen and (max-width: 47.99em) {
.site-branding {
@ -163,10 +167,9 @@
.main-navigation,.secondary-navigation {
ul {
display: flex;
.menu-item-has-children > ul {
background-color: rgba(255,255,255,0.95);
}
.sub-menu {
ul {
background-color: rgba(255,255,255,0.8);
float: left;
position: absolute;
top: 100%;
@ -200,15 +203,16 @@
a.focus {
}
}
li {
padding: 0 1em;
&:hover > ul,
&.focus > ul {
li:hover > ul,
li.focus > ul {
left: auto;
}
}
}
a {
padding: 0 0.5rem;
}
}
.main-navigation {
padding-bottom: 1em;
@ -216,23 +220,31 @@
justify-content: end;
ul.sub-menu {
flex-direction: column;
padding: 0.5rem;
padding: 1rem;
li {
margin: 0.5rem 0;
}
}
}
.current-menu-ancestor > a::after,
.current-menu-item > a::after {
//a[href^="http://localhost"],
//a[href^="http://xarxaprod.cat"],
//a[href^="https://xarxaprod.cat"]
//{
// font-family: $font__bold;
// border-left:none;
//}
//a[href^="http://localhost"]::after,
//a[href^="http://xarxaprod.cat"]::after,
//a[href^="https://xarxaprod.cat"]::after,
.current-menu-item a::after {
display: inline-block;
content: "";
position: absolute;
left: 1em;
bottom: -0.5em;
left: 5%;
min-height: 2px;
height: 2px;
width: calc(100% - 2em);
background-color: $color__black;
height: 100%;
width: 90%;
margin-top: 2.3em;
}
.menu-item-has-children {
ul {
@ -309,11 +321,17 @@
display:none;
}
//a {
// padding: 0 1rem;
//}
a {
padding: 0 1rem;
}
}
.main-navigation {
padding-bottom: 0;
//a[href^="http://localhost"]::after,
//a[href^="http://xarxaprod.cat"]::after,
//a[href^="https://xarxaprod.cat"]::after,
.current-menu-item a::after {
margin-top: 5em;
}
}
}

View File

@ -9,6 +9,7 @@
.site {
display: grid;
grid-template-columns: 1fr minmax(0,35em) minmax(0,35em) 1fr;
//grid-template-columns: 0.25fr 1.25fr 1.25fr 0.25fr;
grid-auto-rows: min-content auto min-content min-content;
grid-template-areas:
"header"
@ -164,7 +165,6 @@
@media screen and (min-width: 48em) {
//only bigger than 48em
.site {
grid-template-columns: 1fr 2fr 2fr 1fr;
> header {
grid-column: 1 / -1;
}
@ -180,7 +180,8 @@
}
.site-header {
display: grid;
grid-template-columns: 1fr 2fr 2fr 1fr;
//grid-template-columns: 0.25fr 1.25fr 1.25fr 0.25fr;
grid-template-columns: 1fr minmax(0,35em) minmax(0,35em) 1fr;
grid-template-areas:
"main "
"secondary ";

View File

@ -5,7 +5,7 @@ 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.1.7
Version: 1.1.6
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later

135
style.css
View File

@ -5,7 +5,7 @@ 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.1.7
Version: 1.1.6
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later
@ -1262,10 +1262,6 @@ textarea {
@media screen and (min-width: 48em) {
.site {
grid-template-columns: 1fr 2fr 2fr 1fr;
}
.site > header {
grid-column: 1 / -1;
}
@ -1284,7 +1280,7 @@ textarea {
.site-header {
display: grid;
grid-template-columns: 1fr 2fr 2fr 1fr;
grid-template-columns: 1fr minmax(0, 35em) minmax(0, 35em) 1fr;
grid-template-areas: "main " "secondary ";
margin: auto;
padding: 0;
@ -1398,44 +1394,20 @@ textarea {
display: flex;
align-items: center;
min-height: 100%;
padding: 0 0.5rem;
text-decoration: none;
font-size: 1rem;
}
.main-navigation.toggled ul {
display: block;
}
.main-navigation.toggled .main-navigation-content {
display: inline-block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
padding: 4rem;
background-color: rgba(255, 255, 255, 0.95);
overflow: auto;
}
.main-navigation.toggled .menu-toggle {
position: relative;
z-index: 9999;
}
.main-navigation.toggled .current-menu-ancestor > a::after {
background-color: transparent;
}
.main-navigation.toggled .current-menu-item > a::after {
display: inline-block;
content: "";
position: absolute;
left: 0;
top: 2em;
height: 2px;
width: 100%;
background-color: #000;
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a,
.secondary-navigation .current_page_item > a,
.secondary-navigation .current-menu-item > a,
.secondary-navigation .current_page_ancestor > a,
.secondary-navigation .current-menu-ancestor > a {
text-decoration: underline;
}
.secondary-navigation {
@ -1508,6 +1480,23 @@ textarea {
}
/* end of menu hidden*/
/* Small menu. */
.main-navigation.toggled ul {
display: block;
}
.main-navigation.toggled .main-navigation-content {
display: inline-block;
position: absolute;
top: 5rem;
left: 0;
width: 100%;
height: calc(100vh - 25rem);
padding: 0 3rem;
background-color: #fff;
overflow: auto;
}
}
@media screen and (max-width: 47.99em) {
@ -1537,13 +1526,9 @@ textarea {
display: flex;
}
.main-navigation ul .menu-item-has-children > ul,
.secondary-navigation ul .menu-item-has-children > ul {
background-color: rgba(255, 255, 255, 0.95);
}
.main-navigation ul .sub-menu,
.secondary-navigation ul .sub-menu {
.main-navigation ul ul,
.secondary-navigation ul ul {
background-color: rgba(255, 255, 255, 0.8);
float: left;
position: absolute;
top: 100%;
@ -1551,31 +1536,26 @@ textarea {
z-index: 99999;
}
.main-navigation ul .sub-menu ul,
.secondary-navigation ul .sub-menu ul {
.main-navigation ul ul ul,
.secondary-navigation ul ul ul {
left: -999em;
top: 0;
}
.main-navigation ul .sub-menu li:hover > ul,
.main-navigation ul .sub-menu li.focus > ul,
.secondary-navigation ul .sub-menu li:hover > ul,
.secondary-navigation ul .sub-menu li.focus > ul {
.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul,
.secondary-navigation ul ul li:hover > ul,
.secondary-navigation ul ul li.focus > ul {
display: block;
left: 4em;
top: 1em;
}
.main-navigation ul .sub-menu a,
.secondary-navigation ul .sub-menu a {
.main-navigation ul ul a,
.secondary-navigation ul ul a {
width: 200px;
}
.main-navigation ul li,
.secondary-navigation ul li {
padding: 0 1em;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul,
.secondary-navigation ul li:hover > ul,
@ -1583,6 +1563,11 @@ textarea {
left: auto;
}
.main-navigation a,
.secondary-navigation a {
padding: 0 0.5rem;
}
.main-navigation {
padding-bottom: 1em;
}
@ -1593,24 +1578,22 @@ textarea {
.main-navigation ul ul.sub-menu {
flex-direction: column;
padding: 0.5rem;
padding: 1rem;
}
.main-navigation ul ul.sub-menu li {
margin: 0.5rem 0;
}
.main-navigation .current-menu-ancestor > a::after,
.main-navigation .current-menu-item > a::after {
.main-navigation .current-menu-item a::after {
display: inline-block;
content: "";
position: absolute;
left: 1em;
bottom: -0.5em;
left: 5%;
min-height: 2px;
height: 2px;
width: calc(100% - 2em);
background-color: #000;
height: 100%;
width: 90%;
margin-top: 2.3em;
}
.secondary-navigation {
@ -1690,9 +1673,18 @@ textarea {
display: none;
}
.main-navigation a,
.secondary-navigation a {
padding: 0 1rem;
}
.main-navigation {
padding-bottom: 0;
}
.main-navigation .current-menu-item a::after {
margin-top: 5em;
}
}
/* Posts and pages
@ -2093,6 +2085,7 @@ textarea {
}
.xarxaprod-filters section .filter {
display: inline-block;
width: 45%;
margin-top: 0.5rem;
margin-right: 0.3em;
@ -2102,12 +2095,6 @@ textarea {
.xarxaprod-filters section .filter:last-of-type {
margin-bottom: 2rem;
}
.xarxaprod-filters section:last-of-type::after {
content: "";
display: inline-block;
width: 100%;
}
}
@media screen and (min-width: 48em) {

File diff suppressed because one or more lines are too long