Markdown blog on Flask with Vite-built assets and WeasyPrint PDF export, rewritten from the Wagtail build that preceded it.
blogdockerflaskmarkdownpythonself-hostedvite
1@use "variables" as *;
2
3@use "bootstrap/scss/bootstrap" with (
4 $font-family-sans-serif: $font-family-sans-serif,
5 $font-family-monospace: $font-family-monospace,
6 $headings-font-family: $headings-font-family,
7 $headings-font-weight: $headings-font-weight,
8 $font-size-base: $font-size-base,
9 $line-height-base: $line-height-base,
10 $headings-line-height: $headings-line-height,
11
12 $white: $white,
13 $gray-100: $gray-100,
14 $gray-200: $gray-200,
15 $gray-300: $gray-300,
16 $gray-400: $gray-400,
17 $gray-500: $gray-500,
18 $gray-600: $gray-600,
19 $gray-700: $gray-700,
20 $gray-800: $gray-800,
21 $gray-900: $gray-900,
22 $black: $black,
23
24 $body-bg: $body-bg,
25 $body-color: $body-color,
26
27 $primary: $primary,
28 $secondary: $secondary,
29 $success: $success,
30 $info: $info,
31 $warning: $warning,
32 $danger: $danger,
33 $light: $light,
34 $dark: $dark,
35
36 $link-color: $link-color,
37 $link-hover-color: $link-hover-color,
38 $link-decoration: $link-decoration,
39 $link-hover-decoration: $link-hover-decoration,
40
41 $border-color: $border-color,
42 $border-radius: $border-radius,
43 $border-radius-sm: $border-radius-sm,
44 $border-radius-lg: $border-radius-lg,
45
46 $card-bg: $card-bg,
47 $card-border-color: $card-border-color,
48 $card-color: $card-color,
49 $card-cap-bg: $card-cap-bg,
50
51 $input-bg: $input-bg,
52 $input-color: $input-color,
53 $input-border-color: $input-border-color,
54 $input-focus-bg: $input-focus-bg,
55 $input-focus-color: $input-focus-color,
56 $input-focus-border-color: $input-focus-border-color,
57 $input-focus-box-shadow: $input-focus-box-shadow,
58 $input-placeholder-color: $input-placeholder-color,
59
60 $navbar-dark-color: $navbar-dark-color,
61 $navbar-dark-hover-color: $navbar-dark-hover-color,
62 $navbar-dark-active-color: $navbar-dark-active-color,
63
64 $list-group-bg: $list-group-bg,
65 $list-group-border-color: $list-group-border-color,
66 $list-group-hover-bg: $list-group-hover-bg,
67 $list-group-action-color: $list-group-action-color,
68 $list-group-action-hover-color: $list-group-action-hover-color,
69 $list-group-action-active-bg: $list-group-action-active-bg,
70 $list-group-action-active-color: $list-group-action-active-color,
71 $list-group-active-bg: $list-group-active-bg,
72 $list-group-active-border-color: $list-group-active-border-color,
73 $list-group-active-color: $list-group-active-color,
74
75 $breadcrumb-active-color: $breadcrumb-active-color,
76 $breadcrumb-divider-color: $breadcrumb-divider-color,
77
78 $dropdown-bg: $dropdown-bg,
79 $dropdown-border-color: $dropdown-border-color,
80 $dropdown-color: $dropdown-color,
81 $dropdown-link-color: $dropdown-link-color,
82 $dropdown-link-hover-color: $dropdown-link-hover-color,
83 $dropdown-link-hover-bg: $dropdown-link-hover-bg,
84
85 $btn-close-color: $btn-close-color,
86);
87
88
89// ── Custom utilities ──
90
91.bg-surface {
92 background: #13120e !important;
93}
94
95.bg-deep {
96 background: #090806 !important;
97}
98
99.text-muted {
100 color: #9e968a !important;
101}
102
103.link-footer {
104 color: $gray-400;
105 text-decoration: none;
106 transition: color 200ms ease;
107
108 &:hover {
109 color: $white;
110 }
111}
112
113.breadcrumb {
114 display: block;
115 flex-wrap: nowrap;
116 white-space: nowrap;
117
118 .breadcrumb-item {
119 font-size: 0.82em;
120 white-space: nowrap;
121 display: inline-block;
122
123 a {
124 color: $gray-400;
125 text-decoration: none;
126 transition: color 150ms ease;
127
128 &:hover {
129 color: $gray-100;
130 }
131 }
132
133 &.active {
134 color: $gray-200;
135 }
136 }
137}
138
139// Tag pill styling — forest green
140.btn-tag {
141 background: $green-dim;
142 color: $green-bright;
143 border: 1px solid $green-border;
144 font-size: 0.75rem;
145 font-weight: 500;
146 letter-spacing: 0.03em;
147 line-height: 1;
148 padding: 0.35rem 0.65rem;
149 display: inline-flex;
150 align-items: center;
151 transition: all 200ms ease;
152
153 &:hover {
154 background: rgba(107, 158, 120, 0.2);
155 color: #95cca2;
156 border-color: rgba(107, 158, 120, 0.35);
157 box-shadow: 0 0 8px rgba(107, 158, 120, 0.12);
158 }
159}
160
161// Alert overrides for dark
162.alert-info {
163 background: rgba(126, 170, 184, 0.08);
164 border-color: rgba(126, 170, 184, 0.2);
165 color: #9ec5d2;
166}
167
168.alert-warning {
169 background: $amber-dim;
170 border-color: rgba(201, 168, 76, 0.2);
171 color: #ddc06a;
172}
173
174// List group header — amber accent for "old knowledge" feel
175.list-group-header {
176 background: $amber-dim !important;
177 color: $amber !important;
178 font-weight: 600;
179 font-size: 0.72rem;
180 letter-spacing: 0.08em;
181 text-transform: uppercase;
182}
183
184.list-group-footer {
185 background: rgba(221, 215, 205, 0.02) !important;
186 color: $gray-400 !important;
187 transition: all 200ms ease;
188
189 &:hover {
190 background: rgba(221, 215, 205, 0.04) !important;
191 color: $gray-200 !important;
192 }
193}