hmb HF Staff commited on
Commit
6f32b3c
·
verified ·
1 Parent(s): 9308a7a

Create windows95.css

Browse files
Files changed (1) hide show
  1. windows95.css +303 -0
windows95.css ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Windows 95 CSS Customizations */
2
+
3
+ @font-face {
4
+ font-family: "R95 Sans Serif 12pt";
5
+ src: url("https://cdn.jsdelivr.net/gh/React95/R95-Sans-serif@main/sources/12pt/R95%20Sans%20serif%2012pt.ttf") format("truetype");
6
+ }
7
+
8
+ * {
9
+ font-family: "R95 Sans Serif 12pt", sans-serif !important;
10
+ }
11
+
12
+ /* Textbox Component */
13
+ .input-container {
14
+ padding: 2px !important;
15
+ font-size: 1rem !important;
16
+ border-style: solid !important;
17
+ border-width: 2px !important;
18
+ border-color: rgb(132, 133, 132) rgb(254, 254, 254) rgb(254, 254, 254) rgb(132, 133, 132) !important;
19
+ line-height: 1.5 !important;
20
+ }
21
+
22
+ .input-container::before {
23
+ position: absolute !important;
24
+ left: 0px !important;
25
+ top: 0px !important;
26
+ content: "" !important;
27
+ width: calc(100% - 4px) !important;
28
+ height: calc(100% - 4px) !important;
29
+ border-style: solid !important;
30
+ border-width: 2px !important;
31
+ border-color: rgb(10, 10, 10) rgb(223, 223, 223) rgb(223, 223, 223) rgb(10, 10, 10) !important;
32
+ pointer-events: none !important;
33
+ box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px inset !important;
34
+ }
35
+
36
+ /* Number component */
37
+ input[type="number"] {
38
+ left: 0px !important;
39
+ top: 0px !important;
40
+ content: "" !important;
41
+ border-style: solid !important;
42
+ border-width: 2px !important;
43
+ border-color: rgb(10, 10, 10) rgb(223, 223, 223) rgb(223, 223, 223) rgb(10, 10, 10) !important;
44
+ pointer-events: none !important;
45
+ box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px inset !important;
46
+ }
47
+
48
+ input[type="number"]::-webkit-inner-spin-button,
49
+ input[type="number"]::-webkit-outer-spin-button {
50
+ -webkit-appearance: none !important;
51
+ margin: 0 !important;
52
+ }
53
+
54
+ /* Slider styling */
55
+ .slider_input_container {
56
+ display: flex !important;
57
+ align-items: center !important;
58
+ background: #c0c0c0 !important;
59
+ padding: 5px 0 !important;
60
+ border: 2px solid #000000 !important;
61
+ box-shadow: 1px 1px 0px white inset, -1px -1px 0px #808080 inset !important;
62
+ position: relative !important;
63
+ border: none !important;
64
+ box-shadow: none !important;
65
+ }
66
+
67
+ .min_value, .max_value {
68
+ padding: 0 5px !important;
69
+ }
70
+
71
+ input[type="range"] {
72
+ appearance: none !important;
73
+ width: 100% !important;
74
+ height: 18px !important;
75
+ background: transparent !important;
76
+ border: none !important;
77
+ box-shadow: none !important;
78
+ position: relative !important;
79
+ margin: 10px 0 15px !important;
80
+ }
81
+
82
+ input[type="range"]:focus {
83
+ outline: none !important;
84
+ }
85
+
86
+ /* Track styling */
87
+ input[type="range"]::-webkit-slider-runnable-track {
88
+ width: 100% !important;
89
+ height: 2px !important;
90
+ box-sizing: border-box !important;
91
+ background: black !important;
92
+ border-right: 1px solid #808080 !important;
93
+ border-bottom: 1px solid #808080 !important;
94
+ box-shadow: 1px 0 0 white, 1px 1px 0 white, 0 1px 0 white, -1px 0 0 #808080,
95
+ -1px -1px 0 #808080, 0 -1px 0 #808080, -1px 1px 0 white, 1px -1px #808080 !important;
96
+ }
97
+
98
+ input[type="range"]::-moz-range-track {
99
+ width: 100% !important;
100
+ height: 2px !important;
101
+ box-sizing: border-box !important;
102
+ background: black !important;
103
+ border-right: 1px solid #808080 !important;
104
+ border-bottom: 1px solid #808080 !important;
105
+ box-shadow: 1px 0 0 white, 1px 1px 0 white, 0 1px 0 white, -1px 0 0 #808080,
106
+ -1px -1px 0 #808080, 0 -1px 0 #808080, -1px 1px 0 white, 1px -1px #808080 !important;
107
+ }
108
+
109
+ /* Slider thumb styling - triangular shape */
110
+ input[type="range"]::-webkit-slider-thumb {
111
+ -webkit-appearance: none !important;
112
+ width: 21px !important;
113
+ height: 21px !important;
114
+ background-color: transparent !important;
115
+ border: none !important;
116
+ box-shadow: none !important;
117
+ transform: translateY(-5px) !important;
118
+ cursor: pointer !important;
119
+ position: relative !important;
120
+ z-index: 2 !important;
121
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3e%3cpath fill='%23c0c0c0' stroke='%23000' d='M4,1 h12 v14 l-6,5 l-6,-5 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23FFF' d='M5,2 h10 v12 l-5,4 l-5,-4 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23808080' d='M15,2 v12 l-5,4 l-5,-4 v-12'%3e%3c/path%3e%3c/svg%3e") !important;
122
+ background-repeat: no-repeat !important;
123
+ background-position: center !important;
124
+ }
125
+
126
+ input[type="range"]::-moz-range-thumb {
127
+ width: 21px !important;
128
+ height: 21px !important;
129
+ background-color: transparent !important;
130
+ border: none !important;
131
+ box-shadow: none !important;
132
+ border-radius: 0 !important;
133
+ cursor: pointer !important;
134
+ position: relative !important;
135
+ z-index: 2 !important;
136
+ background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3e%3cpath fill='%23c0c0c0' stroke='%23000' d='M4,1 h12 v14 l-6,5 l-6,-5 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23FFF' d='M5,2 h10 v12 l-5,4 l-5,-4 z'%3e%3c/path%3e%3cpath fill='none' stroke='%23808080' d='M15,2 v12 l-5,4 l-5,-4 v-12'%3e%3c/path%3e%3c/svg%3e") !important;
137
+ background-repeat: no-repeat !important;
138
+ background-position: center !important;
139
+ }
140
+
141
+ /* Tick marks for the slider */
142
+ .slider_input_container::after {
143
+ content: "";
144
+ position: absolute;
145
+ left: 48px;
146
+ right: 26px;
147
+ bottom: 8px;
148
+ height: 6px;
149
+ background-image:
150
+ repeating-linear-gradient(
151
+ to right,
152
+ #000000,
153
+ #000000 1px,
154
+ transparent 1px,
155
+ transparent 10%
156
+ );
157
+ pointer-events: none;
158
+
159
+ }
160
+
161
+ /* Dropdown options styling */
162
+ div[id^="dropdown-options"] {
163
+ background-color: white !important;
164
+ border: 2px solid #000000 !important;
165
+ box-shadow: 1px 1px 0px white inset, -1px -1px 0px #808080 inset !important;
166
+ border-radius: 0 !important;
167
+ margin-top: 1px !important;
168
+ max-height: 200px !important;
169
+ overflow-y: auto !important;
170
+ }
171
+
172
+ div[id^="dropdown-options"] div {
173
+ padding: 2px 4px !important;
174
+ }
175
+
176
+ div[id^="dropdown-options"] div:hover,
177
+ div[id^="dropdown-options"] div.selected {
178
+ background-color: #000080 !important;
179
+ color: white !important;
180
+ }
181
+
182
+
183
+ /* Scrollbars */
184
+ ::-webkit-scrollbar {
185
+ width: 16px;
186
+ height: 16px;
187
+ }
188
+
189
+ ::-webkit-scrollbar-track {
190
+ background: #c0c0c0;
191
+ border: 1px solid #000000;
192
+ box-shadow: inset 1px 1px 0px white, inset -1px -1px 0px #808080;
193
+ }
194
+
195
+ ::-webkit-scrollbar-thumb {
196
+ background: #c0c0c0;
197
+ border: 1px solid #000000;
198
+ box-shadow: inset 1px 1px 0px white, inset -1px -1px 0px #808080;
199
+ }
200
+
201
+ ::-webkit-scrollbar-button {
202
+ display: block;
203
+ background: #c0c0c0;
204
+ border: 1px solid #000000;
205
+ box-shadow: inset 1px 1px 0px white, inset -1px -1px 0px #808080;
206
+ width: 16px;
207
+ height: 16px;
208
+ }
209
+
210
+ ::-webkit-scrollbar-button:vertical:start:decrement {
211
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points='8,4 4,8 12,8' fill='black'/></svg>");
212
+ background-position: center;
213
+ background-repeat: no-repeat;
214
+ }
215
+
216
+ ::-webkit-scrollbar-button:vertical:end:increment {
217
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><polygon points='8,12 4,8 12,8' fill='black'/></svg>");
218
+ background-position: center;
219
+ background-repeat: no-repeat;
220
+ }
221
+
222
+ /* Windows 95 checkboxes and radio buttons */
223
+ input[type="checkbox"], input[type="radio"] {
224
+ appearance: none !important;
225
+ width: 13px !important;
226
+ height: 13px !important;
227
+ background: white !important;
228
+ border: 1px solid black !important;
229
+ box-shadow: inset -1px -1px 0px white, inset 1px 1px 0px #808080 !important;
230
+ }
231
+
232
+ input[type="checkbox"]:checked {
233
+ background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13'><path d='M2,6 L5,9 L11,3' stroke='black' stroke-width='2' fill='none'/></svg>") no-repeat center !important;
234
+ }
235
+
236
+ input[type="radio"] {
237
+ border-radius: 50% !important;
238
+ }
239
+
240
+ input[type="radio"]:checked {
241
+ background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='13'><circle cx='6.5' cy='6.5' r='3.5' fill='black'/></svg>") no-repeat center !important;
242
+ }
243
+
244
+ /* Windows 95 buttons additional styling */
245
+ button {
246
+ text-align: center !important;
247
+ position: relative !important;
248
+ }
249
+
250
+ button:active {
251
+ padding-top: 2px !important;
252
+ padding-left: 2px !important;
253
+ padding-bottom: 0px !important;
254
+ padding-right: 0px !important;
255
+ }
256
+
257
+
258
+ /* File input custom styling */
259
+ input[type="file"] {
260
+ background-color: white !important;
261
+ border: 2px solid #000000 !important;
262
+ box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px white !important;
263
+ }
264
+
265
+ /* Focus outlines */
266
+ *:focus {
267
+ outline: 1px dotted black !important;
268
+ }
269
+
270
+ /* Progress bars */
271
+ progress {
272
+ appearance: none !important;
273
+ height: 16px !important;
274
+ background: white !important;
275
+ border: 2px solid #000000 !important;
276
+ box-shadow: inset 1px 1px 0px #808080, inset -1px -1px 0px white !important;
277
+ }
278
+
279
+ progress::-webkit-progress-bar {
280
+ background: white !important;
281
+ }
282
+
283
+ progress::-webkit-progress-value {
284
+ background: #000080 !important;
285
+ }
286
+
287
+ .icon-button-wrapper {
288
+ box-shadow: var(--block-label-shadow);
289
+ border: var(--block-label-border-width) solid var(--block-label-border-color);
290
+ border-top: none;
291
+ border-left: none;
292
+ border-radius: var(--block-label-radius);
293
+ background: var(--block-label-background-fill);
294
+ pointer-events: none;
295
+ color: var(--block-label-text-color);
296
+ font-weight: var(--block-label-text-weight);
297
+ font-size: var(--block-label-text-size);
298
+ line-height: var(--line-sm);
299
+ }
300
+
301
+ .icon-button-wrapper button {
302
+ background: none;
303
+ }