-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
133 lines (113 loc) · 2.8 KB
/
style.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
:root {
--background-color: #add8e6ff; /* Default (Auto) Light Background */
--font-color: #2c2c2c; /* Default (Auto) Font Color */
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: #21292c; /* Default Dark Background */
--font-color: #c1c1c1; /* Default Dark Font Color */
}
}
html,
body {
margin: 0;
padding: 0;
font-size: 14px;
color: var(--font-color);
}
body {
margin: 4px;
box-sizing: border-box;
font-family: monospace, monospace;
background-color: var(--background-color);
transition:
background-color 0.3s,
color 0.3s; /* Smooth transition */
}
/* Base styles for select and option */
select {
font-size: 14px;
overflow-y: hidden;
font-family: monospace, monospace;
color: var(--font-color);
background-color: var(--background-color); /* Base background color */
border: 1px solid #ccc; /* Optional: Add a border for better visibility */
height: 100%;
width: 100%;
appearance: none; /* Remove default arrow for consistency */
padding: 4px; /* Add some padding */
box-sizing: border-box;
transition:
background-color 0.3s,
color 0.3s; /* Smooth transition */
}
option {
padding: 2px;
background-color: var(
--background-color
); /* Ensure options match the theme */
color: var(--font-color); /* Ensure text color matches the theme */
}
/* Theme-specific overrides */
body.light {
--background-color: #add8e6ff; /* Light Theme Background */
--font-color: #2c2c2c; /* Light Theme Font Color */
}
body.dark {
--background-color: #21292c; /* Dark Theme Background */
--font-color: #c1c1c1; /* Dark Theme Font Color */
}
/* Ensure select and option respect theme-specific background */
body.light select {
background-color: #ffffff; /* Explicitly set to white for Light Theme */
color: var(--font-color);
}
body.light option {
background-color: #ffffff; /* Explicitly set to white for Light Theme */
color: var(--font-color);
}
body.dark select {
background-color: #21292c; /* Explicitly set to dark for Dark Theme */
color: var(--font-color);
}
body.dark option {
background-color: #21292c; /* Explicitly set to dark for Dark Theme */
color: var(--font-color);
}
/* Additional Styles */
td {
vertical-align: top;
}
.col {
float: left;
}
.values {
text-align: left;
}
.columns {
overflow: hidden;
}
.path {
font-size: 14px;
font-style: italic;
}
.typename {
font-size: 14px;
}
.buttonbar {
display: flex;
align-items: center;
justify-content: center;
}
.buttonbar .btn {
font-size: 14px;
margin: 0;
}
/* Toggle Button Styling */
.theme-toggle {
cursor: pointer;
margin-left: 8px;
font-size: 16px;
vertical-align: middle;
user-select: none;
}