forked from taylormitchell/ankify_roam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroam_cloze.css
180 lines (154 loc) · 2.81 KB
/
roam_cloze.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
.card {
font-family: arial;
font-size: 20px;
text-align: center;
color: black;
background-color: white;
}
.cloze {
font-weight: bold;
color: blue;
}
.nightMode .cloze {
color: lightblue;
}
/*
+---------------+
| HTML elements |
+---------------+
*/
code {
border-radius: 5px;
border: 1px solid #BCBEC0;
padding: 2px;
font:12px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace;
}
/* Code blocks */
pre code {
border-radius: 5px;
border: 1px solid #BCBEC0;
padding: 10px;
font:12px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace;
text-align: left;
display: block;
margin: 0 0 10px;
color: #333;
background-color: #f5f5f5;
}
blockquote {
padding: 10px 20px;
background-color: #F5F8FA;
border-left: 5px solid #30404D;
margin: 0 0 10px;
word-wrap: break-word;
}
li > * {
vertical-align: text-top;
}
/*
+------+
| Roam |
+------+
*/
.rm-page-ref-brackets {
color: #a7b6c2;
}
.rm-page-ref-link-color {
color: #106ba3;
}
.rm-page-ref-tag {
color: #a7b6c2;
}
.rm-block-ref {
padding: 2px 2px;
margin: -2px 0px;
display: inline;
border-bottom: 0.5px solid #d8e1e8;
cursor: alias;
}
.roam-highlight {
background-color: #fef09f;
margin: -2px;
padding: 2px;
}
.bp3-button.bp3-small, .bp3-small .bp3-button {
min-height: 24px;
min-width: 24px;
padding: 0 7px;
}
.rm-page-ref-brackets {
display: none !important;
}
.rm-page-ref-namespace {
display: none;
}
[data-tag="ankify"], [data-tag^="[[ankify]]:"], [data-tag^="ankify_roam:"], [data-tag^="[[ankify_roam]]:"]{
display:none !important;
}
/*
+------------+
| Front side |
+------------+
*/
.front-side {
max-width: 500px;
text-align: left;
margin: auto;
}
/* No bullets or indentation */
.front-side ul {
display: inline;
list-style-type: none;
margin: 0;
padding: 0;
}
/* Parents as breadcrumbs */
.parent {
display: inline-block;
font-size: 15px;
color: grey;
opacity: 0.5;
}
.parent .rm-page-ref,
.parent .rm-alias {
display: inline-block;
font-size: 15px;
color: grey;
opacity: 0.5;
}
.parent::after {
content: "›";
padding-left: 5px;
padding-right: 5px;
}
/* Make top parent large and above the rest */
.parent.parent-top
{
font-size: 25px;
display: block;
color: grey;
opacity: 0.8;
}
.parent.parent-top .rm-page-ref,
.parent.parent-top .rm-alias {
font-size: 25px;
color: grey;
opacity: 0.8;
}
.parent.parent-top::after {
display: none;
}
/* Separate parents from question */
.front-side :not(.parent).block {
padding-top: 20px;
}
/*
+-----------+
| Back side |
+-----------+
*/
/* Show children as indented bulleted list */
.back-side ul {
text-align: left;
list-style-type: disc;
}