diff --git a/_assets/src/App.vue b/_assets/src/App.vue index 6b560621..84121ede 100644 --- a/_assets/src/App.vue +++ b/_assets/src/App.vue @@ -14,9 +14,9 @@ - - + + folder My Files @@ -36,7 +36,9 @@ Logout + + @@ -47,8 +49,8 @@ + - @@ -57,9 +59,10 @@ diff --git a/_assets/src/components/Listing.vue b/_assets/src/components/Listing.vue index db62d16f..1e674379 100644 --- a/_assets/src/components/Listing.vue +++ b/_assets/src/components/Listing.vue @@ -58,14 +58,7 @@ - - - - - add - - - + Multiple selection enabled @@ -95,34 +88,6 @@ export default { document.addEventListener('drop', this.drop, false) }, - beforeUpdate: function () { - /* - listing.redefineDownloadURLs() - - let selectedNumber = selectedItems.length, - fileAction = document.getElementById('file-only') - - if (selectedNumber) { - fileAction.classList.remove('disabled') - - if (selectedNumber > 1) { - buttons.rename.classList.add('disabled') - buttons.info.classList.add('disabled') - } - - if (selectedNumber == 1) { - buttons.info.classList.remove('disabled') - buttons.rename.classList.remove('disabled') - } - - return false - } - - buttons.info.classList.remove('disabled') - fileAction.classList.add('disabled') - */ - console.log('before upding') - }, methods: { base64: function (name) { return window.btoa(name) diff --git a/_assets/src/css/base.css b/_assets/src/css/base.css new file mode 100644 index 00000000..57a8356a --- /dev/null +++ b/_assets/src/css/base.css @@ -0,0 +1,126 @@ +body { + font-family: 'Roboto', sans-serif; + padding-top: 4em; + background-color: #f8f8f8; +} + +* { + box-sizing: border-box; +} + +*, +*:hover, +*:active, +*:focus { + outline: 0 +} + +a { + text-decoration: none; +} + +img { + max-width: 100%; +} + +audio, +video { + width: 100%; +} + +pre { + padding: 1em; + border: 1px solid #e6e6e6; + border-radius: 0.5em; + background-color: #f5f5f5; + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word; +} + +button { + border: 0; + padding: .5em 1em; + margin-left: .5em; + border-radius: .1em; + cursor: pointer; + background: #2196f3; + color: #fff; + border: 1px solid rgba(0, 0, 0, 0.05); + box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); + transition: .1s ease all; +} + +button:hover { + background-color: #1E88E5; +} + +.mobile-only { + display: none !important; +} + +.container { + width: 95%; + max-width: 960px; + margin: 1em auto 0; +} + +i.spin { + animation: 1s spin linear infinite; +} + +#app { + transition: .2s ease padding; +} + +#app.multiple { + padding-bottom: 4em; +} + +nav { + width: 16em; + position: fixed; + top: 4em; + left: 0; +} + +nav .action { + width: 100%; + display: block; + border-radius: 0; + font-size: 1.1em; + padding: .5em; +} + +nav>div { + border-top: 1px solid rgba(0, 0, 0, 0.05); + border-bottom: 1px solid rgba(0, 0, 0, 0.05); +} + +nav .action>* { + vertical-align: middle; +} + +main { + min-height: 1em; + margin: 0 1em 0 auto; + width: calc(100% - 19em); +} + +@media (max-width: 1024px) { + nav { + height: 100%; + background: #fff; + z-index: 9999; + border-top: 1px solid rgba(0, 0, 0, 0.075); + border-right: 1px solid rgba(0, 0, 0, 0.075); + box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1); + } + main { + width: 100%; + margin: 0; + padding: 0 1em; + } +} \ No newline at end of file diff --git a/_assets/src/css/listing.css b/_assets/src/css/listing.css index 98f0dbc5..b15c306f 100644 --- a/_assets/src/css/listing.css +++ b/_assets/src/css/listing.css @@ -165,9 +165,9 @@ display: flex !important; background: #f8f8f8; position: fixed; - width: 78%; + width: calc(100% - 19em); top: 4em; - left: 20%; + right: 1em; z-index: 999; padding: .85em; border: 0; @@ -182,16 +182,6 @@ margin-right: 3em; } -#listing.list .header { - display: flex; - background: #fafafa; - position: fixed; - width: 100%; - top: 7.8em; - left: 0; - z-index: 999; -} - #listing.list .header a { color: inherit; } @@ -249,3 +239,11 @@ #listing #multiple-selection i { color: #fff; } + +@media (max-width: 1024px) { + #listing.list .item.header { + width: calc(100% - 2em); + right: 1em; + left: 1em; + } +} \ No newline at end of file diff --git a/_assets/src/css/styles.css b/_assets/src/css/styles.css index 9a5b4062..6722a6a2 100644 --- a/_assets/src/css/styles.css +++ b/_assets/src/css/styles.css @@ -1,90 +1,10 @@ @import "./fonts.css"; @import "./normalize.css"; +@import "./base.css"; @import "./header.css"; @import "./prompts.css"; @import "./listing.css"; -body { - font-family: 'Roboto', sans-serif; - padding-top: 4em; - background-color: #f8f8f8; -} - -* { - box-sizing: border-box; -} - -*, -*:hover, -*:active, -*:focus { - outline: 0 -} - -a { - text-decoration: none; -} - -img { - max-width: 100%; -} - -audio, -video { - width: 100%; -} - -pre { - padding: 1em; - border: 1px solid #e6e6e6; - border-radius: 0.5em; - background-color: #f5f5f5; - white-space: pre-wrap; - white-space: -moz-pre-wrap; - white-space: -pre-wrap; - white-space: -o-pre-wrap; - word-wrap: break-word; -} - -button { - border: 0; - padding: .5em 1em; - margin-left: .5em; - border-radius: .1em; - cursor: pointer; - background: #2196f3; - color: #fff; - border: 1px solid rgba(0, 0, 0, 0.05); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); - transition: .1s ease all; -} - -button:hover { - background-color: #1E88E5; -} - -.mobile-only { - display: none !important; -} - -.container { - width: 95%; - max-width: 960px; - margin: 1em auto 0; -} - -i.spin { - animation: 1s spin linear infinite; -} - - -#app { - transition: .2s ease padding; -} - -#app.multiple { - padding-bottom: 4em; -} /* * * * * * * * * * * * * * * * * EDITOR * @@ -261,6 +181,7 @@ fieldset h3, box-shadow: 0 0 0 0; vertical-align: middle; text-align: left; + position: relative; } .action.disabled { @@ -301,45 +222,6 @@ fieldset h3, } -/* * * * * * * * * * * * * * * * - * NEW FILE/DIR * - * * * * * * * * * * * * * * * */ - -.floating { - position: fixed; - bottom: 1em; - right: 1em; -} - -.floating .action { - background-color: #2196f3 !important; - color: #fff; - box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); -} - -#newdir { - position: fixed; - bottom: 1.3em; - right: 5em; - transition: .2s ease all; - opacity: 0; - border: 0; - box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); - padding: .5em; - width: 22em; - border-radius: .2em; -} - -#newdir.enabled { - opacity: 1; -} - - -#logout { - border-radius: 0; - margin-left: auto; - padding: .15em; -} #click-overlay { display: none; @@ -355,37 +237,25 @@ fieldset h3, display: block; } +.action .counter { + display: block; + position: absolute; + bottom: 0; + right: 0; + background: #2196f3; + color: #fff; + border-radius: 50%; + font-size: .75em; + width: 1.5em; + height: 1.5em; + text-align: center; + line-height: 1.25em; + border: 2px solid white; +} + /* SIDEBAR */ -#sidebar { - position: fixed; - left: 0; - width: 20%; -} - -#sidebar .action { - width: 100%; - display: block; - border-radius: 0; - font-size: 1.1em; - padding: .5em; -} - -#sidebar > div { - border-top: 1px solid rgba(0, 0, 0, 0.05); - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -#sidebar .action>* { - vertical-align: middle; -} - -main { - width: 78%; - margin-left: 20%; - min-height: 1em; -} /* * * * * * * * * * * * * * * *
Multiple selection enabled