bumped version added features

This commit is contained in:
jorge-vitrubio 2024-03-12 14:21:52 +01:00
parent 7addbb6ed6
commit 032308252b
6 changed files with 154 additions and 128 deletions

View File

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

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

File diff suppressed because one or more lines are too long