lila/ui/learn/css/_side-map.scss

93 lines
1.6 KiB
SCSS
Raw Normal View History

2019-03-24 19:34:45 -06:00
.learn__side-map {
user-select: none;
.back,
.categ > h2 {
display: block;
2019-03-24 20:22:23 -06:00
font-size: 1.3em;
2019-03-24 19:34:45 -06:00
height: 50px;
line-height: 50px;
text-indent: 15px;
cursor: pointer;
opacity: 0.81;
}
.back {
display: flex;
2019-03-24 20:22:23 -06:00
color: $c-font;
2019-03-24 19:34:45 -06:00
}
.back img {
2019-03-24 20:22:23 -06:00
width: 50px;
height: 50px;
2019-03-24 19:34:45 -06:00
opacity: 0.9;
margin-right: 10px;
padding: 10px;
background: rgba(120, 120, 120, 1);
display: block;
}
.back:hover {
background: rgba(120, 120, 120, 0.2);
}
.categ > h2 {
2019-03-24 20:22:23 -06:00
border-top: $border;
2019-03-24 19:34:45 -06:00
}
.categ > h2:hover {
2019-03-25 01:39:50 -06:00
background: fade-out($c-primary, .8);
2019-03-24 19:34:45 -06:00
}
.categ.active {
2019-03-25 01:39:50 -06:00
border: $border;
2019-03-24 19:34:45 -06:00
border-width: 0 1px;
}
.categ.active:last-child {
border-bottom-width: 1px;
}
.categ.active > h2 {
cursor: default;
2019-03-25 01:39:50 -06:00
background: $c-primary;
color: $c-primary-over;
2019-03-24 19:34:45 -06:00
}
.categ:not(.active) .categ_stages {
display: none;
}
.stage {
2019-03-25 01:39:50 -06:00
@extend %roboto, %flex-center;
@include transition();
2019-03-24 20:22:23 -06:00
font-size: 1.1em;
2019-03-25 01:39:50 -06:00
opacity: .9;
2019-03-24 20:22:23 -06:00
color: $c-font;
img,
i {
width: 50px;
height: 50px;
opacity: 0.9;
margin-right: 10px;
padding: 10px;
}
i::before {
font-size: 30px;
}
&.active {
2019-03-25 01:39:50 -06:00
background: fade-out($c-primary, .8);
2019-03-24 20:22:23 -06:00
}
&.active img {
2019-03-25 01:39:50 -06:00
background: $c-primary;
2019-03-24 20:22:23 -06:00
}
&.done:hover {
2019-03-25 01:39:50 -06:00
background: fade-out($c-good, .8);
2019-03-24 20:22:23 -06:00
}
&.done img {
2019-03-25 01:39:50 -06:00
background: $c-good;
2019-03-24 20:22:23 -06:00
}
&.future:hover {
2019-03-25 01:39:50 -06:00
background: fade-out($c-primary, .8);
2019-03-24 20:22:23 -06:00
}
&.future img {
opacity: 0.7;
2019-03-25 01:39:50 -06:00
background: $c-primary;
2019-03-24 20:22:23 -06:00
}
&:hover {
filter: brightness(0.9);
2019-03-25 01:39:50 -06:00
color: $c-font-clearer;
2019-03-24 20:22:23 -06:00
}
2019-03-24 19:34:45 -06:00
}
}