191 lines
3.8 KiB
SCSS
Raw Normal View History

$tablet-l-width: 1024px;
$tablet-s-width: 768px;
2019-12-26 11:39:02 +09:00
.chatroom-search {
display: flex;
flex: 0 0 auto;
justify-items: center;
width: 100%;
2019-12-26 11:39:02 +09:00
.search-form {
flex-flow: row;
2020-01-08 20:42:14 +09:00
padding: 0 0 0 20px;
width: calc(100% - 126px);
position: relative;
@media screen and (max-width: #{$tablet-s-width}),
(max-height: 600px) {
padding: 0 0 0 14px;
flex: 0 0 auto;
}
2019-12-26 11:39:02 +09:00
form {
display: inline-flex;
flex: 0 0 auto;
width: 100%;
2019-12-26 11:39:02 +09:00
.mat-form-field {
flex-flow: row;
flex: 1 1 auto;
width: 70%;
align-items: center;
display: flex;
.mat-form-field-label,
.mat-hint {
color: rgba(0, 0, 0, 0.54);
}
2019-12-26 11:39:02 +09:00
}
}
}
2020-01-07 19:30:58 +09:00
.text-amount {
display: inline-flex;
flex: 0 0 auto;
min-width: 30px;
2020-01-07 19:30:58 +09:00
padding: 0 10px;
align-self: center;
font-size: 0.9em;
font-weight: normal;
2020-01-07 19:30:58 +09:00
justify-content: center;
margin-left: auto;
2019-12-26 11:39:02 +09:00
}
}
2020-01-07 19:30:58 +09:00
::ng-deep .search-form {
form {
.icon-search {
height: 100%;
display: flex;
align-self: center;
2020-01-07 19:30:58 +09:00
color: #ffffff;
margin-right: 10px;
}
@media screen and (max-width: #{$tablet-s-width}),
(max-height: 600px) {
.icon-search {
display: none;
}
}
.mat-form-field-appearance-legacy {
.mat-form-field-wrapper {
color: #ffffff;
width: 100%;
padding-bottom: 0.8em;
.mat-form-field-infix {
.mat-input-element {
font-size: 1em;
}
}
.mat-form-field-suffix {
button {
position: relative;
transform: translateY(2px);
.mat-button-wrapper {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
font-size: 1.2em;
}
}
}
.mat-form-field-label {
color: rgba(255, 255, 255, 0.7) !important;
2020-01-07 19:30:58 +09:00
font-size: 1em;
}
.mat-form-field-underline {
height: 0;
.mat-form-field-ripple {
top: 6px;
height: 1px;
overflow: hidden;
display: none;
2020-01-07 19:30:58 +09:00
}
}
}
}
}
}
::ng-deep .chat-search {
margin: 0 4px 4px;
padding: 6px;
font-size: 14px;
@media screen and (max-width: #{$tablet-s-width}),
(max-height: 600px) {
padding: 4px;
.search-form {
form {
display: flex;
i {
2020-01-07 19:30:58 +09:00
display: none;
}
}
}
}
.search-form {
form {
display: flex;
.mat-form-field {
.mat-form-field-wrapper {
padding: 0;
display: flex;
flex: 1 1 auto;
.mat-form-field-infix {
border: 0;
padding: 0;
width: auto;
input {
margin: 0;
}
.mat-form-field-label-wrapper {
top: 0;
.mat-form-field-label {
top: 0;
font-size: 0.9em;
}
}
}
}
}
}
2020-01-07 19:30:58 +09:00
}
}
2020-01-07 19:30:58 +09:00
::ng-deep .chatroom-search {
position: relative;
.btns {
display: flex;
flex: 0 0 0%;
margin-left: auto;
margin-top: 0;
height: 100%;
button {
margin-left: 4px;
&.btn-search.icon-button {
align-self: center;
width: 30px;
height: 30px;
color: #ffffff;
}
}
}
2020-01-07 19:30:58 +09:00
.btn-close-searchbox {
width: 36px;
2020-01-07 19:30:58 +09:00
height: 100%;
//background: #0367a6;
stroke: #ffffff;
border: none;
display: flex;
justify-content: center;
justify-items: center;
svg {
stroke: #ffffff;
}
}
}
.stroke-bar {
2020-01-08 10:24:35 +09:00
width: 2px;
2020-01-07 19:30:58 +09:00
height: 20px;
background-color: rgba(255, 255, 255, 0.3);
display: inline-flex;
align-self: center;
margin: 0 6px;
}