forked from marktext/marktext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.vue
More file actions
63 lines (56 loc) · 1.1 KB
/
index.vue
File metadata and controls
63 lines (56 loc) · 1.1 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
<template>
<section class="pref-compound-item">
<div class="pref-compound-head">
<slot name="head"/>
</div>
<div class="pref-compound-body">
<slot name="children"/>
</div>
<div v-if="notes" class="notes">
{{notes}}
</div>
</div>
</section>
</template>
<script>
export default {
props: {
notes: String
}
}
</script>
<style>
.pref-compound-item {
font-size: 14px;
user-select: none;
margin: 20px 0;
color: var(--editorColor);
& .pref-compound-head h6.title {
font-weight: 400;
font-size: 1.1em;
padding-bottom: 6px;
}
& .pref-compound-body {
padding: 8px 16px 8px 16px;
margin-top: -12px;
background: rgba(0, 0, 0, .04);
border: 1px solid rgba(255, 255, 255, .03);
}
& .description {
margin-bottom: 10px;
& i {
cursor: pointer;
opacity: .7;
color: var(--iconColor);
}
& i:hover {
color: var(--themeColor);
}
}
& .notes {
margin-top: 10px;
font-style: italic;
font-size: 12px;
}
}
</style>