diff options
author | Volpeon <git@volpeon.ink> | 2021-03-22 20:52:20 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-03-22 20:52:20 +0100 |
commit | b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e (patch) | |
tree | 95e6a5701c6686725f3fd4145881e3687f5228ee /assets/css/layouts | |
parent | WIP: Redesign (diff) | |
download | volpeon.ink-b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e.tar.gz volpeon.ink-b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e.tar.bz2 volpeon.ink-b292cd39bf5e5c2d96f2f64eb1a94d8fd63fae9e.zip |
WIP: Redesign
Diffstat (limited to 'assets/css/layouts')
-rw-r--r-- | assets/css/layouts/_container.scss | 19 | ||||
-rw-r--r-- | assets/css/layouts/_landing.scss | 60 | ||||
-rw-r--r-- | assets/css/layouts/_site.scss | 46 |
3 files changed, 74 insertions, 51 deletions
diff --git a/assets/css/layouts/_container.scss b/assets/css/layouts/_container.scss index 2e102ee..0726950 100644 --- a/assets/css/layouts/_container.scss +++ b/assets/css/layouts/_container.scss | |||
@@ -1,10 +1,17 @@ | |||
1 | @include namespace('container') { | 1 | @include namespace('container') { |
2 | @include store(( | 2 | @include store(( |
3 | --dims: ( | 3 | --dims: ( |
4 | --pad-x: 3rem, | ||
5 | --pad-y: $line-height * 3rem | ||
6 | ) | ||
7 | )); | ||
8 | |||
9 | @include store(( | ||
10 | --dims: ( | ||
4 | --pad-x: 2rem, | 11 | --pad-x: 2rem, |
5 | --pad-y: $line-height * 2rem | 12 | --pad-y: $line-height * 2rem |
6 | ) | 13 | ) |
7 | )); | 14 | ), 'md'); |
8 | 15 | ||
9 | @include store(( | 16 | @include store(( |
10 | --dims: ( | 17 | --dims: ( |
@@ -14,16 +21,18 @@ | |||
14 | ), 'sm'); | 21 | ), 'sm'); |
15 | 22 | ||
16 | @include layout(namespace()) { | 23 | @include layout(namespace()) { |
17 | padding-right: prop(--dims --pad-x); | ||
18 | padding-left: prop(--dims --pad-x); | ||
19 | |||
20 | @include modifier('content') { | 24 | @include modifier('content') { |
21 | max-width: $content--width; | 25 | max-width: $content--width; |
22 | margin-right: auto; | 26 | margin-right: auto; |
23 | margin-left: auto; | 27 | margin-left: auto; |
24 | } | 28 | } |
25 | 29 | ||
26 | @include modifier('pad-v') { | 30 | @include modifier('pad-x') { |
31 | padding-right: prop(--dims --pad-x); | ||
32 | padding-left: prop(--dims --pad-x); | ||
33 | } | ||
34 | |||
35 | @include modifier('pad-y') { | ||
27 | padding-top: prop(--dims --pad-y); | 36 | padding-top: prop(--dims --pad-y); |
28 | padding-bottom: prop(--dims --pad-y); | 37 | padding-bottom: prop(--dims --pad-y); |
29 | } | 38 | } |
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 | } | ||
diff --git a/assets/css/layouts/_site.scss b/assets/css/layouts/_site.scss deleted file mode 100644 index 2c06606..0000000 --- a/assets/css/layouts/_site.scss +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | @include namespace('site') { | ||
2 | @include store(( | ||
3 | --dims: ( | ||
4 | --outer-pad-x: 6rem, | ||
5 | --inner-pad-x: 2rem, | ||
6 | --pad-y: 6rem, | ||
7 | ) | ||
8 | )); | ||
9 | |||
10 | @include layout(namespace()) { | ||
11 | display: flex; | ||
12 | flex-direction: row; | ||
13 | justify-content: space-around; | ||
14 | |||
15 | @include element('col') { | ||
16 | box-sizing: border-box; | ||
17 | flex: 0 0 auto; | ||
18 | width: 100%; | ||
19 | min-width: 0; | ||
20 | max-width: 35rem; | ||
21 | height: 100%; | ||
22 | padding: prop(--dims --pad-y) prop(--dims --inner-pad-x) prop(--dims --pad-y) prop(--dims --outer-pad-x); | ||
23 | |||
24 | @include next-twin-element { | ||
25 | flex: 1 1 auto; | ||
26 | max-width: 45rem; | ||
27 | height: auto; | ||
28 | padding-right: prop(--dims --outer-pad-x); | ||
29 | padding-left: prop(--dims --inner-pad-x); | ||
30 | } | ||
31 | } | ||
32 | |||
33 | @include media('<=sm') { | ||
34 | display: block; | ||
35 | |||
36 | @include element('col') { | ||
37 | width: auto; | ||
38 | height: auto; | ||
39 | |||
40 | @include next-twin-element { | ||
41 | width: auto; | ||
42 | } | ||
43 | } | ||
44 | } | ||
45 | } | ||
46 | } | ||