speedtech-website/themes/lean/static/css/main.css
2025-05-11 20:54:29 +02:00

702 lines
No EOL
12 KiB
CSS

/* Global variables. */
:root,
::backdrop {
--standard-border-radius: 5px;
/* Default (light) theme */
--bg-color: #fff;
--dark-color: rgba(33,37,41);
--primary-color: #2b5797;
}
/* Dark theme */
/*
@media (prefers-color-scheme: dark) {
:root,
::backdrop {
color-scheme: dark;
--bg: #212121;
--accent-bg: #2b2b2b;
--text: #dcdcdc;
--text-light: #ababab;
--accent: #ffb300;
--accent-hover: #ffe099;
--accent-text: var(--bg);
--code: #f06292;
--preformatted: #ccc;
--disabled: #111;
}
*/
/* Add a bit of transparency so light media isn't so glaring in dark mode */
/*
img,
video {
opacity: 0.8;
}
}
*/
/* Reset */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Prevent font size inflation */
html {
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
margin-block-end: 0;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
list-style: none;
}
/* Set core body defaults */
body {
min-height: 100vh;
line-height: 1.5;
margin-left: 0;
margin-right: 0;
}
/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
input, label {
line-height: 1.1;
}
/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
text-wrap: balance;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
color: currentColor;
}
/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
font-family: inherit;
font-size: inherit;
}
/* Anything that has been anchored to should have extra scroll margin */
:target {
scroll-margin-block: 5ex;
}
h1,h2,h3,h4,h5,h6, form {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: var(--primary-color);
}
/* End reset */
body {
padding-top: 60px;
font-family: "Arial";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.col,
.half,
.third,
.twothird,
.threequarter,
.quarter {
float: left;
width: 100%
}
.col.rest {
overflow: hidden;
}
.col.s1 {
width: 8.33333%
}
.col.s2 {
width: 16.66666%
}
.col.s3 {
width: 24.99999%
}
.col.s4 {
width: 33.33333%
}
.col.s5 {
width: 41.66666%
}
.col.s6 {
width: 49.99999%
}
.col.s7 {
width: 58.33333%
}
.col.s8 {
width: 66.66666%
}
.col.s9 {
width: 74.99999%
}
.col.s10 {
width: 83.33333%
}
.col.s11 {
width: 91.66666%
}
.col.s12 {
width: 99.99999%
}
.col.left {
text-align: left;
}
.col.right {
text-align: right;
}
.dropdown-item > i {
margin-right: 5px;
vertical-align: bottom;
}
.show-large {
display: none;
}
.icon {
vertical-align: middle;
display: inline-block;
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask-image: var(--svg);
mask-image: var(--svg);
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
}
.icon-responsive-menu {
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.5 17.27q-.213 0-.356-.145T4 16.768t.144-.356t.356-.143h15q.213 0 .356.144q.144.144.144.357t-.144.356t-.356.143zm0-4.77q-.213 0-.356-.144T4 11.999t.144-.356t.356-.143h15q.213 0 .356.144t.144.357t-.144.356t-.356.143zm0-4.77q-.213 0-.356-.143Q4 7.443 4 7.23t.144-.356t.356-.143h15q.213 0 .356.144T20 7.23t-.144.356t-.356.144z'/%3E%3C/svg%3E");
-webkit-mask-image: var(--svg);
mask-image: var(--svg);
}
.container {
max-width: 1140px;
width: 100%;
margin: 0 auto;
clear: both;
overflow: auto;
}
.row {
clear: both;
overflow: auto;
}
#topnav {
background-color: var(--dark-color);
border-bottom: 1px solid #ddd;
padding: 0 10px;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
height: auto;
.container {
display: flex;
align-items: center;
overflow: unset;
}
ul > li >a {
color: white;
}
.navbar-brand img {
height: 50px;
}
}
#topmenu {
display: flex;
align-items: center;
justify-content: flex-end;
flex-grow: 1;
ul {
list-style: none;
}
ul li {
display: block;
float: left;
padding: 1rem;
position: relative;
text-decoration: none;
transition-duration: 0.5s;
font-weight: 500;
}
ul li.dropdown:after {
content: "\25BE";
margin-left: 5px;
color: #fff;
}
ul.submenu {
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0,0,0,.15);
border-radius: .25rem;
visibility: hidden;
opacity: 0;
min-width: 5rem;
position: absolute;
transition: all 0.5s ease;
margin-top: 1rem;
left: 0;
display: none;
z-index: 2000;
padding: 0px;
}
ul.submenu li {
clear: both;
width: 100%;
padding: 0.25rem;
text-align: left;
white-space: nowrap;
background-color: transparent;
border: 0;
padding: 5px 10px;
}
ul li ul li:hover {
background-color: #ccc;
}
ul li ul a {
color: var(--dark-color);
}
:is(ul li:hover > ul, li:focus-within > ul, ul li ul:hover, ul li ul:focus) {
visibility: visible;
opacity: 1;
display: block;
}
#responsive-button {
display: none;
margin: 0;
padding: 0;
height: 45px;
width: 100%;
opacity: 0;
cursor: pointer
}
#responsive-button + label {cursor: pointer;}
}
@media screen and (max-width: 992px) {
#topmenu {
position:relative;
#responsive-button {
display: block;
}
label:before {
font-size: 1.6em;
color: #FFFFFF;
content: "\2261";
margin-left: 20px;
}
ul {
background:var(--dark-color);
position:absolute;
z-index:3;
height:auto;
display:none;
top: 0;
border-radius: 6px;
flex-direction: column;
border: 1px solid #fff;
padding-left:0;
}
ul li {
padding-top:4px;
padding-bottom: 4px;
}
ul li.dropdown:after {
content: none;
}
ul.submenu {
width:100%;
position:static;
background: var(--dark-color);
color: #fff;
padding-top:4px;
padding-bottom: 4px;
margin-top:0;
margin-bottom:0;
}
ul.submenu li a{
color: #fff;
}
li {display:block;float:left;width:auto;}
input, label {position:absolute;right:0;display:block}
input {z-index:4}
input:checked + label {color:#FFFFFF}
input:checked + label:before {content:"\00d7"}
input:checked ~ ul, input:checked ~ ul>li>ul.submenu {display: flex;visibility: visible; opacity: 1}
input:checked ~ ul>li>ul.submenu>li {visibility: visible; display:block;}
}
}
#home-introduction {
h4 {
text-align: center;
}
img {
display: block;
margin-right: auto !important;
margin-left: auto !important;
border-radius: .25rem !important;
padding: .25rem;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: .25rem;
max-width: 100%;
height: auto;
}
}
#home-bottom {
margin-top: 20px;
padding-top: 20px;
padding-bottom: 20px;
background: #000 url("../img/bg-image-1.jpg") no-repeat;
color: white;
h2 {
text-align: center;
}
p {
margin-top: 5px;
}
}
footer {
background-color: var(--dark-color);
color: rgba(255, 255, 255, 0.7);
padding-top: 40px;
padding-bottom: 40px;
.menu ul {
list-style-type: none;
padding-left: 0;
}
}
/* Extra small */
@media (max-width: 576px) {
.table-all.responsive table,
.table-all.responsive thead,
.table-all.responsive tbody,
.table-all.responsive th,
.table-all.responsive td,
.table-all.responsive tr {
display: block;
}
.table-all thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
.table-all.responsive tr {
margin-bottom: 10px;
border: 1px solid #ddd;
}
.table-all.responsive td {
border: none;
position: relative;
padding-left: 30%;
}
.table-all.responsive td.no-label {
padding-left: 6px;
}
.table-all.responsive td.title {
color: #2b5797;
font-weight: 400;
font-size: 18px;
}
.table-all.responsive td:before {
position: absolute;
left: 6px;
content: attr(data-label);
font-weight: bold;
}
.table-all.responsive td.no-label:before {
position: absolute;
left: 6px;
content: "";
font-weight: bold;
}
.hide-xsmall {
display: none !important
}
}
/* Small */
@media (min-width:577px) and (max-width: 767px) {
}
/* Minimum small */
@media (min-width:576px) {
.col.half {
width: 49.99999%;
}
.col.m6, .col.half:first-child {
padding-right:10px;
}
}
/* Max small */
@media (max-width: 767px) {
.col.s1 {
width: 8.33333%
}
.col.s2 {
width: 16.66666%
}
.col.s3 {
width: 24.99999%
}
.col.s4 {
width: 33.33333%
}
.col.s5 {
width: 41.66666%
}
.col.s6 {
width: 49.99999%
}
.col.s7 {
width: 58.33333%
}
.col.s8 {
width: 66.66666%
}
.col.s9 {
width: 74.99999%
}
.col.s10 {
width: 83.33333%
}
.col.s11 {
width: 91.66666%
}
.col.s12 {
width: 99.99999%
}
}
/* Medium */
@media (min-width:768px) and (max-width: 991px) {
.col.m1 {
width: 8.33333%
}
.col.m2 {
width: 16.66666%
}
.col.m3 {
width: 24.99999%
}
.col.m4 {
width: 33.33333%
}
.col.m5 {
width: 41.66666%
}
.col.m6 {
width: 49.99999%
}
.col.m7 {
width: 58.33333%
}
.col.m8 {
width: 66.66666%
}
.col.m9 {
width: 74.99999%
}
.col.m10 {
width: 83.33333%
}
.col.m11 {
width: 91.66666%
}
.col.m12 {
width: 99.99999%
}
}
/* Min medium */
@media (min-width: 768px) {
.hide-medium {
display: none !important
}
}
/* Large */
@media (min-width:992px) {
.col.l1 {
width: 8.33333%
}
.col.l2 {
width: 16.66666%
}
.col.l3 {
width: 24.99999%
}
.col.l4 {
width: 33.33333%
}
.col.l5 {
width: 41.66666%
}
.col.l6 {
width: 49.99999%
}
.col.l7 {
width: 58.33333%
}
.col.l8 {
width: 66.66666%
}
.col.l9 {
width: 74.99999%
}
.col.l10 {
width: 83.33333%
}
.col.l11 {
width: 91.66666%
}
.col.l12 {
width: 99.99999%
}
.hide-large {
display: none !important;
}
.show-large {
display: inline !important;
}
#main-sidebar {
display: block !important;
}
.row > .half:first {
padding-right: 4px;
}
.row > .half:nth-child(2) {
padding-left: 4px;
}
}
/* Max large */
@media (max-width: 992px) {
#page-content .container, footer .container {
padding-left: 20px;
padding-right: 20px;
}
}