1. salvator
  2. django-admintools-bootstrap

Commits

salvator  committed 3eae1fe

#11 white icons for menu

  • Participants
  • Parent commits 1c81236
  • Branches default

Comments (0)

Files changed (6)

File admintools_bootstrap/static/admintools_bootstrap/lib/icons/ui-icons_ffffff_256x240.png

Added
New image

File admintools_bootstrap/static/admintools_bootstrap/lib/style.less

View file
 	.ui-icon {
 		float: left;
 		margin: 0 8px 0 0px;
+		width: 16px; height: 16px; background-image: url(icons/ui-icons_ffffff_256x240.png); 
 	}
 }
+

File admintools_bootstrap/templates/admin/base.html

View file
 <html lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
 <head>
 <title>{% block title %}{% endblock %}</title>
-{#<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />#}
 {% block extrastyle %}{% endblock %}
 <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
             {% atb_site_link %}
             <li class="dropdown">
               <a class="dropdown-toggle" href="#">
-                <span class="ui-icon ui-icon-person ui-state-default"></span>
+                <span class="ui-icon ui-icon-person"></span>
                 {% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}
               </a>
               <ul class="dropdown-menu">

File admintools_bootstrap/templates/admin/base_site.html

View file
 <script type="text/javascript" src="{{ STATIC_URL }}admintools_bootstrap/js/less.js"></script>
 
 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}admintools_bootstrap/chosen/chosen.css" />
-{# detect IE <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}admintools_bootstrap/css/custom-theme/jquery.ui.1.8.16.ie.css" />#}
+<!--[if IE]><link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}admintools_bootstrap/css/custom-theme/jquery.ui.1.8.16.ie.css" /><![endif]-->
 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}admintools_bootstrap/css/custom-theme/jquery-ui-1.8.16.custom.css" />
 {% endblock %}
 

File admintools_bootstrap/templates/admin_tools/menu/item.html

View file
 <li class="{% if not item.enabled %} disabled{% endif %}{% if selected %} active{% endif %}{% if item.css_classes %} {{ item.css_classes|join:' ' }}{% endif %}{% if item.children %} dropdown{% endif %}">
 <a href="{% if item.url and item.enabled %}{{ item.url }}{% else %}#{% endif %}"{% if item.description %} title="{{ item.description }}"{% endif %}{% if item.accesskey %} accesskey="{{ item.accesskey }}"{% endif %}
   {% if item.children and item.enabled %}class="dropdown-toggle"{% endif %}>
-    {% if item.icon %}<span class="ui-icon {{ item.icon }} ui-state-default"></span>{% endif %}
+    {% if item.icon %}<span class="ui-icon {{ item.icon }}"></span>{% endif %}
   {{ item.title }}
   </a>
     {% if item.children and item.enabled %}

File admintools_bootstrap/templatetags/admintools_bootstrap.py

View file
 def atb_site_link():
     if settings.ADMINTOOLS_BOOTSTRAP_SITE_LINK:
         return '''
-            <li><a href="%s"  class="top-icon" title="%s" rel="popover" data-placement="below"><span class="ui-icon ui-icon-home ui-state-default"></span></a></li>
+            <li><a href="%s"  class="top-icon" title="%s" rel="popover" data-placement="below"><span class="ui-icon ui-icon-home"></span></a></li>
             ''' % (settings.ADMINTOOLS_BOOTSTRAP_SITE_LINK, _('Open site'))
     else:
         return ''