diff --git a/allianceauth/authentication/templates/authentication/dashboard.characters.html b/allianceauth/authentication/templates/authentication/dashboard.characters.html index 43944bf7..0e0229fd 100644 --- a/allianceauth/authentication/templates/authentication/dashboard.characters.html +++ b/allianceauth/authentication/templates/authentication/dashboard.characters.html @@ -17,7 +17,7 @@ {% translate 'Change Main' %} - +
diff --git a/allianceauth/authentication/templates/authentication/dashboard.groups.html b/allianceauth/authentication/templates/authentication/dashboard.groups.html index 5ea8514a..5cbd8cf3 100644 --- a/allianceauth/authentication/templates/authentication/dashboard.groups.html +++ b/allianceauth/authentication/templates/authentication/dashboard.groups.html @@ -6,7 +6,7 @@
{% translate "State:" %} {{ request.user.profile.state }}
-
+
{% for group in groups %} diff --git a/allianceauth/optimer/templates/optimer/dashboard.ops.html b/allianceauth/optimer/templates/optimer/dashboard.ops.html index 1adb5d52..b271c591 100644 --- a/allianceauth/optimer/templates/optimer/dashboard.ops.html +++ b/allianceauth/optimer/templates/optimer/dashboard.ops.html @@ -7,7 +7,7 @@

{% translate "Upcoming Fleets" %}

-
{{ group.name }}
+
diff --git a/allianceauth/static/allianceauth/css/auth-base-bs5.css b/allianceauth/static/allianceauth/css/auth-base-bs5.css deleted file mode 100644 index 44315df2..00000000 --- a/allianceauth/static/allianceauth/css/auth-base-bs5.css +++ /dev/null @@ -1,49 +0,0 @@ -/* BS 5 Additions - -Helpful CSS classes that are missing in BS5 -------------------------------------------------------------------------------------- */ -@media all { - .cursor-auto { - cursor: auto; - } - - .cursor-default { - cursor: default; - } - - .cursor-pointer { - cursor: pointer; - } - - .cursor-wait { - cursor: wait; - } - - .cursor-text { - cursor: text; - } - - .cursor-move { - cursor: move; - } - - .cursor-help { - cursor: help; - } - - .cursor-not-allowed { - cursor: not-allowed; - } - - .cursor-inherit { - cursor: inherit; - } - - .cursor-zoom-in { - cursor: zoom-in; - } - - .cursor-zoom-out { - cursor: zoom-out; - } -} diff --git a/allianceauth/static/allianceauth/css/auth-framework.css b/allianceauth/static/allianceauth/css/auth-framework.css new file mode 100644 index 00000000..830baa70 --- /dev/null +++ b/allianceauth/static/allianceauth/css/auth-framework.css @@ -0,0 +1,101 @@ +/** + * Alliance Auth CSS Framework + * + * This provides some CSS classes together with a couple of Bootstrap fixes + * to be used throughout Alliance Auth and its Community Apps + */ + +/* Bootstrap fixes +------------------------------------------------------------------------------------- */ +@media all { + .table { + --bs-table-bg: transparent; + } +} + +/* Cursor classes +------------------------------------------------------------------------------------- */ +@media all { + .cursor-auto { + cursor: auto; + } + + .cursor-default { + cursor: default; + } + + .cursor-pointer { + cursor: pointer; + } + + .cursor-wait { + cursor: wait; + } + + .cursor-text { + cursor: text; + } + + .cursor-move { + cursor: move; + } + + .cursor-help { + cursor: help; + } + + .cursor-not-allowed { + cursor: not-allowed; + } + + .cursor-inherit { + cursor: inherit; + } + + .cursor-zoom-in { + cursor: zoom-in; + } + + .cursor-zoom-out { + cursor: zoom-out; + } +} + +/* Callouts + * + * Not quite alerts, but custom and helpful notes for folks. + * Requires a base and modifier class. +------------------------------------------------------------------------------------- */ +@media all { + /* Common styles for all types */ + .aa-callout { + border: 1px solid var(--bs-border-color); + border-left-width: 0.25rem; + border-radius: 0.25rem; + margin-bottom: 1.25rem; + margin-top: 1.25rem; + padding: 1.25rem; + } + + /* Last item bottom margin should be 0 */ + .aa-callout :last-child { + margin-bottom: 0; + } + + /* Variations */ + .aa-callout.aa-callout-danger { + border-left-color: var(--bs-danger); + } + + .aa-callout.aa-callout-info { + border-left-color: var(--bs-info); + } + + .aa-callout.aa-callout-success { + border-left-color: var(--bs-success); + } + + .aa-callout.aa-callout-warning { + border-left-color: var(--bs-warning); + } +} diff --git a/allianceauth/templates/allianceauth/base-bs5.html b/allianceauth/templates/allianceauth/base-bs5.html index fdff5fa3..20b0cb83 100644 --- a/allianceauth/templates/allianceauth/base-bs5.html +++ b/allianceauth/templates/allianceauth/base-bs5.html @@ -22,7 +22,7 @@ {% theme_css %} {% include 'bundles/fontawesome.html' %} - {% include 'bundles/auth-base-bs5-css.html' %} + {% include 'bundles/auth-framework-css.html' %}
{% translate "Operation" %}