Skip to content

Commit aa988a6

Browse files
committed
Misc
- Removed SCSS, we don't use its fancy features, - CSS improvements, - Moved Display Modes Comparison section, as it's only informative, - Turned the multiple cards for mods into 1 section, - Wording improvements.
1 parent 489d50b commit aa988a6

30 files changed

+377
-1432
lines changed

css/cards.css

Lines changed: 95 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,68 @@
1-
.card {
1+
/* Base card styles */
2+
.card,
3+
.card-wj,
4+
.card-basic,
5+
.card-green,
6+
.card-yellow,
7+
.card-red,
8+
.expander-bottom,
9+
.expander-top,
10+
textarea {
11+
padding: 0 1em;
12+
border-radius: 8px;
13+
border: 1px solid transparent;
14+
margin: 0.5em 0;
215
outline: 1px solid rgba(0, 0, 0, 0.1);
3-
background-color: rgba(255, 255, 255, 0.0512);
416
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.13);
517
}
618

19+
/* Individual card variations */
20+
.card {
21+
background-color: rgba(255, 255, 255, 0.0512);
22+
}
23+
24+
.card-wj {
25+
background-color: rgb(31, 27, 36);
26+
}
27+
728
.card-basic,
829
textarea {
930
font-family: monospace;
1031
font-size: 1.3em;
11-
outline: 1px solid rgba(0, 0, 0, 0.1);
1232
background-color: rgba(255, 255, 255, 0.0326);
13-
width: -moz-fit-content;
14-
width: fit-content;
15-
}
16-
17-
.card-yellow {
18-
outline: 1px solid rgba(0, 0, 0, 0.1);
19-
background-color: rgb(67, 53, 25);
20-
text-align: left;
21-
width: -moz-fit-content;
2233
width: fit-content;
34+
-moz-width: fit-content;
2335
}
2436

37+
/* Color-themed cards */
38+
.card-green,
39+
.card-yellow,
2540
.card-red {
26-
outline: 1px solid rgba(0, 0, 0, 0.1);
27-
background-color: rgb(68, 39, 38);
2841
text-align: left;
29-
width: -moz-fit-content;
3042
width: fit-content;
43+
-moz-width: fit-content;
3144
}
3245

3346
.card-green {
34-
outline: 1px solid rgba(0, 0, 0, 0.1);
3547
background-color: rgb(57, 61, 27);
36-
text-align: left;
37-
width: -moz-fit-content;
38-
width: fit-content;
3948
}
4049

41-
.card,
42-
.card-basic,
43-
.card-green,
44-
.card-red,
45-
.card-yellow,
46-
.expander-bottom,
47-
.expander-top,
48-
textarea {
49-
padding: 0 1em 0 1em;
50-
border-radius: 8px;
51-
border: 1px solid transparent;
52-
margin-top: 0.5em;
53-
margin-bottom: 0.5em;
50+
.card-yellow {
51+
background-color: rgb(67, 53, 25);
5452
}
5553

54+
.card-red {
55+
background-color: rgb(68, 39, 38);
56+
}
57+
58+
.card-red.important-notice {
59+
display: flex;
60+
align-items: center;
61+
margin-top: 30px;
62+
width: fit-content;
63+
}
64+
65+
/* Textarea specific styles */
5666
textarea {
5767
resize: none;
5868
box-sizing: border-box;
@@ -63,8 +73,9 @@ textarea.auto-resize {
6373
overflow: hidden;
6474
}
6575

76+
/* Card-basic variations */
6677
b.card-basic {
67-
padding: 0.3em 0.5em 0.3em 0.5em;
78+
padding: 0.3em 0.5em;
6879
}
6980

7081
span.card-basic {
@@ -80,21 +91,16 @@ span.card-basic {
8091
border-color: rgba(255, 255, 255, 0.2) !important;
8192
}
8293

94+
/* Expander components */
8395
.expander-top {
84-
border-bottom-left-radius: 8px;
85-
border-bottom-right-radius: 8px;
86-
outline: 1px solid rgba(0, 0, 0, 0.1);
87-
background-color: rgba(255, 255, 255, 0.0512);
88-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.13);
8996
margin-bottom: 0 !important;
9097
display: flex;
9198
flex-direction: row;
9299
align-items: center;
100+
background-color: rgba(255, 255, 255, 0.0512);
93101
}
94102

95103
.expander-top.active {
96-
border-bottom-left-radius: 0;
97-
border-bottom-right-radius: 0;
98104
background-color: rgba(255, 255, 255, 0.0612);
99105
}
100106

@@ -112,11 +118,7 @@ span.card-basic {
112118
}
113119

114120
.expander-bottom {
115-
border-top-left-radius: 0 !important;
116-
border-top-right-radius: 0 !important;
117-
outline: 1px solid rgba(0, 0, 0, 0.1);
118121
background-color: rgba(255, 255, 255, 0.0512);
119-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.13);
120122
display: none;
121123
animation: slide-up 0.4s;
122124
z-index: 0;
@@ -129,50 +131,85 @@ span.card-basic {
129131
animation: slide-down 2s;
130132
}
131133

134+
/* Chevron icon */
132135
img.chevron {
133136
display: flex;
134137
height: 16px;
135138
width: 16px;
136139
box-shadow: none;
137-
margin-top: 3px;
140+
margin: 3px 0 0 auto;
138141
transition: transform 0.1s;
139-
margin-left: auto;
142+
user-select: none;
140143
-webkit-user-select: none;
141-
-moz-user-select: none;
142-
user-select: none;
144+
-moz-user-select: none;
145+
}
146+
147+
/* Center class for alignment */
148+
.center {
149+
margin-left: auto;
150+
margin-right: auto;
151+
max-width: fit-content;
143152
}
144153

145154
@media only screen and (max-width: 700px) {
155+
146156
.expander-bottom,
147157
.expander-top,
148-
.card-red,
149-
.card-yellow,
150158
.card-green,
159+
.card-yellow,
160+
.card-red,
151161
.card-basic,
152162
.card {
153163
padding: 0.65em;
154164
}
165+
166+
/* Card basic modifications */
167+
.card-basic {
168+
width: unset;
169+
display: inline-block;
170+
max-width: 100%;
171+
}
172+
155173
.card-basic p {
156174
margin: 0;
157175
text-wrap: nowrap;
158176
overflow-x: scroll;
159177
}
178+
160179
span.card-basic {
161-
width: -moz-fit-content;
162180
width: fit-content;
181+
-moz-width: fit-content;
163182
display: inline-block !important;
164-
padding: 0em 0.5em 0em 0.5em !important;
183+
padding: 0 0.5em !important;
165184
max-width: 100%;
166185
overflow-x: auto;
167186
vertical-align: middle;
168187
line-height: 1.8em !important;
169188
}
170-
.card-basic {
171-
width: unset;
172-
display: inline-block;
173-
max-width: 100%;
174-
}
189+
175190
textarea {
176191
width: 100%;
177192
}
178-
}/*# sourceMappingURL=cards.css.map */
193+
}
194+
195+
@media only screen and (max-width: 470px) {
196+
197+
.card-green,
198+
.card-yellow,
199+
.card-red {
200+
width: calc(100% - 1.3em);
201+
box-sizing: border-box;
202+
text-wrap: balance;
203+
overflow-x: visible;
204+
}
205+
206+
.card-red.important-notice {
207+
width: calc(100% - 1.3em);
208+
margin-left: auto;
209+
margin-right: auto;
210+
}
211+
212+
.center {
213+
margin: 0 auto;
214+
}
215+
}

css/cards.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)