MDL-86086 theme_boost: Add visual distinction for readonly form inputs

This commit is contained in:
Andi Permana
2025-12-17 19:07:52 +07:00
parent a5b3ac7e43
commit 3df3f8c96c
3 changed files with 21 additions and 0 deletions
+11
View File
@@ -514,3 +514,14 @@ textarea[data-auto-rows] {
}
}
}
// Readonly inputs should have visual distinction from editable inputs.
// Apply the same styling as disabled inputs to make them clearly readonly.
.form-control[readonly] {
color: $input-disabled-color;
background-color: $input-disabled-bg;
border-color: $input-disabled-border-color;
// Follows disabled styles in bootstrap/forms/_form-control.scss.
// iOS fix for unreadable content.
opacity: 1;
}
+5
View File
@@ -35256,6 +35256,11 @@ textarea[data-auto-rows] {
display: none;
}
}
.form-control[readonly] {
background-color: var(--bs-secondary-bg);
opacity: 1;
}
.pagelayout-login #region-main {
border: 0;
background-color: inherit;
+5
View File
@@ -35256,6 +35256,11 @@ textarea[data-auto-rows] {
display: none;
}
}
.form-control[readonly] {
background-color: var(--bs-secondary-bg);
opacity: 1;
}
.pagelayout-login #region-main {
border: 0;
background-color: inherit;