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

168 lines
2.6 KiB
SCSS
Raw Normal View History

@media screen {
.no-sidebar {
.site {
display: grid;
grid-template-columns: 1fr minmax(0,35em) minmax(0,35em) 1fr;
grid-template-areas:
"header"
"main"
"aside"
"footer";
margin: auto;
padding: 0;
> header {
grid-column: 1 / -1;
}
> main {
grid-column: 2 / 4;
}
> aside {
grid-column: 2 / 4;
}
> footer {
grid-column: 1 / -1;
}
}
.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
margin-bottom: 2rem;
background-color: $color__white;
box-shadow: 0 15px 30px rgba(0,0,0,0.05), 0 1px 0 0 rgba(0,0,0,0.0);
.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 {
padding: 0 1rem;
h1,h2,h3,h4,h5,h6,.entry-content {
margin: 0;
}
}
.home-featured {
padding: 0 1rem;
}
.site-footer {
}
2022-11-29 19:49:21 +01:00
}
2022-12-29 00:19:41 +01:00
.ofisuport-destacats,.ofisuport-featured,.archive-posts {
display: grid;
grid-template-columns: repeat(1 , 1fr);
gap: $grid__gap;
2022-12-30 21:15:45 +01:00
.entry-title {
border-bottom: 1px solid $color__black;
margin: 0;
}
.ofisuport-funder-name {
display: flex;
2022-12-30 21:35:32 +01:00
margin:0;
2022-12-30 21:15:45 +01:00
padding: 0.3rem 0;
font-variant: all-petite-caps;
font-size: 1.1rem;
line-height: 0.9;
border-bottom: 1px solid $color__black;
align-items: center;
}
2022-12-30 21:35:32 +01:00
p {
margin:0;
}
2022-12-29 00:19:41 +01:00
}
}
@media screen and (max-width: 48em) {
//only smaller than 48em
.no-sidebar {
.site-header {
}
.site-main {
}
.home-featured {
}
.site-footer {
}
}
}
@media screen and (min-width: 48em) {
//only bigger than 48em
.no-sidebar {
.site {
> header {
}
> main {
}
> aside {
}
> footer {
}
}
.site-header {
.main {
2022-12-03 19:49:36 +01:00
flex-flow: column;
}
.secondary {
border-top: 1px solid $color__grey-lighter;
}
}
.site-main {
padding: 0 2rem;
h1,h2,h3,h4,h5,h6,.entry-content {
margin:0;
}
}
.home-featured {
padding: 0 2rem;
}
.site-footer {
}
2022-12-29 01:15:31 +01:00
&.single {
.site-main {
width: 45rem;
margin: 0 auto;
}
}
}
2022-12-29 00:19:41 +01:00
.ofisuport-destacats,.ofisuport-featured,.archive-posts {
grid-template-columns: repeat(4 , 1fr);
}
}
@media screen and (min-width: 80em) {
//only bigger than 80rem
.no-sidebar {
.site {
> header {
}
> main {
}
> aside {
}
> footer {
}
2022-11-29 19:49:21 +01:00
}
.site-header {
.main {
width: 80em;
margin: auto;
flex-flow: row;
}
.secondary {
}
2022-11-29 19:49:21 +01:00
}
.site-main {
padding: 0;
}
.home-featured {
padding: 0;
}
.site-footer {
}
}
}