This repository has been archived on 2020-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
victor-hugo/src/css/imports/layout.scss

168 lines
2.2 KiB
SCSS
Raw Normal View History

2020-03-29 18:58:41 +00:00
.l-wrapper {
width: 100%;
2020-04-01 19:52:10 +00:00
max-width: 80rem;
2020-03-29 18:58:41 +00:00
margin-left: auto;
margin-right: auto;
2020-03-31 17:33:56 +00:00
padding-left: 8px;
padding-right: 8px;
@media (min-width: $bp-s) {
padding-left: 32px;
padding-right: 32px;
}
@media (min-width: $bp-m) {
padding-left: 64px;
padding-right: 64px;
}
@media (min-width: $bp-l) {
padding-left: 96px;
padding-right: 96px;
}
&--wide {
max-width: 110rem;
}
2020-03-29 18:58:41 +00:00
}
2020-03-31 13:09:12 +00:00
.l-section-pad {
2020-03-31 17:33:56 +00:00
padding-top: 24px;
padding-bottom: 24px;
2020-03-31 12:58:15 +00:00
2020-03-31 15:15:56 +00:00
@media (min-width: $bp-s) {
2020-03-31 17:33:56 +00:00
padding-top: 32px;
padding-bottom: 32px;
2020-03-31 15:15:56 +00:00
}
2020-03-31 12:58:15 +00:00
@media (min-width: $bp-m) {
2020-03-31 17:33:56 +00:00
padding-top: 64px;
padding-bottom: 64px;
2020-03-31 12:58:15 +00:00
}
@media (min-width: $bp-l) {
2020-03-31 17:33:56 +00:00
padding-top: 96px;
padding-bottom: 96px;
2020-03-31 12:58:15 +00:00
}
// reduce padding bottom
&--pb-reduce {
padding-bottom: 8px;
@media (min-width: $bp-m) {
padding-bottom: 16px;
}
}
2020-03-31 12:58:15 +00:00
}
2020-03-31 17:33:56 +00:00
.l-section-header {
font-size: 2.875rem;
line-height: 1.2;
text-align: center;
margin-bottom: 3.75rem;
}
2020-03-29 18:58:41 +00:00
// #position
.l-absolute {
position: absolute;
}
.l-relative {
position: relative;
}
2020-03-30 16:54:55 +00:00
.l-underlay {
z-index: -1;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
2020-03-29 18:58:41 +00:00
// #sizes
2020-03-29 20:09:54 +00:00
.l-screen-min-full {
width: 100%;
min-height: 100vh;
}
2020-03-29 18:58:41 +00:00
.l-screen-full {
width: 100%;
height: 100vh;
}
// #flex
.l-flex {
display: flex;
}
.l-flex-center {
justify-content: center;
align-items: center;
}
.l-justify-around {
justify-content: space-around;
}
.l-flex-column {
flex-direction: column;
}
.l-flex-row {
flex-direction: row;
}
.l-flex-wrap {
flex-wrap: wrap;
}
2020-04-01 19:24:00 +00:00
.l-flex-2-col-m {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: stretch;
flex-wrap: wrap;
> * {
flex: 0 0 100%;
@media (min-width: $bp-m) {
flex: 0 0 50%;
}
}
}
2020-03-31 17:33:56 +00:00
.l-flex-list-col {
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 0;
list-style: none;
margin: 0;
}
2020-03-30 16:54:55 +00:00
.l-flex-list-row {
display: flex;
flex-direction: row;
justify-content: center;
padding-left: 0;
list-style: none;
margin: 0;
2020-03-30 16:54:55 +00:00
}
2020-04-02 18:13:17 +00:00
.l-flex-list-col,
.l-flex-list-row {
}
2020-03-31 13:19:53 +00:00
.l-list-bare {
list-style: none;
padding-left: 0;
margin: 0;
2020-03-31 13:19:53 +00:00
}