-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmain.scss
196 lines (186 loc) · 3.96 KB
/
main.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
---
---
body {
$border: 1px solid black;
$header_link_color: #CC0;
$link_color: #28F;
$main_padding: 15px;
overflow-wrap: break-word;
header {
background-color: black;
border-radius: 0;
border-width: 0;
font-size: 2.0em;
margin: 0;
@mixin header_link_hover {
background-color: white;
color: black;
}
a {
// Otherwise the black background shows around the links for some reason.
padding-bottom: 10px;
padding-top: 10px;
margin: 0;
&.home {
color: white;
font-weight: bold;
padding-left: 5px;
padding-right: 5px;
text-decoration: none;
}
&:hover {
@include header_link_hover;
}
}
span.social a {
color: $header_link_color;
&:hover {
@include header_link_hover;
}
&:visited {
&:hover {
@include header_link_hover;
}
color: $header_link_color;
}
}
}
main {
/* Don't stay too close to the edge of the screen. */
padding-bottom: $main_padding;
padding-right: $main_padding;
padding-left: $main_padding;
/* asciidoctor output. */
.imageblock {
margin-bottom: 15px;
}
/* kramdown output. */
#markdown-toc {
font-weight: bold;
}
h1, h2, h3, h4, h5, h6 {
a {
&:link, &:visited {
color: black;
}
}
}
h2, h3, h4, h5, h6 {
font-size: 24px;
}
/* Generic elements. */
a:link {
color: $link_color;
}
a:visited {
color: purple;
}
blockquote {
font-size: 1.2em;
}
code {
color: black;
}
p {
/* Otherwise paragraphs after *nested* lists are too close. TODO why? */
margin-top: 5px;
}
pre {
margin-left: 0px;
white-space: pre;
}
ul, ol {
/*list-style-position:inside;*/
margin-left: 14px;
padding-left: 14px;
}
table {
border-collapse: collapse;
border: $border;
margin-bottom: 15px;
text-align: left;
}
table tr > :not(:last-child) {
white-space: nowrap;
width: 1px;
}
td, th {
border: $border;
padding: 2px 4px;
}
th {
font-weight: bold;
}
/* Custom classes. */
.canvas-demo {
border: 1px solid black;
padding-left: 5px;
padding-right: 5px;
margin-bottom: 10px;
}
.patches-table tr {
> :nth-child(1),
> :nth-child(3) {
text-align: center;
}
}
#bugs-table tr > :nth-child(1) {
text-align: center;
}
#grading-table tr > :nth-child(1) {
font-weight: bold;
text-align: center;
padding-left: 8px;
padding-right: 8px;
}
#languages-table tr > :nth-child(1) {
text-align: center;
}
#other-tech-table tr > :nth-child(1) {
text-align: center;
}
#natural-languages-table tr > :nth-child(1) {
text-align: center;
}
// DataTables
$data_table_color: white;
table.dataTable tr {
&.odd {
background-color: $data_table_color;
td {
&.sorting_1 { background-color: $data_table_color; }
&.sorting_2 { background-color: $data_table_color; }
&.sorting_3 { background-color: $data_table_color; }
}
}
&.even {
background-color: $data_table_color;
td {
&.sorting_1 { background-color: $data_table_color; }
&.sorting_2 { background-color: $data_table_color; }
&.sorting_3 { background-color: $data_table_color; }
}
}
}
}
footer {
background-color: black;
color: white;
padding: $main_padding;
@mixin footer_link_hover {
color: $header_link_color;
}
a {
color: $header_link_color;
&:hover {
@include footer_link_hover;
}
&:visited {
&:hover {
@include footer_link_hover;
}
color: $header_link_color;
}
}
}
}