darkmode optimizations
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -10,9 +10,10 @@ With that, good luck hacking us ;)
|
|||||||
|
|
||||||
## Supported versions
|
## Supported versions
|
||||||
|
|
||||||
- ️✅ **2.x** (`main` git-branch)
|
- ️✅ **2.1.x** (`main` git-branch)
|
||||||
- ❌ 0.10.x (`0.10.x` git-branch)
|
- ❌ 2.0.x (`2.0.x`-tags)
|
||||||
- ❌ 0.9.x (`0.9.x`git-branch)
|
- ❌ 0.10.x (`0.10.x`-tags)
|
||||||
|
- ❌ other git-branches
|
||||||
|
|
||||||
## Qualifying Vulnerabilities
|
## Qualifying Vulnerabilities
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,9 @@
|
|||||||
.card, .list-group-item {
|
.card, .list-group-item {
|
||||||
background: $dark-bg;
|
background: $dark-bg;
|
||||||
}
|
}
|
||||||
|
.card {
|
||||||
|
.card-header {
|
||||||
|
border-bottom: $border-color-dark solid 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,21 @@
|
|||||||
// wip
|
// wip
|
||||||
|
@include color-mode(dark) {
|
||||||
|
.formfield {
|
||||||
|
border-bottom: $border-color-dark solid 1px;
|
||||||
|
}
|
||||||
|
.form-control,
|
||||||
|
.form-select {
|
||||||
|
background: $dark-bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-switch {
|
||||||
|
.form-check-input:not(:checked):not(:focus) {
|
||||||
|
background-color: $dark-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control[readonly] {
|
||||||
|
background: $body-tertiary-bg-dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -88,6 +88,13 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td.text-end {
|
||||||
|
a.btn-sm:not(:last-child),
|
||||||
|
span.btn-sm:not(:last-child){
|
||||||
|
margin-right:.125rem!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@include color-mode(dark) {
|
@include color-mode(dark) {
|
||||||
.table>:not(caption)>*>* {
|
.table>:not(caption)>*>* {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
<div class="progress-bar bg-danger"></div>
|
<div class="progress-bar bg-danger"></div>
|
||||||
</div>
|
</div>
|
||||||
<small
|
<small
|
||||||
class="justify-content-center d-flex position-absolute w-100 text-dark">{{ apcuinfo.num_hits_percentage }}
|
class="justify-content-center d-flex position-absolute w-100">{{ apcuinfo.num_hits_percentage }}
|
||||||
%</small>
|
%</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
aria-valuenow="{{ apcuinfo.fragmentation.used_bytes }}" aria-valuemin="0"
|
aria-valuenow="{{ apcuinfo.fragmentation.used_bytes }}" aria-valuemin="0"
|
||||||
aria-valuemax="{{ apcuinfo.fragmentation.total_bytes }}"></div>
|
aria-valuemax="{{ apcuinfo.fragmentation.total_bytes }}"></div>
|
||||||
<small
|
<small
|
||||||
class="justify-content-center d-flex position-absolute w-100 text-dark">{{ apcuinfo.fragmentation.used_percentage }}
|
class="justify-content-center d-flex position-absolute w-100">{{ apcuinfo.fragmentation.used_percentage }}
|
||||||
%</small>
|
%</small>
|
||||||
</div>
|
</div>
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "Froxlor/settings/index.html.twig" %}
|
{% extends "Froxlor/settings/index.html.twig" %}
|
||||||
|
|
||||||
{% block actions %}
|
{% block actions %}
|
||||||
<a class="btn btn-outline-primary" href="{{ linker({'section':'settings','page':'overview','part':'all'}) }}">
|
<a class="btn btn-outline-primary me-2" href="{{ linker({'section':'settings','page':'overview','part':'all'}) }}">
|
||||||
<i class="fa-solid fa-grip me-1"></i>
|
<i class="fa-solid fa-grip me-1"></i>
|
||||||
{{ lng('admin.configfiles.overview') }}
|
{{ lng('admin.configfiles.overview') }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block actions %}
|
{% block actions %}
|
||||||
<a class="btn btn-outline-secondary" href="{{ linker({'section':'settings','page':'toggleSettingsMode'}) }}" title="{{ lng('panel.settingsmodetoggle') }}">
|
<a class="btn btn-outline-secondary me-2" href="{{ linker({'section':'settings','page':'toggleSettingsMode'}) }}" title="{{ lng('panel.settingsmodetoggle') }}">
|
||||||
{% if get_setting('panel.settings_mode') == 0 %}
|
{% if get_setting('panel.settings_mode') == 0 %}
|
||||||
<i class="fa-solid fa-maximize me-1"></i>
|
<i class="fa-solid fa-maximize me-1"></i>
|
||||||
{{ lng('panel.settingsmode') }}: {{ lng('panel.settingsmodebasic') }}
|
{{ lng('panel.settingsmode') }}: {{ lng('panel.settingsmodebasic') }}
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if not field.activated %}
|
{% if not field.activated %}
|
||||||
<div class="position-absolute top-0 end-0 p-1">
|
<div class="position-absolute top-0 end-0 p-1">
|
||||||
<span class="badge text-body-secondary" style="background: #eee">{{ lng('panel.not_activated') }}</span>
|
<span class="badge text-bg-light">{{ lng('panel.not_activated') }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<div class="progress-bar bg-success"
|
<div class="progress-bar bg-success"
|
||||||
style="width: {{ opcacheinfo.overview.used_memory_percentage }}%"></div>
|
style="width: {{ opcacheinfo.overview.used_memory_percentage }}%"></div>
|
||||||
<small
|
<small
|
||||||
class="justify-content-center d-flex position-absolute w-100 text-dark">{{ opcacheinfo.overview.used_memory_percentage }}
|
class="justify-content-center d-flex position-absolute w-100">{{ opcacheinfo.overview.used_memory_percentage }}
|
||||||
%</small>
|
%</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<div class="progress-bar bg-danger"></div>
|
<div class="progress-bar bg-danger"></div>
|
||||||
</div>
|
</div>
|
||||||
<small
|
<small
|
||||||
class="justify-content-center d-flex position-absolute w-100 text-dark">{{ opcacheinfo.overview.hit_rate_percentage }}
|
class="justify-content-center d-flex position-absolute w-100">{{ opcacheinfo.overview.hit_rate_percentage }}
|
||||||
%</small>
|
%</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
aria-valuenow="{{ opcacheinfo.overview.num_cached_keys }}" aria-valuemin="0"
|
aria-valuenow="{{ opcacheinfo.overview.num_cached_keys }}" aria-valuemin="0"
|
||||||
aria-valuemax="{{ opcacheinfo.overview.max_cached_keys }}"></div>
|
aria-valuemax="{{ opcacheinfo.overview.max_cached_keys }}"></div>
|
||||||
<small
|
<small
|
||||||
class="justify-content-center d-flex position-absolute w-100 text-dark">{{ opcacheinfo.overview.used_key_percentage }}
|
class="justify-content-center d-flex position-absolute w-100">{{ opcacheinfo.overview.used_key_percentage }}
|
||||||
%</small>
|
%</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="d-flex flex-column align-items-end mt-n2">
|
<div class="d-flex flex-column align-items-end mt-n2">
|
||||||
<div class="rounded-top bg-dark small py-1 px-2 me-3 opacity-25 text-white">
|
<div class="rounded-top bg-secondary small py-1 px-2 me-3 opacity-25 text-white">
|
||||||
{% if listing.no_search is not defined or (listing.no_search is defined and listing.no_search == false) %}
|
{% if listing.no_search is not defined or (listing.no_search is defined and listing.no_search == false) %}
|
||||||
{% if gSearchText is not empty %}
|
{% if gSearchText is not empty %}
|
||||||
<span class="me-2"><a href="{{ linker(listing.self_overview) }}"><i class="fa-solid fa-xmark"></i></a> Filter: <strong>{{ gSearchText }}</strong></span>
|
<span class="me-2"><a href="{{ linker(listing.self_overview) }}"><i class="fa-solid fa-xmark"></i></a> Filter: <strong>{{ gSearchText }}</strong></span>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
{% if actions_links is iterable %}
|
{% if actions_links is iterable %}
|
||||||
{% for link in actions_links %}
|
{% for link in actions_links %}
|
||||||
{% if link.visible is not defined or (link.visible is defined and link.visible == true) %}
|
{% if link.visible is not defined or (link.visible is defined and link.visible == true) %}
|
||||||
<a class="btn {{ link.class|default('btn-outline-primary') }}" href="{{ link.href|raw }}" {% if link.target is defined %}target="{{ link.target }}"{% endif %}>
|
<a class="btn {{ link.class|default('btn-outline-primary') }}{% if not loop.last %} me-1{% endif %}" href="{{ link.href|raw }}" {% if link.target is defined %}target="{{ link.target }}"{% endif %}>
|
||||||
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
||||||
{% if link.label is defined and link.label is not empty %}<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>{% endif %}
|
{% if link.label is defined and link.label is not empty %}<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<div>
|
<div>
|
||||||
{% if actions_links is iterable %}
|
{% if actions_links is iterable %}
|
||||||
{% for link in actions_links %}
|
{% for link in actions_links %}
|
||||||
<a class="btn {{ link.class|default('btn-outline-primary') }}" href="{{ link.href|raw }}" {% if link.target is defined %}target="{{ link.target }}"{% endif %}>
|
<a class="btn {{ link.class|default('btn-outline-primary') }}{% if not loop.last %} me-1{% endif %}" href="{{ link.href|raw }}" {% if link.target is defined %}target="{{ link.target }}"{% endif %}>
|
||||||
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
||||||
{% if link.label is defined and link.label is not empty %}<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>{% endif %}
|
{% if link.label is defined and link.label is not empty %}<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
{% if actions_links is iterable %}
|
{% if actions_links is iterable %}
|
||||||
{% for link in actions_links %}
|
{% for link in actions_links %}
|
||||||
{% if link.visible is not defined or (link.visible is defined and link.visible == true) %}
|
{% if link.visible is not defined or (link.visible is defined and link.visible == true) %}
|
||||||
<a class="btn {{ link.class|default('btn-outline-primary') }}" href="{{ link.href|raw }}" {% if link.target is defined %}target="{{ link.target }}"{% endif %}>
|
<a class="btn {{ link.class|default('btn-outline-primary') }}{% if not loop.last %} me-1{% endif %}" href="{{ link.href|raw }}" {% if link.target is defined %}target="{{ link.target }}"{% endif %}>
|
||||||
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
<i class="{{ link.icon|default('fa-solid fa-plus-circle') }}"></i>
|
||||||
{% if link.label is defined and link.label is not empty %}<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>{% endif %}
|
{% if link.label is defined and link.label is not empty %}<span class="d-none d-lg-inline ms-lg-1">{{ link.label }}</span>{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user