diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-23 10:04:03 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-10-23 10:04:03 +0200 |
commit | c039bd2bd115afd23b4f24578f62b50fe87d48b4 (patch) | |
tree | 0bd63ca4922c6b290d6d1dfda1db17052e241dec /core/css/styles.scss | |
parent | bf6a1650cefab86c1199a550eb32aedf6ea93362 (diff) | |
download | nextcloud-server-c039bd2bd115afd23b4f24578f62b50fe87d48b4.tar.gz nextcloud-server-c039bd2bd115afd23b4f24578f62b50fe87d48b4.zip |
Filepicker grid
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/css/styles.scss')
-rw-r--r-- | core/css/styles.scss | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/core/css/styles.scss b/core/css/styles.scss index 612fd779fcc..b5968015d6f 100644 --- a/core/css/styles.scss +++ b/core/css/styles.scss @@ -697,7 +697,6 @@ code { } /* ---- DIALOGS ---- */ - #oc-dialog-filepicker-content { .dirtree { width: 96%; @@ -771,9 +770,54 @@ code { .filesize { text-align: right; } + &.view-grid { + $grid-size: 120px; + $grid-pad: 10px; + $name-height: 20px; + display: flex; + flex-direction: column; + + tbody { + display: grid; + grid-template-columns: repeat(auto-fill, $grid-size); + justify-content: space-around; + row-gap: 15px; + margin: 15px 0; + + tr { + display: block; + position: relative; + border-radius: var(--border-radius); + padding: $grid-pad; + display: flex; + flex-direction: column; + width: $grid-size - 2 * $grid-pad; + + td { + border: none; + padding: 0; + + &.filename { + padding: #{$grid-size - 2 * $grid-pad} 0 0 0; + background-position: center top; + background-size: contain; + line-height: $name-height; + height: $name-height; + } + &.filesize { + line-height: $name-height; + text-align: left; + } + &.date { + display: none; + } + } + } + } + } } .filepicker_element_selected { - background-color: lightblue; + background-color: var(--color-background-darker); } } |