Skip to content

Commit 4095a90

Browse files
committed
Fix some color issues with the Bootstrap dark theme
Related to #18368 Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent 2aca933 commit 4095a90

3 files changed

Lines changed: 38 additions & 27 deletions

File tree

public/themes/bootstrap/scss/_common.scss

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,6 @@
66
margin: 0 0 12px;
77
}
88

9-
button.mult_submit,
10-
.checkall_box + label {
11-
text-decoration: none;
12-
color: #235a81;
13-
cursor: pointer;
14-
outline: none;
15-
}
16-
17-
button.mult_submit {
18-
&:hover,
19-
&:focus {
20-
text-decoration: underline;
21-
color: #235a81;
22-
}
23-
}
24-
25-
.checkall_box + label:hover {
26-
text-decoration: underline;
27-
color: #235a81;
28-
}
29-
309
#navbarDropdown > img {
3110
display: none;
3211
}
@@ -483,7 +462,15 @@ div#tablestatistics table {
483462
width: 100%;
484463

485464
.navbar {
486-
background-color: rgba(var(--#{$prefix}body-color-rgb), 0.03);
465+
background-color: #f8f8f8;
466+
}
467+
}
468+
469+
@include color-mode(dark) {
470+
#topmenucontainer {
471+
.navbar {
472+
background-color: #262a2e;
473+
}
487474
}
488475
}
489476

@@ -1256,6 +1243,17 @@ table#index_columns {
12561243
}
12571244
}
12581245

1246+
@include color-mode(dark) {
1247+
.config-form fieldset th small,
1248+
.config-form fieldset th .small {
1249+
color: inherit;
1250+
}
1251+
1252+
.config-form .custom {
1253+
background: #555;
1254+
}
1255+
}
1256+
12591257
fieldset {
12601258
.group-header {
12611259
th {
@@ -1299,6 +1297,12 @@ fieldset {
12991297
}
13001298
}
13011299

1300+
@include color-mode(dark) {
1301+
fieldset .group-header th {
1302+
background: #333;
1303+
}
1304+
}
1305+
13021306
.click-hide-message {
13031307
cursor: pointer;
13041308
}

public/themes/bootstrap/scss/_designer.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ $resize-img: '../img/designer/resize.png';
3030
}
3131

3232
#canvas {
33-
background-color: $white;
34-
color: $black;
33+
background-color: var(--#{$prefix}body-bg);
34+
color: var(--#{$prefix}body-color);
3535
}
3636

3737
canvas.designer {
@@ -273,8 +273,8 @@ canvas.designer {
273273

274274
#osn_tab {
275275
position: absolute;
276-
background-color: $white;
277-
color: $black;
276+
background-color: var(--#{$prefix}body-bg);
277+
color: var(--#{$prefix}body-color);
278278
}
279279

280280
.designer_header {
@@ -488,6 +488,13 @@ a {
488488
font-weight: bold;
489489
}
490490

491+
@include color-mode(dark) {
492+
.side-menu,
493+
#name-panel {
494+
background-color: var(--#{$prefix}secondary-bg);
495+
}
496+
}
497+
491498
#container-form {
492499
width: 100%;
493500
position: absolute;

templates/database/designer/main.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ window.designerConfig = {{ designer_config|raw }};
193193
</div>
194194
<div id="canvas_outer">
195195
<form action="" id="container-form" method="post" name="form1">
196-
<div id="osn_tab">
196+
<div id="osn_tab" class="w-100">
197197
<canvas class="designer" id="canvas" width="100" height="100"></canvas>
198198
</div>
199199
<div id="layer_menu" class="hide">

0 commit comments

Comments
 (0)