aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/shikiCodeblocks/style.css
blob: b246db4c952399884974f5bb8cfa117a3b127b6e (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.shiki-root {
    border-radius: 4px;

    /* fallback background */
    background-color: var(--background-secondary);
}

.shiki-root code {
    display: block;
    overflow-x: auto;
    padding: 0.5em;
    position: relative;

    font-size: 0.875rem;
    line-height: 1.125rem;
    text-indent: 0;
    white-space: pre-wrap;
    background: transparent;
    border: none;
}

.shiki-root [class^='devicon-'],
.shiki-root [class*=' devicon-'] {
    margin-right: 8px;
    user-select: none;
}

.shiki-plain code {
    padding-top: 8px;
}

.shiki-btns {
    font-size: 1em;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0;
}

.shiki-root:hover .shiki-btns {
    opacity: 1;
}

.shiki-btn {
    border-radius: 4px 4px 0 0;
    padding: 4px 8px;
}

.shiki-btn~.shiki-btn {
    margin-left: 4px;
}

.shiki-btn:last-child {
    border-radius: 4px 0;
}

.shiki-spinner-container {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    position: absolute;
    justify-content: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.shiki-preview {
    margin-bottom: 2em;
}

.shiki-lang {
    padding: 0 5px;
    margin-bottom: 6px;
    font-weight: bold;
    text-transform: capitalize;
    display: flex;
    align-items: center;
}

.shiki-table {
    border-collapse: collapse;
    width: 100%;
}

.shiki-table tr {
    height: 19px;
    width: 100%;
}

.shiki-root td:first-child {
    border-right: 1px solid transparent;
    padding-left: 5px;
    padding-right: 8px;
    user-select: none;
}

.shiki-root td:last-child {
    padding-left: 8px;
    word-break: break-word;
    width: 100%;
}