$tablet-l-width: 1024px; $tablet-s-width: 768px; .chatroom-search { display: flex; flex: 0 0 auto; justify-items: center; width: 100%; .search-form { flex-flow: row; 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; } form { display: inline-flex; flex: 0 0 auto; width: 100%; .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); } } } } .text-amount { display: inline-flex; flex: 0 0 auto; min-width: 30px; padding: 0 10px; align-self: center; font-size: 0.9em; font-weight: normal; justify-content: center; margin-left: auto; } } ::ng-deep .search-form { form { .icon-search { height: 100%; display: flex; align-self: center; 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; font-size: 1em; } .mat-form-field-underline { height: 0; .mat-form-field-ripple { top: 6px; height: 1px; overflow: hidden; display: none; } } } } } } ::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 { 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; } } } } } } } } ::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; } } } .btn-close-searchbox { width: 36px; height: 100%; //background: #0367a6; stroke: #ffffff; border: none; display: flex; justify-content: center; justify-items: center; svg { stroke: #ffffff; } } } .stroke-bar { width: 2px; height: 20px; background-color: rgba(255, 255, 255, 0.3); display: inline-flex; align-self: center; margin: 0 6px; }