Skip to content

Commit 1a1943a

Browse files
committed
🎨 theming
1 parent ec42ade commit 1a1943a

File tree

2 files changed

+204
-1
lines changed

2 files changed

+204
-1
lines changed

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ website:
3939

4040
format:
4141
html:
42-
theme: minty
42+
theme: [minty, mystyles.scss]
4343
toc: true
4444

4545

mystyles.scss

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
/*-- scss:defaults --*/
2+
3+
// Fonts
4+
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
5+
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
6+
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
7+
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
8+
9+
// Colors
10+
$black: #262406;
11+
$white: #ffffff;
12+
$primary: #042940;
13+
$secondary: #005C53;
14+
$accent1: #DBF227;
15+
$accent2: #DB8655;
16+
$accent3: #62771B;
17+
18+
// Base document colors
19+
$navbar-bg: $primary; // navbar
20+
$navbar-fg: $accent2; // navbar foreground elements
21+
$navbar-hl: $accent1; // highlight color when hovering over navbar links
22+
$body-bg: $white; // page background
23+
$body-color: $black; // page text
24+
$footer-bg: $secondary; // footer
25+
$footer-fg: $accent1; // footer
26+
$link-color: $secondary; // hyperlinks
27+
28+
/*-- scss:rules --*/
29+
30+
// CSS rules
31+
32+
h1 {
33+
color: $primary;
34+
font-family: Audiowide;
35+
font-size: 3.0rem;
36+
font-weight: 400;
37+
}
38+
39+
h2 {
40+
color: $secondary;
41+
font-family: Raleway;
42+
font-size: 2.0rem;
43+
font-weight: 600;
44+
}
45+
46+
h3 {
47+
color: $secondary;
48+
font-family: Raleway;
49+
font-size: 1.5rem;
50+
font-weight: 500;
51+
}
52+
53+
.listing-box-title {
54+
color: $secondary;
55+
font-family: Raleway;
56+
font-weight: 600;
57+
}
58+
59+
.navbar li.nav-item a.nav-link span {
60+
font-size: 1.2rem;
61+
font-family: Raleway;
62+
}
63+
64+
.navbar-title {
65+
font-family: Audiowide;
66+
font-size: 2rem;
67+
}
68+
69+
.navbar-logo {
70+
max-height: 100px;
71+
width: auto;
72+
align-items: baseline;
73+
}
74+
75+
/* for research questions */
76+
.research-question {
77+
font-family: Raleway;
78+
font-size: 1rem;
79+
font-weight: 600;
80+
color: $accent2;
81+
text-transform: uppercase;
82+
}
83+
84+
/* For resource listings */
85+
86+
.teaching {
87+
.course-entry {
88+
display: flex;
89+
flex-direction: row;
90+
// font-family: $headings-font-family;
91+
line-height: 1.3;
92+
margin-bottom: 3em;
93+
column-gap: 0.7em;
94+
95+
.body {
96+
flex: 1 1 auto;
97+
}
98+
99+
.logo {
100+
flex: 0 0 140px;
101+
102+
img {
103+
width: 100%;
104+
}
105+
}
106+
107+
.course-title {
108+
font-weight: 500;
109+
font-size: 1.25em;
110+
margin-bottom: 0.2em;
111+
}
112+
113+
.course-details {
114+
font-weight: 300;
115+
font-size: 0.9em;
116+
margin-bottom: 0.5em;
117+
// color: $gray-800;
118+
}
119+
120+
.course-description {
121+
font-weight: 300;
122+
font-size: 1.1em;
123+
margin-bottom: 0.5em;
124+
}
125+
126+
.course-role {
127+
font-weight: 500;
128+
}
129+
130+
ul.course-links {
131+
list-style: none;
132+
padding: 0;
133+
margin-bottom: 0;
134+
135+
li {
136+
display: inline-block;
137+
white-space: nowrap;
138+
background-color: $primary;
139+
margin: 0 0.2em 0.4em 0;
140+
padding: 0.2em 0.4em;
141+
font-size: 0.85em;
142+
border-radius: 0.25rem;
143+
144+
a {
145+
color: $accent1;
146+
text-decoration: none;
147+
}
148+
}
149+
}
150+
}
151+
}
152+
153+
/* Hero image at top of page */
154+
155+
.hero-container {
156+
overflow: hidden;
157+
position: relative;
158+
max-height: 52vh;
159+
height: 52vh;
160+
}
161+
162+
.hero-image {
163+
position: absolute;
164+
/* liner gradient tints the image darker for readability*/
165+
//background-image: linear-gradient( rgba(0,0,0,.3), rgba(0,0,0,.3) ), url(research/foodwebs/network.jpg);
166+
background-size: cover;
167+
height: 100%;
168+
width: 100%;
169+
//background-color: $blue;
170+
display: flex; /* Change to `display: none` for no hero image */
171+
justify-content: center;
172+
align-items: center;
173+
background-repeat: no-repeat;
174+
padding: 1vh 0;
175+
}
176+
177+
.image-credit {
178+
position: absolute;
179+
text-align: right;
180+
right: 0.5%;
181+
bottom: 0.5%;
182+
font-size: 12px;
183+
color: $white;
184+
}
185+
186+
.hero-title-top {
187+
position: relative;
188+
text-align: center;
189+
font-size: 100px;
190+
color: #ffffff;
191+
padding-right: 133px;
192+
margin-bottom: -4.7rem;
193+
font-weight: bold;
194+
}
195+
196+
.hero-title-bottom {
197+
position: relative;
198+
text-align: center;
199+
font-size: 100px;
200+
color: #EEECEA;
201+
padding-left: 105px;
202+
font-weight: bold;
203+
}

0 commit comments

Comments
 (0)