|
5 | 5 | flex-direction: column; |
6 | 6 | justify-content: flex-start; |
7 | 7 | align-items: flex-start; |
8 | | - padding: 24px 20px 0; |
| 8 | + padding: 30px 20px 22px; |
9 | 9 |
|
10 | 10 | background-color: $bg-color-lighten; |
11 | 11 |
|
|
15 | 15 | } |
16 | 16 |
|
17 | 17 | @media (width >= #{$desktop-width}) { |
18 | | - padding: 47px 50px 37px 52px; |
19 | | - } |
20 | | -} |
21 | | - |
22 | | -.card__title { |
23 | | - position: relative; |
24 | | - |
25 | | - display: flex; |
26 | | - justify-content: flex-start; |
27 | | - align-items: center; |
28 | | - |
29 | | - margin: 0 0 22px; |
30 | | - font-family: $accent-font; |
31 | | - font-weight: 400; |
32 | | - font-size: 24px; |
33 | | - line-height: 37px; |
34 | | - text-transform: uppercase; |
35 | | - color: $text-color-accent; |
36 | | - |
37 | | - @media (#{$tablet-width} <= width < #{$desktop-width}) { |
38 | | - position: static; |
39 | | - } |
40 | | - |
41 | | - @media (width >= #{$tablet-width}) { |
42 | | - margin-bottom: 25px; |
43 | | - |
44 | | - font-size: 36px; |
45 | | - line-height: 36px; |
46 | | - } |
47 | | - |
48 | | - @media (width >= #{$desktop-width}) { |
49 | | - margin-bottom: 40px; |
| 18 | + padding: 77px 50px 37px 52px; |
50 | 19 | } |
51 | 20 |
|
52 | 21 | &::before { |
53 | 22 | --module-card-icon-size: 50px; |
54 | 23 |
|
55 | 24 | content: ""; |
56 | 25 |
|
57 | | - flex-shrink: 1; |
| 26 | + position: absolute; |
| 27 | + top: 24px; |
| 28 | + left: 20px; |
| 29 | + |
58 | 30 | display: block; |
59 | 31 | width: var(--module-card-icon-size); |
60 | 32 | height: var(--module-card-icon-size); |
61 | | - margin-right: 18px; |
62 | 33 | border-radius: 50%; |
63 | 34 |
|
64 | 35 | background-color: $bg-color-accent; |
65 | 36 |
|
66 | | - @media (#{$tablet-width} <= width < #{$desktop-width}) { |
| 37 | + @media (width >= #{$tablet-width}) { |
67 | 38 | --module-card-icon-size: 200px; |
68 | 39 |
|
69 | | - position: absolute; |
70 | | - top: 90px; |
71 | | - right: 62px; |
72 | | - |
73 | | - margin-right: 0; |
| 40 | + top: 92px; |
| 41 | + left: initial; |
| 42 | + right: 64px; |
74 | 43 | } |
75 | 44 |
|
76 | 45 | @media (width >= #{$desktop-width}) { |
77 | 46 | --module-card-icon-size: 100px; |
78 | 47 |
|
79 | | - margin-right: 62px; |
| 48 | + top: 47px; |
| 49 | + left: 53px; |
| 50 | + right: initial; |
80 | 51 | } |
81 | 52 | } |
82 | 53 |
|
|
94 | 65 | &--slim::after { |
95 | 66 | --module-icon: url("../../icons/stack.svg#cat-slim"); |
96 | 67 |
|
97 | | - top: -3px; |
98 | | - left: 7px; |
| 68 | + top: 21px; |
| 69 | + left: 27px; |
99 | 70 |
|
100 | 71 | width: 36px; |
101 | 72 | height: 50px; |
102 | 73 |
|
103 | | - @media (#{$tablet-width} <= width < #{$desktop-width}) { |
| 74 | + @media (width >= #{$tablet-width}) { |
104 | 75 | top: 81px; |
105 | | - right: 92px; |
| 76 | + right: 94px; |
106 | 77 | left: initial; |
107 | 78 |
|
108 | 79 | width: 140px; |
109 | 80 | height: 194px; |
110 | 81 | } |
111 | 82 |
|
112 | 83 | @media (width >= #{$desktop-width}) { |
113 | | - top: -6px; |
114 | | - left: 15px; |
| 84 | + top: 41px; |
| 85 | + left: 68px; |
| 86 | + right: initial; |
115 | 87 |
|
116 | 88 | width: 70px; |
117 | 89 | height: 97px; |
|
121 | 93 | &--pro::after { |
122 | 94 | --module-icon: url("../../icons/stack.svg#cat-pro"); |
123 | 95 |
|
124 | | - top: 11px; |
125 | | - left: -10px; |
| 96 | + top: 35px; |
| 97 | + left: 12px; |
126 | 98 |
|
127 | 99 | width: 67px; |
128 | 100 | height: 28px; |
|
137 | 109 | } |
138 | 110 |
|
139 | 111 | @media (width >= #{$desktop-width}) { |
140 | | - top: 20px; |
141 | | - left: -19px; |
| 112 | + top: 67px; |
| 113 | + left: 34px; |
| 114 | + right: initial; |
142 | 115 |
|
143 | 116 | width: 134px; |
144 | 117 | height: 56px; |
145 | 118 | } |
146 | 119 | } |
147 | 120 | } |
148 | 121 |
|
| 122 | +.card__title { |
| 123 | + margin: 0 0 29px; |
| 124 | + padding-left: 71px; |
| 125 | + |
| 126 | + font-family: $accent-font; |
| 127 | + font-weight: 400; |
| 128 | + font-size: 24px; |
| 129 | + line-height: 37px; |
| 130 | + text-transform: uppercase; |
| 131 | + color: $text-color-accent; |
| 132 | + |
| 133 | + @media (width >= #{$tablet-width}) { |
| 134 | + margin-bottom: 25px; |
| 135 | + padding-left: 0; |
| 136 | + |
| 137 | + font-size: 36px; |
| 138 | + line-height: 36px; |
| 139 | + } |
| 140 | + |
| 141 | + @media (width >= #{$desktop-width}) { |
| 142 | + margin-bottom: 74px; |
| 143 | + padding-left: 162px; |
| 144 | + } |
| 145 | +} |
| 146 | + |
149 | 147 | .card__text { |
| 148 | + position: relative; |
| 149 | + |
150 | 150 | margin: 0 0 22px; |
151 | 151 |
|
152 | 152 | font-family: $main-font; |
153 | 153 | color: $text-color-main; |
154 | 154 |
|
| 155 | + &:not(:last-of-type) { |
| 156 | + margin-bottom: 1em; |
| 157 | + } |
| 158 | + |
| 159 | + &:last-of-type { |
| 160 | + margin-bottom: 42px; |
| 161 | + } |
| 162 | + |
| 163 | + @media (width < #{$tablet-width}) { |
| 164 | + &:last-of-type::after { |
| 165 | + content: ""; |
| 166 | + position: absolute; |
| 167 | + left: 0; |
| 168 | + right: 0; |
| 169 | + bottom: -23px; |
| 170 | + |
| 171 | + display: block; |
| 172 | + width: 100%; |
| 173 | + height: 1px; |
| 174 | + |
| 175 | + background-color: $border-color-dark; |
| 176 | + } |
| 177 | + } |
| 178 | + |
155 | 179 | @media (#{$tablet-width} <= width < #{$desktop-width}) { |
156 | 180 | margin-bottom: 33px; |
157 | 181 | } |
|
162 | 186 | } |
163 | 187 |
|
164 | 188 | .card__link { |
165 | | - align-self: flex-start; |
166 | | - display: flex; |
| 189 | + display: grid; |
| 190 | + grid-template-columns: auto 32px; |
| 191 | + justify-content: start; |
167 | 192 | align-items: center; |
168 | | - width: 100%; |
169 | | - padding: 19px 0 22px; |
170 | | - border-top: 1px solid $border-color-dark; |
| 193 | + gap: 15px; |
| 194 | + width: fit-content; |
171 | 195 |
|
172 | 196 | font-family: $accent-font; |
173 | 197 | font-weight: 400; |
|
187 | 211 | line-height: 30px; |
188 | 212 | } |
189 | 213 |
|
| 214 | + @media (width >= #{$desktop-width}) { |
| 215 | + gap: 25px; |
| 216 | + } |
| 217 | + |
190 | 218 | &:active { |
191 | 219 | opacity: 0.3; |
192 | 220 | } |
|
197 | 225 | display: block; |
198 | 226 | width: 32px; |
199 | 227 | height: 11px; |
200 | | - margin-left: 15px; |
201 | 228 |
|
202 | 229 | background: $text-color-accent; |
203 | 230 | mask: url("../../icons/stack.svg#arrow") no-repeat -8px center / 32px 11px; |
204 | 231 | transition: 0.08s linear all; |
205 | | - |
206 | | - @media (width >= #{$tablet-width}) { |
207 | | - margin-left: 25px; |
208 | | - } |
209 | 232 | } |
210 | 233 |
|
211 | 234 | &:hover::after, |
|
0 commit comments