-
Notifications
You must be signed in to change notification settings - Fork 0
/
flair.css
102 lines (91 loc) · 2.22 KB
/
flair.css
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
:root {
--color__base_100: 17, 17, 17;
--color__base_200: 33, 33, 33;
--color__base_300: 51, 51, 51;
--color__base_400: 108, 108, 108;
--color__base_500: 150, 150, 150;
--color__base_600: 215, 215, 215;
--color__base_700: 227, 227, 227;
--color__base_800: 248, 243, 239;
--color__base_900: 239, 239, 239;
--type__size: 1.1rem;
}
/*
@media (prefers-color-scheme: dark) {
:root {
--color__base_900: 17, 17, 17;
--color__base_800: 33, 33, 33;
--color__base_700: 51, 51, 51;
--color__base_600: 108, 108, 108;
--color__base_500: 150, 150, 150;
--color__base_400: 215, 215, 215;
--color__base_300: 227, 227, 227;
--color__base_200: 248, 243, 239;
--color__base_100: 239, 239, 239;
}
}
*/
/* fades elements in as they enter the view port; fades out as they leave */
/*
header, img {
opacity: var(--intersection-ratio);
}
*/
/* creates a wobbly effect; needs work */
/*
a:hover {
display: inline-block;
position: relative;
transform: rotateZ(calc(3deg * (var(--mouse-x-pct) - .5) )) rotateX(calc(40deg * (var(--mouse-y-pct) - .5))) perspective(100px);
transform-style: preserve-3d;
transition: none;
}
*/
/* creates a spot light effect */
/*
a:hover {
background: radial-gradient(circle at calc(100% * var(--mouse-x-pct)) calc(100% * var(--mouse-y-pct)), var(--color__highlight) 0%, var(--color__brand) 80%);
background-position: calc(100% * var(--mouse-x-pct)) calc(100% * var(--mouse-y-pct));
}
*/
.slant {
transform: rotateZ(-5deg);
}
.flair-toggle-x {
background-color: transparent !important;
border: 0 !important;
font-size: 0 !important;
padding: 0 !important;
position: relative;
width: 1.5rem;
width: 100%;
}
button.flair-toggle-x:hover {
background-color: transparent !important;
border: 0 !important;
box-shadow: none;
transform: none;
}
.flair-toggle-x::before,
.flair-toggle-x::after {
background-color: rgba( var( --color__base_100, 1 ) );
content: '';
height: 2px;
position: absolute;
right: 1.5rem;
top: 1.375rem;
transition: .2s all ease;
width: 1rem;
}
.flair-toggle-x::before {
transform: rotate(0deg);
}
.flair-toggle-x::after {
transform: rotate(90deg);
}
.open .flair-toggle-x::before {
transform: rotate(315deg);
}
.open .flair-toggle-x::after {
transform: rotate(225deg);
}