updates: change 'px' to 'em' for width
This commit is contained in:
@@ -80,7 +80,6 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer" class="container-fluid">
|
<div id="footer" class="container-fluid">
|
||||||
<div id="footer-data" class="row my-1">
|
<div id="footer-data" class="row my-1">
|
||||||
{% block footer_includes %}
|
{% block footer_includes %}
|
||||||
@@ -92,24 +91,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.min.js" integrity="sha384-RuyvpeZCxMJCqVUGFI0Do1mQrods/hhxYlcVfGPOfQtPJh0JCw12tUAZ/Mv10S7D" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.min.js" integrity="sha384-RuyvpeZCxMJCqVUGFI0Do1mQrods/hhxYlcVfGPOfQtPJh0JCw12tUAZ/Mv10S7D" crossorigin="anonymous"></script>
|
||||||
<script defer>
|
<script defer>
|
||||||
const saved_color_theme = localStorage.getItem('saved_color_theme');
|
const saved_color_theme = localStorage.getItem('saved_color_theme');
|
||||||
if (saved_color_theme) {
|
if (saved_color_theme) {
|
||||||
document.documentElement.setAttribute('data-bs-theme', saved_color_theme);
|
document.documentElement.setAttribute('data-bs-theme', saved_color_theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("categories_toggle").onclick = function() {
|
document.getElementById("categories_toggle").onclick = function() {
|
||||||
categories_menu_item = document.getElementById("categories_menu");
|
categories_menu_item = document.getElementById("categories_menu");
|
||||||
categories_menu_item.style.display = categories_menu_item.style.display === "none" ? "block" : "none"
|
categories_menu_item.style.display = categories_menu_item.style.display === "none" ? "block" : "none"
|
||||||
};
|
};
|
||||||
document.getElementById("dark_theme_toggle").onclick = function() {
|
document.getElementById("dark_theme_toggle").onclick = function() {
|
||||||
html = document.documentElement;
|
html = document.documentElement;
|
||||||
current_color_theme = html.getAttribute('data-bs-theme');
|
current_color_theme = html.getAttribute('data-bs-theme');
|
||||||
new_color_theme = current_color_theme === 'dark' ? 'light' : 'dark';
|
new_color_theme = current_color_theme === 'dark' ? 'light' : 'dark';
|
||||||
html.setAttribute('data-bs-theme', new_color_theme);
|
html.setAttribute('data-bs-theme', new_color_theme);
|
||||||
localStorage.setItem('saved_color_theme', new_color_theme);
|
localStorage.setItem('saved_color_theme', new_color_theme);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row justify-content-start g-4 mb-4 py-4">
|
<div class="row justify-content-start g-4 mb-4 py-4">
|
||||||
{% for content_item in content_items %}
|
{% for content_item in content_items %}
|
||||||
<div class="col-auto align-items-stretch d-flex mx-2" style="max-width: 400px;">
|
<div class="col-auto align-items-stretch d-flex mx-2" style="width: 100%; width: 24em;">
|
||||||
<div class="card h-100 px-0 rounded mx-1 my-3" style="width: 100%; width: 350px;">
|
<div class="card h-100 px-0 rounded mx-1 my-3" style="width: 100%; width: 22em;">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
{% if content_item.image_file %}
|
{% if content_item.image_file %}
|
||||||
<img src="{{ parent_path }}static/images/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-fill rounded" style="height: 200px; width: auto;">
|
<img src="{{ parent_path }}static/images/{{ content_item.image_file }}" alt="{{ content_item.title }}" class="card-img-top img-fluid mx-auto d-block object-fit-fill rounded" style="height: 200px; width: auto;">
|
||||||
|
|||||||
Reference in New Issue
Block a user