$listH-row2: 60px; $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; } } .rightDrawer-filebox { width: 100%; height: calc(100% - 60px); } .select-filebox { position: relative; display: flex; flex-flow: column; margin: 10px; border: 1px solid #cccccc; border-radius: 4px; @media screen and (max-width: #{$tablet-s-width}), (max-height: 800px) { display: none; } .select-filed { height: calc(100% - 50px); overflow-y: auto; .select-flie { display: flex; flex-flow: row; align-items: flex-start; color: #212121; padding: 10px; border-bottom: 1px dotted #dddddd; ul { padding: 0; .name { font-weight: 600; word-wrap: break-word; white-space: pre-wrap; word-break: break-word; } } } } .empty-msg { display: inline-flex; flex-flow: column; margin: auto 0; align-items: center; justify-content: center; color: #999999; span { padding: 6px; } } .select-file-option { position: absolute; display: flex; justify-content: space-between; width: 100%; text-align: center; padding: 10px 0; bottom: 4px; span { width: 28px; height: 28px; display: inline-flex; text-align: center; justify-content: center; align-items: center; margin: 0 20px; cursor: pointer; svg { } &:hover { border-radius: 50%; background-color: #999999; color: #ffffff !important; } } } } .mat-table { width: 100%; position: relative; th.infos { padding: 10px; } tr.mat-row { height: $listH-row2; .cdk-column-check { width: 40px; } .file-info { padding: 10px; display: grid; height: $listH-row2; .file-name { font-weight: 500; width: 100%; @include ellipsis(1); } .download-period { font-size: 12px; width: 100%; @include ellipsis(1); } .progress { position: relative; .mat-progress-bar { position: absolute; } } } .file-size { span { width: 100px; text-align: right; @include ellipsis(1); } } } } .table-box { height: calc(100% - 420px); overflow-y: auto; @media screen and (max-width: #{$tablet-s-width}), (max-height: 800px) { height: calc(100% - 146px); } th { font-size: 1em; color: #333333; } td { font-size: 1em; } } .footer-fix { position: absolute; bottom: 0; min-height: 40px; width: 100%; flex-direction: column; box-sizing: border-box; display: flex; border-top: 1px solid #dddddd; .btn-box { height: 50px; padding-bottom: 10px; width: 100%; background-color: #ffffff; button { margin: 5px; font-size: 0.9em; padding: 0 12px; } } .mat-paginator-page-size { @media screen and (max-width: #{$tablet-s-width}), (max-height: 800px) { display: none; } } } .mat-paginator-container { display: flex; flex-flow: column; } .mat-row:hover { background: rgba(0, 0, 0, 0.04); cursor: pointer; }