Talha Mansoor преди 11 години
родител
ревизия
e3e73a342f
променени са 3 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 4 4
      static/css/style.css
  2. 1 1
      templates/article.html
  3. 4 4
      templates/tags.html

+ 4 - 4
static/css/style.css

@@ -1,16 +1,16 @@
-#list-of-tags {
+.list-of-tags {
     list-style:none;
     margin:0;
     padding:5px 0 ;
     overflow:hidden;
 }
 
-#list-of-tags li {
+.list-of-tags li {
     line-height:28px;
     float:left;
 }
 
-#list-of-tags a {
+.list-of-tags a {
     padding: 3px 6px;
     margin: 2px;
     color: #222;
@@ -19,7 +19,7 @@
     text-decoration:none;
 }
 
-#list-of-tags a span {
+.list-of-tags a span {
     vertical-align: super;
     font-size: 0.8em;
 }

+ 1 - 1
templates/article.html

@@ -28,7 +28,7 @@
             <div class="span12">
                 {% if article.tags %}
                 <h4>Tags</h4>
-                <ul id="list-of-tags"> 
+                <ul class="list-of-tags"> 
                     {% for tag in article.tags %}
                     <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
                         {% for aTag, tagged_articles in tags if aTag == tag %}

+ 4 - 4
templates/tags.html

@@ -20,10 +20,10 @@
                 if(filter) {
                     // this finds all links in a list that contain the input,
                     // and hide the ones not containing the input while showing the ones that do
-                    $('#list-of-tags').find("a:not(:Contains(" + filter + "))").parent().hide();
-                    $('#list-of-tags').find("a:Contains(" + filter + ")").parent().show();
+                    $('.list-of-tags').find("a:not(:Contains(" + filter + "))").parent().hide();
+                    $('.list-of-tags').find("a:Contains(" + filter + ")").parent().show();
                     } else {
-                    $('#list-of-tags').find("li").show();
+                    $('.list-of-tags').find("li").show();
                 }
                 return false;
             })
@@ -59,7 +59,7 @@ All Tags - {{ super() }}
         <form class="form-search">
             <input type="text" class="input-medium search-query filterinput" placeholder="Find a tag">
         </form>
-        <ul id="list-of-tags">
+        <ul class="list-of-tags">
             {% for tag, articles in tags %}
             <li>
             {% set num = articles|count %}