@tablets: ~"only screen and (max-width: 768px)"; @mobile: ~"only screen and (max-width: 576px)"; html, body { height: 100%; } .wrapper { height: 100%; display: flex; flex-direction: column; @media @tablets { height: unset; min-height: 100%; } .dashboard { flex: 1; display: flex; flex-direction: row; @media @mobile { flex-direction: column; } .sidebar { width: 264px; background: #0199b0; padding: 28px 37px; @media @tablets { width: 80px; min-width: 80px; display: flex; flex-direction: column; align-items: center; padding: 18px 0; position: relative; } @media @mobile { width: 100%; height: 80px; flex-direction: row; justify-content: center; } .user-bar { margin-bottom: 40px; @media @mobile { margin-bottom: 0 !important; position: absolute; left: 20px; } img { width: 44px; height: 44px; margin-bottom: 17px; @media @mobile { margin-bottom: 0; } } .username { color: white; font-weight: bold; font-size: 14px; } a { color: white !important; text-decoration: underline; font-weight: bold; } @media @tablets { margin-bottom: 90px; .username, a { display: none; } } } .menu { display: flex; flex-direction: column; @media @mobile { flex-direction: row; width: calc(100% - 168px); margin: 0 84px; max-width: 250px; } a { color: white !important; font-size: 14px; text-transform: uppercase; line-height: 30px; position: relative; padding-left: 38px; cursor: pointer; @media @mobile { width: 20px; height: 20px; padding: 0 15%; } > img { position: absolute; left: 8px; top: 50%; transform: translate(-50%, -50%); opacity: 0.7; transition: opacity 0.1s; @media @mobile { left: 50%; } } > span.counter { position: absolute; left: 8px; top: 50%; transform: translate(-50%, -50%); z-index: 1; padding: 0 5px; height: 15px; line-height: 15px; background: #ee1144; border-radius: 8px; font-size: 9px; font-weight: bold; margin-top: 8px; margin-left: 8px; @media @mobile { left: 50%; } } > span:not(.counter) { opacity: 0.7; transition: opacity 0.1s; } &.active { font-weight: bold; opacity: 1; } &:hover { > img { opacity: 1; } > span:not(.counter) { opacity: 1; } } @media @tablets { height: 36px; padding-left: 14px; > span:not(.counter) { display: none; } } } } } .content { flex: 1; display: flex; flex-direction: column; > header { height: 91px; display: flex; flex-direction: row; align-items: center; padding: 0 30px; border-bottom: 1px solid #d5d5dd; @media @mobile { display: none; } > img { width: 44px; margin-right: 26px; } } .dashboard-content { flex: 1; display: flex; flex-direction: row; @media @tablets { display: block; } .column { width: 50%; display: flex; flex-direction: column; @media @tablets { width: 100%; } + .column { border-left: 1px solid #d5d5dd; @media @tablets { border-left: none; } } .dashboard-section { display: flex; flex-direction: column; &.grey { background: #f2f2f9; } &:last-child { flex: 1; } .section-header { display: flex; flex-direction: row; justify-content: space-between; padding: 0 30px; padding-top: 30px; padding-bottom: 15px; @media @mobile { flex-direction: column; } .header { font-weight: bold; font-size: 30px; color: #222222; } } .section-content { flex: 1; overflow-y: auto; margin-bottom: 20px; } } } } } } footer { background: #008d9f; } } table.dashboard-table { width: 100%; letter-spacing: 0; thead { height: 48px; line-height: 48px; background: white; font-weight: bold; font-size: 12px; color: #bbbbbb; tr { th { padding-right: 15px; transition: 0.2s; cursor: pointer; &.switch-col { width: 72px; } &:first-child { padding-left: 15px; } &.sort { color: #0199b0; &.asc, &.desc { &::after { content: ''; width: 8px; height: 12px; background: url(../../assets/svg/sort-arrow.svg) no-repeat center center; display: inline-block; margin-left: 10px; transform: translateY(2px); } &.asc::after { transform: translateY(2px) rotate(180deg); } } } &:hover { color: #222222; } } } } tbody { color: #4a4a4a; font-size: 14px; tr { height: 48px; line-height: 48px; transition: 0.3s; &:hover { background: rgba(0, 141, 159, 0.05) !important; } td { padding-right: 15px; white-space: nowrap; &:first-child { padding-left: 15px; } input[type=checkbox].switch { transform: translateY(3px); } button.menu-btn { float: right; // transform: translateY(11px); // // @media @mobile { // clear: right; // } } img.avatar { width: 24px; } } } } &.stripped { tbody tr:nth-child(odd) { background: #f2f2f9; } } &.calls-history { button.menu-btn { transform: none; } } &.registrations { tbody tr { line-height: 18px; td { padding: 8px 0; &:nth-child(3) { font-size: 12px; } } } img.avatar { width: 44px; margin-right: 14px; margin-left: 32px; } button.menu-btn { transform: none; margin-left: 25px; margin-right: 40px; } span.name { font-weight: bold; line-height: 14px; } span.status { color: #bbbbbb; font-size: 12px; &.active::before { content: ''; display: inline-block; width: 7px; height: 7px; background: #a9cc55; border-radius: 50%; margin-right: 6px; } } } }