scrimba
Note at 3:01
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Note at 3:01
AboutCommentsNotes
Note at 3:01
Expand for more info
index.css
run
preview
console
* {
margin: 0;
padding: 0;
}

body {
font-family: 'Montserrat', sans-serif;
background-image: url('img/Anakin.png');
background-color: #3e4560;
color: yellow;
text-shadow: 1px 1px 2px white, -1px -1px 2px black;
}

.container {
padding: 0 10px;
}

.title {
text-align: center;
margin: 20px;
color: yellow;
background-color: rgba(0,0,0,0.5);
}

label {
display: block;
font-size: 20px;
margin-bottom: 5px;
}

input {
margin-bottom: 25px;
}

input[type="text"]{
padding: 5px 10px;
border-radius: 3px;
border: none;
}

.box {
height:100px;
width: 100%;
background-color: #c6d5ac;
margin-bottom: 25px;
}

.toggle-text {
font-size: 18px;
}

.toggle {
display: flex;
align-items: center;
margin-bottom: 20px;
}

.toggle-btn {
height: 30px;
width: 60px;
background-color: gray;
border-radius: 30px;
padding: 5px;
margin: 0 10px;
}

.inner-circle {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: white;
transition: all 250ms;

background-image: url("img/Rebel.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

.toggle-btn.toggled > .inner-circle {
transform: translateX(30px);
background-color: white;

background-image: url("img/Empire.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

.unselected {
opacity: 0.25;
}
Console
/index.html
LIVE