-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
192 lines (162 loc) · 4.66 KB
/
styles.css
File metadata and controls
192 lines (162 loc) · 4.66 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
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
/* =============================================================================
UK DRI Team Site — Stylesheet
Purpose:
- Provide a clean, professional default style for a small team website
- Use the UK DRI colour palette as sensible defaults (easy to customise)
How to customise:
- Change the CSS variables in :root to re-theme the site.
- Keep colour use minimal (navbar + small accents) for readability.
============================================================================= */
/* -----------------------------------------------------------------------------
UK DRI official colour palette (UK DRI Brand Guide Sept 2020)
Tip: Use dark blue for navigation, and one accent colour sparingly.
----------------------------------------------------------------------------- */
:root{
/* Core neutrals */
--ukdri-dark-blue: #00326e; /* UK DRI dark blue */
--ukdri-light-grey: #c4d1d9; /* UK DRI light grey */
--ukdri-dark-grey: #415767; /* UK DRI dark grey */
/* Optional blue accents (pick ONE for highlights) */
--ukdri-petrol-blue: #007faf; /* UK DRI petrol blue */
--ukdri-sky-blue: #0ac8ff; /* UK DRI sky blue */
--ukdri-bright-blue: #4682ff; /* UK DRI bright blue */
--ukdri-cobalt: #325ad7; /* UK DRI cobalt */
/* Site theme choices (change these to re-theme quickly) */
--brand-nav: var(--ukdri-dark-blue);
--brand-accent: var(--ukdri-petrol-blue);
--page-bg: #ffffff;
}
/* -----------------------------------------------------------------------------
Base typography & page feel
----------------------------------------------------------------------------- */
body{
background: var(--page-bg);
}
a { text-decoration: none; color: var(--brand-accent); }
a:hover { text-decoration: underline; }
/* Slightly crisper headings (subtle on purpose) */
h1, h2, h3 { letter-spacing: 0.2px; }
/* -----------------------------------------------------------------------------
Navbar branding
----------------------------------------------------------------------------- */
.navbar{
background-color: var(--brand-nav) !important;
}
.navbar .nav-link,
.navbar .navbar-brand{
color: rgba(255,255,255,0.88) !important;
}
.navbar .nav-link:hover,
.navbar .navbar-brand:hover{
color: #ffffff !important;
}
.navbar .nav-link.active {
color: #ffffff !important;
border-bottom: 2px solid var(--brand-accent);
}
/* Name styling in navbar */
.site-name{
font-size: 1.35rem;
letter-spacing: 0.2px;
}
.site-name strong{
font-weight: 800;
color: var(--brand-accent);
}
/* Section headers: bold, structured, with a subtle accent left-border */
main h2 {
margin-top: 1.6rem;
font-weight: 700;
font-size: 1.55rem;
padding-left: 0.65rem;
border-left: 3px solid var(--brand-accent);
}
main h2 + p,
main h2 + ul,
main h2 + div {
margin-top: 0.35rem;
}
/* Horizontal rule spacing */
hr {
margin: 1.4rem 0;
}
/* -----------------------------------------------------------------------------
Homepage hero (index.qmd)
----------------------------------------------------------------------------- */
.home-hero {
margin-top: 0.5rem;
margin-bottom: 1.5rem;
align-items: center;
}
.home-subtitle {
font-size: 1.15rem;
font-weight: 600;
opacity: 0.85;
margin-top: 0.2rem;
margin-bottom: 0.9rem;
}
/* Team image / banner styling */
.profile-pic {
border-radius: 0.75rem;
box-shadow: 0 10px 25px rgba(0,0,0,0.10);
width: 100%;
max-width: 380px;
display: block;
margin-left: auto;
}
/* -----------------------------------------------------------------------------
Cards and reusable content blocks
----------------------------------------------------------------------------- */
/* Reduce padding inside cards */
.card {
padding: 1.1rem 1.25rem;
transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
box-shadow: 0 6px 20px rgba(0,0,0,0.12);
transform: translateY(-2px);
}
/* Tighten space under contribution titles */
.card h3 {
margin-top: 0;
margin-bottom: 0.6rem;
}
/* Tighten list spacing inside cards */
.card ul {
margin-top: 0.4rem;
margin-bottom: 0;
padding-left: 1.1rem;
}
/* Slightly reduce spacing between list items */
.card li {
margin-bottom: 0.3rem;
}
/* Reusable team link block */
.profile-links {
display: flex;
flex-wrap: wrap; /* allows wrapping on small screens */
gap: 0.4rem; /* spacing between items */
align-items: center;
font-size: 1rem;
opacity: 0.95;
}
.profile-links a {
text-decoration: none;
white-space: nowrap;
}
.profile-links i {
margin-right: 0.35rem;
}
.profile-links a:hover {
text-decoration: underline;
}
.profile-links .sep {
opacity: 0.6;
}
.profile-links > p {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
margin: 0;
}