Rename square to category
This commit is contained in:
parent
416d2601fb
commit
4e1b906b49
2 changed files with 2 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue