mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(styles): Replace deprecated CSS variables
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
19bff05ccc
commit
858b4b83c7
1 changed files with 17 additions and 16 deletions
|
|
@ -22,7 +22,7 @@ input, textarea, select, button, div[contenteditable=true], div[contenteditable=
|
|||
font-family: var(--font-face) !important;
|
||||
}
|
||||
.select2-container.select2-drop-above .select2-choice {
|
||||
background-image: unset !important;
|
||||
background-image: unset !important;
|
||||
}
|
||||
|
||||
$default-height: 36px;
|
||||
|
|
@ -44,13 +44,13 @@ div[contenteditable=false] {
|
|||
}
|
||||
|
||||
/**
|
||||
* color-text-lighter normal state
|
||||
* color-text-lighter active state
|
||||
* color-text-maxcontrast disabled state
|
||||
* color-main-text normal state
|
||||
* color-main-text active state
|
||||
* color-text-maxcontrast disabled state
|
||||
*/
|
||||
|
||||
input:not([type="range"]) {
|
||||
outline: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Default global values */
|
||||
|
|
@ -91,7 +91,7 @@ button:not(
|
|||
&:active {
|
||||
outline: none;
|
||||
background-color: var(--color-main-background);
|
||||
color: var(--color-text-light);
|
||||
color: var(--color-main-text);
|
||||
}
|
||||
}
|
||||
&:focus-visible {
|
||||
|
|
@ -153,13 +153,13 @@ div[contenteditable=false] {
|
|||
padding: 7px 6px;
|
||||
font-size: 13px;
|
||||
background-color: var(--color-main-background);
|
||||
color: var(--color-text-lighter);
|
||||
color: var(--color-text-maxcontrast);
|
||||
border: 1px solid var(--color-background-darker);
|
||||
outline: none;
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
background-color: var(--color-background-dark);
|
||||
color: var(--color-text-lighter);
|
||||
color: var(--color-text-maxcontrast);
|
||||
cursor: default;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
|
@ -169,6 +169,7 @@ input {
|
|||
&:not([type='radio']):not([type='checkbox']):not([type='range']):not([type='submit']):not([type='button']):not([type='reset']):not([type='color']):not([type='file']):not([type='image']) {
|
||||
-webkit-appearance: textfield;
|
||||
-moz-appearance: textfield;
|
||||
appearance: textfield;
|
||||
// force height for inline elements like inputs (not textarea, contenteditable...)
|
||||
height: $default-height;
|
||||
}
|
||||
|
|
@ -427,7 +428,7 @@ input {
|
|||
vertical-align: middle;
|
||||
border-radius: 50%;
|
||||
margin: 0 6px 3px 3px;
|
||||
border: 1px solid var(--color-text-lighter);
|
||||
border: 1px solid var(--color-text-maxcontrast);
|
||||
}
|
||||
&:not(:disabled):not(:checked) + label:hover:before,
|
||||
&:focus + label:before {
|
||||
|
|
@ -448,7 +449,7 @@ input {
|
|||
border-color: var(--color-primary-element);
|
||||
}
|
||||
&:disabled + label:before {
|
||||
border: 1px solid var(--color-text-lighter);
|
||||
border: 1px solid var(--color-text-maxcontrast);
|
||||
background-color: var(--color-text-maxcontrast) !important; /* override other status */
|
||||
}
|
||||
&:checked:disabled + label:before {
|
||||
|
|
@ -566,7 +567,7 @@ div.select2-drop {
|
|||
padding: 12px;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
color: var(--color-text-lighter);
|
||||
color: var(--color-text-maxcontrast);
|
||||
}
|
||||
.select2-result {
|
||||
&.select2-selected {
|
||||
|
|
@ -593,7 +594,7 @@ div.select2-container-multi {
|
|||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
background: var(--color-main-background);
|
||||
color: var(--color-text-lighter) !important;
|
||||
color: var(--color-text-maxcontrast) !important;
|
||||
box-sizing: content-box;
|
||||
border-radius: var(--border-radius-large);
|
||||
border: 2px solid var(--color-border-dark);
|
||||
|
|
@ -612,7 +613,7 @@ div.select2-container-multi {
|
|||
& {
|
||||
background-image: none;
|
||||
background-color: var(--color-main-background);
|
||||
color: var(--color-text-lighter);
|
||||
color: var(--color-text-maxcontrast);
|
||||
border: 1px solid var(--color-border-dark);
|
||||
}
|
||||
.select2-search-choice-close {
|
||||
|
|
@ -644,7 +645,7 @@ div.select2-container {
|
|||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
background: var(--color-main-background);
|
||||
color: var(--color-text-lighter) !important;
|
||||
color: var(--color-text-maxcontrast) !important;
|
||||
box-sizing: content-box;
|
||||
border-radius: var(--border-radius-large);
|
||||
border: 2px solid var(--color-border-dark);
|
||||
|
|
@ -701,7 +702,7 @@ div.select2-container {
|
|||
padding-left: 5px;
|
||||
background-image: none;
|
||||
background-color: var(--color-main-background);
|
||||
color: var(--color-text-lighter);
|
||||
color: var(--color-text-maxcontrast);
|
||||
border: 1px solid var(--color-border-dark);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
|
@ -718,7 +719,7 @@ div.select2-container {
|
|||
display: list-item;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
color: var(--color-text-lighter);
|
||||
color: var(--color-text-maxcontrast);
|
||||
a {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
Loading…
Reference in a new issue