-
Notifications
You must be signed in to change notification settings - Fork 6
/
389ds.scss
318 lines (259 loc) · 5.58 KB
/
389ds.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
---
no_date: true
---
@import "389ds-variables";
@import "bootstrap";
@import "bootstrap/theme";
// Pull in the Pygments CSS
@import "solarized";
@import "389ds-fonts";
// HOME
// From the Brand Book
$rh-red: rgb(204, 0, 0);
$rh-dark-red: rgb(158, 41, 43);
$rh-darker-red: rgb(120, 31, 28);
$ds-green: #006b84;
// The search button is configured in https://www.google.com/cse
// The button color is #005965 with a #003c4b border
$footer-height: 30px;
#front-page-title {
color: $ds-green;
@extend .text-center;
font-weight: 900;
}
.front-page-column-title {
color: $ds-green;
@extend .text-center;
font-style: italic;
font-weight: bold;
font-family: "Modern", $font-family-serif;
}
div#front-page-blurb, div#not-found-blurb {
font-family: "Overpass", $font-family-base;
text-shadow: 0 1px 0 darken(rgb(0, 0, 0), 10%);
h1 {
color: white;
font-size: 35px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 8px;
}
h2 {
color: $rh-red;
font-size: 25px;
}
}
div#not-found-banner {
@include gradient-vertical($start-color: $navbar-default-bg, $end-color: black);
position: absolute;
top: $navbar-height;
bottom: $footer-height;
left: 0px;
right: 0px;
margin-bottom: 0px;
}
div#not-found-blurb {
h1 {
letter-spacing: inherit;
}
}
div#front-page-lower {
@include gradient-vertical($start-color: #bbb, $end-color: white);
@mixin front-column {
font-family: "Overpass", $font-family-base;
}
ul {
padding-left: 15px;
}
a {
text-decoration: none;
}
a.more-link {
@extend .pull-right;
font-size: 16px;
margin-bottom: 10px;
margin-top: -5px;
}
a[role=button] {
@include button-variant(white, $rh-red, darken($rh-red, 10%));
@include btn-styles($rh-red);
@extend .btn;
@extend .btn-block;
font-weight: bold;
font-size: 17px;
}
}
//WHAT'S NEW
div#whats-new h3 {
margin-bottom: 5px;
}
// NAVBAR
.navbar-header a img {
@include navbar-vertical-align(35px);
}
.navbar {
font-size: 15px;
font-weight: bold;
}
// SEARCH BOX
div#search div.form-group form input.form-control {
@include navbar-vertical-align($input-height-base);
height: $input-height-base;
margin: 0px;
}
// TABLE OF CONTENTS
$toc-color: lighten($navbar-default-bg, 15%);
$toc-border: darken($toc-color, 50%);
$toc-text: white;
$toc-heading-padding: 10px;
$toc-body-padding: 5px 12px;
.panel-toc {
@include panel-variant($toc-border, $toc-text, $toc-color, $toc-border);
.panel-heading {
padding: $toc-heading-padding;
h1, h2, h3, h4, h5, h6 {
margin-bottom: 2px;
margin-top: 2px;
}
}
.panel-body {
// Add 3D effects
@include panel-heading-styles($toc-color);
padding: $toc-body-padding;
ul#markdown-toc,
ul#toc {
list-style-position: inside;
color: $toc-text;
padding: 0px;
a {
color: $toc-text;
}
// Don't print a bullet if this is an only child.
li:only-child {
list-style-type: none;
}
}
}
}
// ALERTS
@mixin custom-alert($bg-color, $text-color) {
@extend .alert;
@include alert-variant($bg-color, darken($bg-color, 10%), $text-color);
@include alert-styles($bg-color);
// use the .alert-link class by default
a {
@extend .alert-link;
}
}
@mixin titled-alert($bg-color, $text-color, $title) {
@include custom-alert($bg-color, $text-color);
&:before {
content: $title;
font-weight: bold;
}
}
$example-color: $state-info-bg;
$example-text: $state-info-text;
.alert-example {
@include titled-alert($example-color, $example-text, "Example: ");
}
$todo-color: $state-success-bg;
$todo-text: $state-success-text;
.alert-todo {
@include titled-alert($todo-color, $todo-text, "To Do: ");
}
.alert-good {
@include custom-alert($state-success-bg, $state-success-text);
}
.alert-bad {
@include custom-alert($state-danger-bg, $state-danger-text);
}
.alert-caution {
@include custom-alert($state-warning-bg, $state-warning-text);
}
.alert-notice {
@include custom-alert($state-info-bg, $state-info-text);
}
// TABLES
#page-content {
max-width: 1400px;
table {
@extend .table;
.column-striped tr td:nth-child(odd) {
background: $gray-lighter;
}
}
}
// POSITIONING
img.center-block {
@include center-block();
}
// LISTS
dl {
@extend .dl-horizontal;
}
// MODIFICATION DATE
#date_modified {
@extend .pull-right;
@extend .text-muted;
@extend .small;
}
// FOOTER
body {
margin-bottom: $footer-height;
}
html {
position: relative;
min-height: 100%;
}
footer {
// Pull in 3D effects
@extend .navbar-default;
background-color: $navbar-default-bg;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: $footer-height;
div.row div {
color: $navbar-default-link-color;
margin-top: (($footer-height - $line-height-computed) / 2);
margin-bottom: (($footer-height - $line-height-computed) / 2);
a {
color: $navbar-default-link-active-color;
}
}
#licenses {
@include make-md-column(10);
}
#copyright {
@include make-md-column(2);
}
}
// SYNTAX HIGHLIGHTING STYLE
pre {
@extend .solarized-light;
}
pre.language-console {
@extend .solarized-dark;
// Pygments marks bash builtins with the nb class. Just show them like generic text.
.nb {
color: $solarized-dark-primary;
}
// Highlight the command prompt in green
.gp {
color: $solarized-green;
}
// Provide x-axis scrolling for long lines
code {
word-wrap: normal;
white-space: pre;
}
}
pre.output-only {
@extend .solarized-dark;
// Print all code as Generic.Output
code {
@extend .go;
}
}