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

246 lines
4.0 KiB
SCSS
Raw Normal View History

2024-01-09 16:13:20 +01:00
@media screen {
html:not([data-scroll='0']) {
.site-header:before {
content: "";
display:inline-block;
position: absolute;
width: 100vw;
top: 0;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right:-50vw;
height: 100%;
z-index: -1;
background-color: $color__white;
}
}
2024-01-09 16:13:20 +01:00
.no-sidebar {
}
.site {
position: relative;
2024-01-09 16:13:20 +01:00
display: grid;
2024-03-13 20:24:02 +01:00
grid-template-columns: auto minmax(min-content, 30em) minmax(min-content, 30em) auto;
grid-auto-rows: min-content auto min-content min-content;
2024-01-09 16:13:20 +01:00
grid-template-areas:
"header"
"main"
"aside"
"footer";
margin: auto;
padding: 0;
min-height: 100vh;
2024-01-09 16:13:20 +01:00
> header {
grid-column: 1 / -1;
}
> main {
grid-column: 1 / -1;
2024-01-09 16:13:20 +01:00
}
> aside {
grid-column: 1 / -1;
2024-02-22 12:44:46 +01:00
padding: 4em 0;
2024-01-09 16:13:20 +01:00
}
> footer {
grid-column: 1 / -1;
}
}
.site-header {
position: sticky;
top: 0;
z-index: 500;
width: 100%;
padding: 0.5rem 0;
background-color: transparent;
2024-01-09 16:13:20 +01:00
.main {
display: flex;
flex-flow: row;
align-items: center;
2024-02-29 12:35:23 +01:00
justify-content: space-between;
z-index: 900;
2024-01-09 16:13:20 +01:00
}
.secondary {
display: flex;
flex-flow: column;
align-items: end;
2024-01-09 16:13:20 +01:00
}
}
.site-main {
padding: 0 1rem;
> section {
padding: 0;
> header {
padding: 2em 0;
}
}
2024-01-09 16:13:20 +01:00
}
.site-footer {
display: flex;
flex-flow: row;
2024-02-22 12:44:46 +01:00
background: $color__black;
color: $color__white;
margin-top: 4em;
2024-03-05 13:14:35 +01:00
:where(.wp-block-columns.is-layout-flex) {
gap: $grid__gap * 5; //8em;
2024-03-05 13:14:35 +01:00
}
.site-info {
&> section {
margin-top: 2em;
2024-03-05 14:12:45 +01:00
padding: 2em 4em;
2024-03-05 13:14:35 +01:00
border-top: 0.1em solid $color__white;
}
}
2024-02-22 12:44:46 +01:00
a {
color: $color__white;
&:hover,&:visited,&:active {
color: $color__white;
}
}
2024-03-05 13:14:35 +01:00
ul[id*="menu-footer"] {
column-count: 3;
a {
text-decoration: underline;
}
2024-02-22 12:44:46 +01:00
}
2024-03-13 20:31:52 +01:00
}//end .site-footer
:where(.wp-block-columns.is-layout-flex) {
gap: $grid__gap * 2;
}
.xarxaprod-destacats,.xarxaprod-featured,
.xarxaprod-last-convos,.xarxaprod-ultimes-convocatories,
.archive-posts {
display: grid;
grid-template-columns: repeat(1 , 1fr);
gap: $grid__gap * 3;
2024-01-09 16:13:20 +01:00
}
}
@media screen and (max-width: 48em) {
//only smaller than 48em
.site-header {
2024-02-29 12:35:23 +01:00
.main{
padding-right: 1em;
}
2024-01-09 16:13:20 +01:00
}
.site-footer {
.is-layout-flex {
flex-flow: column;
align-items: flex-start;
}
2024-01-09 16:13:20 +01:00
}
}
@media screen and (min-width: 48em) {
//only bigger than 48em
html:not([data-scroll='0']) {
.site-header:before {
content: "";
display:inline-block;
position: absolute;
width: 100vw;
top: 0;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right:-50vw;
height: 100%;
z-index: -1;
background-color: $color__white;
}
}
2024-01-09 16:13:20 +01:00
.site {
2024-03-13 20:24:02 +01:00
//grid-template-columns: 1fr 2fr 2fr 1fr;
2024-01-09 16:13:20 +01:00
> header {
//grid-column: 1 / -1;
grid-column: 2 / 4;
2024-01-09 16:13:20 +01:00
}
> main {
grid-column: 2 / 4;
2024-01-09 16:13:20 +01:00
}
> aside {
grid-column: 2 / 4;
2024-01-09 16:13:20 +01:00
}
> footer {
grid-column: 1 / -1;
2024-01-09 16:13:20 +01:00
}
}
.site-header {
margin: auto;
margin-bottom: 2rem;
padding: 0;
2024-01-09 16:13:20 +01:00
.main {
grid-column: 2/4;
width: 100%;
2024-01-09 16:13:20 +01:00
}
.secondary {
grid-column: 2/4;
align-items: center;
width: 100%;
2024-01-09 16:13:20 +01:00
}
}
.site-main {
padding: 0;
> section {
padding: 4em 0;
}
2024-01-09 16:13:20 +01:00
}
.site-footer {
flex-flow: column;
2024-01-09 16:13:20 +01:00
}
.home-featured {
padding: 0 2rem;
}
&.single {
.site-main {
//width: 45rem;
2024-01-09 16:13:20 +01:00
margin: 0 auto;
}
}
2024-03-13 20:31:52 +01:00
:where(.wp-block-columns.is-layout-flex) {
gap: $grid__gap * 4;
}
.xarxaprod-destacats,.xarxaprod-featured,
.xarxaprod-last-convos,.xarxaprod-ultimes-convocatories,
.archive-posts {
grid-template-columns: repeat(3 , 1fr);
2024-01-09 16:13:20 +01:00
}
.xarxaprod-faqs-aside {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
.xarxaprod-search-form {
&:hover,&:active,&:focus,&:target {
flex-grow: 1;
}
}
}
2024-01-09 16:13:20 +01:00
}
@media screen and (min-width: 80em) {
//only bigger than 80rem
.site {
> header {
}
> main {
}
> aside {
}
> footer {
}
}
.site-header {
.main {
}
.secondary {
}
}
.site-main {
padding: 0;
}
.site-footer {
}
.home-featured {
padding: 0;
}
}
2024-03-13 21:27:01 +01:00