diff --git a/backend/static/css/app.css b/backend/static/css/app.css new file mode 100644 index 0000000000..98b4f93874 --- /dev/null +++ b/backend/static/css/app.css @@ -0,0 +1,79 @@ +.page { + background-color: #f4f6fc; +} + +.page-dark [data-bs-toggle="tooltip"] { + color: white; + border: none !important; +} + +.switch { + position: relative; + display: inline-block; + width: 30px; + height: 19px; + margin-right: 3px; +} + +.switch input { + opacity: 0; + width: 0; + height: 0; +} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + -webkit-transition: .4s; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 15px; + width: 15px; + left: 2px; + bottom: 2px; + background-color: white; + -webkit-transition: .4s; + transition: .4s; +} + +input:checked + .slider { + background-color: black; +} + +input:focus + .slider { + box-shadow: 0 0 1px black; +} + +input:checked + .slider:before { + -webkit-transform: translateX(10px); + -ms-transform: translateX(10px); + transform: translateX(10px); +} + +/* Rounded sliders */ +.slider.round { + border-radius: 15px; +} + +.slider.round:before { + border-radius: 50%; +} + +.toggle-btn { + margin-right: 10px; + width: 90px; +} + +.toggle-btn i { + vertical-align: text-top; + margin-right: 2px; +} diff --git a/backend/templates/base.html b/backend/templates/base.html index 316be108d7..1bfef2993d 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -11,6 +11,7 @@ + - + {% block extra_css %} + {% endblock extra_css %}
- {% block content %} +