diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-20 16:55:00 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-02-21 18:26:19 +0100 |
commit | fdf42349223fdbf820d1f774811f025f6c74c987 (patch) | |
tree | aab5194cc6791ced9db8e2664c022893c53b2076 /core | |
parent | c7ad3bbbbb72121788cce2bffb5977e0048e310b (diff) | |
download | nextcloud-server-fdf42349223fdbf820d1f774811f025f6c74c987.tar.gz nextcloud-server-fdf42349223fdbf820d1f774811f025f6c74c987.zip |
fix(styles): Replace deprecated CSS variables
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/css/inputs.scss | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/core/css/inputs.scss b/core/css/inputs.scss index 7c0733582d5..e23fc1e0e25 100644 --- a/core/css/inputs.scss +++ b/core/css/inputs.scss @@ -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; |