-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheatsheet.css
153 lines (153 loc) · 3.14 KB
/
cheatsheet.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
:root {
--bg-color: #ddd;
--color: #333;
color-scheme: light dark;
@media (prefers-color-scheme: dark) {
--bg-color: #272727;
--color: #f9f9f9;
}
}
body {
margin: 0;
font-family: Ubuntu, sans-serif;
color: var(--color);
background-color: var(--bg-color);
}
.blurb {
width: 50vw;
margin-inline: auto;
margin-block-end: 3em;
}
.table {
display: flex;
flex-direction: column;
}
.row {
display: flex;
justify-content: center;
transition: font-size 0s 0.25s;
}
.row-info {
left: 0;
height: 11vw;
width: 27vw;
align-content: center;
text-align: end;
text-wrap: balance;
position: absolute;
visibility: visible;
transition: visibility 0s 0.25s allow-discrete;
}
.row-toolbar {
width: 100vw;
margin-block-start: calc(-0.5vw - 1em);
text-align: center;
position: absolute;
--v: 0%;
background: linear-gradient(0deg, var(--color) 0%, var(--color) calc(var(--v) - 30%), transparent var(--v));
background-clip: text;
-webkit-text-fill-color: transparent;
visibility: hidden;
transition: margin 0.25s ease-out, --v 0.25s ease-out, visibility 0s 0.25s allow-discrete;
}
.row-icons {
height: 0.9em;
position: absolute;
visibility: hidden;
transition: visibility 0s 0.25s allow-discrete;
}
.row-icons i {
width: 0.9em;
height: 0.9em;
stroke: white;
display: inline-block;
background: linear-gradient(0deg, var(--color) 0%, var(--color) calc(var(--w) - 30%), transparent var(--w));
transition: --w 0.25s ease-out;
cursor: pointer;
}
.row-icons i.copy {
mask: url(copy.svg);
}
.row-icons i.check {
mask: url(copy.svg), url(check.svg);
}
.row-icons i.fluxproart {
mask: url(fluxproart.svg);
}
.row-icons i.search {
mask: url(search.svg);
}
.row-icons i.minimize {
mask: url(minimize.svg);
}
.row-icons > * {
margin-inline-start: 0.5em;
}
.row .img-container {
width: 10vw;
height: 10vw;
border-radius: 0.5vw;
margin: 0.5vw;
background-size: 400%;
transition: width 0.25s ease-out, height 0.25s ease-out, margin 0.25s ease-out, background-position 0.25s ease-out, background-size 0.25s ease-out;
cursor: zoom-in;
}
.row .img-container.loading {
cursor: wait;
}
.row img {
width: 100%;
height: 100%;
border-radius: 0.5vw;
visibility: hidden;
}
.row img.loaded {
visibility: visible;
}
.row.row-expanded {
cursor: auto;
flex-wrap: wrap;
justify-content: center;
font-size: 1.25em;
transition: font-size 0s 0s;
}
.row.row-expanded .row-info {
visibility: hidden;
transition: visibility 0s 0s allow-discrete;
}
@property --v {
syntax: '<percentage>';
inherits: false;
initial-value: 130%;
}
@property --w {
syntax: '<percentage>';
inherits: false;
initial-value: 0%;
}
.row.row-expanded .row-toolbar {
--v: 130%;
margin-block-start: 2vw;
visibility: visible;
transition: margin 0.25s ease-out, --v 0.25s ease-out, visibility 0s 0s allow-discrete;
}
.row.row-expanded .row-icons {
--w: 130%;
visibility: visible;
transition: visibility 0s 0s allow-discrete;
}
.row.row-expanded .row-icons i {
--w: 130%;
}
.row.row-expanded:not(:hover) .row-icons i {
--w: 0%;
}
.row.row-expanded .img-container {
width: 24vw;
height: 24vw;
margin-block-start: calc(1em + 3vw);
}
.row.row-expanded img.img-expanded {
position: absolute;
margin-inline: auto;
}