Kaynağa Gözat

Fixed sidebar-mini image issue

Abdullah Almsaeed 10 yıl önce
ebeveyn
işleme
5a2dd478fb

+ 1 - 6
build/less/sidebar-mini.less

@@ -29,12 +29,7 @@
         .user-panel {
           > .info {
             display: none;
-          }
-          //Make the image fit
-          img {
-            max-width: 100%;
-            height: auto;
-          }
+          }          
         }
       }            
 

+ 3 - 3
build/less/sidebar.less

@@ -48,9 +48,9 @@
   padding: 10px;
   .clearfix();
   > .image > img {
-    width: 45px;
-    height: 45px;
-    max-width: 100%!important;
+    width: 100%;
+    max-width: 45px;
+    height: auto;    
   }
   > .info {
     font-weight: 600;

+ 3 - 7
dist/css/AdminLTE.css

@@ -453,9 +453,9 @@ a:focus {
   clear: both;
 }
 .user-panel > .image > img {
-  width: 45px;
-  height: 45px;
-  max-width: 100%!important;
+  width: 100%;
+  max-width: 45px;
+  height: auto;
 }
 .user-panel > .info {
   font-weight: 600;
@@ -573,10 +573,6 @@ a:focus {
   .sidebar-mini.sidebar-collapse .main-sidebar .user-panel > .info {
     display: none;
   }
-  .sidebar-mini.sidebar-collapse .main-sidebar .user-panel img {
-    max-width: 100%;
-    height: auto;
-  }
   .sidebar-mini.sidebar-collapse .sidebar-menu > li {
     position: relative;
   }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
dist/css/AdminLTE.min.css