| 1 | .news-grid { |
| 2 | display: block; |
| 3 | padding: 1rem; |
| 4 | } |
| 5 | |
| 6 | .news-card { |
| 7 | display: flex; |
| 8 | flex-wrap: wrap; |
| 9 | justify-content: space-between; |
| 10 | align-items: center; |
| 11 | margin: 12px 0px; |
| 12 | background: #232023; |
| 13 | border-radius: 8px; |
| 14 | overflow: hidden; |
| 15 | transition: transform 0.2s; |
| 16 | } |
| 17 | |
| 18 | .news-card:hover { |
| 19 | transform: translateY(-5px); |
| 20 | } |
| 21 | |
| 22 | .news-image { |
| 23 | width: 20%; |
| 24 | position: relative; |
| 25 | padding-top: 100px; |
| 26 | } |
| 27 | |
| 28 | .news-image img { |
| 29 | position: absolute; |
| 30 | top: 0; |
| 31 | left: 10px; |
| 32 | width: 100%; |
| 33 | height: 100%; |
| 34 | object-fit: cover; |
| 35 | } |
| 36 | |
| 37 | .news-content { |
| 38 | width: 74%; |
| 39 | padding: 1rem; |
| 40 | } |
| 41 | |
| 42 | .news-meta { |
| 43 | display: flex; |
| 44 | flex-wrap: wrap; |
| 45 | gap: 0.5rem; |
| 46 | margin-bottom: 0.5rem; |
| 47 | } |
| 48 | |
| 49 | .news-date { |
| 50 | background: #443b44; |
| 51 | padding: 0.25rem 0.5rem; |
| 52 | border-radius: 4px; |
| 53 | font-size: 0.875rem; |
| 54 | } |
| 55 | |
| 56 | .news-category { |
| 57 | background: #c016c6; |
| 58 | color: #232320; |
| 59 | padding: 0.25rem 0.5rem; |
| 60 | border-radius: 4px; |
| 61 | font-size: 0.875rem; |
| 62 | } |
| 63 | |
| 64 | .news-title { |
| 65 | margin: 0.5rem 0; |
| 66 | font-size: 1.25rem; |
| 67 | } |
| 68 | |
| 69 | .news-title a { |
| 70 | text-decoration: none; |
| 71 | } |
| 72 | |
| 73 | .news-title a:hover { |
| 74 | color: #f545f5; |
| 75 | } |
| 76 | |
| 77 | .news-preview { |
| 78 | font-size: 0.875rem; |
| 79 | margin: 0; |
| 80 | } |
| 81 | |
| 82 | /* 糞フォンの方向け */ |
| 83 | @media screen and (max-width: 768px) { |
| 84 | .news-card { |
| 85 | flex-direction: column; |
| 86 | align-items: stretch; |
| 87 | } |
| 88 | |
| 89 | .news-image { |
| 90 | width: 100%; |
| 91 | padding-top: 60%; |
| 92 | margin-bottom: 0.5rem; |
| 93 | } |
| 94 | |
| 95 | .news-image img { |
| 96 | left: 0; |
| 97 | } |
| 98 | |
| 99 | .news-content { |
| 100 | width: 100%; |
| 101 | padding: 0.75rem; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /* 死ねー */ |
| 106 | @media screen and (max-width: 480px) { |
| 107 | .news-meta { |
| 108 | flex-direction: column; |
| 109 | align-items: flex-start; |
| 110 | gap: 0.3rem; |
| 111 | } |
| 112 | |
| 113 | .news-date, .news-category { |
| 114 | width: 80%; |
| 115 | text-align: center; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | .feed-link { |
| 120 | text-align: right; |
| 121 | margin: 0 0 10px; |
| 122 | } |
| 123 | |
| 124 | .feed-link a { |
| 125 | display: inline-flex; |
| 126 | align-items: center; |
| 127 | gap: 6px; |
| 128 | } |