Skip to content

Commit

Permalink
Update bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 4, 2024
1 parent dbc46ed commit f5edf8d
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions djangocms_frontend/templates/bootstrap5/base.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% extends "djangocms_frontend.html" %}{% load cms_tags menu_tags %}
{% block base_css %}
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
{% endblock %}
{% block base_js %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
{% endblock %}
{% block navbar %}
<nav class="navbar {% block navbar_options %}navbar-expand-lg navbar-dark bg-dark{% endblock %}">
Expand All @@ -19,32 +19,3 @@
</div>
</nav>
{% endblock %}
{% block bottom_css %} {# Quick check for dark mode #}
<style>
@media (prefers-color-scheme: dark) {
:root {
--bs-body-bg: #1e1e1e;
--bs-body-bg-rgb: 30, 30, 30;
--bs-body-color: #FFF;
--bs-body-color-rgb: 255, 255, 255;
--bs-dark: #3D3D3D;
--bs-dark-rgb: 61, 61, 61;
--bs-light: #c4c4c4;
--bs-light-rgb: 196, 196, 196;
}
}
:root[data-color-scheme="dark"] {
--bs-body-bg: #1e1e1e;
--bs-body-bg-rgb: 30, 30, 30;
--bs-body-color: #FFF;
--bs-body-color-rgb: 255, 255, 255;
--bs-dark: #3D3D3D;
--bs-dark-rgb: 61, 61, 61;
--bs-light: #c4c4c4;
--bs-light-rgb: 196, 196, 196;
}
}

</style>
{{ block.super }}
{% endblock %}

0 comments on commit f5edf8d

Please sign in to comment.