summaryrefslogtreecommitdiffstats
path: root/assets/css/components
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_footer.scss1
-rw-r--r--assets/css/components/_outer-button.scss7
-rw-r--r--assets/css/components/_project.scss55
3 files changed, 55 insertions, 8 deletions
diff --git a/assets/css/components/_footer.scss b/assets/css/components/_footer.scss
index fcea457..cf02d04 100644
--- a/assets/css/components/_footer.scss
+++ b/assets/css/components/_footer.scss
@@ -11,7 +11,6 @@
11 align-items: center; 11 align-items: center;
12 justify-content: space-between; 12 justify-content: space-between;
13 height: prop(--dims --outer, $global: true); 13 height: prop(--dims --outer, $global: true);
14 padding-right: prop(--dims --outer, $global: true);
15 font-size: 1 / 16 * 15em; 14 font-size: 1 / 16 * 15em;
16 15
17 @include element('content') { 16 @include element('content') {
diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss
index d636f7d..4e7a242 100644
--- a/assets/css/components/_outer-button.scss
+++ b/assets/css/components/_outer-button.scss
@@ -27,13 +27,6 @@
27 font-weight: 450; 27 font-weight: 450;
28 text-decoration: none; 28 text-decoration: none;
29 29
30 @include modifier('scroll-top') {
31 position: fixed;
32 z-index: 9000;
33 right: 0;
34 bottom: 0;
35 }
36
37 @include modifier('inverted') { 30 @include modifier('inverted') {
38 background-color: prop(--colors --inverted --bg); 31 background-color: prop(--colors --inverted --bg);
39 color: prop(--colors --inverted --fg); 32 color: prop(--colors --inverted --fg);
diff --git a/assets/css/components/_project.scss b/assets/css/components/_project.scss
new file mode 100644
index 0000000..943bf68
--- /dev/null
+++ b/assets/css/components/_project.scss
@@ -0,0 +1,55 @@
1@include namespace('project') {
2 @include store((
3 --colors: (
4 --bg: prop(--colors --bg-hi, $global: true),
5 )
6 ));
7
8 @include component(namespace()) {
9 position: relative;
10
11 &::before {
12 content: '';
13 display: block;
14 padding-bottom: 20em;
15 background-color: prop(--colors --bg);
16 }
17
18 &::after {
19 content: '';
20 background-image: linear-gradient(340deg, rgba(#000, .85) 5em, transparent 100%);
21 }
22
23 @include multi('element' 'picture', '&::after') {
24 display: block;
25 position: absolute;
26 z-index: 10;
27 top: 0;
28 left: 0;
29 width: 100%;
30 height: 100%;
31 object-fit: cover;
32 object-position: center center;
33 }
34
35 @include element('card') {
36 position: absolute;
37 z-index: 20;
38 right: 1em;
39 bottom: 1em;
40 min-width: 15em;
41 box-shadow: 0 .3em 1em rgba(#000, .5);
42 }
43
44 @include media('<=sm') {
45 &::after {
46 background-image: linear-gradient(to top, rgba(#000, .85) 5em, transparent 100%);
47 }
48
49 @include element('card') {
50 left: 1em;
51 min-width: 0;
52 }
53 }
54 }
55}