added grid

This commit is contained in:
2021-01-22 02:34:34 +01:00
committed by GitHub
parent 0b4f66e203
commit 5257ae6353

View File

@ -28,6 +28,22 @@ body {
width: 1170px; width: 1170px;
} }
} }
/*
Grid
*/
.row { width: 100%; }
.col-1 { width: 100.0%; float: left; }
.col-2 { width: 50.00%; float: left; }
.col-3 { width: 33.33%; float: left; }
.col-4 { width: 25.00%; float: left; }
.col-5 { width: 20.00%; float: left; }
.col-6 { width: 16.66%; float: left; }
.col-7 { width: 14.28%; float: left; }
.col-8 { width: 12.50%; float: left; }
.col-9 { width: 11.11%; float: left; }
.col-10 { width: 10.00%; float: left; }
.col-11 { width: 09.09%; float: left; }
.col-12 { width: 08.33%; float: left; }
/* /*
NavBar CSS NavBar CSS
*/ */
@ -89,93 +105,93 @@ img {vertical-align: middle;}
/* Slideshow container */ /* Slideshow container */
.slideshow-container { .slideshow-container {
max-width: 1000px; max-width: 1000px;
position: relative; position: relative;
margin: auto; margin: auto;
} }
/* Next & previous buttons */ /* Next & previous buttons */
.prev, .next { .prev, .next {
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
top: 50%; top: 50%;
width: auto; width: auto;
padding: 16px; padding: 16px;
margin-top: -22px; margin-top: -22px;
color: white; color: white;
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;
transition: 0.6s ease; transition: 0.6s ease;
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
user-select: none; user-select: none;
} }
/* Position the "next button" to the right */ /* Position the "next button" to the right */
.next { .next {
right: 0; right: 0;
border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px;
} }
/* On hover, add a black background color with a little bit see-through */ /* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover { .prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8); background-color: rgba(0,0,0,0.8);
} }
/* Caption text */ /* Caption text */
.text { .text {
color: #f2f2f2; color: #f2f2f2;
font-size: 15px; font-size: 15px;
padding: 8px 12px; padding: 8px 12px;
position: absolute; position: absolute;
bottom: 8px; bottom: 8px;
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
/* Number text (1/3 etc) */ /* Number text (1/3 etc) */
.numbertext { .numbertext {
color: #f2f2f2; color: #f2f2f2;
font-size: 12px; font-size: 12px;
padding: 8px 12px; padding: 8px 12px;
position: absolute; position: absolute;
top: 0; top: 0;
} }
/* The dots/bullets/indicators */ /* The dots/bullets/indicators */
.dot { .dot {
cursor: pointer; cursor: pointer;
height: 15px; height: 15px;
width: 15px; width: 15px;
margin: 0 2px; margin: 0 2px;
background-color: #bbb; background-color: #bbb;
border-radius: 50%; border-radius: 50%;
display: inline-block; display: inline-block;
transition: background-color 0.6s ease; transition: background-color 0.6s ease;
} }
.active, .dot:hover { .active, .dot:hover {
background-color: #717171; background-color: #717171;
} }
/* Fading animation */ /* Fading animation */
.fade { .fade {
-webkit-animation-name: fade; -webkit-animation-name: fade;
-webkit-animation-duration: 1.5s; -webkit-animation-duration: 1.5s;
animation-name: fade; animation-name: fade;
animation-duration: 1.5s; animation-duration: 1.5s;
} }
@-webkit-keyframes fade { @-webkit-keyframes fade {
from {opacity: .4} from {opacity: .4}
to {opacity: 1} to {opacity: 1}
} }
@keyframes fade { @keyframes fade {
from {opacity: .4} from {opacity: .4}
to {opacity: 1} to {opacity: 1}
} }
/* On smaller screens, decrease text size */ /* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) { @media only screen and (max-width: 300px) {
.prev, .next,.text {font-size: 11px} .prev, .next,.text {font-size: 11px}
} }