.page { background-color: var(--black); height: 100vh; overflow: auto; } .upfold { background-color: var(--black); padding: 20px 10%; .close-button { background-color: transparent; border: 0px; .icon { width: 15px; height: 15px; fill: var(--white); } } h3 { color: var(--teal); font-size: 20px; margin-top: 20px; font-weight: 500; } p { margin-top: 10px; color: var(--white); font-size: 13px; } label { color: var(--light-grey); font-size: 14px; margin-top: 20px; display: block; font-weight: 500; } } .progress-holder { height: 7px; background-color: #cecece; position: relative; .progress { position: absolute; left: 0; top: 0; height: 100%; width: 30%; background-color: var(--green); } } .segment-header { position: sticky; position: -webkit-sticky; z-index: 1; left: 0; top: 0; background-color: var(--ash-black); display: flex; align-items: stretch; height: 50px; box-shadow: 0px 0px 5px var(--black); &.hide-grades { button { width: calc(100% / 3); &:nth-child(3) { display: none; } } } button { font-size: 14px; width: calc(100% / 4); border: 0px; background-color: transparent; color: var(--light-grey); &.active { color: var(--white); } } } .test-prompt { background-color: var(--black); padding: 20px; .prompt { border-radius: 15px; background-color: var(--ash-black); padding: 20px; } p { color: var(--white); font-size: 13px; } button { margin-top: 10px; display: block; width: 100%; height: 40px; color: var(--white); font-size: 14px; background-color: var(--teal-green); border-radius: 5px; border: 0px; } } .chapter-list { list-style: none; .chapter { .chapter-action-buttons { display: none; align-items: stretch; width: 100%; justify-content: space-around; padding: 10px 0; button { width: 48%; border-radius: 5px; height: 35px; font-size: 14px; color: var(--light-grey); border: 1px solid var(--light-grey); background-color: transparent; &:first-child { border-color: var(--teal-green); color: var(--teal-green); } } } &.completed { .checkmark { fill: var(--green); } } &.active { .chapter-action-buttons { display: flex; } .container { position: sticky; position: -webkit-sticky; top: 48px; z-index: 1; border-bottom: 0px; border-top: 1px solid var(--dark-grey); } .arrow { transform: rotate(90deg); } .topic-list { display: block; } } } .container { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 5%; background-color: var(--ash-black); border-bottom: 1px solid var(--dark-grey); .icon { width: 20px; height: 20px; fill: var(--light-grey); &.checkmark { width: 25px; height: 25px; background-color: var(--white); border-radius: 50%; } } .chapter-heading { width: calc(100% - 100px); } label { font-size: 16px; font-weight: 500; color: var(--white); } p { color: var(--white); font-size: 14px; } } } .topic-list { list-style: none; position: relative; z-index: 0; display: none; .topic { display: flex; width: 100%; padding-left: 5%; justify-content: space-between; background-color: #333333; position: relative; overflow: visible; &::before { content: ''; position: absolute; left: calc(5% + 9px); top: 50%; height: 100%; width: 2px; background-color: var(--light-grey); z-index: 1; } &:last-child { &::before { display: none; } } &.completed { .checkmark { fill: var(--green); } &::before { background-color: var(--green); } } } .topic-container { display: flex; width: 90%; padding: 15px; background-color: var(--black); border-bottom: 1px solid #333333; .action-button { background-color: transparent; border: 0px; } .icon { margin-top: 5px; } p { font-size: 14px; color: var(--light-grey); padding-right: 10px; height: 55px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; .type { color: var(--white); font-weight: 500; } .type-icon { width: 15px; height: 15px; fill: var(--white); } } } .icon { width: 20px; height: 20px; fill: var(--light-grey); align-self: flex-start; position: relative; z-index: 2; overflow: visible; &.checkmark { align-self: center; background-color: var(--white); border-radius: 50%; } &.delete { fill: var(--danger-dark); } &.download { fill: var(--teal-green); } &.downloading { fill: var(--teal-green); overflow: visible; #download-arrow { animation: verticalMovement 1s infinite; fill: var(--light-grey); } } } .progress-button { transform: scale(0.6)translateX(17px); } #progress { stroke: var(--green); animation: fill 2s forwards; } @keyframes fill { 0% { stroke-dashoffset: calc(116.8 * (1 - 0.2)); } 50% { stroke-dashoffset: calc(116.8 * (1 - 0.5)); } 100% { stroke-dashoffset: calc(116.8 * (1 - 0.999999)); } } } @keyframes verticalMovement { 0% { transform: translateY(0px); } 50% { transform: translateY(20px); } 0% { transform: translateY(0px); } } .resources-list { list-style: none; width: 90%; margin: 0 auto; header { font-size: 16px; color: var(--light-grey); font-weight: 500; margin: 30px 0 15px 0; } a { text-decoration: none; display: block; } li { padding: 15px 20px; background-color: var(--ash-black); display: flex; align-items: center; justify-content: space-between; border-radius: 10px; overflow: hidden; margin-bottom: 15px; } .content { width: calc(100% - 80px); } label { color: var(--white); font-size: 15px; display: block; } p { color: var(--light-grey); font-size: 12px; } .icon { width: 20px; height: 20px; fill: var(--light-grey); &.arrow { transform: rotate(-45deg); } } }