summaryrefslogtreecommitdiffstats
path: root/core/css/styles.scss
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-23 10:04:03 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-10-23 10:04:03 +0200
commitc039bd2bd115afd23b4f24578f62b50fe87d48b4 (patch)
tree0bd63ca4922c6b290d6d1dfda1db17052e241dec /core/css/styles.scss
parentbf6a1650cefab86c1199a550eb32aedf6ea93362 (diff)
downloadnextcloud-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.scss48
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);
}
}