소스 검색

added ability to use img logo instead of text logo

REJack 5 년 전
부모
커밋
737f1c4ae5
5개의 변경된 파일43개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      build/less/header.less
  2. 13 0
      dist/css/AdminLTE.css
  3. 0 0
      dist/css/AdminLTE.min.css
  4. 13 0
      dist/css/alt/AdminLTE-without-plugins.css
  5. 0 0
      dist/css/alt/AdminLTE-without-plugins.min.css

+ 17 - 0
build/less/header.less

@@ -127,14 +127,31 @@
     padding: 0 15px;
     font-weight: 300;
     overflow: hidden;
+
+    img {
+      padding: 4px;
+      object-fit: contain;
+      margin: 0 auto;
+    }
+
     //Add support to sidebar mini by allowing the user to create
     //2 logo designs. mini and lg
     .logo-lg {
       //should be visibile when sidebar isn't collapsed
       display: block;
+
+      img {
+        max-width: 200px;
+        max-height: 50px;
+      }
     }
     .logo-mini {
       display: none;
+
+      img {
+        max-width: 50px;
+        max-height: 50px;
+      }
     }
   }
   //Navbar Brand. Alternative logo with layout-top-nav

+ 13 - 0
dist/css/AdminLTE.css

@@ -308,12 +308,25 @@ a:focus {
   font-weight: 300;
   overflow: hidden;
 }
+.main-header .logo img {
+  padding: 4px;
+  object-fit: contain;
+  margin: 0 auto;
+}
 .main-header .logo .logo-lg {
   display: block;
 }
+.main-header .logo .logo-lg img {
+  max-width: 200px;
+  max-height: 50px;
+}
 .main-header .logo .logo-mini {
   display: none;
 }
+.main-header .logo .logo-mini img {
+  max-width: 50px;
+  max-height: 50px;
+}
 .main-header .navbar-brand {
   color: #fff;
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/css/AdminLTE.min.css


+ 13 - 0
dist/css/alt/AdminLTE-without-plugins.css

@@ -309,12 +309,25 @@ a:focus {
   font-weight: 300;
   overflow: hidden;
 }
+.main-header .logo img {
+  padding: 4px;
+  object-fit: contain;
+  margin: 0 auto;
+}
 .main-header .logo .logo-lg {
   display: block;
 }
+.main-header .logo .logo-lg img {
+  max-width: 200px;
+  max-height: 50px;
+}
 .main-header .logo .logo-mini {
   display: none;
 }
+.main-header .logo .logo-mini img {
+  max-width: 50px;
+  max-height: 50px;
+}
 .main-header .navbar-brand {
   color: #fff;
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/css/alt/AdminLTE-without-plugins.min.css


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.