1.1 KB、73行 生 Blame 履歴
1.thumbnail {
2 text-align: center;
3 width: 100%;
4 max-height: 300px;
5 overflow: hidden;
6 margin-bottom: 20px;
7 position: relative;
8}
9
10.thumbnail > img {
11 width: 100%;
12 height: 300px;
13 object-fit: cover;
14 object-position: center;
15 display: block;
16}
17
18.thumbnail.top > img {
19 object-position: top;
20}
21
22.thumbnail.bottom > img {
23 object-position: bottom;
24}
25
26.meta {
27 display: inline;
28}
29
30.meta-author, .meta-date, .meta-category {
31 display: inline-block;
32 margin: 4px;
33 padding: 8px;
34 border: 1px solid #ea79d8;
35 border-radius: 10px;
36}
37
38.meta-author, .meta-date {
39 font-weight: bolder;
40}
41
42.meta-author {
43 background-color: #c016c6;
44}
45
46.meta-date {
47 background-color: #550f75;
48 color: #fcfcfc;
49}
50
51.meta-category {
52 background-color: #ae6bdb;
53}
54
55h1, h2, h3, h4, h5, h6 {
56 border-bottom: 1px solid #ea79d8;
57}
58
59/* 死ねー */
60@media screen and (max-width: 480px) {
61 .news-meta {
62 flex-direction: column;
63 align-items: flex-start;
64 gap: 0.3rem;
65 }
66
67 .meta-date, .meta-author, .meta-category {
68 width: 90%;
69 margin: 4px auto;
70 text-align: center;
71 display: block;
72 }
73}