styled navigation in small screens
This commit is contained in:
parent
7d44d111ea
commit
17912acdc4
|
@ -1287,7 +1287,7 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
display: flex;
|
||||
flex-flow: row;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
justify-content: space-between;
|
||||
z-index: 900;
|
||||
}
|
||||
|
||||
|
@ -1351,6 +1351,10 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
|
||||
@media screen and (max-width: 48em) {
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-header .main {
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer .is-layout-flex {
|
||||
flex-flow: column;
|
||||
align-items: flex-start;
|
||||
|
@ -1385,7 +1389,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 .site-header .main {
|
||||
grid-column: 2/4;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@ -1515,12 +1518,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 .secondary-navigation .current-menu-ancestor > a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://localhost"],
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: 1px solid #000;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation {
|
||||
padding: 0 1em 1em 0;
|
||||
|
@ -1600,18 +1597,15 @@ Add your custom styles in this file so it is easier to update the theme.
|
|||
top: 5rem;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: calc(100vh - 5rem);
|
||||
padding: 3rem;
|
||||
height: calc(100vh - 25rem);
|
||||
padding: 0 3rem;
|
||||
background-color: #fff;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 47.99em) {
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation-content {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation-content li {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
@ -1705,15 +1699,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 .main-navigation ul ul.sub-menu li {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://localhost"],
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: none;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://localhost"]::after,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item a::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
|
@ -1804,9 +1790,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 .main-navigation {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://localhost"]::after,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
|
||||
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item a::after {
|
||||
margin-top: 5em;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -26,7 +26,6 @@
|
|||
|
||||
li {
|
||||
position: relative;
|
||||
|
||||
&:hover > a,
|
||||
&.focus > a {
|
||||
}
|
||||
|
@ -45,20 +44,19 @@
|
|||
.current-menu-item > a,
|
||||
.current_page_ancestor > a,
|
||||
.current-menu-ancestor > a {
|
||||
//border-bottom: 1px solid $color__black;
|
||||
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 {
|
||||
// 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 {
|
||||
|
@ -92,7 +90,6 @@
|
|||
height: 100vh;
|
||||
margin-top: 0;
|
||||
padding: 0 2rem;
|
||||
//background-color: $color__white;
|
||||
}
|
||||
.toggle-show {
|
||||
position: relative;
|
||||
|
@ -135,35 +132,19 @@
|
|||
top: 5rem;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: calc(100vh - 5rem);
|
||||
padding: 3rem;
|
||||
height: calc(100vh - 25rem);
|
||||
padding: 0 3rem;
|
||||
background-color: $color__white;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
@ -189,7 +170,6 @@
|
|||
|
||||
ul {
|
||||
background-color: rgba(255,255,255,0.8);
|
||||
//box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
|
||||
float: left;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
|
@ -233,12 +213,6 @@
|
|||
a {
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
//.current_page_item > a,
|
||||
//.current-menu-item > a,
|
||||
//.current_page_ancestor > a,
|
||||
//.current-menu-ancestor > a {
|
||||
// border: none;
|
||||
//}
|
||||
}
|
||||
.main-navigation {
|
||||
padding-bottom: 1em;
|
||||
|
@ -252,16 +226,16 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
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,
|
||||
//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: "";
|
||||
|
@ -353,9 +327,9 @@
|
|||
}
|
||||
.main-navigation {
|
||||
padding-bottom: 0;
|
||||
a[href^="http://localhost"]::after,
|
||||
a[href^="http://xarxaprod.cat"]::after,
|
||||
a[href^="https://xarxaprod.cat"]::after,
|
||||
//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;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
display: flex;
|
||||
flex-flow: row;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
justify-content: space-between;
|
||||
z-index: 900;
|
||||
}
|
||||
.secondary {
|
||||
|
@ -103,6 +103,9 @@
|
|||
@media screen and (max-width: 48em) {
|
||||
//only smaller than 48em
|
||||
.site-header {
|
||||
.main{
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
.site-main {
|
||||
}
|
||||
|
@ -144,8 +147,7 @@
|
|||
|
||||
.main {
|
||||
grid-column: 2/4;
|
||||
//flex-flow: row;
|
||||
align-items: center;
|
||||
//align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
.secondary {
|
||||
|
|
36
style.css
36
style.css
|
@ -1154,7 +1154,7 @@ textarea {
|
|||
display: flex;
|
||||
flex-flow: row;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
justify-content: space-between;
|
||||
z-index: 900;
|
||||
}
|
||||
|
||||
|
@ -1218,6 +1218,10 @@ textarea {
|
|||
|
||||
@media screen and (max-width: 48em) {
|
||||
|
||||
.site-header .main {
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.site-footer .is-layout-flex {
|
||||
flex-flow: column;
|
||||
align-items: flex-start;
|
||||
|
@ -1252,7 +1256,6 @@ textarea {
|
|||
|
||||
.site-header .main {
|
||||
grid-column: 2/4;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
@ -1379,12 +1382,6 @@ textarea {
|
|||
.secondary-navigation .current-menu-ancestor > a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"],
|
||||
.main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: 1px solid #000;
|
||||
}
|
||||
|
||||
.secondary-navigation {
|
||||
padding: 0 1em 1em 0;
|
||||
|
@ -1468,18 +1465,15 @@ textarea {
|
|||
top: 5rem;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: calc(100vh - 5rem);
|
||||
padding: 3rem;
|
||||
height: calc(100vh - 25rem);
|
||||
padding: 0 3rem;
|
||||
background-color: #fff;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 47.99em) {
|
||||
|
||||
.main-navigation-content {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.main-navigation-content li {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
@ -1563,15 +1557,7 @@ textarea {
|
|||
.main-navigation ul ul.sub-menu li {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"],
|
||||
.main-navigation a[href^="http://xarxaprod.cat"],
|
||||
.main-navigation a[href^="https://xarxaprod.cat"] {
|
||||
font-family: "Neue Haas Grotesk Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||
border-left: none;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"]::after,
|
||||
.main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
|
||||
.main-navigation .current-menu-item a::after {
|
||||
display: inline-block;
|
||||
content: "";
|
||||
|
@ -1668,9 +1654,7 @@ textarea {
|
|||
.main-navigation {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.main-navigation a[href^="http://localhost"]::after,
|
||||
.main-navigation a[href^="http://xarxaprod.cat"]::after,
|
||||
.main-navigation a[href^="https://xarxaprod.cat"]::after,
|
||||
|
||||
.main-navigation .current-menu-item a::after {
|
||||
margin-top: 5em;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue