@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; } &.not-columned { flex-direction: column; padding: 30px; } .edit-profile-wrapper { display: flex; flex-direction: row; width: 45%; margin-top: 45px; @media @mobile { width: 100%; flex-direction: column; } .avatar-wrapper { display: flex; flex-direction: column; align-items: center; margin-right: 35px; @media @mobile { margin-right: 0; margin-bottom: 30px; } img.avatar { width: 120px; } a { font-weight: bold; font-size: 14px; margin-top: 10px; } } .form-wrapper { flex: 1; .form-group { margin-bottom: 20px; &.address { overflow: hidden; label { width: 100%; } input.address { width: calc(~"40% - 20px"); float: left; margin-right: 20px; } select.city { width: 60%; float: left; } } } .btn-primary { margin-top: 30px; } } } } } } footer { background: #008d9f; } } .btn.btn-csc { &.btn-primary { background: #0199b0; } &:hover:not(:disabled) { box-shadow: 0 0 15px 0 rgba(1, 153, 176, 0.5) !important; } &:active, &:focus { background-color: #0199b0; } }