hippie-style/elements/_sections.scss

291 lines
4.3 KiB
SCSS
Raw Normal View History

@use "../global/config";
@use "../global/common";
@use "../elements/interactive";
@use "../mixins/media_query" as *;
@use "sass:map";
// Root
// -----------------------------------------------------------------------------
html {
// height: 100%;
}
// Sections
// -----------------------------------------------------------------------------
// body
// article
// section
// nav
// aside
// h1-h6
2025-09-29 20:39:41 +02:00
// 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 {
2025-10-25 09:17:58 +02:00
#mouse-overlay {
background-color: transparent !important;
transition: background-color config.$duration_basic config.$timing_basic 0s !important;
}
}
}
// Article
// -----------------------------------------------------------------------------
2025-10-25 09:17:58 +02:00
article {
}
// Section
// -----------------------------------------------------------------------------
2025-10-25 09:17:58 +02:00
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;
2025-10-25 09:17:58 +02:00
&.right + .bside {
margin-right: calc(#{config.$width_aside_basic} + #{config.$space_basic});
}
2025-10-25 09:17:58 +02:00
&.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;
2025-10-25 09:17:58 +02:00
.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;
}
2025-10-25 09:17:58 +02:00
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;
}
2025-09-29 20:39:41 +02:00
hgroup {
2025-10-25 09:17:58 +02:00
& > h1,
& > h2 {
2025-09-29 20:39:41 +02:00
margin-bottom: 0;
}
2025-10-25 09:17:58 +02:00
& > p {
margin-bottom: config.$space_small;
2025-09-29 20:39:41 +02:00
}
}
// Header
// -----------------------------------------------------------------------------
header {
&.io {
z-index: map.get(config.$z-indexes, "content-top");
2025-10-25 09:17:58 +02:00
& > *:last-child *:last-child {
margin-right: 0;
}
2025-10-25 09:17:58 +02:00
& > *: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;
2025-06-22 17:41:31 +02:00
input,
select,
button,
span,
div:not(.spacer) {
padding: 0 config.$space_half !important;
2025-06-22 17:41:31 +02:00
}
}
}
}