|
89 | 89 | </div> |
90 | 90 |
|
91 | 91 | <div style="margin: 4em 0;"> |
92 | | - <List |
93 | | - twoLine |
94 | | - nonInteractive |
95 | | - style="border: 1px solid var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.1));" |
96 | | - > |
97 | | - <Item style="height: auto; min-height: 64px;"> |
98 | | - <Graphic style="height: auto; width: auto;"> |
| 92 | + <List twoLine nonInteractive class="feature-list"> |
| 93 | + <Item> |
| 94 | + <Graphic> |
99 | 95 | <Icon |
100 | 96 | component={Svg} |
101 | 97 | style="width: 40px; height: 40px;" |
|
106 | 102 | </Graphic> |
107 | 103 | <Text> |
108 | 104 | <PrimaryText>Fully, Strictly Typed</PrimaryText> |
109 | | - <SecondaryText style="white-space: normal;"> |
| 105 | + <SecondaryText> |
110 | 106 | SMUI is strictly typed with TypeScript. This not only helps catch |
111 | 107 | bugs early, it helps while developing as every property is |
112 | 108 | autocompleted by modern IDEs. |
113 | 109 | </SecondaryText> |
114 | 110 | </Text> |
115 | 111 | </Item> |
116 | | - <Item style="height: auto; min-height: 64px;"> |
117 | | - <Graphic style="height: auto; width: auto;"> |
| 112 | + <Item> |
| 113 | + <Graphic> |
118 | 114 | <Icon |
119 | 115 | component={Svg} |
120 | 116 | style="width: 40px; height: 40px;" |
|
125 | 121 | </Graphic> |
126 | 122 | <Text> |
127 | 123 | <PrimaryText>Accessible by Default</PrimaryText> |
128 | | - <SecondaryText style="white-space: normal;"> |
| 124 | + <SecondaryText> |
129 | 125 | SMUI automatically adds appropriate ARIA attributes to components |
130 | 126 | to provide accessibility to screen readers. SMUI is also fully |
131 | 127 | keyboard accessible, meaning motor impaired users can easily use |
132 | 128 | SMUI components. |
133 | 129 | </SecondaryText> |
134 | 130 | </Text> |
135 | 131 | </Item> |
136 | | - <Item style="height: auto; min-height: 64px;"> |
137 | | - <Graphic style="height: auto; width: auto;"> |
| 132 | + <Item> |
| 133 | + <Graphic> |
138 | 134 | <Icon |
139 | 135 | component={Svg} |
140 | 136 | style="width: 40px; height: 40px;" |
|
145 | 141 | </Graphic> |
146 | 142 | <Text> |
147 | 143 | <PrimaryText>Touch Friendly</PrimaryText> |
148 | | - <SecondaryText style="white-space: normal;"> |
| 144 | + <SecondaryText> |
149 | 145 | SMUI provides increased touch targets to allow ease of use on |
150 | 146 | mobile devices, conforming to the Material Spec requirement of |
151 | 147 | minimum 48px x 48px touch targets. |
152 | 148 | </SecondaryText> |
153 | 149 | </Text> |
154 | 150 | </Item> |
155 | | - <Item style="height: auto; min-height: 64px;"> |
156 | | - <Graphic style="height: auto; width: auto;"> |
| 151 | + <Item> |
| 152 | + <Graphic> |
157 | 153 | <Icon |
158 | 154 | component={Svg} |
159 | 155 | style="width: 40px; height: 40px;" |
|
164 | 160 | </Graphic> |
165 | 161 | <Text> |
166 | 162 | <PrimaryText>Server Side Rendering</PrimaryText> |
167 | | - <SecondaryText style="white-space: normal;"> |
| 163 | + <SecondaryText> |
168 | 164 | SMUI can be fully rendered on the server, meaning faster time to |
169 | 165 | first meaningful paint. SMUI fully supports SvelteKit. In fact, |
170 | 166 | the site you're looking at is a SvelteKit app. |
171 | 167 | </SecondaryText> |
172 | 168 | </Text> |
173 | 169 | </Item> |
174 | | - <Item style="height: auto; min-height: 64px;"> |
175 | | - <Graphic style="height: auto; width: auto;"> |
| 170 | + <Item> |
| 171 | + <Graphic> |
176 | 172 | <Icon |
177 | 173 | component={Svg} |
178 | 174 | style="width: 40px; height: 40px;" |
|
183 | 179 | </Graphic> |
184 | 180 | <Text> |
185 | 181 | <PrimaryText>Fully Themable</PrimaryText> |
186 | | - <SecondaryText style="white-space: normal;"> |
| 182 | + <SecondaryText> |
187 | 183 | Components are themable using Sass variables, provided by MDC-Web. |
188 | 184 | Everything from their shape, color, density, borders, interaction |
189 | 185 | states, and more is themable. |
190 | 186 | </SecondaryText> |
191 | 187 | </Text> |
192 | 188 | </Item> |
193 | | - <Item style="height: auto; min-height: 64px;"> |
194 | | - <Graphic style="height: auto; width: auto;"> |
| 189 | + <Item> |
| 190 | + <Graphic> |
195 | 191 | <Icon |
196 | 192 | component={Svg} |
197 | 193 | style="width: 40px; height: 40px;" |
|
202 | 198 | </Graphic> |
203 | 199 | <Text> |
204 | 200 | <PrimaryText>RTL Support</PrimaryText> |
205 | | - <SecondaryText style="white-space: normal;"> |
| 201 | + <SecondaryText> |
206 | 202 | SMUI is RTL aware, and components will adapt their design to suit |
207 | 203 | the language of the user. |
208 | 204 | </SecondaryText> |
209 | 205 | </Text> |
210 | 206 | </Item> |
211 | | - <Item style="height: auto; min-height: 64px;"> |
212 | | - <Graphic style="height: auto; width: auto;"> |
| 207 | + <Item> |
| 208 | + <Graphic> |
213 | 209 | <Icon |
214 | 210 | component={Svg} |
215 | 211 | style="width: 40px; height: 40px;" |
|
220 | 216 | </Graphic> |
221 | 217 | <Text> |
222 | 218 | <PrimaryText>Widely Used, a Growing Community</PrimaryText> |
223 | | - <SecondaryText style="white-space: normal;"> |
| 219 | + <SecondaryText> |
224 | 220 | With over <a |
225 | 221 | href="https://github.com/hperrin/svelte-material-ui/network/dependents?package_id=UGFja2FnZS01NTM5MDg5MDQ" |
226 | 222 | target="_blank">2200 projects</a |
|
230 | 226 | </SecondaryText> |
231 | 227 | </Text> |
232 | 228 | </Item> |
233 | | - <Item style="height: auto; min-height: 64px;"> |
234 | | - <Graphic style="height: auto; width: auto;"> |
| 229 | + <Item> |
| 230 | + <Graphic> |
235 | 231 | <Icon |
236 | 232 | component={Svg} |
237 | 233 | style="width: 40px; height: 40px;" |
|
242 | 238 | </Graphic> |
243 | 239 | <Text> |
244 | 240 | <PrimaryText>Adaptable, Versatile</PrimaryText> |
245 | | - <SecondaryText style="white-space: normal;"> |
| 241 | + <SecondaryText> |
246 | 242 | SMUI supports adding arbitrary attributes and actions to every |
247 | 243 | component and many internal elements within them. SMUI forwards |
248 | 244 | all events from every component, and supports event modifiers, |
|
253 | 249 | </SecondaryText> |
254 | 250 | </Text> |
255 | 251 | </Item> |
256 | | - <Item style="height: auto; min-height: 64px;"> |
257 | | - <Graphic style="height: auto; width: auto;"> |
| 252 | + <Item> |
| 253 | + <Graphic> |
258 | 254 | <Icon |
259 | 255 | component={Svg} |
260 | 256 | style="width: 40px; height: 40px;" |
|
265 | 261 | </Graphic> |
266 | 262 | <Text> |
267 | 263 | <PrimaryText>Material Design Compliant</PrimaryText> |
268 | | - <SecondaryText style="white-space: normal;"> |
| 264 | + <SecondaryText> |
269 | 265 | Every SMUI component fully follows the Material Design |
270 | 266 | specification. You can build up-to-spec UIs with SMUI. |
271 | 267 | </SecondaryText> |
|
349 | 345 | flex-basis: 0; |
350 | 346 | } |
351 | 347 |
|
352 | | - @media (max-width: 460px) { |
| 348 | + * :global(.feature-list) { |
| 349 | + border: 1px solid |
| 350 | + var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.1)); |
| 351 | + padding: 1em; |
| 352 | + } |
| 353 | +
|
| 354 | + * :global(.feature-list .mdc-deprecated-list-item) { |
| 355 | + height: auto; |
| 356 | + min-height: 64px; |
| 357 | + margin-bottom: 1em; |
| 358 | + } |
| 359 | +
|
| 360 | + * :global(.feature-list .mdc-deprecated-list-item:last-child) { |
| 361 | + margin-bottom: 0; |
| 362 | + } |
| 363 | +
|
| 364 | + * :global(.feature-list .mdc-deprecated-list-item__graphic) { |
| 365 | + height: auto; |
| 366 | + width: auto; |
| 367 | + } |
| 368 | +
|
| 369 | + * :global(.feature-list .mdc-deprecated-list-item__secondary-text) { |
| 370 | + white-space: normal; |
| 371 | + } |
| 372 | +
|
| 373 | + @media (max-width: 767px) { |
353 | 374 | section { |
354 | 375 | padding: 16px; |
355 | 376 | } |
|
361 | 382 | height: 276px; |
362 | 383 | width: 276px; |
363 | 384 | } |
| 385 | + } |
364 | 386 |
|
| 387 | + @media (max-width: 1023px) { |
365 | 388 | .boxes { |
366 | 389 | flex-direction: column; |
367 | 390 | } |
|
0 commit comments