Repository navigation
Expand file tree
/
Copy pathbackground.css
More file actions
88 lines (77 loc) · 1.96 KB
/
Copy pathbackground.css
File metadata and controls
88 lines (77 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* The two decorative rails follow the catalogue's 64rem content width. */
.side-background {
position: fixed;
inset: 0;
z-index: 0;
overflow: hidden;
pointer-events: none;
}
.side-background__rail {
position: absolute;
inset-block: 0;
width: max(0px, calc((100% - 64rem) / 2));
overflow: hidden;
contain: strict;
background: linear-gradient(135deg, #f1f1ef, #e5e5e2 60%, #dededb);
}
.side-background__rail--left { left: 0; }
.side-background__rail--right { right: 0; }
.side-background__rail::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent 65%, rgb(255 255 255 / 35%));
}
.side-background__rail--right::after {
transform: scaleX(-1);
}
.ambient-shape {
position: absolute;
top: 0;
left: 0;
width: var(--shape-width);
height: var(--shape-height);
opacity: var(--shape-opacity, .75);
filter: blur(1.3px);
will-change: transform;
}
.ambient-shape--sphere {
border-radius: 50%;
background: radial-gradient(circle at 28% 25%, #fafaf8 0%, #dededb 27%, #b5b5b2 54%, #747471 77%, #5d5d5a 100%);
box-shadow: 13px 17px 22px -10px rgb(45 45 40 / 24%);
}
.ambient-shape--block,
.ambient-shape--bar {
background: linear-gradient(130deg, #efefec, #cbcbc7 55%, #a5a5a0);
box-shadow: 14px 17px 21px -9px rgb(45 45 40 / 23%);
}
.ambient-shape--block::before,
.ambient-shape--bar::before {
content: "";
position: absolute;
top: -6px;
left: 0;
width: 100%;
height: 6px;
background: linear-gradient(90deg, #f6f6f3, #d5d5d0);
transform: skewX(-45deg);
transform-origin: bottom;
}
.ambient-shape--block::after,
.ambient-shape--bar::after {
content: "";
position: absolute;
top: 0;
right: -6px;
width: 6px;
height: 100%;
background: linear-gradient(#a5a5a0, #868680);
transform: skewY(-45deg);
transform-origin: left;
}
@media (max-width: 1100px) {
.side-background { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.ambient-shape { will-change: auto; }
}