mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 07:29:46 -06:00
Fix Bootstrap 5 diff view layout and form control border color in dark themes
- Improve diff view layout using flexbox to make selectors fill available space - Add proper vertical alignment and spacing in the toolbar - Adjust form control border colors in dark themes using CSS variables - Fix border color contrast issues in dark themes This addresses two issues reported in PR #7582: - Fixes diff view toolbar sizing and layout - Fixes combobox turning white on compiler change in diff view 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,14 @@ body {
|
||||
background-color: #333 !important;
|
||||
}
|
||||
|
||||
// Border color adjustments for form elements in dark theme
|
||||
.form-select,
|
||||
.form-control,
|
||||
.input-group-text,
|
||||
.ts-wrapper .ts-control {
|
||||
--bs-border-color: #444;
|
||||
}
|
||||
|
||||
input,
|
||||
textarea {
|
||||
color: #eee !important;
|
||||
|
||||
@@ -39,6 +39,14 @@ body {
|
||||
background-color: $base !important;
|
||||
}
|
||||
|
||||
// Border color adjustments for form elements in dark theme
|
||||
.form-select,
|
||||
.form-control,
|
||||
.input-group-text,
|
||||
.ts-wrapper .ts-control {
|
||||
--bs-border-color: $dark;
|
||||
}
|
||||
|
||||
input {
|
||||
color: #eee !important;
|
||||
background-color: $lighter;
|
||||
|
||||
@@ -36,6 +36,14 @@ body {
|
||||
background-color: $base !important;
|
||||
}
|
||||
|
||||
// Border color adjustments for form elements
|
||||
.form-select,
|
||||
.form-control,
|
||||
.input-group-text,
|
||||
.ts-wrapper .ts-control {
|
||||
--bs-border-color: $dark;
|
||||
}
|
||||
|
||||
input {
|
||||
//color: #000 !important;
|
||||
background-color: $base;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#diff
|
||||
.top-bar.btn-toolbar.bg-light(role="toolbar")
|
||||
.top-bar.btn-toolbar.bg-light.py-1.d-flex.align-items-center(role="toolbar")
|
||||
include ../../font-size
|
||||
.btn-group.btn-group-sm
|
||||
.input-group.input-group-sm.mb-auto
|
||||
.btn-group.btn-group-sm.flex-grow-1.me-2
|
||||
.input-group.input-group-sm.w-100
|
||||
label.input-group-text
|
||||
| Left:
|
||||
select.form-select.diff-picker.lhs(placeholder="Select compiler...")
|
||||
select.form-select.difftype-picker.lhsdifftype(placeholder="...")
|
||||
.btn-group.btn-group-sm.ms-4
|
||||
.input-group.input-group-sm.mb-auto
|
||||
.btn-group.btn-group-sm.flex-grow-1
|
||||
.input-group.input-group-sm.w-100
|
||||
label.input-group-text
|
||||
| Right:
|
||||
select.form-select.diff-picker.rhs(placeholder="Select compiler...")
|
||||
|
||||
Reference in New Issue
Block a user