Repository navigation
Expand file tree
/
Copy pathlearning-engine-ui.css
More file actions
136 lines (123 loc) · 4 KB
/
Copy pathlearning-engine-ui.css
File metadata and controls
136 lines (123 loc) · 4 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
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
.hl-engine-panel {
position: fixed;
inset: 0 auto 0 auto;
right: 0;
z-index: 1800;
width: min(480px, calc(100vw - 40px));
overflow-y: auto;
border-left: 1px solid #bfd1ce;
background: #fff;
color: #17324d;
box-shadow: -12px 0 32px rgb(18 42 52 / 22%);
overscroll-behavior: contain;
transform: translateX(100%);
transition: transform 220ms ease;
visibility: hidden;
}
.hl-engine-header {
position: sticky;
top: 0;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 64px;
padding: 12px 58px 12px 18px;
background: #e5f4f2;
color: #17324d;
border-bottom: 1px solid #bfd1ce;
}
.hl-engine-title { margin: 0; font-size: 18px; line-height: 1.3; }
.hl-engine-close,
.hl-engine-toggle {
min-height: 40px;
padding: 8px 12px;
border: 1px solid #086d67;
border-radius: 6px;
background: #086d67;
color: #fff;
cursor: pointer;
font: 700 13px 'DM Sans', sans-serif;
}
.hl-engine-close { flex: 0 0 auto; background: transparent; color: #086d67; }
.hl-engine-toggle {
position: fixed;
right: 52px;
bottom: 18px;
z-index: 1901;
max-width: min(250px, calc(100vw - 90px));
box-shadow: 0 3px 12px rgb(17 39 52 / 20%);
}
.hl-engine-slide-label {
position: fixed;
top: 50%;
right: 8px;
z-index: 1902;
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 160px;
transform: translateY(-50%);
border: 1px solid #bfd1ce;
border-radius: 8px;
background: #fff;
box-shadow: 0 3px 12px rgb(17 39 52 / 18%);
overflow: hidden;
color: transparent;
font-size: 0;
}
.hl-engine-slide {
width: 140px;
height: 28px;
margin: 0;
transform: rotate(-90deg);
accent-color: #086d67;
cursor: ew-resize;
}
.hl-engine-slide-value {
position: fixed;
top: calc(50% + 92px);
right: 6px;
z-index: 1903;
min-width: 38px;
padding: 3px 4px;
border-radius: 4px;
background: #172a35;
color: #fff;
font: 600 11px 'DM Sans', sans-serif;
text-align: center;
}
.hl-engine-close:focus-visible,
.hl-engine-toggle:focus-visible,
.hl-engine-slide:focus-visible,
.hl-engine-control:focus-visible,
.hl-engine-button:focus-visible {
outline: 3px solid #e8b638;
outline-offset: 2px;
}
.hl-engine-content { display: grid; gap: 12px; padding: 16px 58px 20px 16px; }
.hl-engine-form { display: flex; flex-wrap: wrap; gap: 12px; }
.hl-engine-label { display: grid; flex: 1 1 180px; gap: 5px; color: #526670; font-size: 13px; font-weight: 700; }
.hl-engine-control { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #aebfbd; border-radius: 5px; background: #fff; color: #172a35; font: 15px 'DM Sans', sans-serif; }
.hl-engine-inputs { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 12px; }
.hl-engine-button { justify-self: start; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 5px; background: #086d67; color: #fff; cursor: pointer; font-weight: 700; }
.hl-engine-button:hover { background: #064f4b; }
.hl-engine-output { min-height: 24px; margin: 0; color: #17324d; font-weight: 600; overflow-wrap: anywhere; }
body[data-hl-theme='dark'] .hl-engine-panel { background: #24363d; color: #edf3f1; border-color: #66817f; }
body[data-hl-theme='dark'] .hl-engine-header { background: #183f3e; color: #edf3f1; border-color: #66817f; }
body[data-hl-theme='dark'] .hl-engine-label,
body[data-hl-theme='dark'] .hl-engine-output { color: #edf3f1; }
body[data-hl-theme='dark'] .hl-engine-control { background: #18262c; color: #edf3f1; border-color: #66817f; }
body[data-hl-theme='dark'] .hl-engine-close { color: #edf3f1; border-color: #66817f; }
body[data-hl-theme='dark'] .hl-engine-slide-label { background: #24363d; border-color: #66817f; }
@media (max-width: 760px) {
.hl-engine-panel { width: min(430px, calc(100vw - 28px)); }
.hl-engine-toggle { right: 50px; bottom: 14px; }
.hl-engine-slide-label { right: 4px; width: 30px; height: 140px; }
.hl-engine-content { padding-right: 48px; }
}
@media (prefers-reduced-motion: reduce) {
.hl-engine-panel { scroll-behavior: auto; }
}