120 lines
2.3 KiB
CSS
120 lines
2.3 KiB
CSS
|
|
/*---------------------------------------------*/
|
|
/*SKELETON*/
|
|
/*the position, size, and orientation of all elements without style or spaces*/
|
|
body, body * {
|
|
display: flex;
|
|
/*by default all elements are verticals*/
|
|
flex-direction: column;
|
|
}
|
|
html {
|
|
scroll-behavior: smooth;
|
|
/*default font-size for rem*/
|
|
font-size: var(--base-font-size);
|
|
}
|
|
body {
|
|
background-color: var(--color-back-base);
|
|
}
|
|
nav {
|
|
flex-direction: row;
|
|
/*we have to set the height to use the height % for childs elements*/
|
|
height: var(--nav-height);
|
|
background-color: var(--color-back-base);
|
|
z-index: 10;
|
|
border-bottom: 1px solid var(--color-lines-4);
|
|
}
|
|
nav iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.container_main {
|
|
flex-direction: row;
|
|
}
|
|
.container_main > * {
|
|
margin: 0px auto;
|
|
}
|
|
aside.aside_left {
|
|
top: calc(var(--nav-height) + 1px);
|
|
height: calc(100vh - var(--nav-height) - 1px);
|
|
background-color: var(--color-back-base);
|
|
}
|
|
main {
|
|
background-color: var(--color-back-base);
|
|
min-height: calc(100vh - 1px - var(--nav-height) - var(--footer-height));
|
|
}
|
|
aside.aside_right {
|
|
background-color: var(--color-back-base);
|
|
}
|
|
footer {
|
|
height: var(--footer-height);
|
|
}
|
|
footer iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
|
|
/*---------------------------------------------*/
|
|
/*DESIGN KEYWORDS*/
|
|
/* contains elements oriented vertically (default) or horizontally*/
|
|
.vertical {
|
|
flex-direction: column;
|
|
}
|
|
/* horizontal is only in web version, it becomes vertical in mobile design*/
|
|
.horizontal {
|
|
flex-direction: row;
|
|
}
|
|
/* self position of elements to the left, the right, or the center of their container*/
|
|
.right {
|
|
margin-right: 0px;
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
.left > * {
|
|
margin-left: 0px;
|
|
}
|
|
.center {
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
text-align: center;
|
|
}
|
|
.sticky {
|
|
position: -webkit-sticky; /*safari*/
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
/*dropdown element*/
|
|
/*
|
|
.dropdown
|
|
.drop .drop_title
|
|
.drop_items
|
|
.drop
|
|
.drop
|
|
*/
|
|
/*
|
|
.dropdown {
|
|
flex-direction: column;
|
|
position: relative;
|
|
margin-right: 20px;
|
|
}
|
|
.dropdown:after {
|
|
content: "▼";
|
|
position: absolute;
|
|
left: 100%;
|
|
top: 50%;
|
|
-ms-transform: translateY(-50%); old IE
|
|
transform: translateY(-50%);
|
|
}
|
|
.dropdown .drop_title {
|
|
}
|
|
.dropdown .drop_items {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0px;
|
|
height: auto;
|
|
}
|
|
.dropdown .drop {
|
|
margin: var(--gap-unit);
|
|
}
|
|
*/
|