diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-01-24 18:55:58 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-02-21 16:22:24 +0100 |
commit | 4b88ac4d2ab808a8942ebba34d8b3573399faa2c (patch) | |
tree | 1946f37d14ac50b9fe23a9e341c391841e02eb66 /apps/accessibility/css | |
parent | 6afc5fbe9e3fb71cfd63a04551c5fbef336c2c25 (diff) | |
download | nextcloud-server-4b88ac4d2ab808a8942ebba34d8b3573399faa2c.tar.gz nextcloud-server-4b88ac4d2ab808a8942ebba34d8b3573399faa2c.zip |
Accessibility: Simplify design, more obvious selectability
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps/accessibility/css')
-rw-r--r-- | apps/accessibility/css/style.scss | 72 |
1 files changed, 31 insertions, 41 deletions
diff --git a/apps/accessibility/css/style.scss b/apps/accessibility/css/style.scss index 5c262605f06..dc304a8f674 100644 --- a/apps/accessibility/css/style.scss +++ b/apps/accessibility/css/style.scss @@ -1,59 +1,49 @@ +#accessibility { + max-width: 800px; +} + +#accessibility a { + border-bottom: 1px dotted; + + &:hover, + &:focus { + border-bottom-style: solid; + } +} + .preview-list { display: flex; - flex-wrap: wrap; + flex-direction: column; } + .preview { display: flex; - flex-direction: column; - min-width: 250px; - max-width: 400px; - flex: 1 1 300px; - border: 1px solid var(--color-border); - padding: 10px; - border-radius: var(--border-radius); - transition: all 200ms ease-in-out; - filter: drop-shadow(0 1px 2px var(--color-box-shadow)); - background-color: var(--color-main-background); - opacity: 0.9; - margin: 10px; + justify-content: flex-start; + margin: 1em; + margin-left: 0; position: relative; + &, * { - cursor: pointer; user-select: none; } - &:hover, - &:focus, - &.selected { - filter: drop-shadow(0 1px 4px var(--color-box-shadow)); - opacity: 1; - } + .preview-image { - height: 200px; + flex-basis: 200px; + flex-shrink: 0; + margin-right: 1em; background-position: top left; background-size: cover; background-repeat: no-repeat; + border-radius: var(--border-radius); } - h3 { + + .preview-description { display: flex; - justify-content: space-between; - line-height: 1em; - align-items: center; - } - p { - text-align: justify; - } - .icon-checkmark-color { - transition: all 100ms ease-in-out; - border-radius: 1em; - padding: 4px 5px 4px 20px; - background-position: 4px center; - opacity: 0; - visibility: hidden; - } - &.selected .icon-checkmark-color { - opacity: 1; - visibility: visible; - box-shadow: 0 0 0 1px var(--color-success); + flex-direction: column; + + label { + padding: 12px 0; + } } } |