motorradig2027/public/css/custom.css
2026-10-09 09:07:18 +02:00

163 lines
3.3 KiB
CSS

/* Put your custom styles here */
body, html {
height: 100%;
}
.bg {
/* The image used */
background-image: url("../img/motorcycle1_unsplash.jpg");
/* Full height */
height: 100%;
/* background: #3df url('../img/motorcycle1_unsplash.jpg') no-repeat fixed center; */
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
.color-link { color:black; }
/* a:visited { color:cyan !important; }
*/
/* Drop File box styling, see also: https://www.smashingmagazine.com/2018/01/drag-drop-file-uploader-vanilla-js/ */
#drop-area {
border: 2px dashed #ccc;
border-radius: 20px;
width: 480px;
font-family: sans-serif;
margin: 100px auto;
padding: 20px;
}
#drop-area.highlight {
border-color: purple;
}
p {
margin-top: 0;
}
.my-form {
margin-bottom: 10px;
}
#gallery {
margin-top: 10px;
}
#gallery img {
width: 150px;
margin-bottom: 10px;
margin-right: 10px;
vertical-align: middle;
}
.button {
display: inline-block;
padding: 10px;
background: #ccc;
cursor: pointer;
border-radius: 5px;
border: 1px solid #ccc;
}
.button:hover {
background: #ddd;
}
#fileElem {
display: none;
}
/*** Tooltip styles
Taken from https://www.w3schools.com/howto/howto_css_tooltip.asp
*/
/* Tooltip container */
.ts_tooltip {
position: relative;
display: inline-block;
/* border-bottom: 1px dotted black;*/ /* If you want dots under the hoverable text */
visibility: visible;
}
/* Tooltip text */
.ts_tooltip .ts_tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
/* Position the tooltip text */
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.ts_tooltip .ts_tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.ts_tooltip:hover .ts_tooltiptext {
visibility: visible;
opacity: 1;
}
/*******************
Modal styles
********************/
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}