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
175
modules/_flexbox.scss
Normal file
175
modules/_flexbox.scss
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
/**
|
||||
* @description
|
||||
* Generates flexbox properties for a given element
|
||||
*
|
||||
* @author romamatusevich
|
||||
*
|
||||
* @link MDN https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes
|
||||
* @link css-tricks http://css-tricks.com/snippets/css/a-guide-to-flexbox/
|
||||
* @link spec http://www.w3.org/TR/css3-flexbox/
|
||||
*/
|
||||
|
||||
/**
|
||||
* @returns
|
||||
* display: -webkit-box;
|
||||
* display: -moz-box;
|
||||
* display: -ms-flexbox;
|
||||
* display: -webkit-flex;
|
||||
* display: flex;
|
||||
*
|
||||
* @example
|
||||
* .selector {
|
||||
* @include x-display-flex;
|
||||
* }
|
||||
*/
|
||||
@mixin x-display-flex {
|
||||
display: -webkit-box; // Chrome 20-, iOS 6-, Safari 3.1 -6
|
||||
display: -moz-box; // FF 19-
|
||||
display: -webkit-flex; // Chrome 21 - 28
|
||||
display: -ms-flexbox; // IE 10
|
||||
display: flex; // FF 20+, Chrome 29+, Opera 12.1, 17+
|
||||
}
|
||||
|
||||
/**
|
||||
* @param values
|
||||
* @returns
|
||||
* -webkit-box-flex: <values>;
|
||||
* -moz-box-flex: <values>;
|
||||
* -webkit-flex: <values>;
|
||||
* -ms-flex: <values>;
|
||||
* flex: <values>;
|
||||
*
|
||||
* @example
|
||||
* .selector {
|
||||
* @include x-flex(1 1 auto);
|
||||
* }
|
||||
*/
|
||||
@mixin x-flex ($values...) {
|
||||
-webkit-box-flex: $values; // Chrome 20-, iOS 6-, Safari 3.1 - 6
|
||||
-moz-box-flex: $values; // FF 19-
|
||||
-webkit-flex: $values; // Chrome 21 - 28
|
||||
-ms-flex: $values; // IE 10
|
||||
flex: $values; // FF 20+, Chrome 29+, Opera 12.1, 17+
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value
|
||||
* @returns
|
||||
* -webkit-box-ordinal-group: <value>;
|
||||
* -moz-box-ordinal-group: <value>;
|
||||
* -ms-flex-order: <value>;
|
||||
* -webkit-order: <value>;
|
||||
* order: <value>;
|
||||
*
|
||||
* @example
|
||||
* .selector {
|
||||
* @include x-order(1);
|
||||
* }
|
||||
*/
|
||||
@mixin x-order ($value) {
|
||||
-webkit-box-ordinal-group: $value; // Chrome 20-, iOS 6-, Safari 3.1 - 6
|
||||
-moz-box-ordinal-group: $value; // FF 19-
|
||||
-ms-flex-order: $value; // IE 10
|
||||
-webkit-order: $value; // Chrome 21 - 28
|
||||
order: $value; // FF 20+, Chrome 29+, Opera 12.1, 17+
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value
|
||||
* @returns
|
||||
* -webkit-flex-wrap: <value>;
|
||||
* -ms-flex-wrap: <value>;
|
||||
* flex-wrap: <value>;
|
||||
*
|
||||
* @example
|
||||
* .selector {
|
||||
* @include x-flex-wrap(wrap);
|
||||
* }
|
||||
*/
|
||||
@mixin x-flex-wrap ($value) {
|
||||
// IE 10
|
||||
@if $value == nowrap {
|
||||
-ms-flex-wrap: none;
|
||||
} @else {
|
||||
-ms-flex-wrap: $value;
|
||||
}
|
||||
-webkit-flex-wrap: $value; // Chrome 20-, iOS 6-, Safari 3.1 - 6
|
||||
flex-wrap: $value; // FF 28+, Chrome 21+, Opera 12.1, 17+, IE 11
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value
|
||||
* @returns
|
||||
* -webkit-align-content: <value>;
|
||||
* -moz-align-content: <value>;
|
||||
* -ms-flex-line-pack: <value>;
|
||||
* align-content: <value>;
|
||||
* @example
|
||||
* .selector {
|
||||
* @include x-align-content(center);
|
||||
* }
|
||||
*/
|
||||
@mixin x-align-content ($value) {
|
||||
// IE 10
|
||||
@if $value == flex-start {
|
||||
-ms-flex-line-pack: start;
|
||||
} @else if $value == flex-end {
|
||||
-ms-flex-line-pack: end;
|
||||
} @else if $value == space-between {
|
||||
-ms-flex-line-pack: justify;
|
||||
} @else if $value == space-around {
|
||||
-ms-flex-line-pack: distribute;
|
||||
} @else {
|
||||
-ms-flex-line-pack: $value;
|
||||
}
|
||||
-webkit-align-content: $value; // Chrome 20-, iOS 6-, Safari 3.1 - 6
|
||||
-moz-align-content: $value; // FF 19-
|
||||
align-content: $value; // FF 20+, Chrome 21+, Opera 12.1, 17+, IE 11
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value
|
||||
* @returns
|
||||
* -webkit-box-direction: <value>;
|
||||
* -moz-box-direction: <value>;
|
||||
* -webkit-box-orient: <value>;
|
||||
* -moz-box-orient: <value>;
|
||||
* -webkit-flex-direction: <value>;
|
||||
* -moz-flex-direction: <value>;
|
||||
* -ms-flex-direction: <value>;
|
||||
* flex-direction: <value>;
|
||||
* @example
|
||||
* .selector {
|
||||
* @include x-flex-direction(row-reverse);
|
||||
* }
|
||||
*/
|
||||
@mixin x-flex-direction ($value) {
|
||||
@if $value == row {
|
||||
-webkit-box-direction: normal;
|
||||
-moz-box-direction: normal;
|
||||
-webkit-box-orient: horizontal;
|
||||
-moz-box-orient: horizontal;
|
||||
} @elseif $value == row-reverse {
|
||||
-webkit-box-direction: reverse;
|
||||
-moz-box-direction: reverse;
|
||||
-webkit-box-orient: horizontal;
|
||||
-moz-box-orient: horizontal;
|
||||
} @elseif $value == column {
|
||||
-webkit-box-direction: normal;
|
||||
-moz-box-direction: normal;
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
} @elseif $value == column-reverse {
|
||||
-webkit-box-direction: reverse;
|
||||
-moz-box-direction: reverse;
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
-webkit-flex-direction: $value;
|
||||
-moz-flex-direction: $value;
|
||||
-ms-flex-direction: $value;
|
||||
flex-direction: $value;
|
||||
}
|
||||
|
||||
/* ToDo: add flex-grow, flex-shrink, flex-basis, flex-flow, align-items, align-self, justify-content mixins */
|
||||
23
modules/_vendor.scss
Normal file
23
modules/_vendor.scss
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* @description
|
||||
* Generates cross-browser-compatible output for a given element with its value.
|
||||
*
|
||||
* @author sthag
|
||||
*
|
||||
* @param values
|
||||
* @returns
|
||||
* -webkit-<name>: <values>
|
||||
* ...-<name>: <values>
|
||||
*
|
||||
* @example
|
||||
* .selector
|
||||
* @include vendor-prefix(hyphens, auto)
|
||||
*/
|
||||
@mixin vendor-prefix($name, $argument) {
|
||||
-webkit-#{$name}: #{$argument};
|
||||
-ms-#{$name}: #{$argument};
|
||||
-moz-#{$name}: #{$argument};
|
||||
-o-#{$name}: #{$argument};
|
||||
#{$name}: #{$argument};
|
||||
}
|
||||
|
||||
105
modules/card/_card_module.scss
Normal file
105
modules/card/_card_module.scss
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
// Custom extends and mixins
|
||||
// ------------------------------------------------------------------------------
|
||||
@import "mixins";
|
||||
@import "extends";
|
||||
|
||||
// Card module styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
.card_body {
|
||||
.bkgBox {
|
||||
transition-duration: 800ms;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
vertical-align: top;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.bkgBox > svg {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wrapperBox {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
-moz-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
-moz-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#content {
|
||||
position: relative;
|
||||
padding: 64px 64px 24px 64px;
|
||||
border: 1px solid #FFF;
|
||||
background-color: #F5F5F5;
|
||||
z-index: 40;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 16px 0;
|
||||
color: #1E1E1E;
|
||||
font-family: $primary_font_family;
|
||||
font-size: 24px;
|
||||
line-height: 1.4em;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 16px;
|
||||
font-family: $primary_font_family;
|
||||
font-size: 12px;
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.full {
|
||||
position: absolute;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
top: 16px;
|
||||
left: 16px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.mark {
|
||||
float: left;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.marked {
|
||||
padding-left: 1em;
|
||||
text-indent: -1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.marked:before { content: "*\0000a0" }
|
||||
|
||||
.decent { color: #666 }
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #F4F9FA;
|
||||
background-color: #0C85FF;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
0
modules/card/_extends.scss
Normal file
0
modules/card/_extends.scss
Normal file
0
modules/card/_mixins.scss
Normal file
0
modules/card/_mixins.scss
Normal file
23
modules/editor/_editor_module.scss
Normal file
23
modules/editor/_editor_module.scss
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// Custom extends and mixins
|
||||
// ------------------------------------------------------------------------------
|
||||
@import "mixins";
|
||||
@import "extends";
|
||||
|
||||
// Editor module styles
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
%wip {
|
||||
border-right: $basic_space solid rgba(crimson, .8);
|
||||
background-color: rgba(crimson, .1) !important;
|
||||
}
|
||||
.wip {
|
||||
@extend %wip;
|
||||
&:before, &:after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
.wip_txt {
|
||||
@extend %wip;
|
||||
}
|
||||
0
modules/editor/_extends.scss
Normal file
0
modules/editor/_extends.scss
Normal file
0
modules/editor/_mixins.scss
Normal file
0
modules/editor/_mixins.scss
Normal file
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);
|
||||
}
|
||||
0
modules/explanation/_extends.scss
Normal file
0
modules/explanation/_extends.scss
Normal file
0
modules/explanation/_mixins.scss
Normal file
0
modules/explanation/_mixins.scss
Normal file
Loading…
Add table
Add a link
Reference in a new issue