onsitesurvey/src/styles/base/_inputs.scss

198 lines
3.8 KiB
SCSS

@use "../abstracts" as *;
input[type='number']{
-moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
// input default
.input-frame {
display: block;
width: 100%;
height: 40px;
padding: 0 10px;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #D5DEE8;
border-radius: 4px;
font-size: $font-s-13;
font-weight: $font-w-400;
color: $font-c;
box-shadow: inset 0 0 0 transparent;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
&::placeholder{
color: $font-pl-c;
}
&:read-only,
&:disabled{
background-color: #F5F6FA;
}
&:focus{
border-color: #4e93dd;
}
}
//file input
.filebox{
display: flex;
align-items: center;
width: 100%;
.input-frame{
flex: 1 1 auto;
margin-right: 5px;
color: #999;
cursor: default;
&:read-only{
background-color: #fff;
}
&:focus{
border-color: #e5e6e7;
}
}
.file-upload{
flex: none;
display: inline-block;
height: 30px;
background-color: #fff;
padding: 0 10px;
border-radius: 2px;
font-size: 13px;
line-height: 30px;
color: #000;
border: 1px solid #000;
font-weight: 500;
cursor: pointer;
transition: background .15s ease-in-out;
}
input[type='file']{
display: none;
}
}
// search input
.login-input,
.date-input,
.search-input{
display: flex;
align-items: center;
width: 100%;
padding: 0 10px;
height: 40px;
font-size: $font-s-13;
color: $font-c;
font-weight: $font-w-400;
background-color: $white-fff;
border: 1px solid #D5DEE8;
border-radius: 4px;
input{
width: 100%;
height: 100%;
background-color: transparent;
&::placeholder{
color: $font-pl-c;
}
}
}
.search-input{
.search-icon{
flex: none;
width: 24px;
height: 24px;
background: url(/assets/images/common/search_icon.svg)no-repeat center;
background-size: cover;
margin-left: 5px;
}
.del-icon{
flex: none;
width: 24px;
height: 24px;
background: url(/assets/images/common/search_del_icon.svg)no-repeat center;
background-size: cover;
margin-left: 5px;
}
}
.date-input{
padding-left: 0;
input{
padding-left: 10px;
}
.date-btn{
display: flex;
align-items: center;
justify-content: center;
border-right: 1px solid #D5DEE8;
flex: none;
width: 34px;
height: 100%;
i{
display: block;
width: 24px;
height: 24px;
background: url(/assets/images/common/date_icon.svg)no-repeat center;
background-size: cover;
}
}
}
.login-input{
position: relative;
padding-left: 34px;
padding-right: 0;
height: 50px;
line-height: 50px;
&:before{
content: '';
position: absolute;
top: 50%;
left: 14px;
transform: translateY(-50%);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
&.id{
&::before{
width: 10px;
height: 12px;
background-image: url(/assets/images/common/id_input_icon.svg);
}
}
&.pw{
&::before{
width: 9px;
height: 12px;
background-image: url(/assets/images/common/pw_input_icon.svg);
}
}
.login-icon{
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 100%;
.del-icon{
display: block;
width: 16px;
height: 16px;
background: url(/assets/images/common/id_delete_icon.svg)no-repeat center;
background-size: cover;
}
.show-icon{
display: block;
width: 19px;
height: 14px;
background: url(/assets/images/common/pw_show_icon.svg)no-repeat center;
background-size: cover;
}
&.act{
.show-icon{
background: url(/assets/images/common/pw_hide_icon.svg)no-repeat center;
}
}
}
}