NDOJ/resources/course.scss

155 lines
3 KiB
SCSS
Raw Permalink Normal View History

2024-02-19 23:00:44 +00:00
@import "vars";
.course-content-title {
font-weight: bold;
}
.course-list {
width: 100%;
margin: 0 auto;
list-style: none;
padding: 0;
.course-item {
display: flex;
align-items: center;
border: 1px solid #ddd;
padding: 20px;
margin-bottom: 10px;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: transform 0.2s ease-in-out;
}
.course-item:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.course-image {
flex: 0 0 auto;
width: 50px;
height: 50px;
margin-right: 20px;
border-radius: 5px;
overflow: hidden;
}
.course-image img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 5px;
}
.course-content {
flex: 1;
}
.course-name {
font-size: 1.5em;
margin-bottom: 5px;
}
}
.lesson-list {
list-style: none;
padding: 0;
li:hover {
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
background: #ffffe0;
}
li {
background: #fff;
border: 1px solid #ddd;
margin-bottom: 20px;
padding-top: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px #ccc;
}
.lesson-title {
2024-10-02 20:06:33 +00:00
font-size: 1.25em;
2024-02-19 23:00:44 +00:00
margin-left: 1em;
margin-right: 1em;
color: initial;
display: flex;
gap: 1em;
.lesson-points {
margin-left: auto;
font-size: 0.9em;
align-self: flex-end;
color: #636363;
}
}
.progress-container {
background: #e0e0e0;
border-radius: 3px;
height: 10px;
width: 100%;
margin-top: 10px;
}
.progress-bar {
2024-10-02 20:06:33 +00:00
background: forestgreen;
2024-02-19 23:00:44 +00:00
height: 10px;
border-radius: 3px;
line-height: 10px;
color: white;
text-align: right;
font-size: smaller;
}
}
.course-problem-list {
list-style-type: none;
padding: 0;
font-size: 15px;
i {
font-size: large;
}
li {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #eee;
padding: 10px;
border-radius: 5px;
}
.problem-name {
margin-left: 10px;
}
li:hover {
background: #e0e0e0;
}
.score {
font-weight: bold;
margin-left: auto;
}
a {
text-decoration: none;
color: inherit;
}
2024-10-02 20:06:33 +00:00
}
.course-contest-card {
border: 1px solid #ddd;
border-radius: 8px;
margin-bottom: 20px;
padding: 15px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
h5 {
margin: 0 0 10px;
font-size: 1.2em;
color: #333;
}
p {
margin: 5px 0;
color: #555;
}
2024-02-19 23:00:44 +00:00
}