Blame view
public/css/pages/main/news.css
5.39 KB
b80175387 Начальный проект ... |
1 |
.news { |
2f5f2c1a4 Баг с версткой ка... |
2 3 4 5 6 7 8 9 10 11 12 |
margin-top: 32px; } @media (min-width: 480px) { .news { margin-top: 50px; } } @media (min-width: 780px) { .news { margin-top: 70px; } |
b80175387 Начальный проект ... |
13 14 15 |
} .news__title { font-family: "Montserrat"; |
2f5f2c1a4 Баг с версткой ка... |
16 17 18 |
font-weight: 600; font-size: 28px; line-height: 34px; |
b80175387 Начальный проект ... |
19 20 21 22 23 |
letter-spacing: -0.01em; color: #333B49; -ms-flex-item-align: start; align-self: start; } |
2f5f2c1a4 Баг с версткой ка... |
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
@media (min-width: 480px) { .news__title { font-weight: 600; font-size: 38px; line-height: 42px; } } @media (min-width: 780px) { .news__title { font-weight: 700; font-size: 48px; line-height: 100%; } } .news__button-mob { display: inline-block; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 100%; padding: 16px 0; margin-top: 24px; background: #F5851A; border-radius: 9.375px; font-weight: 600; font-style: normal; font-size: 14px; line-height: 16px; letter-spacing: -0.01em; color: #FFFFFF; border: 1px solid #F5851A; cursor: pointer; } .news__button-mob:hover { border: 1px solid #F2994A; background-color: #FFFFFF; color: #F2994A; border-radius: 9.375px; font-weight: 600; font-style: normal; font-size: 14px; line-height: 16px; letter-spacing: -0.01em; } @media (min-width: 780px) { .news__button-mob { display: none; } } |
b80175387 Начальный проект ... |
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
.news-container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .news-wrapper { |
2f5f2c1a4 Баг с версткой ка... |
94 |
margin-top: 32px; |
b80175387 Начальный проект ... |
95 96 97 |
display: -webkit-box; display: -ms-flexbox; display: flex; |
2f5f2c1a4 Баг с версткой ка... |
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
-webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; width: 100%; } @media (min-width: 640px) { .news-wrapper { margin-top: 42px; } } @media (min-width: 780px) { .news-wrapper { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } |
b80175387 Начальный проект ... |
116 117 118 119 |
} .news-block { margin-right: 17px; |
2f5f2c1a4 Баг с версткой ка... |
120 121 |
width: 100%; height: 232px; |
b80175387 Начальный проект ... |
122 123 124 125 126 127 128 129 130 131 132 133 |
display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; position: relative; } |
2f5f2c1a4 Баг с версткой ка... |
134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
.news-block:not(:last-child) { margin-bottom: 20px; } @media (min-width: 780px) { .news-block:not(:last-child) { margin-bottom: 0; } } @media (min-width: 780px) { .news-block { max-width: 427px; height: 261px; } } |
b80175387 Начальный проект ... |
148 |
.news-block__img { |
2f5f2c1a4 Баг с версткой ка... |
149 |
width: 100%; |
b80175387 Начальный проект ... |
150 |
height: 141px; |
2f5f2c1a4 Баг с версткой ка... |
151 152 153 154 155 |
-o-object-fit: cover; object-fit: cover; -o-object-position: center center; object-position: center center; border-radius: 10px; |
b80175387 Начальный проект ... |
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
} .news-block__img-1 { background-image: url("../img/main/news/1.png"); background-repeat: no-repeat; background-size: cover; } .news-block__img-2 { background-image: url("../img/main/news/2.png"); background-repeat: no-repeat; background-size: cover; } .news-block__img-3 { background-image: url("../img/main/news/3.png"); background-repeat: no-repeat; background-size: cover; } .news-block__title { font-weight: 600; |
2f5f2c1a4 Баг с версткой ка... |
174 175 |
font-size: 16px; line-height: 20px; |
b80175387 Начальный проект ... |
176 |
letter-spacing: -0.01em; |
2f5f2c1a4 Баг с версткой ка... |
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
margin-top: 12px; color: #333B49; } @media (min-width: 640px) { .news-block__title { margin-top: 24px; } } @media (min-width: 820px) { .news-block__title { font-size: 18px; line-height: 22px; color: #000; } } @media (min-width: 1024px) { .news-block__title { font-size: 20px; line-height: 24px; } |
b80175387 Начальный проект ... |
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
} .news-block__title_1 { margin-bottom: 23px; } .news-block-bottom { position: absolute; bottom: 0; width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; margin-right: 30px; } .news-block-bottom__link { font-size: 16px; line-height: 24px; letter-spacing: -0.01em; -webkit-text-decoration-line: underline; text-decoration-line: underline; |
2f5f2c1a4 Баг с версткой ка... |
220 |
color: #ABB2BF; |
b80175387 Начальный проект ... |
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
} .news-block-bottom__date { font-family: "Muller"; font-style: normal; font-weight: 400; font-size: 15px; line-height: 22px; color: #636B78; } .news__button { border: 1px solid #F2994A; background-color: #FFFFFF; color: #F2994A; border-radius: 9.375px; font-weight: 600; font-style: normal; font-size: 14px; line-height: 16px; letter-spacing: -0.01em; padding: 13px 30px; border-radius: 9.375px; font-family: "Muller"; font-weight: 500; font-size: 13.125px; line-height: 13px; margin-top: 60px; |
2f5f2c1a4 Баг с версткой ка... |
248 |
display: none; |
b80175387 Начальный проект ... |
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
} .news__button:hover { background: #F5851A; border-radius: 9.375px; font-weight: 600; font-style: normal; font-size: 14px; line-height: 16px; letter-spacing: -0.01em; color: #FFFFFF; border: 1px solid #F5851A; cursor: pointer; border: none; font-family: "Muller"; font-weight: 500; font-size: 13.125px; line-height: 13px; border: 1px solid #F5851A; |
2f5f2c1a4 Баг с версткой ка... |
267 268 269 270 271 |
} @media (min-width: 780px) { .news__button { display: inline-block; } |
b80175387 Начальный проект ... |
272 |
} |