[extensions-web/wip/tomtryf/redesign] header: change unreviewed_counter to class to avoid duplicated ids



commit baa26b099d3b765e8f36ff9af885957c18917797
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Mar 5 23:51:59 2017 +0400

    header: change unreviewed_counter to class to avoid duplicated ids

 sweettooth/static/css/sweettooth.css |    6 ++++--
 sweettooth/templates/base.html       |    4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/static/css/sweettooth.css b/sweettooth/static/css/sweettooth.css
index dd015fd..ff84df9 100644
--- a/sweettooth/static/css/sweettooth.css
+++ b/sweettooth/static/css/sweettooth.css
@@ -19,7 +19,8 @@ span.action_button {
 /* Unreviewed Extension Counter */
 /* ==================================================================== */
 
-#unreviewed_counter {
+div.nav.navbar-nav a.unreviewed_counter,
+div.navbar-header a.unreviewed_counter {
     background-color: #3968A1;
     color: #ffffff;
     font-weight: 700;
@@ -31,7 +32,8 @@ span.action_button {
     border: 1px solid #195EB1;
 }
 
-#unreviewed_counter:hover {
+div.nav.navbar-nav a.unreviewed_counter:hover,
+div.navbar-header a.unreviewed_counter:hover {
     background-color: #195EB1;
 }
 
diff --git a/sweettooth/templates/base.html b/sweettooth/templates/base.html
index 0d39085..269a99e 100644
--- a/sweettooth/templates/base.html
+++ b/sweettooth/templates/base.html
@@ -45,7 +45,7 @@
                     <ul class="nav navbar-nav icons visible-xs">
                         {% if n_unreviewed_extensions %}
                         <li>
-                            <a id="unreviewed_counter" href="{% url 'review-list' %}">{{ 
n_unreviewed_extensions }}</a>
+                            <a class="unreviewed_counter" href="{% url 'review-list' %}">{{ 
n_unreviewed_extensions }}</a>
                         </li>
                         {% endif%}
                         <li class="dropdown">
@@ -76,7 +76,7 @@
                 {% if n_unreviewed_extensions %}
                 <div class="nav navbar-nav navbar-right hidden-xs">
                     <li>
-                        <a id="unreviewed_counter" href="{% url 'review-list' %}">{{ n_unreviewed_extensions 
}}</a>
+                        <a class="unreviewed_counter" href="{% url 'review-list' %}">{{ 
n_unreviewed_extensions }}</a>
                     </li>
                 </div>
                 {% endif %}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]