-
Notifications
You must be signed in to change notification settings - Fork 0
/
black-green.css
138 lines (136 loc) · 4.52 KB
/
black-green.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
body{
background-color:#000;
font-family:serif;
color:#0F0;
}
@supports not selector(::-webkit-scrollbar){
*{
/*~ scrollbar-gutter: stable [both-edges]; */
scrollbar-width: thin;
scrollbar-color: #0A07 transparent;
}
*:hover{scrollbar-color: #0A0 transparent;}
}
::-webkit-scrollbar{
width:.8rem;
height:.8rem;
}
::-webkit-scrollbar-thumb:vertical:window-inactive{border-right-style:dashed;}
::-webkit-scrollbar-thumb:horizontal:window-inactive{border-bottom-style:dashed;}
::-webkit-scrollbar-thumb:vertical{
background-color:transparent;
border-right:.3rem solid #0A0;
border-radius:0;
}
:hover::-webkit-scrollbar-thumb:vertical{
background-color:#000;
box-shadow:inset .4rem 0 .4rem 0 #0A0;
border:none;
border-top-left-radius:1rem;
border-bottom-left-radius:1rem;
}
::-webkit-scrollbar-thumb:horizontal{
background-color:transparent;
border-bottom:.3rem solid #0A0;
border-radius:0;
}
:hover::-webkit-scrollbar-thumb:horizontal{
background-color:#000;
box-shadow:inset 0 .4rem .4rem 0 #0A0;
border:none;
border-top-left-radius:1rem;
border-top-right-radius:1rem;
}
::-webkit-scrollbar-thumb:hover:vertical{box-shadow:inset .4rem 0 .4rem 0 #0F0;}
::-webkit-scrollbar-thumb:hover:horizontal{box-shadow:inset 0 .4rem .4rem 0 #0F0;}
::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner{
display:none;
background-color:transparent;
}
.overflowScroll{
box-sizing:border-box;
max-width:100%;
max-height:100%;
overflow:auto;
scrollbar-gutter:stable;
}
.overflowScrollCenter{scrollbar-gutter: stable both-edges;}
.blurBG{
backdrop-filter:blur(3px);
background-color:#0008;
}
.noTouch{pointer-events:none;}
.noSelect{user-select: none;}
.autoSelectAll{user-select: all;}
.nonExistent{display: none;}
.hidden{
pointer-events: visible;
visibility: hidden;
}
.centerSelf{
position:fixed;
left:50%;top:50%;
transform: translate(-50%,-50%);
}
.flexcenter{
display:flex;
justify-content:center;
align-items:center;
vertical-align:middle;
}
@keyframes animPulseColor{50%{fill: #070;}}
.pulseColor{animation: animPulseColor 3s infinite;}
.fadeInOutBase{/* trigger fade in → JS : element.classList.remove("fadeInOutTrigger"); */
opacity: 1;visibility: visible;
transition: opacity 500ms ease-out;/* fade in (fast→slow) */
pointer-events: visible;
}
.fadeInOutTrigger{/* trigger fade out → JS : element.classList.add("fadeInOutTrigger"); */
opacity: 0;visibility: hidden;
transition: opacity 500ms ease-in,/* fade out (slow→fast) */
visibility 0s linear 500ms;
}
.resizeHorizontal{resize: horizontal;}
.resizeVertical{resize: vertical;}
.resizeAll{resize: both;}
.resizeNone{resize: none;}
select,button,textarea,input[type="button"],input[type="number"]{
background-color: #000;
color: #0F0;
/* border-radius: .8rem; */
border-radius: 0;
border-color: #040;
border-style: outset;
outline: none !important;
}
select:hover,button:hover,textarea:hover,input[type="button"]:hover,input[type="number"]:hover{border-color: #080;}
select:focus,button:focus,textarea:focus,input[type="button"]:focus,input[type="number"]:focus{border-color: #0A0;}
select:active,button:active,textarea:active,input[type="button"]:active,input[type="number"]:active{border-color: #0F0 !important;}
/*
3D Card with CSS & JS → MAZ01001.github.io\site\3d-card example.html
## Variables ##
[CSS]
global → :root{--var_color:#000;}
→ div#a1{color:var(--var_color);}
local → div#a1{--var_color:#000;color:var(--var_color);}
[JS]
global:
SET → document.documentElement.style.setProperty('--var_color','black');
GET → getComputedStyle(document.documentElement).getPropertyValue('--var_color');
local:
use `document.body.querySelector('div#a1')` instead of `document.documentElement` (':root'/<html>)
[more info] https://www.w3schools.com/css/css3_variables_javascript.asp
*/
.select_red::selection{background-color: #D00;color: #FFF;}
.select_green::selection{background-color: #000;color: #0F0;}
.select_blue::selection{background-color: #00F;color: #FFF;}
.select_black::selection{background-color: #000;color: #FFF;}
.select_white::selection{background-color: #FFF;color: #000;}
.select_gold::selection{background-color: #F90;color: #000;}
tbody>tr:nth-child(3n+1){
/* background-color: #444; */
border-bottom: 1px solid #444;
}