blob: 40fb861646db3d780202e58dce04a2d4f7202407 (
plain)
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
|
{ theme }:
let
fg = "#${theme.colors.fg}";
bg = "#${theme.colors.bg}";
surface-fg = "#${theme.colors.surface.fg}";
surface-bg = "#${theme.colors.surface.bg}";
primary = "#${theme.colors.primary}";
fontSize = "${toString theme.font.size}px";
outerGap = "${toString theme.outerGap}px";
innerGap = "${toString theme.innerGap}px";
outerRadius = "${toString theme.outerRadius}px";
innerRadius = "${toString theme.innerRadius}px";
borderWidth = "${toString theme.borderWidth}px";
in
''
* {
font-family: ${theme.font.monospace};
font-size: ${fontSize};
}
/* Window */
window {
margin: 0px;
border: ${borderWidth} solid ${primary};
border-radius: ${outerRadius};
background-color: ${bg};
}
/* Outer Box */
#outer-box {
padding: ${outerGap};
}
/* Scroll */
#scroll {
margin: 0px;
padding: ${innerGap};
border: none;
}
/* Input */
#input {
margin: ${innerGap};
padding: ${innerGap};
border: none;
color: ${surface-fg};
background-color: ${surface-bg};
border-radius: ${outerRadius};
}
#input:focus,
#input:active {
border: ${borderWidth} solid ${primary};
box-shadow: none;
outline: none;
}
/* Text */
#text {
margin: ${innerGap};
padding: ${innerGap};
border: none;
color: ${fg};
}
/* Selected Entry */
#entry:selected {
background-color: ${primary};
border-radius: ${outerRadius};
}
#entry:selected #text {
color: ${bg};
}
''
|