diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-09 14:40:31 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-09 14:42:50 +0200 |
commit | 874de85d14392a5abbae1d6eca86358c7e758778 (patch) | |
tree | 260252fecd4987af0c578887280d675cfbd196bf /core/css | |
parent | a041833a95018ea85ec10c3574fb258802550b64 (diff) | |
download | nextcloud-server-874de85d14392a5abbae1d6eca86358c7e758778.tar.gz nextcloud-server-874de85d14392a5abbae1d6eca86358c7e758778.zip |
fix(styles): Guest layout should follow the new design
1. Adjust some places that used the old pill-style design
2. Make indention consistent using tabs
3. Remove duplicates styles for inputs (also included in server.css) that conflic with nextcloud-vue styles
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/css')
-rw-r--r-- | core/css/guest.scss | 61 |
1 files changed, 26 insertions, 35 deletions
diff --git a/core/css/guest.scss b/core/css/guest.scss index a7107b80254..4269a4b36bd 100644 --- a/core/css/guest.scss +++ b/core/css/guest.scss @@ -5,8 +5,6 @@ */ @import 'animations.scss'; -$guest-container-padding: 16px; - /* Default and reset */ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section { margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-size:100%; font-family:inherit; vertical-align:baseline; cursor:default; } html { height:100%; } @@ -33,6 +31,8 @@ body { Fallback to default gradient (should not happened, the background is always defined anyway) */ background-image: var(--image-background, linear-gradient(40deg, #0082c9 0%, #30b6ff 100%)); background-attachment: fixed; + background-size: cover; + background-position: center; min-height: 100%; /* fix sticky footer */ height: auto; overflow: auto; @@ -208,31 +208,13 @@ form #datadirField legend { } } - - -input, textarea, select, button, div[contenteditable=true] { - font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Cantarell, Ubuntu, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; -} -input, -input:not([type='range']), -input:not([type='text']), -input:not([type='password']), -a.button { - font-size: 20px; - margin: 5px; - padding: 5px; - outline: none; - border-radius: 3px; /* --border-radius */ - -webkit-appearance: none; -} - input:not([type='radio']), input:not([type='range']) { - border-width: 2px; + border-width: 2px; } input:not([type='range']):focus-visible { - box-shadow: none !important; + box-shadow: none !important; } input[type='submit'], @@ -245,12 +227,12 @@ select { display: inline-block; width: auto; min-width: 25px; - padding: 12px; + padding: calc(2 * var(--default-grid-baseline)); background-color: var(--color-main-background); font-weight: bold; - color: var(--color-text); + color: var(--color-main-text); border: none; - border-radius: 100px; /* --border-radius-pill */ + border-radius: var(--border-radius-element); cursor: pointer; } @@ -300,15 +282,23 @@ input::-moz-focus-inner { border: 0; } -input.primary:not(:disabled):hover, -input.primary:not(:disabled):focus, -button.primary:not(:disabled):hover, -button.primary:not(:disabled):focus, -a.primary:not(:disabled):hover, -a.primary:not(:disabled):focus { +input.primary { + background-color: var(--color-primary-element); color: var(--color-primary-element-text); } +input, +button, +a { + &.primary:not(:disabled) { + &:hover, + &:focus { + background-color: var(--color-primary-element-hover); + color: var(--color-primary-element-text); + } + } +} + /* Checkboxes - white only for login */ input[type='checkbox'].checkbox { position: absolute; @@ -682,7 +672,7 @@ p.info { transform-origin: center; } .primary .loading,.primary+.loading,.primary .loading-small,.primary+.loading-small,.primary .icon-loading,.primary+.icon-loading,.primary .icon-loading-dark,.primary+.icon-loading-dark,.primary .icon-loading-small,.primary+.icon-loading-small,.primary .icon-loading-small-dark,.primary+.icon-loading-small-dark { - filter: var(--primary-invert-if-bright) + filter: var(--primary-invert-if-bright) } .loading:after, .loading-small:after, .icon-loading:after, .icon-loading-dark:after, .icon-loading-small:after, .icon-loading-small-dark:after { border: 2px solid rgba(150, 150, 150, 0.5); @@ -738,7 +728,7 @@ footer { } &.guest-box { - padding: 6px 24px; + padding: var(--default-grid-baseline) calc(3 * var(--default-grid-baseline)); margin-bottom: 1rem; .info { @@ -804,8 +794,8 @@ a.legal { color: var(--color-main-text); background-color: var(--color-main-background-blur); - padding: $guest-container-padding; - border-radius: var(--border-radius-rounded); + padding: calc(3 * var(--default-grid-baseline)); + border-radius: var(--border-radius-container); box-shadow: 0 0 10px var(--color-box-shadow); display: inline-block; -webkit-backdrop-filter: var(--filter-background-blur); @@ -816,6 +806,7 @@ a.legal { &.wide { display: block; text-align: left; + border-radius: var(--border-radius-container-large); } fieldset { |