vitrify 0.17.1 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,8 @@ export const prerender = async ({ outDir, templatePath, manifestPath, entryServe
12
12
  path: outDir,
13
13
  logLevel: 'info',
14
14
  external: true,
15
- inlineFonts: true,
16
- preloadFonts: true
15
+ fonts: true,
16
+ compress: false
17
17
  });
18
18
  for (const url of paths) {
19
19
  const directoryUrl = new URL(url.split('/').slice(0, -1).join('/'), `file://${outDir}`);
@@ -1,57 +1,33 @@
1
1
  const shortcuts = [
2
2
  [
3
3
  /^q-card$/,
4
- ([, c], { theme }) => `shadow-black border-rd-4px v-top bg-white relative
5
- [&>div:not(.q--avoid-card-border)]:(border-t-0 border-t-0 border-b-0 border-b-0)
6
- [&>img:not(.q--avoid-card-border)]:(border-t-0 border-t-0 border-b-0 border-b-0)
7
- [&>div:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-0 border-t-inherit border-t-inherit)
8
- [&>img:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-0 border-t-inherit border-t-inherit)
9
- [&>div:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-b-0 border-b-inherit border-b-inherit)
10
- [&>img:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-b-0 border-b-inherit border-b-inherit)
11
- [&>div:not(.q--avoid-card-border)]:(border-l-0 border-r-0 shadow-none)
12
- [&>img]:(block w-full max-w-full border-none)
13
- `
4
+ ([, c], { theme }) => `[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] align-top bg-[#fff] relative [&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-left:0] [border-right:0] [box-shadow:none]) [&_>_img]:(block w-full max-w-full border-[0])`
14
5
  ],
15
6
  [
16
7
  /^q-card--bordered$/,
17
- ([, c], { theme }) => `border-solid border-black border-op-120`
8
+ ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
18
9
  ],
19
10
  [
20
11
  /^q-card--dark$/,
21
- ([, c], { theme }) => `border-white border-op-280 shadow-black`
12
+ ([, c], { theme }) => `border-[rgba(255,_255,_255,_0.28)] [box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)]`
22
13
  ],
23
14
  [/^q-card__section$/, ([, c], { theme }) => `relative`],
24
- [/^q-card__section--vert$/, ([, c], { theme }) => `p-16px`],
15
+ [/^q-card__section--vert$/, ([, c], { theme }) => `p-[16px]`],
25
16
  [
26
17
  /^q-card__section--horiz$/,
27
- ([, c], { theme }) => `[&>div:not(.q--avoid-card-border)]:(border-t-0 border-b-0 border-t-0 border-b-0)
28
- [&>img:not(.q--avoid-card-border)]:(border-t-0 border-b-0 border-t-0 border-b-0)
29
- [&>div:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
30
- [&>img:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
31
- [&>div:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
32
- [&>img:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
33
- [&>div:not(.q--avoid-card-border)]:(border-t-0 border-b-0 shadow-none)
34
- `
18
+ ([, c], { theme }) => `[&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-top:0] [border-bottom:0] [box-shadow:none])`
35
19
  ],
36
20
  [
37
- /^q--card__actions$/,
38
- ([, c], { theme }) => `p-8px items-center
39
- [&_.q-btn--rectangle]:(px-8px py-0)`
21
+ /^q-card__actions$/,
22
+ ([, c], { theme }) => `p-[8px] items-center [&_.q-btn--rectangle]:(px-[8px] py-[0])`
40
23
  ],
41
24
  [
42
- /^q--card__actions--horiz$/,
43
- ([, c], { theme }) => `[&>.q-btn-item+.q-btn-item]:(ml-8px)
44
- [&>.q-btn-group+.q-btn-item]:(ml-8px)
45
- [&>.q-btn-item+.q-btn-group]:(ml-8px)`
25
+ /^q-card__actions--horiz$/,
26
+ ([, c], { theme }) => `[&_>_.q-btn-item_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-group_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-item_+_.q-btn-group]:(ml-[8px])`
46
27
  ],
47
28
  [
48
- /^q--card__actions--vert$/,
49
- ([, c], { theme }) => `[&>.q-btn-item.q-btn--round]:(self-center)
50
- [&>.q-btn-item+.q-btn-item]:(mt-4px)
51
- [&>.q-btn-group+.q-btn-item]:(mt-4px)
52
- [&>.q-btn-item+.q-btn-group]:(mt-4px)
53
- [&>.q-btn-group>.q-btn-item]:(flex-grow)
54
- `
29
+ /^q-card__actions--vert$/,
30
+ ([, c], { theme }) => `[&_>_.q-btn-item.q-btn--round]:(self-center) [&_>_.q-btn-item_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-group_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-item_+_.q-btn-group]:(mt-[4px]) [&_>_.q-btn-group_>_.q-btn-item]:(flex-grow)`
55
31
  ]
56
32
  ];
57
33
  export { shortcuts };
@@ -12,7 +12,7 @@ const sizes = ['sm', 'md', 'lg', 'xl'];
12
12
  const shortcuts = [
13
13
  [
14
14
  /^row$/,
15
- ([, c], { theme }) => `flex flex-row flex-wrap
15
+ ([, c], { theme }) => `flex flex-row flex-wrap
16
16
  [&_>_.col]:(grow)
17
17
  ${sizes
18
18
  .map((size) => `[&_>_.col-${size}]:(${size}:basis-auto ${size}:grow)`)
@@ -16,9 +16,9 @@ const preflights = [
16
16
  ];
17
17
  const shortcuts = [
18
18
  [/^non-selectable$/, ([, c], { theme }) => `!select-none`],
19
- [/^scroll$/, ([, c], { theme }) => `overflow-auto `],
20
- [/^scroll-x$/, ([, c], { theme }) => ` overflow-x-auto`],
21
- [/^scroll-y$/, ([, c], { theme }) => ` overflow-y-auto`],
19
+ [/^scroll$/, ([, c], { theme }) => `overflow-auto`],
20
+ [/^scroll-x$/, ([, c], { theme }) => `overflow-x-auto`],
21
+ [/^scroll-y$/, ([, c], { theme }) => `overflow-y-auto`],
22
22
  [/^no-scroll$/, ([, c], { theme }) => `!overflow-hidden`],
23
23
  [/^no-pointer-events$/, ([, c], { theme }) => `!pointer-events-none`],
24
24
  [
@@ -1209,26 +1209,265 @@ export default definePreset((options) => {
1209
1209
  safelist,
1210
1210
  preflights: [
1211
1211
  {
1212
- getCSS: ({ theme }) => `#q-app {
1213
- width: 100%;
1214
- direction: ltr;
1212
+ getCSS: ({ theme }) => `/* beasties:include start */
1213
+ /* Document
1214
+ * ========================================================================== */
1215
+
1216
+ /**
1217
+ * 1. Correct the line height in all browsers.
1218
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
1219
+ */
1220
+
1221
+ :where(html) {
1222
+ line-height: 1.15; /* 1 */
1223
+ -webkit-text-size-adjust: 100%; /* 2 */
1224
+ text-size-adjust: 100%; /* 2 */
1215
1225
  }
1216
- body.platform-ios.within-iframe, body.platform-ios.within-iframe #q-app {
1217
- width: 100px;
1218
- min-width: 100%;
1226
+
1227
+ /* Sections
1228
+ * ========================================================================== */
1229
+
1230
+ /**
1231
+ * Correct the font size and margin on \`h1\` elements within \`section\` and
1232
+ * \`article\` contexts in Chrome, Edge, Firefox, and Safari.
1233
+ */
1234
+
1235
+ :where(h1) {
1236
+ font-size: 2em;
1237
+ margin-block-end: 0.67em;
1238
+ margin-block-start: 0.67em;
1219
1239
  }
1220
- body {
1221
- min-width: 100px;
1222
- min-height: 100%;
1223
- font-family: 'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1224
- -ms-text-size-adjust: 100%;
1225
- -webkit-text-size-adjust: 100%;
1226
- -webkit-font-smoothing: antialiased;
1227
- -moz-osx-font-smoothing: grayscale;
1228
- font-smoothing: antialiased;
1229
- line-height: 1.5;
1230
- font-size: 14px;
1231
- }`
1240
+
1241
+ /* Grouping content
1242
+ * ========================================================================== */
1243
+
1244
+ /**
1245
+ * Remove the margin on nested lists in Chrome, Edge, and Safari.
1246
+ */
1247
+
1248
+ :where(dl, ol, ul) :where(dl, ol, ul) {
1249
+ margin-block-end: 0;
1250
+ margin-block-start: 0;
1251
+ }
1252
+
1253
+ /**
1254
+ * 1. Add the correct box sizing in Firefox.
1255
+ * 2. Correct the inheritance of border color in Firefox.
1256
+ */
1257
+
1258
+ :where(hr) {
1259
+ box-sizing: content-box; /* 1 */
1260
+ color: inherit; /* 2 */
1261
+ height: 0; /* 1 */
1262
+ }
1263
+
1264
+ /* Text-level semantics
1265
+ * ========================================================================== */
1266
+
1267
+ /**
1268
+ * Add the correct text decoration in Safari.
1269
+ */
1270
+
1271
+ :where(abbr[title]) {
1272
+ text-decoration: underline;
1273
+ text-decoration: underline dotted;
1274
+ }
1275
+
1276
+ /**
1277
+ * Add the correct font weight in Chrome, Edge, and Safari.
1278
+ */
1279
+
1280
+ :where(b, strong) {
1281
+ font-weight: bolder;
1282
+ }
1283
+
1284
+ /**
1285
+ * 1. Correct the inheritance and scaling of font size in all browsers.
1286
+ * 2. Correct the odd \`em\` font sizing in all browsers.
1287
+ */
1288
+
1289
+ :where(code, kbd, pre, samp) {
1290
+ font-family: monospace, monospace; /* 1 */
1291
+ font-size: 1em; /* 2 */
1292
+ }
1293
+
1294
+ /**
1295
+ * Add the correct font size in all browsers.
1296
+ */
1297
+
1298
+ :where(small) {
1299
+ font-size: 80%;
1300
+ }
1301
+
1302
+ /* Tabular data
1303
+ * ========================================================================== */
1304
+
1305
+ /**
1306
+ * 1. Correct table border color in Chrome, Edge, and Safari.
1307
+ * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
1308
+ */
1309
+
1310
+ :where(table) {
1311
+ border-color: currentColor; /* 1 */
1312
+ text-indent: 0; /* 2 */
1313
+ }
1314
+
1315
+ /* Forms
1316
+ * ========================================================================== */
1317
+
1318
+ /**
1319
+ * Remove the margin on controls in Safari.
1320
+ */
1321
+
1322
+ :where(button, input, select) {
1323
+ margin: 0;
1324
+ }
1325
+
1326
+ /**
1327
+ * Remove the inheritance of text transform in Firefox.
1328
+ */
1329
+
1330
+ :where(button) {
1331
+ text-transform: none;
1332
+ }
1333
+
1334
+ /**
1335
+ * Correct the inability to style buttons in iOS and Safari.
1336
+ */
1337
+
1338
+ :where(button, input:is([type="button" i], [type="reset" i], [type="submit" i])) {
1339
+ -webkit-appearance: button;
1340
+ }
1341
+
1342
+ /**
1343
+ * Add the correct vertical alignment in Chrome, Edge, and Firefox.
1344
+ */
1345
+
1346
+ :where(progress) {
1347
+ vertical-align: baseline;
1348
+ }
1349
+
1350
+ /**
1351
+ * Remove the inheritance of text transform in Firefox.
1352
+ */
1353
+
1354
+ :where(select) {
1355
+ text-transform: none;
1356
+ }
1357
+
1358
+ /**
1359
+ * Remove the margin in Firefox and Safari.
1360
+ */
1361
+
1362
+ :where(textarea) {
1363
+ margin: 0;
1364
+ }
1365
+
1366
+ /**
1367
+ * 1. Correct the odd appearance in Chrome, Edge, and Safari.
1368
+ * 2. Correct the outline style in Safari.
1369
+ */
1370
+
1371
+ :where(input[type="search" i]) {
1372
+ -webkit-appearance: textfield; /* 1 */
1373
+ outline-offset: -2px; /* 2 */
1374
+ }
1375
+
1376
+ /**
1377
+ * Correct the cursor style of increment and decrement buttons in Safari.
1378
+ */
1379
+
1380
+ ::-webkit-inner-spin-button,
1381
+ ::-webkit-outer-spin-button {
1382
+ height: auto;
1383
+ }
1384
+
1385
+ /**
1386
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
1387
+ */
1388
+
1389
+ ::-webkit-input-placeholder {
1390
+ color: inherit;
1391
+ opacity: 0.54;
1392
+ }
1393
+
1394
+ /**
1395
+ * Remove the inner padding in Chrome, Edge, and Safari on macOS.
1396
+ */
1397
+
1398
+ ::-webkit-search-decoration {
1399
+ -webkit-appearance: none;
1400
+ }
1401
+
1402
+ /**
1403
+ * 1. Correct the inability to style upload buttons in iOS and Safari.
1404
+ * 2. Change font properties to \`inherit\` in Safari.
1405
+ */
1406
+
1407
+ ::-webkit-file-upload-button {
1408
+ -webkit-appearance: button; /* 1 */
1409
+ font: inherit; /* 2 */
1410
+ }
1411
+
1412
+ /**
1413
+ * Remove the inner border and padding of focus outlines in Firefox.
1414
+ */
1415
+
1416
+ :where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focus-inner {
1417
+ border-style: none;
1418
+ padding: 0;
1419
+ }
1420
+
1421
+ /**
1422
+ * Restore the focus outline styles unset by the previous rule in Firefox.
1423
+ */
1424
+
1425
+ :where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focusring {
1426
+ outline: 1px dotted ButtonText;
1427
+ }
1428
+
1429
+ /**
1430
+ * Remove the additional :invalid styles in Firefox.
1431
+ */
1432
+
1433
+ :where(:-moz-ui-invalid) {
1434
+ box-shadow: none;
1435
+ }
1436
+
1437
+ /* Interactive
1438
+ * ========================================================================== */
1439
+
1440
+ /*
1441
+ * Add the correct styles in Safari.
1442
+ */
1443
+
1444
+ :where(dialog) {
1445
+ background-color: white;
1446
+ border: solid;
1447
+ color: black;
1448
+ height: -moz-fit-content;
1449
+ height: fit-content;
1450
+ left: 0;
1451
+ margin: auto;
1452
+ padding: 1em;
1453
+ position: absolute;
1454
+ right: 0;
1455
+ width: -moz-fit-content;
1456
+ width: fit-content;
1457
+ }
1458
+
1459
+ :where(dialog:not([open])) {
1460
+ display: none;
1461
+ }
1462
+
1463
+ /*
1464
+ * Add the correct display in all browsers.
1465
+ */
1466
+
1467
+ :where(summary) {
1468
+ display: list-item;
1469
+ }
1470
+ /* beasties:include end */`
1232
1471
  }
1233
1472
  ]
1234
1473
  .concat(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
@@ -28,8 +28,8 @@ export const prerender = async ({
28
28
  path: outDir,
29
29
  logLevel: 'info',
30
30
  external: true,
31
- inlineFonts: true,
32
- preloadFonts: true
31
+ fonts: true,
32
+ compress: false
33
33
  })
34
34
 
35
35
  for (const url of paths) {
@@ -4,60 +4,47 @@ import type { QuasarTheme } from '../theme.js'
4
4
  const shortcuts: UserShortcuts<QuasarTheme> = [
5
5
  [
6
6
  /^q-card$/,
7
- ([, c], { theme }) => `shadow-black border-rd-4px v-top bg-white relative
8
- [&>div:not(.q--avoid-card-border)]:(border-t-0 border-t-0 border-b-0 border-b-0)
9
- [&>img:not(.q--avoid-card-border)]:(border-t-0 border-t-0 border-b-0 border-b-0)
10
- [&>div:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-0 border-t-inherit border-t-inherit)
11
- [&>img:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-0 border-t-inherit border-t-inherit)
12
- [&>div:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-b-0 border-b-inherit border-b-inherit)
13
- [&>img:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-b-0 border-b-inherit border-b-inherit)
14
- [&>div:not(.q--avoid-card-border)]:(border-l-0 border-r-0 shadow-none)
15
- [&>img]:(block w-full max-w-full border-none)
16
- `
7
+ ([, c], { theme }) =>
8
+ `[box-shadow:0_1px_5px_rgba(0,_0,_0,_0.2),_0_2px_2px_rgba(0,_0,_0,_0.14),_0_3px_1px_-2px_rgba(0,_0,_0,_0.12)] rounded-[4px] align-top bg-[#fff] relative [&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-tr-none rounded-bl-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top:0] [border-top-left-radius:inherit] [border-top-right-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-bottom:0] [border-bottom-left-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-left:0] [border-right:0] [box-shadow:none]) [&_>_img]:(block w-full max-w-full border-[0])`
17
9
  ],
10
+
18
11
  [
19
12
  /^q-card--bordered$/,
20
- ([, c], { theme }) => `border-solid border-black border-op-120`
13
+ ([, c], { theme }) => `border-[1px] border-solid border-[rgba(0,0,0,0.12)]`
21
14
  ],
15
+
22
16
  [
23
17
  /^q-card--dark$/,
24
- ([, c], { theme }) => `border-white border-op-280 shadow-black`
18
+ ([, c], { theme }) =>
19
+ `border-[rgba(255,_255,_255,_0.28)] [box-shadow:0_1px_5px_rgba(255,_255,_255,_0.2),_0_2px_2px_rgba(255,_255,_255,_0.14),_0_3px_1px_-2px_rgba(255,_255,_255,_0.12)]`
25
20
  ],
21
+
26
22
  [/^q-card__section$/, ([, c], { theme }) => `relative`],
27
- [/^q-card__section--vert$/, ([, c], { theme }) => `p-16px`],
23
+
24
+ [/^q-card__section--vert$/, ([, c], { theme }) => `p-[16px]`],
25
+
28
26
  [
29
27
  /^q-card__section--horiz$/,
30
- (
31
- [, c],
32
- { theme }
33
- ) => `[&>div:not(.q--avoid-card-border)]:(border-t-0 border-b-0 border-t-0 border-b-0)
34
- [&>img:not(.q--avoid-card-border)]:(border-t-0 border-b-0 border-t-0 border-b-0)
35
- [&>div:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
36
- [&>img:nth-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
37
- [&>div:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
38
- [&>img:nth-last-child(1_of_:not(.q--avoid-card-border))]:(border-t-inherit border-b-inherit)
39
- [&>div:not(.q--avoid-card-border)]:(border-t-0 border-b-0 shadow-none)
40
- `
28
+ ([, c], { theme }) =>
29
+ `[&_>_div:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_img:not(.q--avoid-card-border)]:(rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none) [&_>_div:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_img:nth-child(1_of_:not(.q--avoid-card-border))]:([border-top-left-radius:inherit] [border-bottom-left-radius:inherit]) [&_>_div:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_img:nth-last-child(1_of_:not(.q--avoid-card-border))]:([border-top-right-radius:inherit] [border-bottom-right-radius:inherit]) [&_>_div:not(.q--avoid-card-border)]:([border-top:0] [border-bottom:0] [box-shadow:none])`
41
30
  ],
31
+
42
32
  [
43
- /^q--card__actions$/,
44
- ([, c], { theme }) => `p-8px items-center
45
- [&_.q-btn--rectangle]:(px-8px py-0)`
33
+ /^q-card__actions$/,
34
+ ([, c], { theme }) =>
35
+ `p-[8px] items-center [&_.q-btn--rectangle]:(px-[8px] py-[0])`
46
36
  ],
37
+
47
38
  [
48
- /^q--card__actions--horiz$/,
49
- ([, c], { theme }) => `[&>.q-btn-item+.q-btn-item]:(ml-8px)
50
- [&>.q-btn-group+.q-btn-item]:(ml-8px)
51
- [&>.q-btn-item+.q-btn-group]:(ml-8px)`
39
+ /^q-card__actions--horiz$/,
40
+ ([, c], { theme }) =>
41
+ `[&_>_.q-btn-item_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-group_+_.q-btn-item]:(ml-[8px]) [&_>_.q-btn-item_+_.q-btn-group]:(ml-[8px])`
52
42
  ],
43
+
53
44
  [
54
- /^q--card__actions--vert$/,
55
- ([, c], { theme }) => `[&>.q-btn-item.q-btn--round]:(self-center)
56
- [&>.q-btn-item+.q-btn-item]:(mt-4px)
57
- [&>.q-btn-group+.q-btn-item]:(mt-4px)
58
- [&>.q-btn-item+.q-btn-group]:(mt-4px)
59
- [&>.q-btn-group>.q-btn-item]:(flex-grow)
60
- `
45
+ /^q-card__actions--vert$/,
46
+ ([, c], { theme }) =>
47
+ `[&_>_.q-btn-item.q-btn--round]:(self-center) [&_>_.q-btn-item_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-group_+_.q-btn-item]:(mt-[4px]) [&_>_.q-btn-item_+_.q-btn-group]:(mt-[4px]) [&_>_.q-btn-group_>_.q-btn-item]:(flex-grow)`
61
48
  ]
62
49
  ]
63
50
 
@@ -18,7 +18,7 @@ const sizes = ['sm', 'md', 'lg', 'xl']
18
18
  const shortcuts: UserShortcuts<QuasarTheme> = [
19
19
  [
20
20
  /^row$/,
21
- ([, c], { theme }) => `flex flex-row flex-wrap
21
+ ([, c], { theme }) => `flex flex-row flex-wrap
22
22
  [&_>_.col]:(grow)
23
23
  ${sizes
24
24
  .map((size) => `[&_>_.col-${size}]:(${size}:basis-auto ${size}:grow)`)
@@ -21,11 +21,11 @@ const preflights: Preflight<QuasarTheme>[] = [
21
21
  const shortcuts: UserShortcuts<QuasarTheme> = [
22
22
  [/^non-selectable$/, ([, c], { theme }) => `!select-none`],
23
23
 
24
- [/^scroll$/, ([, c], { theme }) => `overflow-auto `],
24
+ [/^scroll$/, ([, c], { theme }) => `overflow-auto`],
25
25
 
26
- [/^scroll-x$/, ([, c], { theme }) => ` overflow-x-auto`],
26
+ [/^scroll-x$/, ([, c], { theme }) => `overflow-x-auto`],
27
27
 
28
- [/^scroll-y$/, ([, c], { theme }) => ` overflow-y-auto`],
28
+ [/^scroll-y$/, ([, c], { theme }) => `overflow-y-auto`],
29
29
 
30
30
  [/^no-scroll$/, ([, c], { theme }) => `!overflow-hidden`],
31
31
 
@@ -1290,26 +1290,265 @@ export default definePreset((options?: QuasarPresetOptions) => {
1290
1290
  preflights: (
1291
1291
  [
1292
1292
  {
1293
- getCSS: ({ theme }) => `#q-app {
1294
- width: 100%;
1295
- direction: ltr;
1293
+ getCSS: ({ theme }) => `/* beasties:include start */
1294
+ /* Document
1295
+ * ========================================================================== */
1296
+
1297
+ /**
1298
+ * 1. Correct the line height in all browsers.
1299
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
1300
+ */
1301
+
1302
+ :where(html) {
1303
+ line-height: 1.15; /* 1 */
1304
+ -webkit-text-size-adjust: 100%; /* 2 */
1305
+ text-size-adjust: 100%; /* 2 */
1306
+ }
1307
+
1308
+ /* Sections
1309
+ * ========================================================================== */
1310
+
1311
+ /**
1312
+ * Correct the font size and margin on \`h1\` elements within \`section\` and
1313
+ * \`article\` contexts in Chrome, Edge, Firefox, and Safari.
1314
+ */
1315
+
1316
+ :where(h1) {
1317
+ font-size: 2em;
1318
+ margin-block-end: 0.67em;
1319
+ margin-block-start: 0.67em;
1296
1320
  }
1297
- body.platform-ios.within-iframe, body.platform-ios.within-iframe #q-app {
1298
- width: 100px;
1299
- min-width: 100%;
1321
+
1322
+ /* Grouping content
1323
+ * ========================================================================== */
1324
+
1325
+ /**
1326
+ * Remove the margin on nested lists in Chrome, Edge, and Safari.
1327
+ */
1328
+
1329
+ :where(dl, ol, ul) :where(dl, ol, ul) {
1330
+ margin-block-end: 0;
1331
+ margin-block-start: 0;
1332
+ }
1333
+
1334
+ /**
1335
+ * 1. Add the correct box sizing in Firefox.
1336
+ * 2. Correct the inheritance of border color in Firefox.
1337
+ */
1338
+
1339
+ :where(hr) {
1340
+ box-sizing: content-box; /* 1 */
1341
+ color: inherit; /* 2 */
1342
+ height: 0; /* 1 */
1343
+ }
1344
+
1345
+ /* Text-level semantics
1346
+ * ========================================================================== */
1347
+
1348
+ /**
1349
+ * Add the correct text decoration in Safari.
1350
+ */
1351
+
1352
+ :where(abbr[title]) {
1353
+ text-decoration: underline;
1354
+ text-decoration: underline dotted;
1355
+ }
1356
+
1357
+ /**
1358
+ * Add the correct font weight in Chrome, Edge, and Safari.
1359
+ */
1360
+
1361
+ :where(b, strong) {
1362
+ font-weight: bolder;
1363
+ }
1364
+
1365
+ /**
1366
+ * 1. Correct the inheritance and scaling of font size in all browsers.
1367
+ * 2. Correct the odd \`em\` font sizing in all browsers.
1368
+ */
1369
+
1370
+ :where(code, kbd, pre, samp) {
1371
+ font-family: monospace, monospace; /* 1 */
1372
+ font-size: 1em; /* 2 */
1373
+ }
1374
+
1375
+ /**
1376
+ * Add the correct font size in all browsers.
1377
+ */
1378
+
1379
+ :where(small) {
1380
+ font-size: 80%;
1381
+ }
1382
+
1383
+ /* Tabular data
1384
+ * ========================================================================== */
1385
+
1386
+ /**
1387
+ * 1. Correct table border color in Chrome, Edge, and Safari.
1388
+ * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
1389
+ */
1390
+
1391
+ :where(table) {
1392
+ border-color: currentColor; /* 1 */
1393
+ text-indent: 0; /* 2 */
1394
+ }
1395
+
1396
+ /* Forms
1397
+ * ========================================================================== */
1398
+
1399
+ /**
1400
+ * Remove the margin on controls in Safari.
1401
+ */
1402
+
1403
+ :where(button, input, select) {
1404
+ margin: 0;
1405
+ }
1406
+
1407
+ /**
1408
+ * Remove the inheritance of text transform in Firefox.
1409
+ */
1410
+
1411
+ :where(button) {
1412
+ text-transform: none;
1413
+ }
1414
+
1415
+ /**
1416
+ * Correct the inability to style buttons in iOS and Safari.
1417
+ */
1418
+
1419
+ :where(button, input:is([type="button" i], [type="reset" i], [type="submit" i])) {
1420
+ -webkit-appearance: button;
1421
+ }
1422
+
1423
+ /**
1424
+ * Add the correct vertical alignment in Chrome, Edge, and Firefox.
1425
+ */
1426
+
1427
+ :where(progress) {
1428
+ vertical-align: baseline;
1429
+ }
1430
+
1431
+ /**
1432
+ * Remove the inheritance of text transform in Firefox.
1433
+ */
1434
+
1435
+ :where(select) {
1436
+ text-transform: none;
1437
+ }
1438
+
1439
+ /**
1440
+ * Remove the margin in Firefox and Safari.
1441
+ */
1442
+
1443
+ :where(textarea) {
1444
+ margin: 0;
1445
+ }
1446
+
1447
+ /**
1448
+ * 1. Correct the odd appearance in Chrome, Edge, and Safari.
1449
+ * 2. Correct the outline style in Safari.
1450
+ */
1451
+
1452
+ :where(input[type="search" i]) {
1453
+ -webkit-appearance: textfield; /* 1 */
1454
+ outline-offset: -2px; /* 2 */
1455
+ }
1456
+
1457
+ /**
1458
+ * Correct the cursor style of increment and decrement buttons in Safari.
1459
+ */
1460
+
1461
+ ::-webkit-inner-spin-button,
1462
+ ::-webkit-outer-spin-button {
1463
+ height: auto;
1464
+ }
1465
+
1466
+ /**
1467
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
1468
+ */
1469
+
1470
+ ::-webkit-input-placeholder {
1471
+ color: inherit;
1472
+ opacity: 0.54;
1473
+ }
1474
+
1475
+ /**
1476
+ * Remove the inner padding in Chrome, Edge, and Safari on macOS.
1477
+ */
1478
+
1479
+ ::-webkit-search-decoration {
1480
+ -webkit-appearance: none;
1481
+ }
1482
+
1483
+ /**
1484
+ * 1. Correct the inability to style upload buttons in iOS and Safari.
1485
+ * 2. Change font properties to \`inherit\` in Safari.
1486
+ */
1487
+
1488
+ ::-webkit-file-upload-button {
1489
+ -webkit-appearance: button; /* 1 */
1490
+ font: inherit; /* 2 */
1491
+ }
1492
+
1493
+ /**
1494
+ * Remove the inner border and padding of focus outlines in Firefox.
1495
+ */
1496
+
1497
+ :where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focus-inner {
1498
+ border-style: none;
1499
+ padding: 0;
1500
+ }
1501
+
1502
+ /**
1503
+ * Restore the focus outline styles unset by the previous rule in Firefox.
1504
+ */
1505
+
1506
+ :where(button, input:is([type="button" i], [type="color" i], [type="reset" i], [type="submit" i]))::-moz-focusring {
1507
+ outline: 1px dotted ButtonText;
1508
+ }
1509
+
1510
+ /**
1511
+ * Remove the additional :invalid styles in Firefox.
1512
+ */
1513
+
1514
+ :where(:-moz-ui-invalid) {
1515
+ box-shadow: none;
1516
+ }
1517
+
1518
+ /* Interactive
1519
+ * ========================================================================== */
1520
+
1521
+ /*
1522
+ * Add the correct styles in Safari.
1523
+ */
1524
+
1525
+ :where(dialog) {
1526
+ background-color: white;
1527
+ border: solid;
1528
+ color: black;
1529
+ height: -moz-fit-content;
1530
+ height: fit-content;
1531
+ left: 0;
1532
+ margin: auto;
1533
+ padding: 1em;
1534
+ position: absolute;
1535
+ right: 0;
1536
+ width: -moz-fit-content;
1537
+ width: fit-content;
1538
+ }
1539
+
1540
+ :where(dialog:not([open])) {
1541
+ display: none;
1542
+ }
1543
+
1544
+ /*
1545
+ * Add the correct display in all browsers.
1546
+ */
1547
+
1548
+ :where(summary) {
1549
+ display: list-item;
1300
1550
  }
1301
- body {
1302
- min-width: 100px;
1303
- min-height: 100%;
1304
- font-family: 'Roboto', '-apple-system', 'Helvetica Neue', Helvetica, Arial, sans-serif;
1305
- -ms-text-size-adjust: 100%;
1306
- -webkit-text-size-adjust: 100%;
1307
- -webkit-font-smoothing: antialiased;
1308
- -moz-osx-font-smoothing: grayscale;
1309
- font-smoothing: antialiased;
1310
- line-height: 1.5;
1311
- font-size: 14px;
1312
- }`
1551
+ /* beasties:include end */`
1313
1552
  }
1314
1553
  ] as Preflight<QuasarTheme>[]
1315
1554
  )
@@ -4,7 +4,6 @@ import { onBoot } from 'virtual:vitrify-hooks'
4
4
  import routes from 'src/router/routes'
5
5
  import * as staticImports from 'virtual:static-imports'
6
6
  import 'virtual:uno.css'
7
- import '@unocss/reset/normalize.css'
8
7
 
9
8
  import RootComponent from './RootComponent.vue'
10
9
  interface ssrContext {