styled main menu with submenus

This commit is contained in:
jorge-vitrubio 2023-01-31 11:07:18 +01:00
parent 42927ccbf9
commit 7f08a301b0
6 changed files with 36 additions and 5 deletions

View File

@ -16,7 +16,7 @@ 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.2
Version: 1.0.3
Tested up to: 6.2
Requires PHP: 5.6
License: GNU General Public License v3 or later
@ -1349,6 +1349,15 @@ Add your custom styles in this file so it is easier to update the theme.
.edit-post-visual-editor__content-area .main-navigation ul {
justify-content: end;
}
.edit-post-visual-editor__content-area .main-navigation ul ul.sub-menu {
flex-direction: column;
padding-top: 2rem;
padding-left: 1rem;
padding-bottom: 1rem;
}
.edit-post-visual-editor__content-area .main-navigation ul ul.sub-menu li {
margin: 0.5rem 0;
}
.edit-post-visual-editor__content-area .main-navigation a[href^="http://localhost"],
.edit-post-visual-editor__content-area .main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
.edit-post-visual-editor__content-area .main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {

File diff suppressed because one or more lines are too long

View File

@ -244,6 +244,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://oficinasuport.xarxaprod.cat"],
@ -266,6 +275,10 @@
margin-top: 2.3em;
border-bottom: 0.3rem solid $color__black;
}
.menu-item-has-children {
ul {
}
}
}
.secondary-navigation {
padding: 1.5em 0;

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 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.2
Version: 1.0.3
Tested up to: 6.2
Requires PHP: 5.6
License: GNU General Public License v3 or later

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 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.2
Version: 1.0.3
Tested up to: 6.2
Requires PHP: 5.6
License: GNU General Public License v3 or later
@ -1279,6 +1279,15 @@ textarea {
.main-navigation ul {
justify-content: end;
}
.main-navigation ul ul.sub-menu {
flex-direction: column;
padding-top: 2rem;
padding-left: 1rem;
padding-bottom: 1rem;
}
.main-navigation ul ul.sub-menu li {
margin: 0.5rem 0;
}
.main-navigation a[href^="http://localhost"],
.main-navigation a[href^="http://oficinasuport.xarxaprod.cat"],
.main-navigation a[href^="https://oficinasuport.xarxaprod.cat"] {

File diff suppressed because one or more lines are too long