@use "sass:map"; @use "../global/config"; @use "../global/common"; @use "../elements/interactive"; @use "../mixins/media_query" as *; // Root // ----------------------------------------------------------------------------- html { // height: 100%; } // Sections // ----------------------------------------------------------------------------- // body // article // section // nav // aside // h1-h6 // hgroup // header // footer // Body // ----------------------------------------------------------------------------- body { position: relative; box-sizing: config.$box_sizing; margin: 0; font-family: config.$family_text_basic; font-size: config.$size_text_basic; line-height: config.$line_text_basic; color: config.$color_text_basic; background-color: config.$color_back_basic; *, ::before, ::after { box-sizing: inherit; } &:hover { #mouse_overlay { background-color: transparent !important; transition: background-color config.$duration_basic config.$timing_basic 0s !important; } } } // Article // ----------------------------------------------------------------------------- article { } // Section // ----------------------------------------------------------------------------- section { } .sec_main_center { width: config.$width_basic; margin: 0 auto; padding-top: config.$space_small; @include forTabletPortraitUp { width: config.$width_small; } @include forTabletLandscapeUp { width: config.$width_medium; } @include forBigDesktopUp { width: config.$width_large; } } .sec_main_status { border-top-width: config.$width_border_8; border-top-style: solid; border-color: config.$color_border_basic; padding-top: config.$space_small; } // Navigation // ----------------------------------------------------------------------------- nav { ul { margin: 0; &.inline li { display: inline-block; } } } // Aside element // ----------------------------------------------------------------------------- aside { width: config.$width_aside_basic; &.right + .bside { margin-right: calc(#{config.$width_aside_basic} + #{config.$space_basic}); } &.left + .bside { margin-left: calc(#{config.$width_aside_basic} + #{config.$space_basic}); } &.right { float: right; } &.left { float: left; } *:first-child { margin-top: 0; } &.io { input, textarea, select, button { display: block; width: 100%; } input { @extend .input_io; } textarea { @extend .io_textarea; } select { @extend .io_select; } button { @extend .button_io; } .a_button { display: flex; } ul.vertical li { margin-bottom: config.$space_half; .a_button > i:last-child { margin-left: auto; } } } } // Headings // ----------------------------------------------------------------------------- h1, h2, h3, h4, h5, h6 { @extend %head_all; } h1 { @extend %head_1; margin: config.$space_large 0 config.$space_small; } h2 { @extend %head_2; margin: config.$space_medium 0 config.$space_small; } h1 + h1, h2 + h2 { margin-top: 0; } h3 { @extend %head_3; margin: config.$space_double 0; text-transform: uppercase; } h4 { @extend %head_3; margin: config.$space_double 0; text-transform: none; } h5 { @extend %head_4; margin: config.$space_double 0 config.$space_basic; text-transform: none; } h6 { @extend %basic; margin: config.$space_basic 0; text-transform: none; font-weight: bold; } hgroup { & > h1, & > h2 { margin-bottom: 0; } & > p { margin-bottom: config.$space_small; } } // Header // ----------------------------------------------------------------------------- header { &.io { z-index: map.get(config.$z-indexes, "content-top"); & > *:last-child *:last-child { margin-right: 0; } & > *:first-child *:first-child { margin-left: 0; } nav, ul { @extend %flex_inline; align-items: stretch; } nav:last-child { margin-left: auto; } h1 { margin: 0; } } } .header_page { overflow: auto; } .header_txt { margin-bottom: config.$space_small; border-bottom: config.$border_dotted; h1 { border-top: config.$border_basic; } } // Footer // ----------------------------------------------------------------------------- footer { &.io { nav { @extend %flex_inline; align-items: stretch; input, select, button, span, div:not(.spacer) { padding: 0 config.$space_half !important; } } } }