47 строки
930 B
CSS
47 строки
930 B
CSS
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
width: 24rem;
|
|
background-image: linear-gradient(to bottom right, blue, darkblue);
|
|
color: white;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
#switch-button {
|
|
display: flex;
|
|
margin-top: 2rem;
|
|
width: fit-content;
|
|
border: solid .0125rem transparent;
|
|
border-radius: 2rem;
|
|
box-shadow:
|
|
0 max(.25rem, .25vw) max(.5rem, .5vw) max(.1875rem, .1875vw) rgba(0, 0, 0, .15),
|
|
0 max(.0625rem, .0625vw) max(.1875rem, .1875vw) rgba(0, 0, 0, .3);
|
|
overflow: clip;
|
|
}
|
|
|
|
#switch-button > * {
|
|
padding: .5rem 1rem;
|
|
background-color: white;
|
|
color: black;
|
|
font-weight: bold;
|
|
opacity: .9;
|
|
}
|
|
|
|
#switch-button > :hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
#switch-button > :not(:first-child) {
|
|
border-left: solid .0125rem black;
|
|
}
|