diff options
Diffstat (limited to 'assets/css/layouts/_landing.scss')
| -rw-r--r-- | assets/css/layouts/_landing.scss | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/assets/css/layouts/_landing.scss b/assets/css/layouts/_landing.scss new file mode 100644 index 0000000..b824005 --- /dev/null +++ b/assets/css/layouts/_landing.scss | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | @include namespace('landing') { | ||
| 2 | @include store(( | ||
| 3 | --dims: ( | ||
| 4 | --banner-width: 30rem, | ||
| 5 | ), | ||
| 6 | --colors: ( | ||
| 7 | --banner-bg: prop(--colors --bg, $global: true) | ||
| 8 | ) | ||
| 9 | )); | ||
| 10 | |||
| 11 | @include layout(namespace()) { | ||
| 12 | display: flex; | ||
| 13 | flex-direction: row; | ||
| 14 | align-items: center; | ||
| 15 | min-height: 100%; | ||
| 16 | |||
| 17 | @include element('banner') { | ||
| 18 | flex-shrink: 1.2; | ||
| 19 | width: 100%; | ||
| 20 | max-width: prop(--dims --banner-width); | ||
| 21 | background-color: prop(--colors --banner-bg); | ||
| 22 | } | ||
| 23 | |||
| 24 | @include element('content') { | ||
| 25 | width: 100%; | ||
| 26 | min-width: 0; | ||
| 27 | } | ||
| 28 | |||
| 29 | @include iro-responsive-env(('md', 'lg')) { | ||
| 30 | @include element('banner') { | ||
| 31 | padding: | ||
| 32 | iro-responsive-set((2rem, 6rem)) | ||
| 33 | iro-responsive-set((0, 6rem)); | ||
| 34 | } | ||
| 35 | |||
| 36 | @include element('content') { | ||
| 37 | padding: | ||
| 38 | iro-responsive-set((2rem, 6rem)) | ||
| 39 | iro-responsive-set((0, 6rem)) | ||
| 40 | iro-responsive-set((2rem, 6rem)) | ||
| 41 | 0; | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 45 | @include media('<=md') { | ||
| 46 | display: block; | ||
| 47 | height: auto; | ||
| 48 | |||
| 49 | @include element('banner', 'content') { | ||
| 50 | width: auto; | ||
| 51 | padding-right: 0; | ||
| 52 | padding-left: 0; | ||
| 53 | } | ||
| 54 | |||
| 55 | @include element('banner') { | ||
| 56 | max-width: none; | ||
| 57 | } | ||
| 58 | } | ||
| 59 | } | ||
| 60 | } | ||
