generated from Pakillo/quarto-course-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
136 lines (122 loc) · 3.19 KB
/
styles.css
File metadata and controls
136 lines (122 loc) · 3.19 KB
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
/* css styles */
/* ============================
OsloMet theme
============================ */
/* ---------- Base fonts ---------- */
:root {
/* Font stack: try Moderat if installed, fall back to Arial/system sans */
--font-sans: "Moderat", Arial, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
/* Brand colours */
--oslomet-yellow: #FFDC00;
--oslomet-red: #E02D00;
--oslomet-blue: #007ACC;
--oslomet-lightblue: #40E4FF;
--oslomet-burgundy: #99002B;
--oslomet-darkblue: #000064;
--oslomet-orange: #FF8100;
--oslomet-black: #000000;
}
/* Global text styles */
body {
font-family: var(--font-sans);
color: var(--oslomet-black);
background-color: #ffffff;
line-height: 1.5;
}
/* quotes with a smaller font size*/
blockquote {
font-size: 8;
font-style: italic;
color: var(--oslomet-darkblue);
}
/* Headings use brand text colours with good contrast */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-sans);
font-weight: 700;
color: var(--oslomet-black); /* strong accessible text colour */
}
/* Example: highlight main course title in OsloMet yellow band */
.page-header,
.hero,
header#title-block-header {
background-color: var(--oslomet-yellow);
color: var(--oslomet-black);
padding: 1.5rem 1.25rem;
}
/* Links: blue as main, red on hover (both allowed as text colours) */
a {
color: var(--oslomet-blue);
text-decoration: underline;
}
a:hover,
a:focus {
color: var(--oslomet-red);
}
/* Buttons / call‑outs using brand colours */
.btn-primary,
.button-primary,
.quarto-btn-primary {
background-color: var(--oslomet-yellow);
color: var(--oslomet-black);
border: 1px solid var(--oslomet-black);
}
.btn-primary:hover,
.button-primary:hover,
.quarto-btn-primary:hover {
background-color: var(--oslomet-orange);
color: var(--oslomet-black);
}
/* Secondary emphasis blocks in blue / burgundy */
.callout-note,
.callout-tip {
border-left: 4px solid var(--oslomet-blue);
}
.callout-important,
.callout-warning {
border-left: 4px solid var(--oslomet-burgundy);
}
/* Tables: yellow header, light zebra rows */
table thead th {
background-color: var(--oslomet-yellow);
color: var(--oslomet-black);
}
table tbody tr:nth-child(even) {
background-color: #f5f5f5;
}
/* Code blocks: subtle blue frame */
pre, code {
font-family: "Fira Code", "Source Code Pro", Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
}
pre {
border: 1px solid var(--oslomet-blue);
background-color: #f8fbff;
}
/* Do NOT use low‑contrast colours for body text;
use yellow/light blue as backgrounds only */
.bg-oslomet-yellow {
background-color: var(--oslomet-yellow);
color: var(--oslomet-black);
}
.bg-oslomet-lightblue {
background-color: var(--oslomet-lightblue);
color: var(--oslomet-darkblue);
}
/* Utility text colour classes for headings or big labels
(respecting that some colours should only be used at larger sizes) */
.text-oslomet-red {
color: var(--oslomet-red);
}
.text-oslomet-blue {
color: var(--oslomet-blue);
}
.text-oslomet-burgundy {
color: var(--oslomet-burgundy);
}
.text-oslomet-darkblue {
color: var(--oslomet-darkblue);
}
.text-oslomet-black {
color: var(--oslomet-black);
}