-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style fix for radios when they include a 'subtext' property (#15175)
- Loading branch information
1 parent
7974ff4
commit 342f78d
Showing
3 changed files
with
188 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,176 +1,177 @@ | ||
.modal-dialog { | ||
max-width: 80%; | ||
min-width: 400px; | ||
} | ||
|
||
.modal-title { | ||
display: flex; | ||
align-items: center; | ||
|
||
|
||
svg { | ||
width: 2em; | ||
height: 2em; | ||
margin-right: 1em; | ||
} | ||
|
||
.icon-info, | ||
.icon-question { | ||
color: $brand-info; | ||
} | ||
|
||
.icon-error { | ||
color: $brand-danger; | ||
} | ||
} | ||
|
||
.common-dialog-regular { | ||
display: flex !important; | ||
justify-content: center; | ||
|
||
.modal-dialog { | ||
width: 60em; | ||
display: flex; | ||
margin: 0; | ||
align-items: center; | ||
height: 100; | ||
} | ||
} | ||
|
||
.common-dialog-wide { | ||
.modal-dialog { | ||
height: 80%; | ||
width: auto; | ||
} | ||
|
||
.modal-content { | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.modal-body { | ||
flex: 1 0%; | ||
display: flex; | ||
padding: $half-gutter $gutter-width; | ||
|
||
div { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
webview { | ||
height: 100%; | ||
background-color: white; | ||
} | ||
} | ||
} | ||
|
||
.dialog-container { | ||
width: 100%; | ||
min-height: 300px; | ||
max-height: 60vh; | ||
overflow-y: auto; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
// the flex sizing may not be optimal | ||
textarea { | ||
width: 100%; | ||
resize: none; | ||
//border: none; | ||
//padding: 4px 8px; | ||
border-radius: $border-radius-base; | ||
flex: 1 1 0%; | ||
|
||
//resize: none; | ||
padding: 5px 8px; | ||
background-color: $brand-bg; | ||
border: 1px solid $border-color; | ||
} | ||
|
||
>div { | ||
flex: 1 1 90%; | ||
} | ||
|
||
>.dialog-content-bbcode { | ||
|
||
table { | ||
width: 100%; | ||
} | ||
|
||
ul { | ||
margin-bottom: 0; | ||
} | ||
|
||
.bbcode-spoiler-tag { | ||
|
||
|
||
.bbcode-spoiler-content { | ||
padding: 8px; | ||
border: 1px solid $border-color; | ||
border-radius: $border-radius-base; | ||
background: $brand-bg; | ||
margin-top: 4px; | ||
} | ||
} | ||
} | ||
|
||
.dialog-content-input { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
>div { | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
>.dialog-content-text { | ||
flex: initial; | ||
margin-bottom: $half-gutter; | ||
white-space: pre-wrap; | ||
} | ||
|
||
|
||
|
||
>.dialog-content-html { | ||
white-space: pre-wrap; | ||
} | ||
|
||
>.dialog-content-choices { | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
|
||
>div { | ||
overflow: auto; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
|
||
.radio label, | ||
.checkbox label { | ||
display: flex; | ||
align-items: center; | ||
|
||
input[type=radio], | ||
input[type=checkbox] { | ||
margin: 0 0 0 -20px; | ||
} | ||
|
||
} | ||
} | ||
|
||
.choice-maintext { | ||
font-weight: bold; | ||
} | ||
|
||
.choice-subtext { | ||
margin-bottom: 1em; | ||
} | ||
} | ||
.modal-dialog { | ||
max-width: 80%; | ||
min-width: 400px; | ||
} | ||
|
||
.modal-title { | ||
display: flex; | ||
align-items: center; | ||
|
||
|
||
svg { | ||
width: 2em; | ||
height: 2em; | ||
margin-right: 1em; | ||
} | ||
|
||
.icon-info, | ||
.icon-question { | ||
color: $brand-info; | ||
} | ||
|
||
.icon-error { | ||
color: $brand-danger; | ||
} | ||
} | ||
|
||
.common-dialog-regular { | ||
display: flex !important; | ||
justify-content: center; | ||
|
||
.modal-dialog { | ||
width: 60em; | ||
display: flex; | ||
margin: 0; | ||
align-items: center; | ||
height: 100; | ||
} | ||
} | ||
|
||
.common-dialog-wide { | ||
.modal-dialog { | ||
height: 80%; | ||
width: auto; | ||
} | ||
|
||
.modal-content { | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.modal-body { | ||
flex: 1 0%; | ||
display: flex; | ||
padding: $half-gutter $gutter-width; | ||
|
||
div { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
webview { | ||
height: 100%; | ||
background-color: white; | ||
} | ||
} | ||
} | ||
|
||
.dialog-container { | ||
width: 100%; | ||
min-height: 300px; | ||
max-height: 60vh; | ||
overflow-y: auto; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
|
||
// the flex sizing may not be optimal | ||
textarea { | ||
width: 100%; | ||
resize: none; | ||
//border: none; | ||
//padding: 4px 8px; | ||
border-radius: $border-radius-base; | ||
flex: 1 1 0%; | ||
|
||
//resize: none; | ||
padding: 5px 8px; | ||
background-color: $brand-bg; | ||
border: 1px solid $border-color; | ||
} | ||
|
||
>div { | ||
flex: 1 1 90%; | ||
} | ||
|
||
>.dialog-content-bbcode { | ||
|
||
table { | ||
width: 100%; | ||
} | ||
|
||
ul { | ||
margin-bottom: 0; | ||
} | ||
|
||
.bbcode-spoiler-tag { | ||
|
||
|
||
.bbcode-spoiler-content { | ||
padding: 8px; | ||
border: 1px solid $border-color; | ||
border-radius: $border-radius-base; | ||
background: $brand-bg; | ||
margin-top: 4px; | ||
} | ||
} | ||
} | ||
|
||
.dialog-content-input { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
>div { | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
>.dialog-content-text { | ||
flex: initial; | ||
margin-bottom: $half-gutter; | ||
white-space: pre-wrap; | ||
} | ||
|
||
|
||
|
||
>.dialog-content-html { | ||
white-space: pre-wrap; | ||
} | ||
|
||
>.dialog-content-choices { | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
//justify-content: flex-end; | ||
|
||
>div { | ||
overflow: auto; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
|
||
.radio label, | ||
.checkbox label { | ||
display: flex; | ||
//align-items: center; | ||
|
||
input[type=radio], | ||
input[type=checkbox] { | ||
margin: 2px 0 0 -20px; // 2px top border accounts for natural margins of text above when compared to the radio input | ||
} | ||
|
||
} | ||
} | ||
|
||
.choice-maintext { | ||
font-weight: bold; | ||
} | ||
|
||
/*.choice-subtext { | ||
//margin-bottom: 1em; | ||
}*/ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters