-
Notifications
You must be signed in to change notification settings - Fork 0
/
brv.less
124 lines (98 loc) · 1.83 KB
/
brv.less
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
#brv-box {
all: revert;
* {
all: revert;
}
// app box covers the whole viewport
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
// color
background: rgba(32,33,36,.6);
aside {
// a "modal" in the center
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 40em;
height: 80%;
overflow-y: scroll;
// style
background: white;
// font size: relative to <html> and not scale with book font size
font-size: 1rem;
line-height: 1.2;
}
}
#brv-box aside#brv-toc {
h1 {
padding-right: 2em;
font-size: 0.9em;
text-align: right;
}
menu {
font-size: 1.05em;
li {
&.current {
background: linear-gradient(to left, aliceblue, white);
}
a {
text-decoration: none;
color: navy;
padding: 0 .1em;
border-radius: .4em;
&:hover {
background: aliceblue;
}
}
}
}
}
#brv-box aside#brv-ci {
&, input {
// copied from GitHub
font-family: ui-monospace, "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}
section {
margin: .5em;
padding: .5em 1em 0;
font-size: 0.9em;
h2 {
font-size: 1.1em;
}
.brv-path {
word-break: break-all;
}
kbd {
background-color: aliceblue;
border-radius: .3em;
padding: 0 .3em;
}
}
#brv-config {
form ul li {
margin-bottom: 0.5em;
}
menu:last-child {
list-style: none;
text-align: right;
li {
display: inline;
padding-right: 0.5em;
input {
padding-left: 1em;
padding-right: 1em;
}
}
}
}
th {
text-align: left;
padding-right: 0.5em;
vertical-align: top;
}
}