Selaa lähdekoodia

Fix #655: Include sass styling configuration

Kartik Visweswaran 9 vuotta sitten
vanhempi
commit
1a6d67ff83
3 muutettua tiedostoa jossa 8 lisäystä ja 26 poistoa
  1. 1 0
      CHANGE.md
  2. 6 15
      css/fileinput.css
  3. 1 11
      sass/fileinput.scss

+ 1 - 0
CHANGE.md

@@ -67,6 +67,7 @@ Change Log: `bootstrap-fileinput`
 18. (enh #647): Display file size in previews and templates.
 19. Enhancements to file preview icons (`other` template).
 20. (enh #654): Update Spanish Translations.
+21. (enh #655): Include sass styling configuration.
 
 ## version 4.3.1
 

+ 6 - 15
css/fileinput.css

@@ -132,26 +132,16 @@
 }
 
 .file-preview-other {
-    left:0;
-    top:0;
-    right:0;
-    bottom:0;
-    margin:auto;
+    left: 0;
+    top: 0;
+    right: 0;
+    bottom: 0;
+    margin: auto;
     text-align: center;
     vertical-align: middle;
     padding: 10px;
 }
 
-/*
-.file-preview-other {
-    display: table-cell;
-    text-align: center;
-    vertical-align: middle;
-    border: 2px solid #999;
-    border-radius: 30px;
-}
-*/
-
 .file-preview-other:hover {
     opacity: 0.8;
 }
@@ -164,6 +154,7 @@
     font-size: 4.8em;
 }
 
+/* noinspection CssOverwrittenProperties */
 .file-zoom-dialog .file-other-icon {
     font-size: 8em;
     font-size: 55vmin;

+ 1 - 11
sass/fileinput.scss

@@ -8,7 +8,6 @@
  * Licensed under the BSD 3-Clause
  * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
  */
-
 $image-path: "'../img" !default;
 $preview-size: 160px !default;
 
@@ -146,16 +145,6 @@ $preview-size: 160px !default;
   }
 }
 
-/*
-.file-preview-other {
-    display: table-cell;
-    text-align: center;
-    vertical-align: middle;
-    border: 2px solid #999;
-    border-radius: 30px;
-}
-*/
-
 .file-actions, .file-other-error {
   text-align: left;
 }
@@ -164,6 +153,7 @@ $preview-size: 160px !default;
   font-size: 4.8em;
 }
 
+/* noinspection CssOverwrittenProperties */
 .file-zoom-dialog .file-other-icon {
   font-size: 8em;
   font-size: 55vmin;