forked from orzih/mkdocs-with-pdf
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmaterial.scss
131 lines (113 loc) · 2.2 KB
/
material.scss
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
.md-typeset > ul {
margin-left: 0rem !important;
}
.md-typeset ul li,
.md-typeset ol li {
margin-left: 1.5rem !important;
}
@media print {
// admonition icon
.md-typeset :is(.admonition-title,summary):before {
top: 0.6rem;
left: 0.6rem;
}
.md-typeset {
// Tabbed code block container
.tabbed-set {
display: block;
.tabbed-content--wrap {
display: inline-block;
width: 100%;
margin-bottom: 0.25rem;
// Hide radio buttons
> input {
display: none;
}
> label {
background-color: rgba($color: #aaa, $alpha: 0.2);
padding: 0.2rem 2rem;
margin: 0;
font-weight: 600;
color: #666;
border-radius: 3px 3px 0 0;
border-bottom-color: transparent;
}
> .tabbed-content {
display: block;
box-shadow: none;
}
}
}
.admonition-title+.tabbed-set:last-child,
summary+.tabbed-set:last-child {
margin-top: 0.5rem;
}
// details
> details summary::after {
display: none;
}
// content indent
&>div,
&>div.admonition,
&>details,
&>div.tabbed-set,
&>blockquote,
&>mark,
&>table,
&>p {
margin-left: 0.7rem;
}
&>table.highlighttable {
margin: 0 0 0 0.7rem;
}
table.highlighttable,
table.highlighttable>tbody {
width: 100%;
}
table.highlighttable {
padding-bottom: 0.5em;
.linenos {
padding-bottom: 0;
}
}
&>ul,
&>ol {
margin-left: 1.5rem;
}
h4,
h5,
h6 {
margin-left: 0.25rem;
}
*:not(h3) + h4 {
margin-top: 1.5rem;
}
hr {
border-bottom: 1px dotted #999;
}
.footnote {
line-height: 1.1;
}
// Data tables
table:not([class]) {
th, td {
padding: 0.5em 1.25rem 0.4em;
}
td {
border-bottom: 1px solid #eee;
}
}
}
.md-typeset {
span.twemoji {
vertical-align: middle;
height: 1.125rem;
display: inline-block;
> img {
height: 1.125rem;
vertical-align: middle;
display: inline-block;
}
}
}
}