113 lines
2.1 KiB
CSS
113 lines
2.1 KiB
CSS
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");
|
|
|
|
/* Some resets, not essencial for this example to work */
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
position: absolute;
|
|
}
|
|
|
|
/* Base styles for this example */
|
|
|
|
.wrapper {
|
|
width: 50vw; /* unfortunately width has to be set to some hard value */
|
|
display: flex;
|
|
}
|
|
|
|
.slide {
|
|
width: 0;
|
|
}
|
|
|
|
.content {
|
|
width: 50vw;
|
|
height: 100%; /* this is optional if you want every slide to have same height as the highest one */
|
|
}
|
|
|
|
/* Additional styling */
|
|
|
|
html, body {
|
|
background-color: #BDBDBD;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-family: Lato;
|
|
}
|
|
|
|
.wrapper {
|
|
margin: 0 auto;
|
|
background-color: white;
|
|
box-shadow: 3px 3px 20px #9E9E9E;
|
|
}
|
|
|
|
span {
|
|
background-color: white;
|
|
text-align: center;
|
|
line-height: 4rem;
|
|
width: 4rem;
|
|
border-radius: 8rem;
|
|
color: #616161;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.content {
|
|
padding: 30px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity .6s;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.content2,
|
|
.content5,
|
|
.content6
|
|
{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #E0E0E0;
|
|
}
|
|
|
|
.content3 {
|
|
background-image: url(https://images.unsplash.com/photo-1507473885765-e6ed057f782c?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=800&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ);
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
#i_1:checked ~ .wrapper .content1,
|
|
#i_2:checked ~ .wrapper .content2,
|
|
#i_3:checked ~ .wrapper .content3,
|
|
#i_4:checked ~ .wrapper .content4,
|
|
#i_5:checked ~ .wrapper .content5,
|
|
#i_6:checked ~ .wrapper .content6 {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
label {
|
|
color: #E0E0E0;
|
|
transition-duration: .6s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#i_1:checked ~ .controls label[for="i_1"],
|
|
#i_2:checked ~ .controls label[for="i_2"],
|
|
#i_3:checked ~ .controls label[for="i_3"],
|
|
#i_4:checked ~ .controls label[for="i_4"],
|
|
#i_5:checked ~ .controls label[for="i_5"],
|
|
#i_6:checked ~ .controls label[for="i_6"] {
|
|
color: #424242;
|
|
} |