Skip to content

Commit

Permalink
upgrade tabler to beta21 (#599)
Browse files Browse the repository at this point in the history
* upgrade tabler to beta21

* upgrade tabler to beta21

* upgrade tabler to beta21

* upgrade tabler to beta21
  • Loading branch information
jowilf authored Oct 26, 2024
1 parent 64ce44b commit a5717c0
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ repos:
rev: v5.0.0
hooks:
- id: check-added-large-files
args:
- --maxkb=1024
- id: check-toml
- id: check-yaml
args:
Expand Down
13 changes: 13 additions & 0 deletions starlette_admin/statics/css/tabler.min.beta21.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions starlette_admin/statics/css/tabler.min.css

This file was deleted.

15 changes: 15 additions & 0 deletions starlette_admin/statics/js/vendor/tabler.min.beta21.js

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions starlette_admin/statics/js/vendor/tabler.min.js

This file was deleted.

10 changes: 8 additions & 2 deletions starlette_admin/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endif %}
{% block head_meta %}{% endblock %}
{% block title %}<title>{{ title or app_title }}</title>{% endblock %}
<link rel="stylesheet" href="{{ url_for(__name__ ~ ':statics', path='css/tabler.min.css') }}">
<link rel="stylesheet" href="{{ url_for(__name__ ~ ':statics', path='css/tabler.min.beta21.css') }}">
<link rel="stylesheet" href="{{ url_for(__name__ ~ ':statics', path='css/fontawesome.min.css') }}">
<style>
@import url('https://rsms.me/inter/inter.css');
Expand All @@ -21,6 +21,11 @@
body {
font-feature-settings: "cv03", "cv04", "cv11";
}

.navbar-logo {
width: auto;
height: 2rem;
}
</style>
{% block head_css %}{% endblock %}
</head>
Expand All @@ -30,7 +35,8 @@
{% block modal %}{% endblock %}
<script type="text/javascript" src="{{ url_for(__name__ ~ ':statics', path='js/vendor/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for(__name__ ~ ':statics', path='js/vendor/js.cookie.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for(__name__ ~ ':statics', path='js/vendor/tabler.min.js') }}"></script>
<script type="text/javascript"
src="{{ url_for(__name__ ~ ':statics', path='js/vendor/tabler.min.beta21.js') }}"></script>
{% block script %}{% endblock %}
<script>
$(function () {
Expand Down
6 changes: 2 additions & 4 deletions starlette_admin/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block body %}
<div class="page">
{% block sidebar %}
<aside class="navbar navbar-vertical navbar-expand-lg navbar-dark">
<aside class="navbar navbar-vertical navbar-expand-lg" data-bs-theme="dark">
<div class="container-fluid">
<button class="navbar-toggler"
type="button"
Expand All @@ -23,9 +23,7 @@ <h1 class="navbar-brand navbar-brand-autodark">
<a class="brand-link" href="{{ url_for(__name__ ~ ':index') }}">
{% if logo_url %}
<img src="{{ logo_url }}"
width="110"
height="32"
class="navbar-brand-image"/>
class="navbar-logo"/>
{% else %}
<h3>{{ app_title }}</h3>
{% endif %}
Expand Down

0 comments on commit a5717c0

Please sign in to comment.