Skip to content

Commit a5717c0

Browse files
authored
upgrade tabler to beta21 (#599)
* upgrade tabler to beta21 * upgrade tabler to beta21 * upgrade tabler to beta21 * upgrade tabler to beta21
1 parent 64ce44b commit a5717c0

File tree

7 files changed

+40
-30
lines changed

7 files changed

+40
-30
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ repos:
55
rev: v5.0.0
66
hooks:
77
- id: check-added-large-files
8+
args:
9+
- --maxkb=1024
810
- id: check-toml
911
- id: check-yaml
1012
args:

starlette_admin/statics/css/tabler.min.beta21.css

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

starlette_admin/statics/css/tabler.min.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

starlette_admin/statics/js/vendor/tabler.min.beta21.js

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

starlette_admin/statics/js/vendor/tabler.min.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

starlette_admin/templates/base.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% endif %}
1010
{% block head_meta %}{% endblock %}
1111
{% block title %}<title>{{ title or app_title }}</title>{% endblock %}
12-
<link rel="stylesheet" href="{{ url_for(__name__ ~ ':statics', path='css/tabler.min.css') }}">
12+
<link rel="stylesheet" href="{{ url_for(__name__ ~ ':statics', path='css/tabler.min.beta21.css') }}">
1313
<link rel="stylesheet" href="{{ url_for(__name__ ~ ':statics', path='css/fontawesome.min.css') }}">
1414
<style>
1515
@import url('https://rsms.me/inter/inter.css');
@@ -21,6 +21,11 @@
2121
body {
2222
font-feature-settings: "cv03", "cv04", "cv11";
2323
}
24+
25+
.navbar-logo {
26+
width: auto;
27+
height: 2rem;
28+
}
2429
</style>
2530
{% block head_css %}{% endblock %}
2631
</head>
@@ -30,7 +35,8 @@
3035
{% block modal %}{% endblock %}
3136
<script type="text/javascript" src="{{ url_for(__name__ ~ ':statics', path='js/vendor/jquery.min.js') }}"></script>
3237
<script type="text/javascript" src="{{ url_for(__name__ ~ ':statics', path='js/vendor/js.cookie.min.js') }}"></script>
33-
<script type="text/javascript" src="{{ url_for(__name__ ~ ':statics', path='js/vendor/tabler.min.js') }}"></script>
38+
<script type="text/javascript"
39+
src="{{ url_for(__name__ ~ ':statics', path='js/vendor/tabler.min.beta21.js') }}"></script>
3440
{% block script %}{% endblock %}
3541
<script>
3642
$(function () {

starlette_admin/templates/layout.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% block body %}
1010
<div class="page">
1111
{% block sidebar %}
12-
<aside class="navbar navbar-vertical navbar-expand-lg navbar-dark">
12+
<aside class="navbar navbar-vertical navbar-expand-lg" data-bs-theme="dark">
1313
<div class="container-fluid">
1414
<button class="navbar-toggler"
1515
type="button"
@@ -23,9 +23,7 @@ <h1 class="navbar-brand navbar-brand-autodark">
2323
<a class="brand-link" href="{{ url_for(__name__ ~ ':index') }}">
2424
{% if logo_url %}
2525
<img src="{{ logo_url }}"
26-
width="110"
27-
height="32"
28-
class="navbar-brand-image"/>
26+
class="navbar-logo"/>
2927
{% else %}
3028
<h3>{{ app_title }}</h3>
3129
{% endif %}

0 commit comments

Comments
 (0)