odin-codespace/signup_form/css/style.css

66 lines
1.1 KiB
CSS
Raw Normal View History

2023-11-01 15:00:51 -04:00
.container {
justify-content: center;
display: flex;
2023-11-03 17:00:22 -04:00
align-items: center;
2023-11-01 15:00:51 -04:00
align-content: center;
2023-11-02 16:28:30 -04:00
}
2023-11-03 17:00:22 -04:00
.form {
width: 50vw;
}
2023-11-02 16:28:30 -04:00
.form-input {
margin-bottom: 40px;
display: flex;
justify-content: flex-start;
flex-direction: column;
}
2023-11-03 17:00:22 -04:00
.form-input input[type='text'],
.form-input input[type='password'],
.form-input input[type='email'] {
2023-11-02 16:28:30 -04:00
background-color: #FFFFFF;
border: 1px solid #D6D9DC;
border-radius: 3px;
width: 100%;
padding: 7px;
font-size: 14px;
}
2023-11-04 10:05:32 -04:00
.form-input label {
2023-11-05 15:26:13 -05:00
margin-bottom: 5px;
2023-11-04 10:05:32 -04:00
}
2023-11-03 17:00:22 -04:00
2023-11-04 10:05:32 -04:00
@media only screen and (min-width: 700px) {
2023-11-03 17:00:22 -04:00
.container {
height: 95vh;
}
.sidebar {
width: 50vw;
}
2023-11-02 16:28:30 -04:00
.form {
2023-11-03 17:00:22 -04:00
width: 50vw;
2023-11-02 16:28:30 -04:00
}
2023-11-05 15:26:13 -05:00
form {
display: flex;
flex-wrap: wrap;
width: 600px;
gap: 20px;
}
2023-11-02 16:28:30 -04:00
2023-11-03 17:00:22 -04:00
.form-input {
2023-11-02 16:28:30 -04:00
align-items: flex-start; /* To avoid stretching */
2023-11-05 15:26:13 -05:00
margin-bottom: 10px;
2023-11-02 16:28:30 -04:00
}
2023-11-03 17:00:22 -04:00
.form-input input[type='text'],
.form-input input[type='password'],
.form-input input[type='email'] {
2023-11-02 16:28:30 -04:00
width: 250px;
height: initial;
}
2023-11-03 17:00:22 -04:00
.form-input label {
2023-11-05 15:26:13 -05:00
width: 250px;
2023-11-02 16:28:30 -04:00
}
2023-11-04 10:05:32 -04:00
}