Rename square to category

This commit is contained in:
Joey Yakimowich-Payne 2018-08-09 10:14:03 +09:00
commit 4e1b906b49
2 changed files with 2 additions and 12 deletions

View file

@ -214,17 +214,7 @@ $threads-meta-color: #545d70;
}
}
.triangle {
// TODO: Abstract this into a "category" class.
width: 0;
height: 0;
border-left: 0.3rem solid transparent;
border-right: 0.3rem solid transparent;
border-bottom: 0.6rem solid #98c766;
display: inline-block;
}
.square {
.category-color {
width: 0;
height: 0;
border: 0.3rem solid #98c766;

View file

@ -24,7 +24,7 @@ when defined(js):
tdiv(class="category",
title=category.description,
"data-color"="#" & category.color):
tdiv(class="square",
tdiv(class="category-color",
style=style(
(StyleAttr.border,
kstring"0.3rem solid #" & category.color)