-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (95 loc) · 2.31 KB
/
style.css
File metadata and controls
106 lines (95 loc) · 2.31 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
*,
*::after,
*::before{
box-sizing: border-box;
}
:root{
--body-bg: hsl(0, 0%, 13%);
}
body{
background: var(--body-bg);
color: white;
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1.25rem;
line-height: 1.5;
}
.wrapper{
max-width: 50rem;
margin-inline: auto;
padding-inline: 1rem;
}
.site-title{
font-size: 3rem;
text-align: center;
}
.section-title{
font-size: 2.25rem;
}
section{
padding: 5rem;
}
.diagonal{
position: relative;
isolation: isolate;
}
.diagonal::after{
content: '';
background-image: linear-gradient(
45deg,
rgb(85, 168, 245),
rgb(203, 44, 228),
rgb(248, 60, 60)
);
position: absolute;
inset: 0;
z-index: -1;
transform: skewY(-5deg);
}
.spike{
--spike-color:var(--body-bg);
--spike-width:50px;
--spike-height:10px;
position: relative;
background: linear-gradient(
60deg,
rgb(200, 170, 21),
rgb(227, 136, 0)
)
}
.spike::before,
.spike::after{
content: '';
position: absolute;
width: 100%;
height: var(--spike-height);
background: var(--spike-color);
-webkit-mask-image:url(assets/triangle.svg);
-webkit-mask-size:
var(--spike-width)
var(--spike-height);
/* -webkit-mask-repeat: repeat-x ; */
}
.spike::before{
top: 0;
left: 0;
}
.spike::after{
bottom: 0;
left: 0;
transform: rotate(.5turn);
}
.wavy{
background: linear-gradient(
45deg,
rgb(82, 215, 82),
rgb(69, 131, 255)
);
--mask:
radial-gradient(44.72px at 50% 60.00px,#000 99%,#0000 101%) calc(50% - 40px) 0/80px 51% repeat-x,
radial-gradient(44.72px at 50% -40px,#0000 99%,#000 101%) 50% 20px/80px calc(51% - 20px) repeat-x,
radial-gradient(44.72px at 50% calc(100% - 60.00px),#000 99%,#0000 101%) calc(50% - 40px) 100%/80px 51% repeat-x,
radial-gradient(44.72px at 50% calc(100% + 40.00px),#0000 99%,#000 101%) 50% calc(100% - 20px)/80px calc(51% - 20px) repeat-x;
-webkit-mask: var(--mask);
mask: var(--mask);
}