Selaa lähdekoodia

Links to translations and related posts should not be muted unlike links in the article

Talha Mansoor 11 vuotta sitten
vanhempi
commit
49648352b4
2 muutettua tiedostoa jossa 8 lisäystä ja 5 poistoa
  1. 7 4
      static/css/elegant.css
  2. 1 1
      templates/_includes/related_posts.html

+ 7 - 4
static/css/elegant.css

@@ -150,9 +150,9 @@ div.highlight {
     font: 1.1em/1.6em 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
 }
 /* Article */
-article p a,
+article p:not(#list-of-translations) a,
 article ol a,
-article div.article-content ul:not(.articles-timeline) a {
+article div.article-content ul:not(.articles-timeline):not(.related-posts-list) a {
     border-bottom: thin dashed #A9A9A9;
     color: #000;
 }
@@ -203,9 +203,12 @@ article div.article-content ul:not(.articles-timeline) a:hover {
     font-weight: 300;
     position:relative;
 }
-.article-content ul {
+.article-content ul:not(.related-posts-list):not(.articles-timeline) {
     font-size: inherit;
-    list-style-type: circle;
+    list-style-type: disc;
+}
+.article-content ul.related-posts-list {
+    list-style-type: square;
 }
 .article-content ol {
     font-size: inherit;

+ 1 - 1
templates/_includes/related_posts.html

@@ -2,7 +2,7 @@
 {% from '_includes/_defaults.html' import RELATED_POSTS_LABEL with context %}
 <section>
     <h2>{{ RELATED_POSTS_LABEL }}</h2>
-<ul>
+<ul class="related-posts-list">
 {% for related_post in article.related_posts %}
     {% set title = related_post.title|striptags %}
     {% set htitle = title %}