139 lines
2.9 KiB
CSS
139 lines
2.9 KiB
CSS
|
|
html {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
display: inline-block;
|
|
text-align: center;
|
|
background-color: #f7f9fc;
|
|
color: #333;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 2.5rem;
|
|
color: #556b2f;
|
|
margin-bottom: 20px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1.5px;
|
|
}
|
|
|
|
body {
|
|
max-width: 600px;
|
|
margin: 30px auto;
|
|
padding: 0 20px;
|
|
background-color: #ffffff;
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
|
border-radius: 12px;
|
|
padding-bottom: 25px;
|
|
transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
body:hover {
|
|
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 120px;
|
|
height: 68px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.switch input {
|
|
display: none;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #dcdcdc;
|
|
border-radius: 34px;
|
|
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
|
|
transition: background-color 0.4s, box-shadow 0.4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 52px;
|
|
width: 52px;
|
|
left: 8px;
|
|
bottom: 8px;
|
|
background-color: #ffffff;
|
|
transition: transform 0.4s, box-shadow 0.4s;
|
|
border-radius: 50%;
|
|
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #7cb342;
|
|
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(52px);
|
|
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
input[type=text], input[type=number], select {
|
|
width: 100%;
|
|
padding: 14px 20px;
|
|
margin: 10px 0;
|
|
display: inline-block;
|
|
border: 2px solid #dcdcdc;
|
|
border-radius: 8px;
|
|
box-sizing: border-box;
|
|
background-color: #fafafa;
|
|
transition: border-color 0.3s, background-color 0.3s;
|
|
}
|
|
|
|
input[type=text]:focus, input[type=number]:focus, select:focus {
|
|
border-color: #7cb342;
|
|
background-color: #ffffff;
|
|
outline: none;
|
|
}
|
|
|
|
input[type=submit] {
|
|
width: 100%;
|
|
background-color: #7cb342;
|
|
color: white;
|
|
padding: 14px 20px;
|
|
margin: 10px 0;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
input[type=submit]:hover {
|
|
background-color: #558b2f;
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.warning-icon {
|
|
width: 20px; /* Ukuran ikon */
|
|
height: 20px;
|
|
margin-right: 5px; /* Jarak antara ikon dengan teks di sebelah kanan */
|
|
vertical-align: middle; /* Memastikan ikon berada di tengah vertikal dengan teks */
|
|
}
|
|
|
|
div {
|
|
text-align: left;
|
|
border-radius: 10px;
|
|
background-color: #f0f0f0;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
transition: background-color 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
div:hover {
|
|
background-color: #ffffff;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|