- use new dates banner template on course outline page - remove old banner from main.html - let dates tab use new dates banner template - remove dates banner completely from the courseware problem view on the web app - use new banner on the courseware problem view on the mobile app - update banner util to use get_course_blocks
201 lines
3.4 KiB
SCSS
201 lines
3.4 KiB
SCSS
.date-wrapper {
|
|
@extend .content;
|
|
|
|
font-family: $helvetica;
|
|
|
|
.date-title {
|
|
color: #414141;
|
|
font-size: 24px;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.dates-banner {
|
|
border-radius: 4px;
|
|
border: solid 1px #9cd2e6;
|
|
background-color: #eff8fa;
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
max-width: $text-width-readability-max;
|
|
|
|
.dates-banner-text {
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #414141;
|
|
}
|
|
|
|
.banner-has-button {
|
|
flex: 1 1 20em;
|
|
max-width: 70%;
|
|
}
|
|
|
|
.upgrade-button {
|
|
align-self: start;
|
|
flex: none;
|
|
|
|
button {
|
|
@include white-button-flat-outline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.timeline-item {
|
|
border-left: solid 1px #2d323e;
|
|
color: #2d323e;
|
|
position: relative;
|
|
padding-left: 18px;
|
|
margin-left: 6px;
|
|
padding-bottom: 32px;
|
|
|
|
&:first-of-type {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
&:last-of-type {
|
|
border-left: solid 1px transparent;
|
|
}
|
|
}
|
|
|
|
.date-circle {
|
|
width: 7px;
|
|
height: 7px;
|
|
position: absolute;
|
|
left: -5px;
|
|
background-color: #2d323e;
|
|
border-radius: 50%;
|
|
border-style: solid;
|
|
border-width: thin;
|
|
|
|
&.past-date {
|
|
background-color: #f5f5f5;
|
|
|
|
&.past-due {
|
|
background-color: #d1d2d4;
|
|
}
|
|
}
|
|
|
|
&.todays-date {
|
|
width: 13px;
|
|
height: 13px;
|
|
left: -8px;
|
|
background-color: #ffdb87;
|
|
}
|
|
}
|
|
|
|
.date-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
position: relative;
|
|
top: -7px;
|
|
flex: 100%;
|
|
line-height: 1.25;
|
|
|
|
&.todays-date {
|
|
top: -3px;
|
|
}
|
|
}
|
|
|
|
.no-access {
|
|
// This is too low-contrast for a11y purposes. But since it only applies to pieces of the page that are
|
|
// inaccessible to users, and we have a banner explaining the parts that are inaccessible at the top,
|
|
// we're OK from an accessibility point of view.
|
|
color: #d1d2d4;
|
|
}
|
|
|
|
.timeline-date-content {
|
|
@include font-size(16);
|
|
|
|
display: flex;
|
|
flex: 100%;
|
|
font-weight: bold;
|
|
margin-bottom: 8px;
|
|
align-items: center;
|
|
|
|
&.not-released {
|
|
color: #767676;
|
|
}
|
|
}
|
|
|
|
.timeline-title {
|
|
@include font-size(14);
|
|
|
|
display: flex;
|
|
flex: 100%;
|
|
margin-bottom: 4px;
|
|
font-weight: bold;
|
|
line-height: 1.25;
|
|
|
|
a {
|
|
color: #2d323e;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
&.not-released {
|
|
color: #d1d2d4;
|
|
}
|
|
}
|
|
|
|
.timeline-description {
|
|
@include font-size(14);
|
|
|
|
display: flex;
|
|
flex: 100%;
|
|
line-height: 1.25;
|
|
|
|
a {
|
|
color: #2d323e;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.pill {
|
|
@include font-size(12);
|
|
|
|
padding: 2px 8px;
|
|
border-radius: 5px;
|
|
margin-left: 8px;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
vertical-align: top;
|
|
|
|
&.completed {
|
|
background-color: #f3f3f4;
|
|
color: #2d323e;
|
|
}
|
|
|
|
&.due-next {
|
|
background-color: #686b73;
|
|
color: $white;
|
|
}
|
|
|
|
&.not-released {
|
|
background-color: $white;
|
|
border-color: #d1d2d4;
|
|
border-style: solid;
|
|
border-width: thin;
|
|
color: #767676;
|
|
}
|
|
|
|
&.past-due {
|
|
background-color: #d1d2d4;
|
|
}
|
|
|
|
&.today {
|
|
background-color: #ffdb87;
|
|
color: #2d323e;
|
|
}
|
|
|
|
&.verified {
|
|
background-color: #2d323e;
|
|
color: $white;
|
|
}
|
|
}
|
|
|
|
.verified-icon {
|
|
padding-right: 8px;
|
|
}
|
|
}
|