Skip to content

Commit dedff13

Browse files
update CSS
1 parent faa6bb0 commit dedff13

3 files changed

Lines changed: 60 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ instance/
6565

6666
# Sphinx documentation
6767
docs/*/_build/
68-
docs/*/_static/
68+
# docs/*/_static/
6969
docs/*/_templates/
7070

7171
# PyBuilder

docs/source/_static/style.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap');
22

3+
/* =============================================================
4+
FESTIM BRAND COLOURS
5+
============================================================= */
6+
:root {
7+
--festim-primary: #1a4848;
8+
--festim-primary-hover: #f7b000;
9+
}
10+
311
body {
412
font-family: 'Open Sans', sans-serif;
513
}
@@ -128,6 +136,56 @@ h3 {
128136
flex-wrap: wrap;
129137
}
130138

139+
/* ---- Override button colours on landing page ---- */
140+
.festim-hero-buttons .btn-primary,
141+
.festim-hero-buttons .btn-primary:visited {
142+
background-color: var(--festim-primary);
143+
border-color: var(--festim-primary);
144+
color: #fff;
145+
}
146+
147+
.festim-hero-buttons .btn-primary:hover,
148+
.festim-hero-buttons .btn-primary:focus,
149+
.festim-hero-buttons .btn-primary:active {
150+
background-color: var(--festim-primary-hover);
151+
border-color: var(--festim-primary-hover);
152+
color: #fff;
153+
text-decoration: none;
154+
}
155+
156+
.festim-hero-buttons .btn-outline-primary,
157+
.festim-hero-buttons .btn-outline-primary:visited {
158+
color: var(--festim-primary);
159+
border-color: var(--festim-primary);
160+
background-color: transparent;
161+
}
162+
163+
.festim-hero-buttons .btn-outline-primary:hover,
164+
.festim-hero-buttons .btn-outline-primary:focus,
165+
.festim-hero-buttons .btn-outline-primary:active {
166+
background-color: var(--festim-primary-hover);
167+
border-color: var(--festim-primary-hover);
168+
color: #fff;
169+
text-decoration: none;
170+
}
171+
172+
/* ---- Community section buttons ---- */
173+
.festim-community-buttons .btn-outline-primary,
174+
.festim-community-buttons .btn-outline-primary:visited {
175+
color: var(--festim-primary);
176+
border-color: var(--festim-primary);
177+
background-color: transparent;
178+
}
179+
180+
.festim-community-buttons .btn-outline-primary:hover,
181+
.festim-community-buttons .btn-outline-primary:focus,
182+
.festim-community-buttons .btn-outline-primary:active {
183+
background-color: var(--festim-primary);
184+
border-color: var(--festim-primary);
185+
color: #fff;
186+
text-decoration: none;
187+
}
188+
131189
/* ---- Carousel in hero ---- */
132190
.festim-hero-carousel {
133191
flex: 1 1 400px;

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ If you use FESTIM in your research, please cite the following publication:
264264
Connect with the FESTIM community.
265265
</p>
266266

267-
<div style="display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;">
267+
<div class="festim-community-buttons" style="display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;">
268268
<a class="btn btn-outline-primary" href="https://festim.discourse.group/" target="_blank">
269269
<i class="fa-brands fa-discourse"></i>&ensp;Discourse
270270
</a>

0 commit comments

Comments
 (0)