Forked from an inaccessible project.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
course-item.component.scss 2.08 KiB
@import 'assets/material-theme.scss';
.course-item {
position: relative;
display: block;
width: 100%;
padding: 8px;
box-sizing: border-box;
border: solid 1px #fdfdfd;
background-color: #fdfdfd;
border-radius: 5px;
font-size: 14px;
margin-bottom: 8px;
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.1);
transition: border-color 0.25s ease, box-shadow 0.25s ease;
cursor: pointer;
&.NotOfferedInTerm,
&.NoLongerOffered {
border-color: map-get($uw-accent, 600);
}
&:hover {
border-color: map-get($uw-primary, 500);
box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.25);
}
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
&.disabled {
background-color: #dee1e2;
border-color: #dee1e2;
box-shadow: none;
.course-credits,
.course-number {
font-weight: bold;
}
}
.course-title {
white-space: normal;
}
.course-title.strikethrough,
.course-number.strikethrough {
text-decoration: line-through;
}
p {
margin: 0;
padding: 0;
font-family: Roboto, 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
.mat-icon {
border-radius: 50%;
text-align: center;
font-size: 24px;
line-height: 1;
&:hover {
opacity: 0.8;
}
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
}
}
.course-number,
.course-credits {
display: inline-block;
}
.course-item-menu-button {
// width: 24px;
// height: 24px;
// line-height: 20px;
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
}
.material-icons {
padding-top: 0;
position: relative;
top: 1px;
&:focus {
outline: 2px solid #5e9ed6;
outline: -webkit-focus-ring-color auto 5px;
}
}
.course-number {
font-weight: bold;
font-size: 16px;
display: inline-block;
}
.icon-number-wrapper {
display: flex;
align-items: center;
}
button.mat-menu-item {
text-transform: none !important;
}
@media screen and (max-width: 957px) {
.mat-icon {
padding: 0.5em;
margin-bottom: 0.5em;
}
}