diff --git a/_config.scss b/_config.scss index 66d399b..690aeac 100644 --- a/_config.scss +++ b/_config.scss @@ -4,7 +4,7 @@ // TEXT // ------------------------------------------------------------------------------ -$default_font_size: 16px !default; +$default_font_size: 17px !default; $basic_size: $default_font_size; $default_print_font_size: 10pt !default; @@ -30,7 +30,7 @@ $head_line_2: $text_line_1; $head_line_3: $text_line_1; $head_line_4: $text_line_1; -$default_font_family: #{'Roboto', 'Trebuchet MS', Helvetica, 'Source Sans', Arial, sans-serif, sans} !default; +$default_font_family: #{'Roboto', 'Segoe UI', 'Liberation Sans', 'Source Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif, sans} !default; $print_font_family: #{'Times New Roman', times}; $monospace_font_family: #{'Courier New', monospace}; @@ -56,23 +56,25 @@ $black: black !default; $white: white !default; $medium_gray: lighten($black, 50%) !default; +$default_front_color: $black !default; +$default_back_color: $medium_gray !default; -$basic_font_color: $black; -$basic_head_color: $black; +$basic_font_color: $default_front_color; +$basic_head_color: $default_front_color; $basic_link_color: $echo_color; $basic_highlight_color: $white; $basic_action_color: $foxtrot_color; -$default_background_color: $medium_gray !default; -$basic_background_color: $default_background_color; -$light_color: lighten($basic_background_color,5%); -$dark_color: darken($basic_background_color,10%); +$basic_back_color: $default_back_color; -$basic_border_color: $black; +$light_color: lighten($basic_back_color, 5%); +$dark_color: darken($basic_back_color, 10%); + +$basic_border_color: $default_front_color; // default shadow colors -// $shadow_color: fade-out($medium_gray, 0.5); +// $shadow_color: fade-out($medium_gray, .5); @@ -113,7 +115,7 @@ $basic_aside_width: 20%; // ------------------------------------------------------------------------------ $basic_io_font_color: darken($white, 10%); -$basic_io_background_color: lighten($black, 25%); +$basic_io_back_color: lighten($black, 25%); $basic_shadow: inset 0 1px 3px rgba($black, 0.06); $basic_focus_shadow: $basic_shadow, 0 0 5px adjust-color($basic_action_color, $lightness: -5%, $alpha: -0.3); @@ -254,14 +256,14 @@ $webkit_ms_support: -webkit- -ms- ''; /////// Config defaults for forms /////// // ----------------------------------------------------------------------------- -// $alert_background_color: $alpha_color; +// $alert_back_color: $alpha_color; // $input_disabled: $bravo_gray; // $input_disabled_bkg: lighten($input_disabled, 75%); // $input_disabled_border: lighten($input_disabled, 50%); // $input_disabled_text: lighten($input_disabled, 50%); // -// $form_field_background_color: $white; +// $form_field_back_color: $white; // $form_field_focus_color: $white; // $form_field_fail_bkg: $alpha_color_juliet; diff --git a/_default.scss b/_default.scss index a7c793c..f5c2523 100644 --- a/_default.scss +++ b/_default.scss @@ -12,7 +12,7 @@ //$white: white !default; //$medium_gray: lighten($black, 50%) !default; -//$default_background_color: lighten(black, 50%); +//$default_back_color: lighten(black, 50%); //$default_space: 8px; diff --git a/basic/_common.scss b/basic/_common.scss index 92901ad..021092f 100644 --- a/basic/_common.scss +++ b/basic/_common.scss @@ -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:[][;charset=][;base64],*/ - background: url("data:image/svg+xml;utf8,") 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; -} diff --git a/basic/_grouping.scss b/basic/_grouping.scss index a3694a1..c6a8277 100644 --- a/basic/_grouping.scss +++ b/basic/_grouping.scss @@ -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:[][;charset=][;base64],*/ + background: url("data:image/svg+xml;utf8,") no-repeat; + background-color: rgba($black,.1); +} diff --git a/basic/_interactive.scss b/basic/_interactive.scss index 74f943b..a77b7b2 100644 --- a/basic/_interactive.scss +++ b/basic/_interactive.scss @@ -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 { diff --git a/basic/_sections.scss b/basic/_sections.scss index 6cbf3b2..97638fd 100644 --- a/basic/_sections.scss +++ b/basic/_sections.scss @@ -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, diff --git a/basic/_textlevel.scss b/basic/_textlevel.scss index 9f3a554..f929f72 100644 --- a/basic/_textlevel.scss +++ b/basic/_textlevel.scss @@ -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; } diff --git a/example.css b/example.css index 5a15c95..d3e13d4 100644 --- a/example.css +++ b/example.css @@ -59,105 +59,71 @@ margin-right: 0; margin-left: 0; } -.viewport-full-body { +.pos_full_view { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; } -.relative { +.pos_rel { position: relative; } -.div_fix { +.pos_fix { position: fixed; } -.bottom { +.pos_bottom { bottom: 0; } -.viewport-full-body { +.pos_full_view { background-color: rgba(250, 216, 3, 0.5); } -.hover_background_change { - background-color: #4d4d4d; +.hover_back_change { + background-color: #666666; transition: background-color .2s ease-in-out; } - .hover_background_change:hover { + .hover_back_change:hover { background-color: gray; } -.space_box { - float: left; - display: table; - width: 64px; - text-align: center; - vertical-align: middle; } - .space_box span { - display: table-cell; } - -.div_placeholder { - width: 100%; - height: 64px; - border: 4px solid rgba(0, 0, 0, 0.1); - border-radius: 4px; - padding: 8px; - background-color: rgba(0, 0, 0, 0.1); } - .div_placeholder svg { - vertical-align: top; } - -.div_placeholder_bkg { - width: 100%; - height: 64px; - border: 4px solid rgba(0, 0, 0, 0.1); - border-radius: 4px; - padding: 8px; - /*data:[][;charset=][;base64],*/ - background: url("data:image/svg+xml;utf8,") no-repeat; - background-color: rgba(0, 0, 0, 0.1); } - -.div_info { - padding: 16px 2em; - border-right: 8px solid rgba(82, 190, 209, 0.6); - background-color: rgba(82, 190, 209, 0.1) !important; } - -.span_solo, h6, p, .p_col_2, .p_col_3, caption, li, dt, dd, figcaption, th, td, legend, label { - font-family: Roboto, Trebuchet MS, Helvetica, Source Sans, Arial, sans-serif, sans; +.span__solo, h6, p, .p__col_2, .p__col_3, caption, li, dt, dd, figcaption, th, td, legend, label { + font-family: Roboto, Segoe UI, Liberation Sans, Source Sans, Trebuchet MS, Helvetica, Arial, sans-serif, sans; font-size: 1em; line-height: 1.5; } -pre, code, .code_solo { +pre, code, .code__solo { font-family: Courier New, monospace; font-size: 1em; line-height: 1.5; } -.print_body *[class^="din"] p, .print_body *[class^="din"] .p_col_2, .print_body *[class^="din"] .p_col_3, .print_body *[class^="din"] caption { +.print_body *[class^="din"] p, .print_body *[class^="din"] .p__col_2, .print_body *[class^="din"] .p__col_3, .print_body *[class^="din"] caption { font-family: Courier New, monospace; font-size: 1em; line-height: 1.5; } -h1, .exp_help_btn .span_solo, .print_body .page_date, .print_body .page_no { - font-family: Roboto, Trebuchet MS, Helvetica, Source Sans, Arial, sans-serif, sans; +h1, .print_body .page_date, .print_body .page_no { + font-family: Roboto, Segoe UI, Liberation Sans, Source Sans, Trebuchet MS, Helvetica, Arial, sans-serif, sans; font-size: 3.1em; font-weight: 300; line-height: 1.5; } h2 { - font-family: Roboto, Trebuchet MS, Helvetica, Source Sans, Arial, sans-serif, sans; + font-family: Roboto, Segoe UI, Liberation Sans, Source Sans, Trebuchet MS, Helvetica, Arial, sans-serif, sans; font-size: 2.5em; font-weight: 300; line-height: 1.5; } h3, h4 { - font-family: Roboto, Trebuchet MS, Helvetica, Source Sans, Arial, sans-serif, sans; + font-family: Roboto, Segoe UI, Liberation Sans, Source Sans, Trebuchet MS, Helvetica, Arial, sans-serif, sans; font-size: 1.8em; font-weight: 300; line-height: 1.5; } h5 { - font-family: Roboto, Trebuchet MS, Helvetica, Source Sans, Arial, sans-serif, sans; + font-family: Roboto, Segoe UI, Liberation Sans, Source Sans, Trebuchet MS, Helvetica, Arial, sans-serif, sans; font-size: 1.35em; font-weight: 300; line-height: 1.5; } -.span_solo { +.span__solo { color: black; } .table-link_list .cell_text .shorten { @@ -179,8 +145,8 @@ html { body { box-sizing: box-sizing; - font-family: Roboto, Trebuchet MS, Helvetica, Source Sans, Arial, sans-serif, sans; - font-size: 16px; + font-family: Roboto, Segoe UI, Liberation Sans, Source Sans, Trebuchet MS, Helvetica, Arial, sans-serif, sans; + font-size: 17px; line-height: 1; color: black; background-color: gray; } @@ -227,55 +193,55 @@ h6 { text-transform: none; font-weight: bold; } -p, .p_col_2, .p_col_3, caption { +p, .p__col_2, .p__col_3, caption { margin: 8px 0; color: black; } - p code, .p_col_2 code, .p_col_3 code, caption code { + p code, .p__col_2 code, .p__col_3 code, caption code { padding: 1px 4px; font-size: 1em; line-height: 1; } -.p_col_line { +.p__col_line { column-rule: 1px solid black; } -.p_col_2 { +.p__col_2 { column-count: 2; column-gap: 32px; } -.p_col_3 { +.p__col_3 { column-count: 3; column-gap: 64px; } -hr, .hr_hidden, .hr_dotted { +hr, .hr__hidden, .hr__dotted { margin: 32px auto; border-width: 1px 0 0; border-style: solid; border-color: black; } -.hr_hidden { +.hr__hidden { border-color: transparent; } -.hr_dotted { +.hr__dotted { border-style: dotted; } -.pre_code { +.pre__code { border-color: rgba(255, 255, 255, 0.1); border-style: dotted; border-width: 0 0 0 4px; border-radius: 4px; padding: 8px; background-color: rgba(255, 255, 255, 0.1); } - .pre_code code { + .pre__code code { background-color: transparent; } blockquote { margin: 8px 2em; } -.quote_mark p::before, .quote_mark .p_col_2::before, .quote_mark .p_col_3::before, .quote_mark caption::before { +.quote__mark p::before, .quote__mark .p__col_2::before, .quote__mark .p__col_3::before, .quote__mark caption::before { content: "\201E \0020"; } -.quote_mark p::after, .quote_mark .p_col_2::after, .quote_mark .p_col_3::after, .quote_mark caption::after { +.quote__mark p::after, .quote__mark .p__col_2::after, .quote__mark .p__col_3::after, .quote__mark caption::after { content: "\201C \0020"; } -.quote_mark .quote_source::before, .quote_mark .quote_source::after { +.quote__mark .quote__source::before, .quote__mark .quote__source::after { content: ""; } dl, ul, ol { @@ -293,10 +259,10 @@ dd { ul li { list-style: square; } -.list_dash li { +.list__dash li { list-style: none; position: relative; } - .list_dash li:before { + .list__dash li:before { content: "_"; position: absolute; left: -1em; } @@ -304,7 +270,7 @@ ul li { figure { margin: 16px 2em; } -.screen-box { +.box__screen { width: 96%; margin: 0 auto; border-top-width: 8px; @@ -312,33 +278,67 @@ figure { border-color: black; padding-top: 32px; } @media screen and (orientation: landscape) and (min-width: 1024px) { - .screen-box { + .box__screen { width: 80%; } } @media screen and (orientation: landscape) and (min-width: 1280px) { - .screen-box { + .box__screen { width: 60%; } } @media screen and (orientation: landscape) and (min-width: 1920px) { - .screen-box { + .box__screen { width: 48%; } } @media screen and (orientation: portrait) and (min-width: 1024px) { - .screen-box { + .box__screen { width: 80%; } } +.box__info { + padding: 16px 2em; + border-right: 8px solid rgba(82, 190, 209, 0.6); + background-color: rgba(82, 190, 209, 0.1) !important; } + +.box__space { + float: left; + display: table; + width: 64px; + text-align: center; + vertical-align: middle; } + .box__space span { + display: table-cell; } + +.box__placeholder { + width: 100%; + height: 64px; + border: 4px solid rgba(0, 0, 0, 0.1); + border-radius: 4px; + padding: 8px; + background-color: rgba(0, 0, 0, 0.1); } + .box__placeholder svg { + vertical-align: top; } + +.box__placeholder_bkg { + width: 100%; + height: 64px; + border: 4px solid rgba(0, 0, 0, 0.1); + border-radius: 4px; + padding: 8px; + /*data:[][;charset=][;base64],*/ + background: url("data:image/svg+xml;utf8,") no-repeat; + background-color: rgba(0, 0, 0, 0.1); } + a { color: #52bed1; text-decoration: none; } a:active, a:focus, a:hover { color: white; } -.link_line { +.a__line { border-bottom-width: 1px; border-bottom-style: dotted; border-color: black; background-color: transparent; color: black; transition: color 150ms ease; } - .link_line:active, .link_line:focus, .link_line:hover { + .a__line:active, .a__line:focus, .a__line:hover { background-color: #0c85ff; color: white; } @@ -355,14 +355,14 @@ code { color: #1f1f1f; background-color: rgba(255, 255, 255, 0.1); } -.code_solo { +.code__solo { padding: 1px 4px; color: black; } mark { background-color: #fad803; } -.mark_cursor { +.mark__cursor { color: white; background-color: black; } @@ -550,7 +550,7 @@ legend { font-size: 24px; line-height: 1.4em; font-weight: normal; } - .card_body p, .card_body .p_col_2, .card_body .p_col_3, .card_body caption { + .card_body p, .card_body .p__col_2, .card_body .p__col_3, .card_body caption { margin-top: 0; margin-bottom: 16px; font-size: 12px; @@ -617,19 +617,19 @@ legend { .exp_marker_pop { position: absolute; - top: -12px; - right: -8px; - width: 16px; - height: 16px; + top: -12.75px; + right: -8.5px; + width: 17px; + height: 17px; border: 1px solid white; - border-radius: 16px; + border-radius: 17px; color: white; background-color: black; } .exp_overlay_btn { position: fixed; - width: 64px; - height: 64px; + width: 3em; + height: 2em; cursor: pointer; } .exp_help_btn { @@ -639,12 +639,13 @@ legend { background-color: rgba(0, 0, 0, 0.4); } .exp_help_btn:hover { background-color: white; } - .exp_help_btn:hover > .span_solo { - color: #52bed1; } - .exp_help_btn .span_solo { + .exp_help_btn:hover > .span__solo { + color: black; } + .exp_help_btn .span__solo { display: table-cell; - color: rgba(82, 190, 209, 0.6); - font-weight: bold; + color: rgba(255, 255, 255, 0.8); + font-family: Courier New, monospace; + font-size: 1.4em; text-align: center; vertical-align: middle; } @@ -724,7 +725,7 @@ legend { flex-direction: row; } .print_body *[class^="din"] .page_foot *:last-child { margin-bottom: 0; } - .print_body *[class^="din"] .page_foot p, .print_body *[class^="din"] .page_foot .p_col_2, .print_body *[class^="din"] .page_foot .p_col_3, .print_body *[class^="din"] .page_foot caption { + .print_body *[class^="din"] .page_foot p, .print_body *[class^="din"] .page_foot .p__col_2, .print_body *[class^="din"] .page_foot .p__col_3, .print_body *[class^="din"] .page_foot caption { flex: 1 0 auto; margin: 0; font-size: 8pt; @@ -735,7 +736,7 @@ legend { font-size: 20pt; line-height: 1; text-align: right; } - .print_body *[class^="din"] .page_foot p:first-child, .print_body *[class^="din"] .page_foot .p_col_2:first-child, .print_body *[class^="din"] .page_foot .p_col_3:first-child, .print_body *[class^="din"] .page_foot caption:first-child { + .print_body *[class^="din"] .page_foot p:first-child, .print_body *[class^="din"] .page_foot .p__col_2:first-child, .print_body *[class^="din"] .page_foot .p__col_3:first-child, .print_body *[class^="din"] .page_foot caption:first-child { text-align: left; } .print_body *[class^="din"] .page_content { margin-top: 10cm; diff --git a/example.html b/example.html index 3f0be4e..1bbe8bc 100644 --- a/example.html +++ b/example.html @@ -14,13 +14,13 @@ - +
-
?
+
?
-
+
Dies ist einfach nur Text.
Weniger wäre Nichts, denn dieser Text ist nicht durch ein spezifisches Element umschlossen.

Es wirken nur die Eigenschaften des <body> Elements. Dieses Element umschließt den gesamten Inhalt des Dokumentes und kommt daher nur einmal vor. Inhalte sind normalerweise durch Elemente definiert. Grundlegende Elemente teilen das Dokument zunächst in Abschnitte.

Bereiche

@@ -61,19 +61,19 @@

Ein Absatz <p>. Zugegeben ein kurzer.

Aus mehreren Absätzen wird ein ganzer Text. Solche Texte haben gelegentlich großen informativen oder unterhaltsamen Charakter.
Einfache Zeilenumbrüche werden darin mit <br> erreicht.

Die Unterteilung in Absätze ist eine von vielen Möglichkeiten Texte zu gruppieren und ihnen Struktur zu verleihen. In diesem Dokument flattert Text normalerweise von Links daher. Er ist schwarz und in einer serifenlosen Schrift gesetzt. Zu weiteren Formatierungen, die eher auf einer Ebene der Zeichen einzuordnen ist, wird im Verlauf näher eingegangen. Zunächst die Struktur:

-

Text sitzt gerne auch mal zentriert.

p.txt_center
-

Rechtsbündig ist schon eher eine Ausnahme bzw. Besonderheit.

p.txt_right
+

Text sitzt gerne auch mal zentriert.

p.txt_center
+

Rechtsbündig ist schon eher eine Ausnahme bzw. Besonderheit.

p.txt_right

Texte können auf verschiedene Arten unterteilt werden. Dafür werden unterschiedlich formatierte <hr> Elemente verwendet. Die horizontale Linie ist die Ausgangsformatierung, daher auch der abgekürzte Name des Elements. Eine Linie ist schwarz und durchgezogen.


Es ist auch eine unsichtbare Unterteilung möglich:

-
hr.hr_hidden
+
hr.hr__hidden

Die Linie darf auch gepunkted sein. Zudem sind verschiedene Längen möglich. Diese sind immer ein Prozentwert der verfügbaren Breite. Hier in gleicher Reihenfolge 100%, 50% und 25%:

-
hr.hr_dotted
-
hr.center_50
-
hr.hr_dotted.center_25
-

Zur horizontalen Unterteilung kommt natürlich auch eine vertikale Trennung hinzu. Text kann so zum Beispiel in mehrere Spalten unterteilt werden. Dies ist hilfreich, wenn ein Text durch eine breite Fläche sehr lange Zeilen bekommen würde. Es ist dann schwer den neuen Zeilanfang zu finden. Die vertikale Trennung dient in erster Linie dazu, diesem Umstand zu begegnen. Auch hier kann die Unterteilung viele Formen annehmen.

p.p_col_2
-

Drei Spalten gilt es jetzt also zu Füllen. Dann erst wird die Trennung der Spalten durch eine Linie sichtbar.

p.p_col_3.p_col_line
-

Ist der Text nicht lang genug bleibt eventuell eine Spalte leer. Diesmal wird dies aber nicht passieren, denn das Anschauungsbeispiel ist ja nun durch den vorherigen Absatz schon gegeben.
Oft ist es sinnvoll, Absätze mit mehreren Spalten deutlich von nachfolgenden Absätzen zu trennen. Da der Textfluss spaltenweise verläuft, liest man eventuell an der falschen Stelle weiter. Ach das ziegen diese beiden Absätze ganz gut.

+
hr.hr__dotted
+
hr.center_50
+
hr.hr__dotted.center_25
+

Zur horizontalen Unterteilung kommt natürlich auch eine vertikale Trennung hinzu. Text kann so zum Beispiel in mehrere Spalten unterteilt werden. Dies ist hilfreich, wenn ein Text durch eine breite Fläche sehr lange Zeilen bekommen würde. Es ist dann schwer den neuen Zeilanfang zu finden. Die vertikale Trennung dient in erster Linie dazu, diesem Umstand zu begegnen. Auch hier kann die Unterteilung viele Formen annehmen.

p.p__col_2
+

Drei Spalten gilt es jetzt also zu Füllen. Dann erst wird die Trennung der Spalten durch eine Linie sichtbar.

p.p__col_3.p__col_line
+

Ist der Text nicht lang genug bleibt eventuell eine Spalte leer. Diesmal wird dies aber nicht passieren, denn das Anschauungsbeispiel ist ja nun durch den vorherigen Absatz schon gegeben.
Oft ist es sinnvoll, Absätze mit mehreren Spalten deutlich von nachfolgenden Absätzen zu trennen. Da der Textfluss spaltenweise verläuft, liest man eventuell an der falschen Stelle weiter. Ach das ziegen diese beiden Absätze ganz gut.

Es gibt die Möglichkeit vorformatierten Text darzustellen <pre>.

Dadurch
bleiben
Einrückungen
durch
Tabulatoren
erhalten.

Text bekommt durch Listen besondere optische wie auch inhaltliche Struktur. Es gibt ungeordnete <ul> und geordnete Listen <ol> sowie Beschreibungslisten <dl>. Die beiden ersten Varianten beinhalten das Listenelement <li>. Beschreibungslisten beinhalten jeweils das Paar von Ausdruck <dt> und Beschreibung <dd>. Im Folgenden eine Liste der Listen in ihrer Ausgangskonfiguration:

@@ -81,7 +81,7 @@
  • Ungeordnete
  • Listen
  • -
      +
      • Verschiedener
      • Art
      @@ -98,9 +98,9 @@

      Wird Bezug auf fremde Inhalte genommen, kommt ein Zitat <blockquote> zur Anwendung. Es besteht aus der Aussage und der Quelle.

      Ein Zitat (das, lateinisch citatum „Angeführtes, Aufgerufenes“ zu lat. citāre „in Bewegung setzen, vorladen“, vgl. „jemanden vor Gericht zitieren“) ist eine wörtlich übernommene Stelle aus einem Text oder ein Hinweis auf eine bestimmte Textstelle.

      -

      Wikipedia

      +

      Wikipedia

      -
      blockquote>p+p.quote_source
      +
      blockquote>p+p.quote__source

      Auch Inhalte, die nicht in Textform sind, können durch einen Bezug integriert werden. Wie diese Fahne werden sie mit <figure> umschlossen und tragen eine Bezeichnung.

      Fahne
      @@ -116,29 +116,29 @@
      -
      figure>figcaption+{element}
      +
      figure>figcaption+{element}

      Eine von sich aus undefinierte Möglichkeit zur Gruppierung von Text besteht durch <div>. Dieses Element hat, ohne weitere Klassifizierung keine Auswirkungen auf die Erscheinung oder die inhaltliche Aussage. Daher der allgemeine Einsatz.

      -

      Es wird allerdings häufig eingesetzt und bekommt vielfältige Funktionen zugeordnet wie diese hervorgehobene Information zeigt.

      +

      Es wird allerdings häufig eingesetzt und bekommt vielfältige Funktionen zugeordnet wie diese hervorgehobene Information zeigt.

      Eine sehr klar definierte Gruppierung stellt das Element <main> dar. Es umschließt den hauptsächlichen Inhalt des Dokumentes.

      Textebene

      Verweise

      -

      Ein wesentlicher Bestandteil von Hypertext sind Verweise <a>. Sie dienen als Sprungmarken innerhalb des Netzwerks. Es kann grob zwischen internen und externen Verweisen unterschieden werden. Interne Verweisea.link_line können Verknüpfungen innerhalb des aktuellen Dokumentes sein oder auch Funktionen aktivieren. Externe Verweise verknüpfen Inhalte über das gesamte Netzwerk hinweg. Sie können auch auf E-Mail Adressen oder Dateien zeigen.

      -

      Nicht nur Text kann als Verweis verwendet werden. Auch andere Elemente wie Bilder können verknüpft werden. Abhängig von ihrer Funktion und ihrem Zweck, werden Verweise unterschiedlich formatiert. Farbige oder unterstrichene Varianten sind möglich.

      +

      Ein wesentlicher Bestandteil von Hypertext sind Verweise <a>. Sie dienen als Sprungmarken innerhalb des Netzwerks. Es kann grob zwischen internen und externen Verweisen unterschieden werden. Interne Verweisea.a__line können Verknüpfungen innerhalb des aktuellen Dokumentes sein oder auch Funktionen aktivieren. Externe Verweise verknüpfen Inhalte über das gesamte Netzwerk hinweg. Sie können auch auf E-Mail Adressen oder Dateien zeigen.

      +

      Nicht nur Text kann als Verweis verwendet werden. Auch andere Elemente wie Bilder können verknüpft werden. Abhängig von ihrer Funktion und ihrem Zweck, werden Verweise unterschiedlich formatiert. Farbige oder unterstrichene Varianten sind möglich.

      Wird der Verweis innerhalb eines <nav> Elementes notiert, bekommt er die spezielle Bedeutung eines Navigationsverweises innerhalb des Dokumentes oder der Anwendung. Auf diese Verwendung wird im Folgenden genauer eingegangen ...

      Formatierungen

      Texte, Wörter oder Zeichen können vielfältig formatiert werden. Sie können fett <b> oder kursiv <i> geschrieben sein. Auch beides ist möglich!?! Sollen sie nicht nur anders aussehen, sondern auch eine besondere inhaltliche Bedeutung bekommen, werden sie mit <strong> und <em> ausgezeichnet.

      Gerade bei wörtlichen Zitierungen kommt häufig das Anführungszeichen zum Einsatz. Es kann durch die Formatierung automatisch ergänzt werden.

      -
      +

      Das kannst du schon so machen aber dann isses halt Kacke.

      -

      o. V.

      +

      o. V.

      -
      blockquote.quote_mark>p+p.quote_source
      +
      blockquote.quote__mark>p+p.quote__source

      Ein besonderer inhaltlicher Bezug ist der Titel eines Werkes. Sowas kann mit <cite> ausgezeichnet werden. Pulp Fiction, super Film - zum Beispiel.

      Auch die Auszeichnung <code> wurde bis hier hin schon verwendet. Sie markiert Maschinensprache. Für zusammenhängende Blöcke wird die Auszeichnung oft in Kombination mit dem Element <pre> verwendet:

      -
      <html>
      <head>
      <title>Hyper Text Markup Language</title>
      </head>
      <body id="root">
      <!-- Content goes here -->
      <p class="example">Just like this.</p>
      </body>
      </html>
      +
      <html>
      <head>
      <title>Hyper Text Markup Language</title>
      </head>
      <body id="root">
      <!-- Content goes here -->
      <p class="example">Just like this.</p>
      </body>
      </html>

      Dabei bleiben vorhandene Textformatierungen wie Zeilenumbrüche und Einrückung erhalten.

      Die Zeichen in Absätzen bis hin zu ganzen Texten können, mit einem geeigneten Eingabegerät, markiert werden. Dies stellt sich wie folgt dar:

      -

      Beispiel zum markieren ^^.

      +

      Beispiel zum markieren ^^.

      Eine Markierung kann, mittels <mark>, auch durch den Autor geschehen. Diese stellt sich ein wenig anders dar: Diese Worte sind markiert.

      Änderungen

      @@ -160,7 +160,7 @@ -
      table.width_full>tbody>tr>td*2^tr>td[colspan=2]
      +
      table.width_full>tbody>tr>td*2^tr>td[colspan=2]
      @@ -173,7 +173,7 @@
      -
      table>tbody>tr>td*2^tr>td[colspan=2]
      +
      table>tbody>tr>td*2^tr>td[colspan=2]
      @@ -185,7 +185,7 @@
      -
      table.table_blank>tbody>tr>td*2^tr>td[colspan=2]
      +
      table.table_blank>tbody>tr>td*2^tr>td[colspan=2]

      Die nächste Tabelle verwendet alle zur Auszeichnung verfügbaren Elemente und hat eine starre Zellverteilung:

      @@ -227,8 +227,8 @@
      -
      table.width_full.table_fix>caption+thead>tr>th*3^^tfoot>tr>td*3^^tbody>(tr>td*3)*3
      -
      +
      table.width_full.table_fix>caption+thead>tr>th*3^^tfoot>tr>td*3^^tbody>(tr>td*3)*3
      +

      Viele weitere Formate sind möglich ...

      @@ -260,7 +260,7 @@
      -
      table.width_full>thead>tr>th.precol+th[colspan=2]^^tbody>tr>td.precol+td*2^tr>td.precol+td[colspan=2]
      +
      table.width_full>thead>tr>th.precol+th[colspan=2]^^tbody>tr>td.precol+td*2^tr>td.precol+td[colspan=2]
      @@ -358,14 +358,14 @@

      Struktur

      -
      +
      -
      -
      +
      +

      Medien

      Druck

      @@ -417,7 +417,7 @@
      -
      table.table-link_list>thead>tr>th*3^^(tbody>tr>td.cell_icon[rowspan=2]>img[width=16 height=16]^+td.cell_link>a.link_text[target=_blank]+a.link_url[target=_blank]^+td.cell_date[rowspan=2]{YYYY-MM-DD}^tr>td.cell_text>div.shorten)*2
      +
      table.table-link_list>thead>tr>th*3^^(tbody>tr>td.cell_icon[rowspan=2]>img[width=16 height=16]^+td.cell_link>a.link_text[target=_blank]+a.link_url[target=_blank]^+td.cell_date[rowspan=2]{YYYY-MM-DD}^tr>td.cell_text>div.shorten)*2
      @@ -464,6 +464,7 @@ ); // WIP Activates layer with explanation elements + // Besser :after oder :before benutzen $(".exp_help_btn").click(function(e){ var $wrap, $pop; diff --git a/modules/explanation/_explanation_module.scss b/modules/explanation/_explanation_module.scss index a05af2d..96e151a 100644 --- a/modules/explanation/_explanation_module.scss +++ b/modules/explanation/_explanation_module.scss @@ -47,9 +47,9 @@ top: $space_5; left: $space_5; padding: $half_space; - border: 4px solid $basic_background_color; + border: 4px solid $basic_back_color; border-radius: 4px; - background-color: $basic_background_color; + background-color: $basic_back_color; pointer-events: none; } .exp_marker_pop { @@ -68,16 +68,17 @@ @extend %expose !optional; } .exp_expose_pre { - @extend %expose_after + @extend %expose_after; } .exp_expose_post { - @extend %expose_before + @extend %expose_before; } .exp_overlay_btn { position: fixed; - width: $size_1; - height: $size_1; + width: 3em; + height: 2em; + // padding: $basic_space $basic_space * 2; cursor: pointer; } .exp_help_btn { @@ -87,15 +88,15 @@ background-color: rgba($black, .4); &:hover { background-color: $white; - > .span_solo { - color: $echo_color; + > .span__solo { + color: $black; } } - .span_solo { - @extend %head_1; + .span__solo { display: table-cell; - color: rgba($echo_color, .6); - font-weight: bold; + color: rgba($white, .8); + font-family: $monospace_font_family; + font-size: 1.4em; text-align: center; vertical-align: middle; }