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;
|
display: flex;
|
||||||
flex-flow: row;
|
flex-flow: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
z-index: 900;
|
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) {
|
@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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-footer .is-layout-flex {
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
align-items: flex-start;
|
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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .site-header .main {
|
||||||
grid-column: 2/4;
|
grid-column: 2/4;
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation .current-menu-ancestor > a {
|
||||||
text-decoration: underline;
|
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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .secondary-navigation {
|
||||||
padding: 0 1em 1em 0;
|
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;
|
top: 5rem;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 5rem);
|
height: calc(100vh - 25rem);
|
||||||
padding: 3rem;
|
padding: 0 3rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 47.99em) {
|
@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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation-content li {
|
||||||
padding: 0.5rem 0;
|
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 {
|
.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 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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item a::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: "";
|
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 {
|
.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 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 {
|
.edit-post-visual-editor__content-area .editor-styles-wrapper .main-navigation .current-menu-item a::after {
|
||||||
margin-top: 5em;
|
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 {
|
li {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&:hover > a,
|
&:hover > a,
|
||||||
&.focus > a {
|
&.focus > a {
|
||||||
}
|
}
|
||||||
|
@ -45,20 +44,19 @@
|
||||||
.current-menu-item > a,
|
.current-menu-item > a,
|
||||||
.current_page_ancestor > a,
|
.current_page_ancestor > a,
|
||||||
.current-menu-ancestor > a {
|
.current-menu-ancestor > a {
|
||||||
//border-bottom: 1px solid $color__black;
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation {
|
//.main-navigation {
|
||||||
a[href^="http://localhost"],
|
// a[href^="http://localhost"],
|
||||||
a[href^="http://xarxaprod.cat"],
|
// a[href^="http://xarxaprod.cat"],
|
||||||
a[href^="https://xarxaprod.cat"]
|
// a[href^="https://xarxaprod.cat"]
|
||||||
{
|
// {
|
||||||
font-family: $font__bold;
|
// font-family: $font__bold;
|
||||||
border-left: 1px solid $color__black;
|
// border-left: 1px solid $color__black;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
.secondary-navigation {
|
.secondary-navigation {
|
||||||
padding: 0 1em 1em 0;
|
padding: 0 1em 1em 0;
|
||||||
ul {
|
ul {
|
||||||
|
@ -92,7 +90,6 @@
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding: 0 2rem;
|
padding: 0 2rem;
|
||||||
//background-color: $color__white;
|
|
||||||
}
|
}
|
||||||
.toggle-show {
|
.toggle-show {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -135,35 +132,19 @@
|
||||||
top: 5rem;
|
top: 5rem;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 5rem);
|
height: calc(100vh - 25rem);
|
||||||
padding: 3rem;
|
padding: 0 3rem;
|
||||||
background-color: $color__white;
|
background-color: $color__white;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.menu-toggle {
|
.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) {
|
@media screen and (max-width: 47.99em) {
|
||||||
.site-branding {
|
.site-branding {
|
||||||
//display: block;
|
|
||||||
//width: 0px;
|
|
||||||
//height: 0px;
|
|
||||||
//overflow: hidden;
|
|
||||||
//margin: 0;
|
|
||||||
//padding: 0;
|
|
||||||
}
|
}
|
||||||
.main-navigation-content {
|
.main-navigation-content {
|
||||||
text-transform: uppercase;
|
|
||||||
li {
|
li {
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
@ -189,7 +170,6 @@
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
background-color: rgba(255,255,255,0.8);
|
background-color: rgba(255,255,255,0.8);
|
||||||
//box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
|
|
||||||
float: left;
|
float: left;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
|
@ -233,12 +213,6 @@
|
||||||
a {
|
a {
|
||||||
padding: 0 0.5rem;
|
padding: 0 0.5rem;
|
||||||
}
|
}
|
||||||
//.current_page_item > a,
|
|
||||||
//.current-menu-item > a,
|
|
||||||
//.current_page_ancestor > a,
|
|
||||||
//.current-menu-ancestor > a {
|
|
||||||
// border: none;
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
.main-navigation {
|
.main-navigation {
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
|
@ -252,16 +226,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
a[href^="http://localhost"],
|
//a[href^="http://localhost"],
|
||||||
a[href^="http://xarxaprod.cat"],
|
//a[href^="http://xarxaprod.cat"],
|
||||||
a[href^="https://xarxaprod.cat"]
|
//a[href^="https://xarxaprod.cat"]
|
||||||
{
|
//{
|
||||||
font-family: $font__bold;
|
// font-family: $font__bold;
|
||||||
border-left:none;
|
// border-left:none;
|
||||||
}
|
//}
|
||||||
a[href^="http://localhost"]::after,
|
//a[href^="http://localhost"]::after,
|
||||||
a[href^="http://xarxaprod.cat"]::after,
|
//a[href^="http://xarxaprod.cat"]::after,
|
||||||
a[href^="https://xarxaprod.cat"]::after,
|
//a[href^="https://xarxaprod.cat"]::after,
|
||||||
.current-menu-item a::after {
|
.current-menu-item a::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: "";
|
content: "";
|
||||||
|
@ -353,9 +327,9 @@
|
||||||
}
|
}
|
||||||
.main-navigation {
|
.main-navigation {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
a[href^="http://localhost"]::after,
|
//a[href^="http://localhost"]::after,
|
||||||
a[href^="http://xarxaprod.cat"]::after,
|
//a[href^="http://xarxaprod.cat"]::after,
|
||||||
a[href^="https://xarxaprod.cat"]::after,
|
//a[href^="https://xarxaprod.cat"]::after,
|
||||||
.current-menu-item a::after {
|
.current-menu-item a::after {
|
||||||
margin-top: 5em;
|
margin-top: 5em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row;
|
flex-flow: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
z-index: 900;
|
z-index: 900;
|
||||||
}
|
}
|
||||||
.secondary {
|
.secondary {
|
||||||
|
@ -103,6 +103,9 @@
|
||||||
@media screen and (max-width: 48em) {
|
@media screen and (max-width: 48em) {
|
||||||
//only smaller than 48em
|
//only smaller than 48em
|
||||||
.site-header {
|
.site-header {
|
||||||
|
.main{
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.site-main {
|
.site-main {
|
||||||
}
|
}
|
||||||
|
@ -144,8 +147,7 @@
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
grid-column: 2/4;
|
grid-column: 2/4;
|
||||||
//flex-flow: row;
|
//align-items: center;
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.secondary {
|
.secondary {
|
||||||
|
|
36
style.css
36
style.css
|
@ -1154,7 +1154,7 @@ textarea {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row;
|
flex-flow: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
z-index: 900;
|
z-index: 900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1218,6 +1218,10 @@ textarea {
|
||||||
|
|
||||||
@media screen and (max-width: 48em) {
|
@media screen and (max-width: 48em) {
|
||||||
|
|
||||||
|
.site-header .main {
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.site-footer .is-layout-flex {
|
.site-footer .is-layout-flex {
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
@ -1252,7 +1256,6 @@ textarea {
|
||||||
|
|
||||||
.site-header .main {
|
.site-header .main {
|
||||||
grid-column: 2/4;
|
grid-column: 2/4;
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1379,12 +1382,6 @@ textarea {
|
||||||
.secondary-navigation .current-menu-ancestor > a {
|
.secondary-navigation .current-menu-ancestor > a {
|
||||||
text-decoration: underline;
|
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 {
|
.secondary-navigation {
|
||||||
padding: 0 1em 1em 0;
|
padding: 0 1em 1em 0;
|
||||||
|
@ -1468,18 +1465,15 @@ textarea {
|
||||||
top: 5rem;
|
top: 5rem;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 5rem);
|
height: calc(100vh - 25rem);
|
||||||
padding: 3rem;
|
padding: 0 3rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 47.99em) {
|
@media screen and (max-width: 47.99em) {
|
||||||
|
|
||||||
.main-navigation-content {
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-navigation-content li {
|
.main-navigation-content li {
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
@ -1563,15 +1557,7 @@ textarea {
|
||||||
.main-navigation ul ul.sub-menu li {
|
.main-navigation ul ul.sub-menu li {
|
||||||
margin: 0.5rem 0;
|
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 {
|
.main-navigation .current-menu-item a::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: "";
|
content: "";
|
||||||
|
@ -1668,9 +1654,7 @@ textarea {
|
||||||
.main-navigation {
|
.main-navigation {
|
||||||
padding-bottom: 0;
|
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 {
|
.main-navigation .current-menu-item a::after {
|
||||||
margin-top: 5em;
|
margin-top: 5em;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue