|
48 | 48 | <!-- SEO --> |
49 | 49 | <link rel="canonical" href="{{ page_url }}" /> |
50 | 50 |
|
51 | | - <!-- Other head content like title, meta tags, etc. --> |
52 | | - <style> |
53 | | - a { |
54 | | - overflow-wrap: break-word; |
55 | | - word-wrap: break-word; |
56 | | - white-space: normal; |
57 | | - } |
58 | | - .btn-outline-success { |
59 | | - --bs-btn-color: #0d6efd !important; |
60 | | - --bs-btn-border-color: #0d6efd !important; |
61 | | - --bs-btn-hover-bg: #0d6efd !important; |
62 | | - --bs-btn-hover-border-color: #0d6efd !important; |
63 | | - } |
64 | | - .navbar-btn { |
65 | | - color: #0d6efd; |
66 | | - } |
67 | | - .unstyled-link { |
68 | | - text-decoration: none !important; |
69 | | - color: inherit !important; |
70 | | - } |
71 | | - code { |
72 | | - padding: 2px 4px; |
73 | | - } |
74 | | - pre { |
75 | | - /* background-color: #ccc; */ |
76 | | - padding: 1em; |
77 | | - border-radius: 4px; |
78 | | - overflow-x: auto; |
79 | | - } |
80 | | - blockquote { |
81 | | - border-left: 4px solid #ccc; |
82 | | - margin: 1em 0; |
83 | | - padding-left: 1em; |
84 | | - font-style: italic; |
85 | | - } |
86 | | - /* Ensure padding and bullet styling are applied */ |
87 | | - /* Only apply list styles within the Markdown-rendered content area */ |
88 | | - .markdown-body ul, |
89 | | - #content ul, |
90 | | - .markdown-body ol, |
91 | | - #content ol { |
92 | | - padding-left: 2rem; |
93 | | - margin-left: 0; |
94 | | - } |
95 | | - table { |
96 | | - border-collapse: separate; |
97 | | - margin-left: 1rem; |
98 | | - margin-right: 1rem; |
99 | | - margin-bottom: 1rem; |
100 | | - border: 1px solid #dee2e6; |
101 | | - } |
102 | | - .navbar-header.navbar-right { |
103 | | - display: flex; |
104 | | - flex-wrap: nowrap; |
105 | | - justify-content: flex-end; |
106 | | - align-items: center; |
107 | | - } |
108 | | - [data-bs-theme="light"] .logo-light { |
109 | | - display: inline-block; |
110 | | - } |
111 | | - [data-bs-theme="light"] .logo-dark { |
112 | | - display: none; |
113 | | - } |
114 | | - [data-bs-theme="dark"] .logo-light { |
115 | | - display: none; |
116 | | - } |
117 | | - [data-bs-theme="dark"] .logo-dark { |
118 | | - display: inline-block; |
119 | | - } |
120 | | - |
121 | | - </style> |
| 51 | + <!-- Load assets/styles/style.css --> |
| 52 | + <link rel="stylesheet" href="{{ static_url }}/css/style.css"> |
| 53 | + |
122 | 54 | {% endblock %} |
123 | 55 | </head> |
124 | 56 |
|
@@ -247,87 +179,8 @@ <h1><a href="/">Rendeiro group</a></h1> |
247 | 179 | <!-- Bootstrap JS --> |
248 | 180 | <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity=" sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin=" anonymous" ></script> |
249 | 181 | <script src=" https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity=" sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin=" anonymous" ></script> |
250 | | - <script type="text/javascript"> |
251 | | - /*! |
252 | | - * Color mode toggler for Bootstrap's docs (https://getbootstrap.com/) |
253 | | - * Copyright 2011-2024 The Bootstrap Authors |
254 | | - * Licensed under the Creative Commons Attribution 3.0 Unported License. |
255 | | - */ |
256 | | - |
257 | | - (() => { |
258 | | - "use strict"; |
259 | | - |
260 | | - const getStoredTheme = () => localStorage.getItem("theme"); |
261 | | - const setStoredTheme = (theme) => localStorage.setItem("theme", theme); |
262 | | - |
263 | | - const getPreferredTheme = () => { |
264 | | - const storedTheme = getStoredTheme(); |
265 | | - if (storedTheme) { |
266 | | - return storedTheme; |
267 | | - } |
268 | | - |
269 | | - return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; |
270 | | - }; |
271 | | - |
272 | | - const setTheme = (theme) => { |
273 | | - if (theme === "auto") { |
274 | | - document.documentElement.setAttribute("data-bs-theme", window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"); |
275 | | - } else { |
276 | | - document.documentElement.setAttribute("data-bs-theme", theme); |
277 | | - } |
278 | | - }; |
279 | | - |
280 | | - setTheme(getPreferredTheme()); |
281 | | - |
282 | | - const showActiveTheme = (theme, focus = false) => { |
283 | | - const themeSwitcher = document.querySelector("#bd-theme"); |
284 | | - |
285 | | - if (!themeSwitcher) { |
286 | | - return; |
287 | | - } |
288 | | - |
289 | | - const themeSwitcherText = document.querySelector("#bd-theme-text"); |
290 | | - const activeThemeIcon = document.querySelector(".theme-icon-active use"); |
291 | | - const btnToActive = document.querySelector(`[data-bs-theme-value="${theme}"]`); |
292 | | - const svgOfActiveBtn = btnToActive.querySelector("svg use").getAttribute("href"); |
293 | | - |
294 | | - document.querySelectorAll("[data-bs-theme-value]").forEach((element) => { |
295 | | - element.classList.remove("active"); |
296 | | - element.setAttribute("aria-pressed", "false"); |
297 | | - }); |
298 | | - |
299 | | - btnToActive.classList.add("active"); |
300 | | - btnToActive.setAttribute("aria-pressed", "true"); |
301 | | - activeThemeIcon.setAttribute("href", svgOfActiveBtn); |
302 | | - const themeSwitcherLabel = `${themeSwitcherText.textContent} (${btnToActive.dataset.bsThemeValue})`; |
303 | | - themeSwitcher.setAttribute("aria-label", themeSwitcherLabel); |
304 | | - |
305 | | - if (focus) { |
306 | | - themeSwitcher.focus(); |
307 | | - } |
308 | | - }; |
309 | | - |
310 | | - window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => { |
311 | | - const storedTheme = getStoredTheme(); |
312 | | - if (storedTheme !== "light" && storedTheme !== "dark") { |
313 | | - setTheme(getPreferredTheme()); |
314 | | - } |
315 | | - }); |
316 | | - |
317 | | - window.addEventListener("DOMContentLoaded", () => { |
318 | | - showActiveTheme(getPreferredTheme()); |
319 | | - |
320 | | - document.querySelectorAll("[data-bs-theme-value]").forEach((toggle) => { |
321 | | - toggle.addEventListener("click", () => { |
322 | | - const theme = toggle.getAttribute("data-bs-theme-value"); |
323 | | - setStoredTheme(theme); |
324 | | - setTheme(theme); |
325 | | - showActiveTheme(theme, true); |
326 | | - }); |
327 | | - }); |
328 | | - }); |
329 | | - })(); |
330 | | - </script> |
| 182 | + <!-- Bootstrap color toggle --> |
| 183 | + <script defer src="{{ static_url }}/js/color_toggler.js"></script> |
331 | 184 | {% endblock js %} |
332 | 185 | </body> |
333 | 186 | </html> |
0 commit comments