Kaynağa Gözat

Remove icon compact class

Denis K 9 yıl önce
ebeveyn
işleme
4f24659df5

+ 3 - 3
jet/static/jet/css/_sidebar.scss

@@ -110,10 +110,10 @@
             vertical-align: middle;
             margin-right: 6px;
             color: $sidebar-icon-color;
+          }
 
-            &.compact {
-              font-size: 16px;
-            }
+          &.compact &-icon {
+            font-size: 16px;
           }
 
           &-link {

+ 3 - 3
jet/templates/admin/base.html

@@ -144,14 +144,14 @@
                                 {% if user.is_active and user.is_staff %}
                                     <li class="sidebar-menu-item-list-item">
                                         <a href="{% url 'admin:index' %}" class="sidebar-menu-item-list-item-link">
-                                            <span class="sidebar-menu-item-list-item-icon compact icon-data"></span> {% trans 'Home' %}
+                                            <span class="sidebar-menu-item-list-item-icon icon-data"></span> {% trans 'Home' %}
                                         </a>
                                     </li>
                                 {% endif %}
                                 {% if site_url %}
                                     <li class="sidebar-menu-item-list-item">
                                         <a href="{{ site_url }}" class="sidebar-menu-item-list-item-link">
-                                            <span class="sidebar-menu-item-list-item-icon compact icon-open-external"></span> {% trans 'View site' %}
+                                            <span class="sidebar-menu-item-list-item-icon icon-open-external"></span> {% trans 'View site' %}
                                         </a>
                                     </li>
                                 {% endif %}
@@ -159,7 +159,7 @@
                                 {% if docsroot %}
                                     <li class="sidebar-menu-item-list-item">
                                         <a href="{{ docsroot }}" class="sidebar-menu-item-list-item-link">
-                                            <span class="sidebar-menu-item-list-item-icon compact icon-book"></span> {% trans 'Documentation' %}
+                                            <span class="sidebar-menu-item-list-item-icon icon-book"></span> {% trans 'Documentation' %}
                                         </a>
                                     </li>
                                 {% endif %}