-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.scss
135 lines (117 loc) · 3.11 KB
/
styles.scss
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
:root {
--modal-commander-bg-color: #fff;
--modal-commander-text-color: #000;
--modal-commander-border-color: #ccc;
--highlight-commander-bg-color: #f4bd21;
--highlight-commander-text-color: #000;
--scrollbar-thumb-color: #888;
--scrollbar-thumb-hover-color: #555;
--scrollbar-track-color: #f5f5f5;
}
@media (prefers-color-scheme: dark) {
:root {
--modal-commander-bg-color: #2c2c2c;
--modal-commander-text-color: #f0f0f0;
--modal-commander-border-color: #555;
--highlight-commander-bg-color: #f4bd21;
--highlight-commander-text-color: #000;
--scrollbar-thumb-color: #555;
--scrollbar-thumb-hover-color: #777;
--scrollbar-track-color: #2c2c2c;
}
}
#local_commander_modal {
font-family: Arial, serif;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: var(--modal-commander-bg-color);
color: var(--modal-commander-text-color);
border: 1px solid var(--modal-commander-border-color);
z-index: 9999999;
overflow: hidden;
display: none;
width: 80%;
height: 80vh;
max-width: 600px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
.local_commander-header {
border-bottom: 1px solid var(--modal-commander-border-color);
padding: 10px;
h2 {
font-size: 14px;
margin: 0;
}
}
input[type="text"] {
width: calc(100% - 40px);
padding: 5px;
margin-left: 10px;
border: none;
border-top: 1px solid var(--modal-commander-border-color);
font-size: 14px;
box-sizing: border-box;
background-color: var(--modal-commander-bg-color);
color: var(--modal-commander-text-color);
}
.local_commander-body {
overflow: hidden;
padding: 10px;
ul {
display: block;
list-style: none;
padding: 0;
margin: 0;
li {
border-bottom: 1px solid #5d5f62;
padding: 5px;
cursor: pointer;
width: auto;
font-size: 13px;
a {
color: var(--modal-commander-text-color);
font-weight: bold;
}
&.active {
background-color: var(--highlight-commander-bg-color);
a {
color: var(--highlight-commander-text-color);
font-weight: bold;
}
}
}
.highlight {
background-color: var(--highlight-commander-bg-color);
color: var(--highlight-commander-text-color);
}
}
> div::-webkit-scrollbar-track {
background: var(--scrollbar-track-color);
}
> div::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb-color);
border-radius: 6px;
border: 3px solid var(--scrollbar-track-color);
}
> div::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover-color);
}
> div {
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
overflow-y: scroll;
height: calc(80vh - 100px);
}
}
}
#local_commander_back_layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999999;
display: none;
}