Files
edx-platform/lms/static/sass/course/_dates.scss
Michael Terry 70c9170ed2 Reduce upselling on Dates tab
The dates tab has a lot of redundant calls to action around
upgrading to verified track. This replaces them with a single
banner at the top of the page.

AA-102
2020-04-30 15:31:58 -04:00

157 lines
2.7 KiB
SCSS

.date-wrapper {
@extend .content;
font-family: $helvetica;
.date-title {
color: #414141;
font-size: 24px;
border-bottom: 0;
}
.upgrade-banner {
border-radius: 4px;
border: solid 1px #9cd2e6;
background-color: #eff8fa;
margin-top: 20px;
margin-bottom: 40px;
padding: 24px;
display: flex;
flex-wrap: wrap;
gap: 24px;
max-width: $text-width-readability-max;
.upgrade-banner-text {
font-size: 16px;
line-height: 24px;
color: #414141;
flex: 1 1 20em;
}
.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: -4px;
background-color: #2d323e;
border-radius: 50%;
&.active {
width: 14px;
height: 14px;
left: -7px;
background-color: #2d323e;
}
}
.date-content {
display: flex;
flex-wrap: wrap;
position: relative;
top: -7px;
flex: 100%;
line-height: 1.25;
&.active {
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;
}
.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;
}
}
.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 2px 8px;
border-radius: 5px;
margin-left: 8px;
font-style: italic;
font-weight: bold;
vertical-align: top;
&.due {
background-color: #ffdb87;
color: #2d323e;
}
&.verified {
background-color: #2d323e;
color: $white;
}
}
.verified-icon {
padding-right: 8px;
}
}