$tablet-s-width: 768px; @mixin ellipsis($row) { overflow: hidden; text-overflow: ellipsis; @if $row == 1 { display: block; white-space: nowrap; word-wrap: normal; } @else if $row >= 2 { display: -webkit-box; -webkit-line-clamp: $row; -webkit-box-orient: vertical; word-wrap: break-word; line-height: 1.2em; } } .rightDrawer-notice { width: 100%; height: calc(100% - 60px); .table-box { height: calc(100% - 100px); overflow: auto; @media screen and (max-width: #{$tablet-s-width}) { height: calc(100% - 50px); } } .footer-fix { width: 100%; } } .mat-table { width: 100%; position: relative; th.infos { padding: 10px; text-align: center; } tr.mat-row { height: 70px; .notice-info { padding: 16px; display: grid; height: 70px; .title { font-weight: 600; margin-bottom: 2px; width: 100%; @include ellipsis(2); display: flex; align-items: center; .important { color: red; margin-right: 6px; } } } .date { .date { font-size: 0.8em; text-align: right; } } } } .mat-paginator-container { display: flex; flex-flow: column; } .mat-row:hover { background: rgba(0, 0, 0, 0.04); cursor: pointer; } .footer-fix { position: absolute; bottom: 0; flex-direction: column; box-sizing: border-box; display: flex; border-top: 1px solid #dddddd; .mat-paginator { .mat-paginator-container { justify-content: center; } } .btn-box { height: 50px; padding-bottom: 10px; width: 100%; background-color: #ffffff; button { margin: 5px; } } } .mat-form-field-appearance-legacy { .mat-form-field-infix { padding: 6px; } }