style visited lessons with proper icon instead of emoji

This commit is contained in:
Benedikt Rötsch
2017-10-04 13:11:29 +02:00
committed by Benedikt Rötsch
parent 9d3c6753b6
commit 38b431f17b
3 changed files with 36 additions and 24 deletions

View File

@@ -20,10 +20,14 @@
display: block;
color: var(--color-text-grey);
&:hover,
&.active {
position: relative;
font-family: var(--font-medium);
color: var(--color-text-default);
}
&.active {
position: relative;
&:before,
&:after {
@@ -37,27 +41,27 @@
width: 3px;
background: var(--color-course-active);
}
&:after {
content: '👁';
left: calc(var(--toc-gap-left) * 2 * -1);
}
}
&:hover {
font-family: var(--font-medium);
color: var(--color-text-default);
}
&.visited {
position:relative;
&:before,
&:after {
position: absolute;
top: 0;
}
&:after {
content: '👁';
content: '';
display: block;
width: 16px;
height: 16px;
top: 50%;
left: calc(var(--toc-gap-left) * 2 * -1);
transform: translateY(-50%);
background: url('/images/icon-viewed.svg') no-repeat center center;
background-size: contain;
}
}
}