-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.css
159 lines (138 loc) · 4.34 KB
/
index.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
/**
* Color about
*/
:root {
--line-height-tight: 1.3;
--callout-border-width: 0px;
--callout-border-opacity: 0.25;
--callout-padding: 12px 12px 12px 24px;
--callout-radius: 4px;
--callout-title-color: inherit;
--callout-title-padding: 0;
--callout-title-size: inherit;
--callout-title-weight: 600;
--callout-content-padding: 0;
--callout-content-background: transparent;
--callout-blend-mode: var(darken);
--callout-info: 8, 109, 221;
--callout-todo: 8, 109, 221;
--callout-default: 8, 109, 221;
--callout-bug: 233, 49, 71;
--callout-error: 233, 49, 71;
--callout-fail: 233, 49, 71;
--callout-success: 8, 185, 78;
--callout-example: 120, 82, 238;
--callout-important: 0, 191, 188;
--callout-summary: 0, 191, 188;
--callout-tip: 0, 191, 188;
--callout-question: 236, 117, 0;
--callout-warning: 236, 117, 0;
--callout-quote: 158, 158, 158;
--callout-collapse-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0ibTkgMThsNi02bC02LTYiLz48L3N2Zz4=");
}
.theme-light {
--callout-blend-mode: var(darken);
}
.theme-dark {
--callout-blend-mode: var(lighten);
}
html[data-theme="light"] #app {
--callout-blend-mode: var(darken);
}
html[data-theme="dark"] #app {
--callout-blend-mode: var(lighten);
}
/**
* Obsidian callout about
*
* The following style is exactly the same as in obsidian
*/
.callout {
overflow: hidden;
border-style: solid;
border-color: rgba(var(--callout-color), var(--callout-border-opacity));
border-width: var(--callout-border-width);
border-radius: var(--callout-radius);
margin: 1em 0;
mix-blend-mode: var(--callout-blend-mode);
background-color: rgba(var(--callout-color), 0.1);
padding: var(--callout-padding);
--callout-color: var(--callout-default);
--callout-icon: lucide-pencil;
}
.callout .callout-title {
padding: var(--callout-title-padding);
display: flex;
gap: 4px;
font-size: var(--callout-title-size);
color: rgb(var(--callout-color));
line-height: var(--line-height-tight);
align-items: flex-start;
}
details.callout .callout-title {
margin: 0;
cursor: pointer;
}
.callout .callout-title .callout-icon {
flex: 0 0 auto;
display: flex;
align-items: center;
}
.callout .callout-title .callout-title-inner {
--font-weight: var(--callout-title-weight);
font-weight: var(--font-weight);
color: var(--callout-title-color);
}
.callout .callout-title .callout-fold {
background-color: rgb(var(--callout-color));
mask-image: var(--callout-collapse-icon);
mask-size: 100%;
-webkit-mask-image: var(--callout-collapse-icon);
-webkit-mask-size: 100%;
height: 24px;
width: 24px;
transition: 100ms ease-in-out;
}
details[close].callout > .callout-title > .callout-fold {
transform: rotate(-90deg);
}
details[open].callout > .callout-title > .callout-fold {
transform: rotate(90deg);
}
.callout .callout-content {
overflow-x: auto;
padding: var(--callout-content-padding);
background-color: var(--callout-content-background);
}
.callout[data-callout="todo"] {
--callout-color: var(--callout-todo);
--callout-icon: lucide-check-circle-2;
}
.callout[data-callout="success"], .callout[data-callout="check"], .callout[data-callout="done"] {
--callout-color: var(--callout-success);
--callout-icon: lucide-check;
}
.callout[data-callout="warning"], .callout[data-callout="caution"], .callout[data-callout="attention"] {
--callout-color: var(--callout-warning);
--callout-icon: lucide-alert-triangle;
}
.callout[data-callout="danger"], .callout[data-callout="error"] {
--callout-color: var(--callout-error);
--callout-icon: lucide-zap;
}
.callout[data-callout="tip"], .callout[data-callout="hint"] {
--callout-color: var(--callout-tip);
--callout-icon: lucide-flame;
}
.callout[data-callout="example"] {
--callout-color: var(--callout-example);
--callout-icon: lucide-list;
}
.callout[data-callout="abstract"], .callout[data-callout="summary"], .callout[data-callout="tldr"] {
--callout-color: var(--callout-summary);
--callout-icon: lucide-clipboard-list;
}
.callout[data-callout="quote"], .callout[data-callout="cite"] {
--callout-color: var(--callout-quote);
--callout-icon: quote-glyph;
}