Skip to content

Commit cbe5601

Browse files
committed
重构:temlpates
1 parent 05a964b commit cbe5601

7 files changed

Lines changed: 538 additions & 458 deletions

File tree

templates/css/style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.card-img-container {
2+
position: relative;
3+
aspect-ratio: 3/4;
4+
overflow: hidden;
5+
display: flex;
6+
align-items: center;
7+
justify-content: center;
8+
}
9+
10+
.card-img-container img {
11+
width: 100%;
12+
height: 100%;
13+
object-fit: cover;
14+
}
15+
16+
.card {
17+
height: 100%;
18+
display: flex;
19+
flex-direction: column;
20+
}
21+
22+
.card-body {
23+
flex: 1;
24+
}
25+
26+
.card-title {
27+
white-space: nowrap;
28+
overflow: hidden;
29+
text-overflow: ellipsis;
30+
}

0 commit comments

Comments
 (0)