element-call/src/Input.module.css

176 lines
2.9 KiB
CSS
Raw Normal View History

2021-08-19 17:49:45 -07:00
.fieldRow {
display: flex;
margin-bottom: 10px;
}
.field {
display: flex;
flex: 1;
min-width: 0;
position: relative;
margin: 1em 0;
}
.fieldRow.rightAlign {
justify-content: flex-end;
}
.fieldRow > .field {
margin: 0 5px;
}
.fieldRow > .field:first-child {
margin-left: 0;
}
.fieldRow > .field:last-child {
margin-right: 0;
}
2021-09-03 15:45:07 -07:00
.inputField {
border-radius: 4px;
transition: border-color .25s;
border: 1px solid #394049;
}
.inputField input {
2021-08-19 17:49:45 -07:00
font-weight: 400;
font-size: 14px;
border: none;
border-radius: 4px;
padding: 8px 9px;
2021-08-20 16:36:41 -07:00
color: white;
background-color: #21262c;
2021-08-19 17:49:45 -07:00
flex: 1;
min-width: 0;
}
2021-09-03 15:45:07 -07:00
.inputField input::placeholder {
2021-08-19 17:49:45 -07:00
transition: color 0.25s ease-in 0s;
color: transparent;
}
2021-09-03 15:45:07 -07:00
.inputField input:placeholder-shown:focus::placeholder {
2021-08-19 17:49:45 -07:00
transition: color .25s ease-in .1s;
2021-08-20 16:36:41 -07:00
color: #6f7882;
2021-08-19 17:49:45 -07:00
}
2021-09-03 15:45:07 -07:00
.inputField label {
2021-08-19 17:49:45 -07:00
transition: font-size .25s ease-out .1s,color .25s ease-out .1s,top .25s ease-out .1s,background-color .25s ease-out .1s;
2021-08-20 16:36:41 -07:00
color: white;
2021-08-19 17:49:45 -07:00
background-color: transparent;
font-size: 14px;
position: absolute;
left: 0;
top: 0;
margin: 7px 8px;
padding: 2px;
pointer-events: none;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: calc(100% - 20px);
}
2021-09-03 15:45:07 -07:00
.inputField:focus-within {
2021-08-20 16:36:41 -07:00
border-color: #0086e6;
2021-08-20 16:23:12 -07:00
}
2021-09-03 15:45:07 -07:00
.inputField input:focus {
2021-08-20 16:23:12 -07:00
outline: 0;
}
2021-09-03 15:45:07 -07:00
.inputField input:focus + label, .inputField input:not(:placeholder-shown) + label {
2021-08-20 16:36:41 -07:00
background-color: #21262c;
2021-08-19 17:49:45 -07:00
transition: font-size .25s ease-out 0s,color .25s ease-out 0s,top .25s ease-out 0s,background-color .25s ease-out 0s;
font-size: 10px;
top: -13px;
padding: 0 2px;
pointer-events: auto;
}
2021-09-03 15:45:07 -07:00
.inputField input:focus + label {
2021-08-20 16:36:41 -07:00
color: #0086e6;
2021-08-20 16:23:12 -07:00
}
2021-09-03 15:45:07 -07:00
.checkboxField {
display: flex;
align-items: flex-start;
}
.checkboxField label {
display: flex;
align-items: center;
flex-grow: 1;
font-size: 13px;
}
.checkboxField input {
appearance: none;
margin: 0;
padding: 0;
}
.checkbox {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
flex-shrink: 0;
height: 16px;
width: 16px;
border: 1.5px solid rgba(185,190,198,.5);
box-sizing: border-box;
border-radius: 4px;
margin-right: 10px;
}
.checkbox svg {
display: none;
}
.checkbox svg * {
stroke: #FFF;
}
.checkboxField input[type="checkbox"]:checked + label > .checkbox {
background: #0dbd8b;
border-color: #0dbd8b;
}
.checkboxField input[type="checkbox"]:checked + label > .checkbox svg {
display: flex;
}
2021-08-19 17:49:45 -07:00
.button {
vertical-align: middle;
border: 0;
border-radius: 8px;
font-size: 14px;
color: #fff;
background-color: #0dbd8b;
width: auto;
padding: 7px 15px;
cursor: pointer;
display: inline-block;
outline: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
text-align: center;
2021-08-20 09:28:11 -07:00
font-weight: 700;
2021-08-19 17:49:45 -07:00
}
.button:hover {
}
.button:active {
2021-08-20 16:23:12 -07:00
}
.errorMessage {
margin: 0;
font-size: 13px;
2021-08-20 16:36:41 -07:00
color: #ff5b55;
2021-08-20 16:23:12 -07:00
font-weight: 600;
2021-08-19 17:49:45 -07:00
}