forked from Acode-Foundation/Acode
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy paththemeSetting.scss
More file actions
55 lines (48 loc) · 1.09 KB
/
themeSetting.scss
File metadata and controls
55 lines (48 loc) · 1.09 KB
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
#theme-setting {
display: flex;
flex-direction: column;
#theme-preview:not(:empty) {
height: 120px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 4px var(--box-shadow-color);
pointer-events: none;
}
#theme-preview .cm-editor {
width: 100%;
}
#theme-list {
flex: 1;
}
.theme-swatch-slot {
display: flex;
align-items: center;
justify-content: center;
width: 60px;
min-width: 60px;
height: 60px;
flex-shrink: 0;
}
.theme-swatch-preview {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
grid-template-rows: repeat(2, minmax(0, 1fr));
width: 1.5rem;
min-width: 1.5rem;
height: 1.5rem;
padding: 0.08rem;
box-sizing: border-box;
border: 1px solid var(--border-color);
border: 1px solid color-mix(in srgb, var(--border-color), transparent 18%);
border-radius: 0.45rem;
background: var(--secondary-color);
overflow: hidden;
}
.theme-swatch {
display: block;
min-width: 0;
min-height: 0;
}
.theme-swatch-main {
grid-row: 1 / 3;
}
}