Klassennamen und Variablen

Neuer Standard für Klassennamen _ und __
This commit is contained in:
Stephan Hagedorn 2017-08-18 01:35:50 +02:00
parent e7ca01dd40
commit 933806cb72
10 changed files with 231 additions and 219 deletions

View file

@ -65,68 +65,35 @@
height: 100vh;
}
%full_parent {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
// Fixed elements
.relative {
.pos_rel {
position: relative;
}
.div_fix {
.pos_fix {
position: fixed;
}
.bottom {
.pos_bottom {
bottom: 0;
}
// Absolute elements
.viewport-full-body {
.pos_full_view {
@extend %full_viewport;
background-color: transparentize($alpha_color, .5);
background-color: rgba($alpha_color, .5);
}
.hover_background_change {
background-color: darken($basic_background_color, 20%);
.hover_back_change {
background-color: darken($basic_back_color, 10%);
transition: background-color .2s ease-in-out;
&:hover {
background-color: $basic_background_color;
background-color: $basic_back_color;
}
}
// Space and placeholders
.space_box {
float: left;
display: table;
width: $space_4;
text-align: center;
vertical-align: middle;
span {
display: table-cell;
}
}
.div_placeholder {
width: 100%;
height: $space_4;
border: $border_width_4 solid rgba($black,.1);
border-radius: $basic_corner;
padding: $basic_space;
background-color: rgba($black,.1);
svg {
vertical-align: top;
}
}
.div_placeholder_bkg {
width: 100%;
height: $space_4;
border: $border_width_4 solid rgba($black,.1);
border-radius: $basic_corner;
padding: $basic_space;
/*data:[<mime type>][;charset=<charset>][;base64],<encoded data>*/
background: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0' y='0' width='100%' height='100%'><line x1='2%' y1='2%' x2='98%' y2='98%' stroke='#000' stroke-width='.5'/><line x1='0' y1='100%' x2='100%' y2='0' stroke='#000' stroke-width='.5'/></svg>") no-repeat;
background-color: rgba($black,.1);
}
.div_info {
padding: $space_2 $basic_indent;
border-right: $basic_space solid rgba($echo_color, .6);
background-color: rgba($echo_color, .1) !important;
}

View file

@ -13,17 +13,17 @@ p {
}
}
.p_col_line {
.p__col_line {
column-rule: $basic_border_width solid $black;
}
.p_col_2, .p_col_3 {
.p__col_2, .p__col_3 {
@extend p;
}
.p_col_2 {
.p__col_2 {
column-count: 2;
column-gap: $space_3;
}
.p_col_3 {
.p__col_3 {
column-count: 3;
column-gap: $space_4;
}
@ -41,12 +41,12 @@ hr {
border-color: $black;
}
.hr_hidden {
.hr__hidden {
@extend hr;
border-color: transparent;
}
.hr_dotted {
.hr__dotted {
@extend hr;
border-style: dotted;
}
@ -56,7 +56,7 @@ pre {
@extend %basic_mono;
}
.pre_code {
.pre__code {
border-color: rgba($white,.1);
border-style: dotted;
border-width: 0 0 0 $border_width_4;
@ -73,14 +73,14 @@ blockquote {
margin: $basic_space $basic_indent;
}
.quote_mark {
.quote__mark {
p::before {
content: "\201E \0020";
}
p::after {
content: "\201C \0020";
}
.quote_source {
.quote__source {
&::before, &::after {
content: "";
}
@ -111,7 +111,7 @@ ul {
}
}
.list_dash {
.list__dash {
li {
list-style: none;
position: relative;
@ -146,7 +146,7 @@ div {
}
.screen-box {
.box__screen {
width: $basic_width;
@media screen and (orientation: landscape) {
@media (min-width: $screen_small) {
@ -170,3 +170,43 @@ div {
border-color: $basic_border_color;
padding-top: $space_3;
}
.box__info {
padding: $space_2 $basic_indent;
border-right: $basic_space solid rgba($echo_color, .6);
background-color: rgba($echo_color, .1) !important;
}
// Space and placeholders
.box__space {
float: left;
display: table;
width: $space_4;
text-align: center;
vertical-align: middle;
span {
display: table-cell;
}
}
.box__placeholder {
width: 100%;
height: $space_4;
border: $border_width_4 solid rgba($black,.1);
border-radius: $basic_corner;
padding: $basic_space;
background-color: rgba($black,.1);
svg {
vertical-align: top;
}
}
.box__placeholder_bkg {
width: 100%;
height: $space_4;
border: $border_width_4 solid rgba($black,.1);
border-radius: $basic_corner;
padding: $basic_space;
/*data:[<mime type>][;charset=<charset>][;base64],<encoded data>*/
background: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0' y='0' width='100%' height='100%'><line x1='2%' y1='2%' x2='98%' y2='98%' stroke='#000' stroke-width='.5'/><line x1='0' y1='100%' x2='100%' y2='0' stroke='#000' stroke-width='.5'/></svg>") no-repeat;
background-color: rgba($black,.1);
}

View file

@ -33,7 +33,7 @@ label {
padding: $half_space ($half_space + 1);
border-style: solid;
border-color: transparent;
background-color: $basic_io_background_color;
background-color: $basic_io_back_color;
color: $basic_io_font_color;
&:hover {

View file

@ -17,7 +17,7 @@ body {
font-size: $basic_size;
line-height: $basic_line;
color: $basic_font_color;
background-color: $basic_background_color;
background-color: $basic_back_color;
*,
::before,

View file

@ -13,7 +13,7 @@ a {
}
}
.link_line {
.a__line {
border-bottom-width: $tiny_space;
border-bottom-style: dotted;
border-color: $basic_border_color;
@ -78,7 +78,7 @@ code {
color: lighten($basic_font_color, 12%);
background-color: rgba($white,.1);
}
.code_solo {
.code__solo {
@extend %basic_mono;
padding: $tiny_space $half_space;
color: $basic_font_color;
@ -104,7 +104,7 @@ u {
mark {
background-color: $alpha_color;
}
.mark_cursor {
.mark__cursor {
color: $basic_highlight_color;
background-color: $black;
}
@ -120,7 +120,7 @@ mark {
span {
}
.span_solo {
.span__solo {
@extend %solo;
}