|
6 | 6 | .card.card-new {
|
7 | 7 | display: flex;
|
8 | 8 | align-items: flex-start;
|
9 |
| - min-height: 13rem; |
10 |
| - height: 13rem; |
11 |
| - max-height: 13rem; |
| 9 | + flex-direction: column; |
| 10 | + min-height: 10rem; |
12 | 11 | transition: 0.5s;
|
13 |
| -} |
14 |
| - |
15 |
| -.card.card.card-new:hover { |
16 |
| - box-shadow: rgb(0 0 0 / 20%) 1px 1px 24px 1px; |
17 |
| -} |
18 |
| - |
19 |
| -.card.card-new figure { |
20 |
| - height: 100%; |
21 |
| - width: 16rem; |
22 |
| -} |
23 |
| - |
24 |
| -.card.card-new figure img { |
25 |
| - object-fit: cover; |
26 |
| - width: 100%; |
27 |
| - height: 100%; |
28 |
| - border-radius: 0.6rem 0 0 0.6rem; |
| 12 | + padding: 1rem; |
| 13 | + gap: 1rem; |
29 | 14 | }
|
30 | 15 |
|
31 | 16 | .card.card-new .card-body {
|
32 | 17 | display: flex;
|
33 |
| - flex-direction: column; |
| 18 | + flex-direction: row; |
| 19 | + justify-content: space-between; |
34 | 20 | height: 100%;
|
35 | 21 | width: 100%;
|
36 | 22 | flex-grow: 1;
|
37 |
| - padding: 1rem; |
38 | 23 | gap: 10px;
|
39 | 24 | }
|
40 | 25 |
|
41 |
| -.card.card-new .card-body .title-wrapper { |
| 26 | +.title-wrapper { |
42 | 27 | display: flex;
|
43 |
| - justify-content: space-between; |
44 |
| - font-size: 24px; |
| 28 | + font-size: 22px; |
45 | 29 | gap: 5px;
|
| 30 | + width: 100%; |
| 31 | + flex-direction: column; |
46 | 32 | }
|
47 | 33 |
|
48 |
| -.card.card-new .card-body .title-wrapper .new-title { |
| 34 | +.title-wrapper .new-title { |
49 | 35 | font-weight: 600;
|
50 | 36 | text-overflow: ellipsis;
|
51 | 37 | overflow: hidden;
|
52 | 38 | display: -webkit-box !important;
|
| 39 | + line-clamp: 3; |
53 | 40 | -webkit-line-clamp: 3;
|
54 | 41 | -webkit-box-orient: vertical;
|
55 | 42 | white-space: normal;
|
56 |
| - height: 108px; |
57 |
| - max-height: 108px; |
| 43 | + height: 100px; |
| 44 | + max-height: 100px; |
| 45 | + transition: 0.2s ease-in-out; |
| 46 | + text-wrap: balance; |
58 | 47 | }
|
59 | 48 |
|
60 |
| -.card.card-new .card-body .title-wrapper .new-title:hover { |
| 49 | +.title-wrapper .new-title:hover { |
61 | 50 | text-decoration: underline;
|
| 51 | + transition: 0.2s ease-in-out; |
62 | 52 | }
|
63 | 53 |
|
64 |
| -.card.card-new .card-body .title-wrapper .new-title:hover, |
65 |
| -.card.card-new .card-body .title-wrapper .save { |
| 54 | +.title-wrapper .new-title:hover, |
| 55 | +.title-wrapper .save { |
66 | 56 | cursor: pointer;
|
67 | 57 | }
|
68 | 58 |
|
69 |
| -.card.card-new .card-body .title-wrapper .save { |
| 59 | +.title-wrapper .save { |
70 | 60 | color: var(--primary-color);
|
71 | 61 | margin-top: 5px;
|
72 | 62 | z-index: 10;
|
73 | 63 | }
|
74 | 64 |
|
75 |
| -.card.card.card-new .card-body .date { |
76 |
| - flex-grow: 1; |
| 65 | +.title-wrapper .website-name { |
| 66 | + font-size: 15px; |
| 67 | + color: var(--secondary-color); |
| 68 | + font-weight: 500; |
| 69 | +} |
| 70 | + |
| 71 | +.card-body .details { |
77 | 72 | display: flex;
|
78 |
| - align-items: flex-end; |
79 |
| - justify-content: flex-end; |
| 73 | + gap: 10px; |
| 74 | + align-items: center; |
| 75 | + color: var(--font-color-secondary); |
| 76 | +} |
| 77 | + |
| 78 | +.details .date, |
| 79 | +.details .read { |
80 | 80 | font-size: 13px;
|
| 81 | +} |
| 82 | + |
| 83 | +.details .bull { |
| 84 | + font-size: 18px; |
| 85 | +} |
| 86 | + |
| 87 | +.details-wrapper .options { |
| 88 | + display: flex; |
| 89 | + justify-content: center; |
| 90 | + align-items: center; |
| 91 | + width: fit-content; |
| 92 | + gap: 0.6rem; |
| 93 | + flex-wrap: wrap; |
| 94 | + margin: 0 0 0 auto; |
| 95 | +} |
| 96 | + |
| 97 | +.details-wrapper .options .separator { |
| 98 | + height: 24px; |
| 99 | + width: 0.1rem; |
| 100 | + background: #c1c1c1; |
| 101 | +} |
| 102 | + |
| 103 | +.details-wrapper .options .option { |
81 | 104 | color: var(--font-color-secondary);
|
| 105 | + cursor: pointer; |
| 106 | + padding: 3px 10px; |
| 107 | + border-radius: 10px; |
| 108 | + display: flex; |
| 109 | + justify-content: center; |
| 110 | + align-items: center; |
| 111 | + gap: 6px; |
| 112 | + min-height: 29px; |
82 | 113 | }
|
83 | 114 |
|
84 |
| -.card.card.card-new .card-body .date span { |
| 115 | +.details-wrapper .option.default { |
| 116 | + cursor: default !important; |
| 117 | +} |
| 118 | + |
| 119 | +.options .option:hover:has(.bx-like) { |
| 120 | + background: #e66d9b2e; |
| 121 | +} |
| 122 | + |
| 123 | +.options .option:hover:has(.bx-bookmark) { |
| 124 | + background: #0098fa2e; |
| 125 | +} |
| 126 | + |
| 127 | +.option .btn-icon { |
| 128 | + color: var(--font-color-secondary); |
| 129 | + width: 24px; |
| 130 | + height: 24px; |
| 131 | + cursor: pointer; |
| 132 | + |
| 133 | +} |
| 134 | + |
| 135 | +.details-wrapper .options .option i { |
| 136 | + font-size: 20px; |
| 137 | +} |
| 138 | + |
| 139 | +.bx-bookmark { |
| 140 | + color: var(--primary-color); |
| 141 | +} |
| 142 | + |
| 143 | +.bx-like { |
85 | 144 | color: var(--secondary-color);
|
86 |
| - margin-left: 4px; |
87 |
| - font-weight: 500; |
| 145 | +} |
| 146 | + |
| 147 | +.bx-bookmark { |
| 148 | + color: var(--primary-color); |
| 149 | +} |
| 150 | + |
| 151 | +.bx { |
| 152 | + position: relative; |
| 153 | + display: inline-block; |
| 154 | +} |
| 155 | + |
| 156 | +.bx-like::before, |
| 157 | +.bx-bookmark::before { |
| 158 | + position: absolute; |
| 159 | + top: 0; |
| 160 | + left: 0; |
| 161 | + transition: opacity 0.3s ease, transform 0.3s ease; |
| 162 | +} |
| 163 | + |
| 164 | +.bx::after { |
| 165 | + top: 0; |
| 166 | + left: 0; |
| 167 | + opacity: 0; |
| 168 | + transition: opacity 0.3s ease, transform 0.3s ease; |
| 169 | +} |
| 170 | + |
| 171 | +.bx-like::after { |
| 172 | + content: "\ed5f"; |
| 173 | +} |
| 174 | + |
| 175 | +.bx-bookmark::after { |
| 176 | + content: "\ec31"; |
| 177 | +} |
| 178 | + |
| 179 | +.option:hover:has(.bx-like) .bx-like::before, |
| 180 | +.option:hover:has(.bx-bookmark) .bx-bookmark::before { |
| 181 | + opacity: 0; |
| 182 | +} |
| 183 | + |
| 184 | +.option:hover:has(.bx-like) .bx-like::after, |
| 185 | +.option:hover:has(.bx-bookmark) .bx-bookmark::after { |
| 186 | + opacity: 1; |
| 187 | +} |
| 188 | + |
| 189 | + |
| 190 | +.details-wrapper { |
| 191 | + display: flex; |
| 192 | + justify-content: space-between; |
| 193 | + align-items: center; |
| 194 | + flex-direction: row; |
| 195 | + height: 100%; |
| 196 | + width: 100%; |
| 197 | +} |
| 198 | + |
| 199 | +.details { |
| 200 | + display: flex; |
| 201 | + gap: 10px; |
| 202 | + width: fit-content; |
| 203 | + align-items: center; |
| 204 | + color: var(--font-color-secondary); |
| 205 | +} |
| 206 | + |
| 207 | + |
| 208 | +figure { |
| 209 | + height: 10.5rem; |
| 210 | + width: 25rem; |
| 211 | +} |
| 212 | + |
| 213 | +figure img { |
| 214 | + object-fit: cover; |
| 215 | + width: 100%; |
| 216 | + height: 100%; |
| 217 | + border-radius: 0.6rem; |
88 | 218 | }
|
89 | 219 |
|
90 | 220 | @media (max-width: 480px) {
|
91 | 221 | .card.card-new {
|
| 222 | + padding: 0.6rem; |
| 223 | + gap: 0.5rem; |
| 224 | + } |
| 225 | + |
| 226 | + .card.card-new .card-body { |
| 227 | + flex-direction: column-reverse; |
| 228 | + } |
| 229 | + |
| 230 | + .details-wrapper { |
| 231 | + width: 100%; |
92 | 232 | flex-direction: column;
|
93 |
| - height: auto; |
94 |
| - max-height: none; |
| 233 | + align-items: flex-start; |
| 234 | + justify-content: flex-end; |
| 235 | + gap: 1rem; |
95 | 236 | }
|
96 | 237 |
|
97 |
| - .card.card-new figure { |
98 |
| - max-height: 9rem; |
| 238 | + .details-wrapper .options { |
| 239 | + align-self: center; |
| 240 | + margin: 0; |
99 | 241 | width: 100%;
|
| 242 | + justify-content: space-evenly; |
100 | 243 | }
|
101 | 244 |
|
102 |
| - .card.card-new figure img { |
103 |
| - border-radius: 0.6rem 0.6rem 0 0; |
| 245 | + figure { |
| 246 | + width: 100%; |
104 | 247 | }
|
105 |
| - .card.card-new .card-body .title-wrapper .new-title { |
| 248 | + |
| 249 | + .title-wrapper .new-title { |
106 | 250 | height: 90px;
|
107 | 251 | font-size: 20px;
|
108 | 252 | }
|
|
0 commit comments