Jelajahi Sumber

Styles for FileCard and Pause/Resume

Artur Paikin 8 tahun lalu
induk
melakukan
a9eca02741
3 mengubah file dengan 89 tambahan dan 23 penghapusan
  1. 0 0
      src/scss/_animation.scss
  2. 88 23
      src/scss/_dashboard.scss
  3. 1 0
      src/scss/_variables.scss

+ 0 - 0
_animation.scss → src/scss/_animation.scss


+ 88 - 23
src/scss/_dashboard.scss

@@ -65,23 +65,23 @@
 .UppyDashboardTabs {
 .UppyDashboardTabs {
   height: 22%;
   height: 22%;
   min-height: 100px;
   min-height: 100px;
-  padding: 15px 0;
+  padding: 10px 0;
   margin: 0 30px 10px 30px;
   margin: 0 30px 10px 30px;
   border-bottom: 1px solid lighten($color-gray, 30%);
   border-bottom: 1px solid lighten($color-gray, 30%);
 }
 }
 
 
 .UppyDashboardTabs-title {
 .UppyDashboardTabs-title {
   width: 100%;
   width: 100%;
-  font-size: 13px;
+  font-size: 15px;
   line-height: 1.6;
   line-height: 1.6;
-  text-transform: uppercase;
-  letter-spacing: 2px;
-  font-weight: 500;
+  // text-transform: uppercase;
+  // letter-spacing: 2px;
+  font-weight: 400;
   text-align: center;
   text-align: center;
   margin: 0;
   margin: 0;
   padding: 0;
   padding: 0;
   text-align: center;
   text-align: center;
-  margin-bottom: 10px;
+  margin-bottom: 12px;
   color: $color-asphalt-gray;
   color: $color-asphalt-gray;
 }
 }
 
 
@@ -431,8 +431,14 @@
   color: $color-white;
   color: $color-white;
   text-align: center;
   text-align: center;
   width: 120px;
   width: 120px;
+  display: none;
 }
 }
 
 
+  .UppyDashboardItem.is-inprogress .UppyDashboardItem-progress,
+  .UppyDashboardItem.is-complete .UppyDashboardItem-progress {
+    display: block;
+  }
+
 .UppyDashboardItem-progressBtn {
 .UppyDashboardItem-progressBtn {
   @include reset-button;
   @include reset-button;
   width: 60px;
   width: 60px;
@@ -446,7 +452,7 @@
   line-height: 1;
   line-height: 1;
   font-weight: 500;
   font-weight: 500;
   height: 10px;
   height: 10px;
-  display: none;
+  // display: none;
   position: absolute;
   position: absolute;
   bottom: -10px;
   bottom: -10px;
   left: 0;
   left: 0;
@@ -454,17 +460,13 @@
   text-shadow: 0 1px 0 rgba($color-black, 0.3);
   text-shadow: 0 1px 0 rgba($color-black, 0.3);
 }
 }
 
 
-  .UppyDashboardItem.is-inprogress .UppyDashboardItem-progressInfo {
-    display: block;
-  }
-
 .UppyIcon-progressCircle {
 .UppyIcon-progressCircle {
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
 }
 }
 
 
 .UppyIcon-progressCircle .bg {
 .UppyIcon-progressCircle .bg {
-  stroke: $color-asphalt-gray;
+  stroke: rgba($color-white, 0.4);
   opacity: 0;
   opacity: 0;
   transition: all 0.2s;
   transition: all 0.2s;
 }
 }
@@ -548,13 +550,15 @@
 
 
 .UppyButton--circular {
 .UppyButton--circular {
   @include reset-button;
   @include reset-button;
-  width: 60px;
-  height: 60px;
   box-shadow: 1px 2px 4px 0px rgba($color-black, 0.2);
   box-shadow: 1px 2px 4px 0px rgba($color-black, 0.2);
   border-radius: 50%;
   border-radius: 50%;
+  cursor: pointer;
+  transition: all 0.3s;
+}
+
+.UppyButton--blue {
   color: $color-white;
   color: $color-white;
   background-color: $color-cornflower-blue;
   background-color: $color-cornflower-blue;
-  cursor: pointer;
 
 
   &:hover,
   &:hover,
   &:focus {
   &:focus {
@@ -562,12 +566,55 @@
   }
   }
 }
 }
 
 
-.UppyDashboard-upload {
+.UppyButton--yellow {
+  color: $color-white;
+  background-color: $color-yellow;
+
+  &:hover,
+  &:focus {
+    background-color: darken($color-yellow, 10%);
+  }
+}
+
+.UppyButton--green {
+  color: $color-white;
+  background-color: $color-green;
+
+  &:hover,
+  &:focus {
+    background-color: darken($color-green, 10%);
+  }
+}
+
+.UppyButton--sizeM {
+  width: 60px;
+  height: 60px;
+}
+
+.UppyButton--sizeS {
+  width: 45px;
+  height: 45px;
+}
+
+.UppyDashboard-actions {
+  width: 60px;
+  text-align: center;
   position: absolute;
   position: absolute;
-  bottom: 35px;
+  bottom: 25px;
   right: 25px;
   right: 25px;
-  transition: all 0.3s;
-  color: $color-white;
+}
+
+.UppyDashboard-actions button {
+  margin-bottom: 15px;
+}
+
+.UppyDashboard-pauseResume .UppyIcon {
+  width: 100%;
+  height: 100%;
+}
+
+.UppyDashboard-upload {
+  position: relative;
 }
 }
 
 
 .UppyDashboard-upload .UppyIcon {
 .UppyDashboard-upload .UppyIcon {
@@ -636,18 +683,36 @@
   padding: 30px 20px 20px 20px;
   padding: 30px 20px 20px 20px;
 }
 }
 
 
+.UppyDashboardFileCard-fieldset {
+  font-size: 0;
+  border: 0;
+  padding: 0;
+  margin: 0;
+  margin-bottom: 15px;
+  max-width: 450px;
+  margin: auto;
+  margin-bottom: 15px;
+}
+
+.UppyDashboardFileCard-label {
+  display: inline-block;
+  vertical-align: middle;
+  width: 25%;
+  font-size: 13px;
+  color: $color-asphalt-gray;
+}
+
 .UppyDashboardFileCard-input {
 .UppyDashboardFileCard-input {
-  display: block;
+  display: inline-block;
+  vertical-align: middle;
+  width: 75%;
   border: 0;
   border: 0;
   border-bottom: 1px solid rgba($color-asphalt-gray, 0.3);
   border-bottom: 1px solid rgba($color-asphalt-gray, 0.3);
   outline: none;
   outline: none;
   font-size: 15px;
   font-size: 15px;
   line-height: 1.8;
   line-height: 1.8;
   padding-left: 5px;
   padding-left: 5px;
-  width: 100%;
-  max-width: 300px;
   margin: auto;
   margin: auto;
-  margin-bottom: 15px;
 }
 }
 
 
 .UppyDashboardFileCard-input:focus {
 .UppyDashboardFileCard-input:focus {

+ 1 - 0
src/scss/_variables.scss

@@ -6,6 +6,7 @@ $color-gray: #939393;
 $color-pink: #e02177;
 $color-pink: #e02177;
 $color-green: #7AC824;
 $color-green: #7AC824;
 $color-orange: #F6A623;
 $color-orange: #F6A623;
+$color-yellow: #FFD600;
 $color-white: #fff;
 $color-white: #fff;
 $color-cornflower-blue: #4A90E2;
 $color-cornflower-blue: #4A90E2;
 $color-asphalt-gray: #525252;
 $color-asphalt-gray: #525252;