Files
plainleaf/web/styles/modals.scss
T
Daniel MichelandGitHub cb6ee137f2 Improve modals (#840)
* Adjust picker input to take up all remaining space

* Improve modals and buttons

* Remove confusing focus of scrollable result list in Firefox

* Adjust css for dark themes, add background for text field in prompt

Seperate accent color for text to increase contrast in dark theme
Set css color-scheme to dark for dark theme

* Fix buggy when entering very long text in picker

* Prevent key events from propagating outside of modals

* Always show focus on button

* Add the keydown event listener directly to the mini editor

* Do not refocus the mini editor when it loses focus and refactoring of the AlwaysShownModal.

* Fix reference to button and mini editor focus in chrome

* Fix selected option index capping in filter when using page down
2024-04-20 16:22:02 +02:00

94 lines
1.4 KiB
SCSS

.sb-modal-box {
margin-top: 60px;
padding: 0;
width: 700px;
max-width: 90%;
border-radius: 8px;
overflow: hidden;
.cm-content {
padding: 0;
.cm-line {
padding: 2px 0 0 3px;
}
}
.sb-header {
padding: 13px 10px 10px 10px;
display: flex;
label {
margin: 3px;
}
.sb-mini-editor {
flex-grow: 1;
min-width: 0;
}
}
.sb-prompt {
padding: 13px 10px 10px 10px;
label {
font-weight: bold;
}
.sb-mini-editor {
background-color: var(--text-field-background-color);
margin: 10px 0;
padding: 0.2em 0.5em;
border: 0;
border-radius: 0.5em;
outline: none;
}
.sb-prompt-buttons {
display: flex;
justify-content: flex-end;
margin-top: 10px;
gap: 10px;
}
}
.sb-help-text {
padding: 5px;
}
.sb-result-list {
max-height: 250px;
overflow-y: scroll;
.sb-icon {
padding: 0 8px 0 5px;
position: relative;
top: 3px;
}
.sb-description {
font-size: 75%;
}
}
.sb-option,
.sb-selected-option {
padding: 8px;
cursor: pointer;
line-height: 20px;
}
.sb-option .sb-hint,
.sb-selected-option .sb-hint {
float: right;
margin-right: 0;
margin-top: -4px;
padding-left: 5px;
padding-right: 5px;
padding-top: 3px;
padding-bottom: 3px;
border-radius: 5px;
}
}