summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-03-14 22:42:31 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-03-14 22:42:31 -0400
commit3f1da016d022ad0dfafebf81041842364a6081ec (patch)
tree6e436623af6348e74fdf855d82ce373c0dc2164d
parent5a5547251f0a29bb41832e240f9f15cb5cf002bc (diff)
Oh! The tags weren't working because case-conversion.
-rw-r--r--lib/category.rb2
-rw-r--r--src/main.scss12
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/category.rb b/lib/category.rb
index b60c82e..e0ed8e0 100644
--- a/lib/category.rb
+++ b/lib/category.rb
@@ -6,7 +6,7 @@ class Category
@abbr = abbr
end
def abbr
- @abbr
+ @abbr.downcase
end
def name
Config::get.category_name(@abbr)
diff --git a/src/main.scss b/src/main.scss
index 1ce7c8d..d32d6ee 100644
--- a/src/main.scss
+++ b/src/main.scss
@@ -109,12 +109,12 @@ article {
padding: 4px 7px 5px 7px;
border-radius: 2px;
}
- .tag.FF { background: FireBrick; }
- .tag.SS { background: SeaGreen; }
- .tag.ES { background: DarkViolet; }
- .tag.HB { background: DimGray; }
- .tag.DM { background: DarkSlateGray; }
- .tag.WP { background: GhostWhite; color: black; }
+ .tag.ff { background: FireBrick; }
+ .tag.ss { background: SeaGreen; }
+ .tag.es { background: DarkViolet; }
+ .tag.hb { background: DimGray; }
+ .tag.dm { background: DarkSlateGray; }
+ .tag.wp { background: GhostWhite; color: black; }
border-bottom: solid 1px #333333;
}