From cb1c466ed1aa4239b2dd459c1f9743a0440244b5 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Tue, 23 Nov 2021 10:34:30 +0300 Subject: [PATCH] use flex to arrange folder cards --- jsconfig.json | 0 src/assets/css/global.css | 2 +- src/components/FolderView/FolderList.vue | 52 ++++++++++++++---------- 3 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 jsconfig.json diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/css/global.css b/src/assets/css/global.css index 9836bc6..13009e8 100644 --- a/src/assets/css/global.css +++ b/src/assets/css/global.css @@ -54,7 +54,7 @@ a { position: absolute; width: 100vw; height: 100vh; - background-color: rgba(255, 0, 0, 0.274); + background-color: rgba(27, 27, 27, 0.548); background-image: url(../images/dark-bg.jpg); z-index: -1; } diff --git a/src/components/FolderView/FolderList.vue b/src/components/FolderView/FolderList.vue index c3b4740..dffc473 100644 --- a/src/components/FolderView/FolderList.vue +++ b/src/components/FolderView/FolderList.vue @@ -1,11 +1,13 @@ @@ -25,27 +27,35 @@ export default { .f-container { margin-bottom: 20em; } -.f-container h3 { + +#f-items { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: flex-start; + border-top: 1px solid var(--seperator); + margin-top: 2em; +} +.f-container p { text-transform: uppercase; font-weight: normal; color: rgba(255, 255, 255, 0.438); margin-bottom: 0em; } + .f-container .f-item { - float: left; - width: 9em; - height: 8em; - /* background-color: #9d020781; */ + width: 11em; + height: 5em; display: flex; justify-content: center; + align-items: center; position: relative; background-image: url(../../assets/icons/folder.svg); background-repeat: no-repeat; - background-position: center; - background-size: 30%; - margin: 2em 2em 0em 0; - padding: 1em; - /* border: .1em solid var(--seperator); */ + background-position: 1em; + background-size: 10% 100%; + margin-top: 1em; + margin-right: 1em; background-color: rgba(80, 80, 80, 0.247); } @@ -54,16 +64,14 @@ export default { } .f-container .f-item-text { - width: calc(100% - 10%); - line-height-step: 2; position: absolute; - bottom: 0.5em; - text-align: center; + left: 3em; + text-align: left; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; - -webkit-line-clamp: 2; - line-clamp: 2; + -webkit-line-clamp: 1; + line-clamp: 1; -webkit-box-orient: vertical; } \ No newline at end of file