Skip to content

Commit 2d5cb03

Browse files
committed
Fix some color issues with Bootstrap dark theme
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 4ec3b99 commit 2d5cb03

4 files changed

Lines changed: 7 additions & 16 deletions

File tree

‎public/themes/bootstrap/scss/_common.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ input#auto_increment_opt {
16361636
.navigation {
16371637
margin: 0.8em 0;
16381638
border-radius: 5px;
1639-
background: linear-gradient(#eee, #ccc);
1639+
background: var(--#{$prefix}secondary-bg);
16401640

16411641
td {
16421642
margin: 0;

‎public/themes/bootstrap/scss/_navigation.scss‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@
7070
width: 200px;
7171
}
7272

73-
#favoriteTableList select,
74-
#serverChoice select {
73+
#favoriteTableList select {
7574
width: 80%;
7675
}
7776
}
@@ -147,17 +146,11 @@
147146
margin: 0;
148147
margin-left: 5px;
149148
overflow: hidden;
150-
color: var(--#{$prefix}body-color);
151149
height: 74%;
152150
position: relative;
153151

154152
a {
155-
color: var(--#{$prefix}black);
156153
padding-left: 0;
157-
158-
&:hover {
159-
text-decoration: underline;
160-
}
161154
}
162155

163156
ul {
@@ -478,10 +471,6 @@ li.fast_filter {
478471

479472
@include color-mode(dark) {
480473
#pma_navigation_tree {
481-
a {
482-
color: var(--#{$prefix}white);
483-
}
484-
485474
li {
486475
&.activePointer,
487476
&.selected {

‎templates/server/select/index.twig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<fieldset class="pma-fieldset">
55
{% endif %}
66
{{ get_hidden_fields([]) }}
7-
<label for="select_server">{% trans 'Current server:' %}</label>
8-
<select id="select_server" class="autosubmit" name="server">
7+
<label for="select_server" class="form-label">{% trans 'Current server:' %}</label>
8+
<select id="select_server" class="form-select autosubmit" name="server">
99
<option value="">({% trans 'Servers' %}) ...</option>
1010
{% for server in servers.select %}
1111
<option value="{{ server.value }}"{{ server.selected ? ' selected' }}>{{ server.label }}</option>

‎templates/table/insert/actions_panel.twig‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<fieldset class="pma-fieldset" id="actions_panel">
1+
<div class="card">
2+
<fieldset class="card-body" id="actions_panel">
23
<table class="table table-borderless w-auto tdblock">
34
<tr>
45
<td class="text-nowrap align-middle">
@@ -39,6 +40,7 @@
3940
</tr>
4041
</table>
4142
</fieldset>
43+
</div>
4244
<div class="modal fade" id="previewSqlModal" tabindex="-1" aria-labelledby="previewSqlModalLabel" aria-hidden="true">
4345
<div class="modal-dialog">
4446
<div class="modal-content">

0 commit comments

Comments
 (0)