forked from pre-commit/pre-commit.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_bs5.scss
168 lines (142 loc) · 4.01 KB
/
main_bs5.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
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
@import 'scss/variables';
@import 'node_modules/bootstrap/scss/bootstrap';
// flush footer to bottom
html {
height: 100%;
}
body {
min-height: 100%;
position: relative;
padding-bottom: 40px;
}
footer {
// scss-lint:disable ImportantRule
position: absolute !important;
right: 0;
bottom: 0;
left: 0;
}
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
nav a:hover {
text-decoration: none;
}
// additional spacing for sticky object
.sticky-top {
top: $spacer * 3;
}
// show anchor on hover
h1,
h2,
h3 {
small {
display: none;
}
&:hover small {
display: inline;
}
}
// underline headline
.page-header {
padding-bottom: 10px;
margin: 44px 0 22px;
border-bottom: $border-width solid $border-color;
&:first-child {
margin-top: 0;
}
}
// wrap table headers
@include media-breakpoint-down(md) {
.table-bordered td:first-child {
background: $table-striped-bg;
border-width: 1px;
}
.table-bordered td {
display: block;
}
}
// remove double spacing in tables
td > :last-child {
margin: 0;
}
// code boxes
pre {
background-color: $pre-background;
color: $pre-color;
border: 1px solid darken($pre-background, 15%);
border-radius: $border-radius;
padding: 0.5rem;
}
.highlight.pre-commit,
.highlight.console {
pre {
background-color: $console-background;
color: $console-color;
border: 1px solid darken($console-background, 15%);
}
// pygments
// scss-lint:disable SelectorFormat
.-Color-BGRed { background-color: #c00; }
.-Color-BGGreen { background-color: #4e9a06; }
.-Color-Black-BGYellow { background-color: #c4a000; color: #2e3436; }
.-Color-Black-BGCyan { background-color: #06989a; color: #2e3436; }
.-Color-Faint { color: #ccc; }
.c1 { color: #06989a; }
.s { color: #8ae234; }
.s1 { color: #8ae234; }
.s2 { color: #8ae234; }
}
code {
// scss-lint:disable ImportantRule
color: $code-color !important;
background-color: $code-background;
padding: $kbd-padding-y $kbd-padding-x;
border-radius: $border-radius;
}
// copyable
.copyable img {
cursor: pointer;
}
// https://github.com/richleland/pygments-css/blob/master/vs.css
.highlight {
.hll { background-color: #ffc; }
.c { color: #008000; } /* Comment */
.err { border: 1px solid #ff0; } /* Error */
.k { color: #00f; } /* Keyword */
.cm { color: #008000; } /* Comment.Multiline */
.cp { color: #00f; } /* Comment.Preproc */
.c1 { color: #008000; } /* Comment.Single */
.cs { color: #008000; } /* Comment.Special */
.ge { font-style: italic; } /* Generic.Emph */
.gh { font-weight: bold; } /* Generic.Heading */
.gp { font-weight: bold; } /* Generic.Prompt */
.gs { font-weight: bold; } /* Generic.Strong */
.gu { font-weight: bold; } /* Generic.Subheading */
.kc { color: #00f; } /* Keyword.Constant */
.kd { color: #00f; } /* Keyword.Declaration */
.kn { color: #00f; } /* Keyword.Namespace */
.kp { color: #00f; } /* Keyword.Pseudo */
.kr { color: #00f; } /* Keyword.Reserved */
.kt { color: #2b91af; } /* Keyword.Type */
.s { color: #a31515; } /* Literal.String */
.nc { color: #2b91af; } /* Name.Class */
.ow { color: #00f; } /* Operator.Word */
.sb { color: #a31515; } /* Literal.String.Backtick */
.sc { color: #a31515; } /* Literal.String.Char */
.sd { color: #a31515; } /* Literal.String.Doc */
.s2 { color: #a31515; } /* Literal.String.Double */
.se { color: #a31515; } /* Literal.String.Escape */
.sh { color: #a31515; } /* Literal.String.Heredoc */
.si { color: #a31515; } /* Literal.String.Interpol */
.sx { color: #a31515; } /* Literal.String.Other */
.sr { color: #a31515; } /* Literal.String.Regex */
.s1 { color: #a31515; } /* Literal.String.Single */
.ss { color: #a31515; } /* Literal.String.Symbol */
// git diff highlights
.gi { color: #070; }
.gd { color: #911; }
}