odin-codespace/signup_form/css/style.css

66 lines
1.2 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;
flex-wrap: wrap;
}
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-03 17:00:22 -04:00
.form-input label {
2023-11-02 16:28:30 -04:00
margin-bottom: 15px;
}
@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-03 17:00:22 -04:00
.form-input {
2023-11-02 16:28:30 -04:00
flex-direction: row;
align-items: flex-start; /* To avoid stretching */
margin-bottom: 20px;
}
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-02 16:28:30 -04:00
text-align: right;
width: 120px;
margin-top: 7px;
padding-right: 20px;
}
2023-11-03 17:00:22 -04:00
}