Compare commits

..

5 Commits

Author SHA1 Message Date
jorge 032308252b bumped version added features 2024-03-12 14:21:52 +01:00
jorge 7addbb6ed6 edited page grid columns structure 2024-03-12 14:21:26 +01:00
jorge 2f3caed771 edited menu lines and view in small screens 2024-03-12 14:20:42 +01:00
jorge 2f4861857a edited post elements 2024-03-12 14:20:12 +01:00
jorge 8dc7d50403 edited backend button style 2024-03-12 14:18:37 +01:00
10 changed files with 218 additions and 207 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.6
Version: 1.1.7
Tested up to: 6.4
Requires PHP: 7.4
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) {
.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;
}
@ -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 {
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 ";
margin: auto;
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 */
/* end of menu hidden*/
/* Small menu. */
}
.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;
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 .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 .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 .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-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) {
@ -1673,9 +1683,13 @@ 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 ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation ul ul {
background-color: rgba(255, 255, 255, 0.8);
.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 {
float: left;
position: absolute;
top: 100%;
@ -1683,26 +1697,31 @@ 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 ul ul,
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-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 .sub-menu ul {
left: -999em;
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 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 {
.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 {
display: block;
left: 4em;
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 .secondary-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 .sub-menu 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,
@ -1710,11 +1729,6 @@ 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;
}
@ -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 {
flex-direction: column;
padding: 1rem;
padding: 0.5rem;
}
.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-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;
content: "";
position: absolute;
left: 5%;
left: 1em;
bottom: -0.5em;
min-height: 2px;
height: 100%;
width: 90%;
margin-top: 2.3em;
height: 2px;
width: calc(100% - 2em);
background-color: #000;
}
.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;
}
.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 {
@ -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 {
display: inline-block;
width: 45%;
margin-top: 0.5rem;
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 {
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) {
@ -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 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-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 {
h1,figure,button {
margin-left: auto;
margin-right: auto;
}

View File

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

View File

@ -23,40 +23,56 @@
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 {
// a[href^="http://localhost"],
// a[href^="http://xarxaprod.cat"],
// a[href^="https://xarxaprod.cat"]
// {
// font-family: $font__bold;
// border-left: 1px solid $color__black;
// }
//}
.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;
}
}
}
.secondary-navigation {
padding: 0 1em 1em 0;
ul {
@ -69,7 +85,6 @@
text-transform: uppercase;
}
}
.menu-item-has-children {
}
@ -121,25 +136,6 @@
}
/* 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 {
@ -167,9 +163,10 @@
.main-navigation,.secondary-navigation {
ul {
display: flex;
ul {
background-color: rgba(255,255,255,0.8);
.menu-item-has-children > ul {
background-color: rgba(255,255,255,0.95);
}
.sub-menu {
float: left;
position: absolute;
top: 100%;
@ -203,16 +200,15 @@
a.focus {
}
}
li:hover > ul,
li.focus > ul {
li {
padding: 0 1em;
&:hover > ul,
&.focus > ul {
left: auto;
}
}
a {
padding: 0 0.5rem;
}
}
.main-navigation {
padding-bottom: 1em;
@ -220,31 +216,23 @@
justify-content: end;
ul.sub-menu {
flex-direction: column;
padding: 1rem;
padding: 0.5rem;
li {
margin: 0.5rem 0;
}
}
}
//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 {
.current-menu-ancestor > a::after,
.current-menu-item > a::after {
display: inline-block;
content: "";
position: absolute;
left: 5%;
left: 1em;
bottom: -0.5em;
min-height: 2px;
height: 100%;
width: 90%;
margin-top: 2.3em;
height: 2px;
width: calc(100% - 2em);
background-color: $color__black;
}
.menu-item-has-children {
ul {
@ -321,17 +309,11 @@
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,7 +9,6 @@
.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"
@ -165,6 +164,7 @@
@media screen and (min-width: 48em) {
//only bigger than 48em
.site {
grid-template-columns: 1fr 2fr 2fr 1fr;
> header {
grid-column: 1 / -1;
}
@ -180,8 +180,7 @@
}
.site-header {
display: grid;
//grid-template-columns: 0.25fr 1.25fr 1.25fr 0.25fr;
grid-template-columns: 1fr minmax(0,35em) minmax(0,35em) 1fr;
grid-template-columns: 1fr 2fr 2fr 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.6
Version: 1.1.7
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.6
Version: 1.1.7
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later
@ -1262,6 +1262,10 @@ textarea {
@media screen and (min-width: 48em) {
.site {
grid-template-columns: 1fr 2fr 2fr 1fr;
}
.site > header {
grid-column: 1 / -1;
}
@ -1280,7 +1284,7 @@ textarea {
.site-header {
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 ";
margin: auto;
padding: 0;
@ -1394,20 +1398,44 @@ textarea {
display: flex;
align-items: center;
min-height: 100%;
padding: 0 0.5rem;
text-decoration: none;
font-size: 1rem;
}
.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;
.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;
}
.secondary-navigation {
@ -1480,23 +1508,6 @@ 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) {
@ -1526,9 +1537,13 @@ textarea {
display: flex;
}
.main-navigation ul ul,
.secondary-navigation ul ul {
background-color: rgba(255, 255, 255, 0.8);
.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 {
float: left;
position: absolute;
top: 100%;
@ -1536,26 +1551,31 @@ textarea {
z-index: 99999;
}
.main-navigation ul ul ul,
.secondary-navigation ul ul ul {
.main-navigation ul .sub-menu ul,
.secondary-navigation ul .sub-menu ul {
left: -999em;
top: 0;
}
.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 {
.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 {
display: block;
left: 4em;
top: 1em;
}
.main-navigation ul ul a,
.secondary-navigation ul ul a {
.main-navigation ul .sub-menu a,
.secondary-navigation ul .sub-menu 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,
@ -1563,11 +1583,6 @@ textarea {
left: auto;
}
.main-navigation a,
.secondary-navigation a {
padding: 0 0.5rem;
}
.main-navigation {
padding-bottom: 1em;
}
@ -1578,22 +1593,24 @@ textarea {
.main-navigation ul ul.sub-menu {
flex-direction: column;
padding: 1rem;
padding: 0.5rem;
}
.main-navigation ul ul.sub-menu li {
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;
content: "";
position: absolute;
left: 5%;
left: 1em;
bottom: -0.5em;
min-height: 2px;
height: 100%;
width: 90%;
margin-top: 2.3em;
height: 2px;
width: calc(100% - 2em);
background-color: #000;
}
.secondary-navigation {
@ -1673,18 +1690,9 @@ 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
@ -2085,7 +2093,6 @@ textarea {
}
.xarxaprod-filters section .filter {
display: inline-block;
width: 45%;
margin-top: 0.5rem;
margin-right: 0.3em;
@ -2095,6 +2102,12 @@ 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