.header-bar { display: flex; align-items: center; height: 60px; position: relative; padding: 0 5%; img { width: 35px; height: 35px; border-radius: 50%; overflow: hidden; } .icon { width: 20px; height: 20px; fill: white; } button { margin-left: 25px; border: 0px; background-color: transparent; &.profile-button { margin-left: 0; margin-right: auto; } } } .video-section { position: relative; text-align: center; background-color: var(--dark-grey); height: 30vh; width: 90%; margin: 10px auto; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: white; position: sticky; position: -webkit-sticky; top: 0; z-index: 1; .tutor { position: absolute; left: 10px; bottom: 10px; color: white; img { width: 20px; height: 20px; border-radius: 50%; margin-right: 5px; vertical-align: middle; overflow: hidden; } span { font-size: 12px; } } h2 { font-size: 20px; margin-bottom: 5px; } p { font-size: 16px; } .counter { font-size: 28px; font-weight: 500; letter-spacing: 1px; } } .subject-list { position: relative; width: 88%; margin: 0 auto; list-style: none; header { color: var(--black); h5 { font-size: 14px; margin-top: 30px; font-weight: 500; } &:first-child h5 { margin-top: 20px; } } li { background-color: white; border-radius: 15px; overflow: hidden; display: flex; align-items: center; padding: 15px 10px; margin-top: 15px; box-shadow: 0px 0px 5px -2px var(--black); justify-content: space-between; position: relative; &::before { content: ''; position: absolute; left: 0; top: 0; width: 7px; height: 100%; background-color: transparent; } &.attended::before { background-color: var(--teal-green); } &.absent::before { background-color: rgba(red, 0.5); } &.late::before { background-color: rgba(orange, 0.5); } } .schedule { width: 80px; padding: 0 5px; text-align: center; } .subject { width: calc(100% - 180px); border-left: 1px solid #cecece; padding-left: 15px; overflow: hidden; p { margin-top: 10px; } } .view-button { height: 33px; border-radius: 5px; border: 0px; background-color: var(--teal-green); color: white; font-size: 14px; width: 80px; } label { font-size: 16px; color: var(--black); font-weight: 500; } p { font-size: 13px; color: var(--dark-grey); margin-top: 2px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; img { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; object-fit: cover; object-position: top; vertical-align: middle; } span { vertical-align: middle; margin-left: 3px; } } }