oficinasuport-wp-theme/sass/layouts/_no-sidebar.scss

96 lines
1.9 KiB
SCSS
Raw Normal View History

@media screen {
.no-sidebar {
.site {
display: grid;
grid-template-columns: auto;
grid-template-areas:
"header"
"main"
"footer";
margin: auto;
padding: 0 1rem;
max-width: 80em;
}
.site-header {
2022-12-03 19:49:36 +01:00
position: sticky;
2022-12-22 18:20:07 +01:00
z-index: 900;
2022-12-03 19:49:36 +01:00
top: 0;
2022-12-23 23:12:24 +01:00
height: 10rem;
margin-bottom: 2rem;
background-color: hsla(0, 0%, 100%, 0.95);
&::after {
content: "";
display: inline-block;
width: 100%;
height: 5rem;
position: absolute;
top:10rem;
// https://css-tricks.com/easing-linear-gradients/
background-image: linear-gradient(
hsla(0, 0%, 100%, 0.95) 5%,
hsla(0, 0%, 100%, 0.738) 19%,
hsla(0, 0%, 100%, 0.541) 34%,
hsla(0, 0%, 100%, 0.382) 47%,
hsla(0, 0%, 100%, 0.278) 56.5%,
hsla(0, 0%, 100%, 0.194) 65%,
hsla(0, 0%, 100%, 0.126) 73%,
hsla(0, 0%, 100%, 0.075) 80.2%,
hsla(0, 0%, 100%, 0.042) 86.1%,
hsla(0, 0%, 100%, 0.021) 91%,
hsla(0, 0%, 100%, 0.008) 95.2%,
hsla(0, 0%, 100%, 0.002) 98.2%,
hsla(0, 0%, 100%, 0) 100%
);
}
.main {
display: flex;
2022-12-03 19:49:36 +01:00
flex-flow: row;
align-items: center;
2022-12-03 19:49:36 +01:00
justify-content: space-around;
}
.secondary {
display: flex;
flex-flow: column;
align-items: center;
}
}
.site-main {
h1,h2,h3,h4,h5,h6,.entry-content {
margin:0;
}
}
2022-11-29 19:49:21 +01:00
}
}
@media screen and (min-width: 48em) {
.no-sidebar {
.site {
padding: 0 2rem;
}
.site-header {
.main {
2022-12-03 19:49:36 +01:00
flex-flow: column;
border-bottom: 1px solid $color__grey-lighter;
}
.secondary {
//justify-content: center;
}
}
}
}
@media screen and (min-width: 80em) {
.no-sidebar {
.site {
padding: 0 3rem;
2022-11-29 19:49:21 +01:00
}
.site-header {
.main {
flex-flow: row;
align-items: center;
justify-content: space-between;
}
.secondary {
}
2022-11-29 19:49:21 +01:00
}
}
}