diff options
| author | imperatormk <darko.simonovski@hotmail.com> | 2020-03-25 00:29:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 09:29:08 +1000 |
| commit | 363f62ae5f1255ac2580bdf32ae7b98b78cee5a3 (patch) | |
| tree | 8c6ea1928736e39376f5c9ffa45464102a798237 /static/upload.css | |
| parent | 5803bcb6fc5179c26c8b908eeb48fe923e543550 (diff) | |
Reworked upload box (#2)
Diffstat (limited to 'static/upload.css')
| -rw-r--r-- | static/upload.css | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/static/upload.css b/static/upload.css new file mode 100644 index 0000000..c2ded20 --- /dev/null +++ b/static/upload.css @@ -0,0 +1,158 @@ +.upload-container {
+ display: inline-block;
+ max-width: 100%;
+ margin-top: 50px;
+}
+
+.upload-wrapper {
+ padding: 20px;
+ background-color: #282a2e;
+ border: 1px solid #1e1e1e;
+ border-radius: 20px;
+ font-family: 'Trebuchet MS', Arial, sans-serif;
+}
+
+.upload-form {
+ border: 5px dashed #676867;
+ border-radius: 10px;
+ cursor: pointer;
+}
+
+.upload-box {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ width: 100%;
+ justify-content: center;
+ align-items: center;
+ min-width: 300px;
+ min-height: 300px;
+}
+
+.upload-box span {
+ color: #c5c8c6;
+ font-weight: bold;
+}
+
+.upload-details {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ padding: 0 0 20px 0;
+}
+
+.upload-details > * {
+ margin-top: 20px;
+}
+
+.upload-details span {
+ color: #c5c8c6;
+ font-weight: bold;
+}
+
+.upload-file {
+ display: none;
+ width: 100%;
+ padding: 0 20px;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.upload-message {
+ white-space: normal;
+ padding: 0 20px;
+ word-wrap: break-word;
+ max-width: 300px;
+}
+
+.upload-message.error {
+ color: #e82e57;
+}
+
+.upload-button-wrapper {
+ display: none;
+ width: 100%;
+ padding: 0 20px;
+}
+
+.upload-button {
+ border: 0;
+ box-shadow: none;
+ border-radius: 0px;
+
+ width: 100%;
+ padding: 15px;
+ background: #191919 !important;
+ font-family: 'Trebuchet MS', Arial, sans-serif;
+ color: #c5c8c6;
+ border-radius: 10px;
+ cursor: pointer;
+}
+
+.upload-button.transparent {
+ background: transparent !important;
+ padding: 10px;
+}
+
+.upload-progress-container {
+ display: none;
+ width: 100%;
+ padding: 0 20px;
+}
+
+.upload-progress {
+ height: 30px;
+ background: linear-gradient(45deg, #c7c7c7, #ae81ff);
+ border-radius: 5px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.upload-progress-label {
+ color: #282a2e !important;
+}
+
+/* SPINNER */
+
+.loader,
+.loader:after {
+ border-radius: 50%;
+ width: 3em;
+ height: 3em;
+}
+.loader {
+ font-size: 10px;
+ position: relative;
+ text-indent: -9999em;
+ border-top: 0.5em solid rgba(255, 255, 255, 0.2);
+ border-right: 0.5em solid rgba(255, 255, 255, 0.2);
+ border-bottom: 0.5em solid rgba(255, 255, 255, 0.2);
+ border-left: 0.5em solid #ffffff;
+ -webkit-transform: translateZ(0);
+ -ms-transform: translateZ(0);
+ transform: translateZ(0);
+ -webkit-animation: load8 1.1s infinite linear;
+ animation: load8 1.1s infinite linear;
+}
+@-webkit-keyframes load8 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+@keyframes load8 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
\ No newline at end of file |
