Added sass and changed basic structure
Many things to do.
This commit is contained in:
parent
ad4697dd9e
commit
f2dfe32ca2
22 changed files with 1827 additions and 4 deletions
114
modules/explanation/_explanation_module.scss
Normal file
114
modules/explanation/_explanation_module.scss
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
// Custom extends and mixins
|
||||
// ------------------------------------------------------------------------------
|
||||
@import "mixins";
|
||||
@import "extends";
|
||||
|
||||
// Explanation module styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
%expose_after {
|
||||
&:after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
}
|
||||
}
|
||||
%expose_before {
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
}
|
||||
}
|
||||
%expose {
|
||||
&:before, &:after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
}
|
||||
}
|
||||
%exp {
|
||||
}
|
||||
%exp_hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.exp_wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.exp_pop {
|
||||
@extend %exp_hidden !optional;
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
top: $space_5;
|
||||
left: $space_5;
|
||||
padding: $half_space;
|
||||
border: 4px solid $basic_background_color;
|
||||
border-radius: 4px;
|
||||
background-color: $basic_background_color;
|
||||
pointer-events: none;
|
||||
}
|
||||
.exp_marker_pop {
|
||||
position: absolute;
|
||||
top: -$basic_size / 4 * 3;
|
||||
right: -$basic_size / 2;
|
||||
width: $basic_size;
|
||||
height: $basic_size;
|
||||
border: $tiny_space solid $basic_highlight_color;
|
||||
border-radius: $basic_size;
|
||||
color: $basic_highlight_color;
|
||||
background-color: $black;
|
||||
}
|
||||
|
||||
.exp_expose {
|
||||
@extend %expose !optional;
|
||||
}
|
||||
.exp_expose_pre {
|
||||
@extend %expose_after
|
||||
}
|
||||
.exp_expose_post {
|
||||
@extend %expose_before
|
||||
}
|
||||
|
||||
.exp_overlay_btn {
|
||||
position: fixed;
|
||||
width: $size_1;
|
||||
height: $size_1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.exp_help_btn {
|
||||
display: table;
|
||||
right: $space_2;
|
||||
bottom: $space_2;
|
||||
background-color: rgba($black, .4);
|
||||
&:hover {
|
||||
background-color: $white;
|
||||
> .span_solo {
|
||||
color: $echo_color;
|
||||
}
|
||||
}
|
||||
.span_solo {
|
||||
@extend %head_1;
|
||||
display: table-cell;
|
||||
color: rgba($echo_color, .6);
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.expose_height {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: rgba($delta_color, .1) !important;
|
||||
@include vendor-prefix(transition, height .5s ease);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue