2018-02-20 21:56:34 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
2018-03-14 16:40:41 +00:00
|
|
|
/* (1) Input */
|
|
|
|
@import 'global/input';
|
2018-03-01 12:16:22 +00:00
|
|
|
|
2018-03-14 16:40:41 +00:00
|
|
|
/* (2) Button */
|
|
|
|
@import 'global/button';
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-14 16:40:41 +00:00
|
|
|
/* (3) classes that add icons before text */
|
|
|
|
@import 'global/before-icon';
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-14 16:40:41 +00:00
|
|
|
/* (4) tags */
|
|
|
|
@import 'global/tag';
|
2018-02-20 21:56:34 +00:00
|
|
|
|
2018-03-08 11:39:19 +00:00
|
|
|
|
2018-03-29 20:01:40 +00:00
|
|
|
.error, [data-error='1']{ font-weight: bold; color: $form-invalid-color; }
|
|
|
|
.success, [data-success='1']{ color: $form-valid-color; }
|
2018-02-20 21:56:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-14 16:40:41 +00:00
|
|
|
/* (4) Links */
|
2018-02-22 14:17:07 +00:00
|
|
|
a{
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:after{
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
width: 0%;
|
|
|
|
height: .1em;
|
|
|
|
|
|
|
|
background-color: #ddd;
|
|
|
|
|
|
|
|
transition: width .1s ease-in-out;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:after{
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-03-06 15:05:29 +00:00
|
|
|
}
|
|
|
|
|
2018-03-14 16:40:41 +00:00
|
|
|
/* (5) Greyed text */
|
2018-03-06 15:05:29 +00:00
|
|
|
.grey{
|
|
|
|
color: $secondary-color;
|
2018-03-14 16:40:41 +00:00
|
|
|
}
|
|
|
|
|
2018-03-15 14:15:12 +00:00
|
|
|
/* (6) pointer cursor (2 times the class to increase priority) */
|
|
|
|
.pointer.pointer{
|
|
|
|
cursor: pointer;
|
2018-03-18 15:31:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* (7) Mono font */
|
|
|
|
.mono{
|
|
|
|
font-family: 'Mono';
|
|
|
|
font-size: .9em;
|
2018-03-29 17:30:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-30 15:03:35 +00:00
|
|
|
/* (8) Striked text */
|
2018-03-29 17:30:05 +00:00
|
|
|
[data-strike='1'],
|
|
|
|
.strike{
|
|
|
|
text-decoration: line-through;
|
|
|
|
opacity: .5;
|
2018-03-29 19:21:37 +00:00
|
|
|
}
|
|
|
|
|
2018-03-30 15:03:35 +00:00
|
|
|
/* (9) Icons (1em wide) */
|
|
|
|
.user-icon, .time-icon{
|
2018-03-29 19:21:37 +00:00
|
|
|
|
2018-03-30 15:03:35 +00:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
background: url('/asset/svg/teacher.svg@#{$rd-form-neutral-color}') center center no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
|
|
|
|
&.time-icon{
|
|
|
|
background-image: url('/asset/svg/time.svg@#{$rd-form-neutral-color}');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (10) Toggling tooltip on hover */
|
2018-03-29 19:21:37 +00:00
|
|
|
[data-tooltip]{
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
2018-03-30 15:03:35 +00:00
|
|
|
&:before{
|
2018-03-29 19:21:37 +00:00
|
|
|
content: attr(data-tooltip);
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2018-03-30 15:03:35 +00:00
|
|
|
top: calc( 100% + 1em );
|
2018-03-29 19:21:37 +00:00
|
|
|
left: 50%;
|
|
|
|
|
|
|
|
margin-left: -.1em;
|
|
|
|
|
|
|
|
padding: .4em .6em;
|
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
|
|
|
|
|
|
|
box-shadow: 0 0 .5em 0 #fff;
|
|
|
|
|
|
|
|
font-size: .7em;
|
|
|
|
color: #ddd;
|
2018-03-30 15:03:35 +00:00
|
|
|
letter-spacing: 0;
|
2018-03-29 19:21:37 +00:00
|
|
|
|
|
|
|
background-color: #444;
|
|
|
|
|
|
|
|
transform: translateX(-50%) translateY(-50%) scale(0);
|
|
|
|
|
|
|
|
transition: transform .1s ease-in-out;
|
|
|
|
|
2018-03-30 15:03:35 +00:00
|
|
|
z-index: 999;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not([data-tooltip='']):before{
|
|
|
|
transform: translateX(-50%) translateY(0) scale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&:after{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: calc( 100% + .6em );
|
|
|
|
left: 50%;
|
|
|
|
width: .4em;
|
|
|
|
height: .4em;
|
|
|
|
|
|
|
|
background-color: #444;
|
|
|
|
|
|
|
|
transform: translateX(-50%) rotate(45deg) scale(0);
|
|
|
|
|
|
|
|
transition: transform .1s ease-in-out;
|
|
|
|
|
2018-03-29 19:21:37 +00:00
|
|
|
z-index: 1000;
|
2018-03-30 15:03:35 +00:00
|
|
|
|
2018-03-29 19:21:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not([data-tooltip='']):after{
|
2018-03-30 15:03:35 +00:00
|
|
|
transform: translateX(-50%) rotate(45deg) scale(1);
|
2018-03-29 19:21:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-15 14:15:12 +00:00
|
|
|
}
|