rockin 0.0.22 → 0.0.24

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.
Files changed (2) hide show
  1. package/dist/styles.css +56 -15
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -95,6 +95,8 @@
95
95
  --color-chart-foreground: var(----chart-foreground);
96
96
  --color-chart-background: var(----chart-background);
97
97
  --animate-skeleton: skeleton 2s -1s infinite linear;
98
+ --color-selection: var(--selection);
99
+ --color-selection-foreground: var(--selection-foreground);
98
100
  @keyframes skeleton {
99
101
  to {
100
102
  background-position: -200% 0;
@@ -188,6 +190,8 @@
188
190
  --chart-scale-04: oklch(0.68 0.02 106);
189
191
  --chart-scale-05: oklch(0.55 0.025 106);
190
192
  --chart-scale-pattern-color: oklch(0.96 0.005 106);
193
+ --selection: oklch(0.145 0 0);
194
+ --selection-foreground: oklch(1 0 0);
191
195
  }
192
196
 
193
197
  .t-icon-swap {
@@ -292,6 +296,8 @@
292
296
  --chart-scale-04: oklch(0.58 0.06 270);
293
297
  --chart-scale-05: oklch(0.68 0.07 270);
294
298
  --chart-scale-pattern-color: oklch(0.145 0 0);
299
+ --selection: oklch(0.145 0 0);
300
+ --selection-foreground: oklch(1 0 0);
295
301
  }
296
302
 
297
303
  @media (display-mode: standalone) {
@@ -319,6 +325,9 @@ html[data-native-app="true"][data-native-device="mac"] {
319
325
  html {
320
326
  background-color: var(--background);
321
327
  scroll-padding-top: var(--header-height);
328
+ @apply scroll-smooth;
329
+ scrollbar-gutter: stable;
330
+ padding-right: 0px !important;
322
331
  }
323
332
  * {
324
333
  @apply border-border;
@@ -326,6 +335,29 @@ html[data-native-app="true"][data-native-device="mac"] {
326
335
  html {
327
336
  @apply overscroll-y-none;
328
337
  }
338
+ html body[data-scroll-locked] {
339
+ margin-right: 0 !important;
340
+ }
341
+ ::selection {
342
+ @apply bg-selection text-selection-foreground;
343
+ }
344
+ ::-webkit-scrollbar {
345
+ width: 5px;
346
+ }
347
+
348
+ ::-webkit-scrollbar-track {
349
+ background: transparent;
350
+ }
351
+
352
+ ::-webkit-scrollbar-thumb {
353
+ /* background: hsl(var(--ring)); */
354
+ border-radius: 5px;
355
+ }
356
+
357
+ * {
358
+ scrollbar-width: thin;
359
+ /* scrollbar-color: hsl(var(--ring)) transparent; */
360
+ }
329
361
  body {
330
362
  min-height: 100dvh;
331
363
  position: relative;
@@ -464,33 +496,42 @@ select:-webkit-autofill {
464
496
  }
465
497
 
466
498
  @utility app-container {
467
- --app-container-gutter: 0.5rem;
468
- width: 100%;
469
- margin-inline: auto;
470
- padding-left: var(--app-container-gutter);
471
- padding-right: var(--app-container-gutter);
472
- flex-grow: 1;
499
+ display: flex;
500
+ min-height: 0;
501
+ min-width: 0;
502
+ flex: 1 1 0%;
503
+ flex-direction: column;
504
+ }
473
505
 
474
- @media (width >= 96rem) {
475
- --app-container-gutter: 10vw;
476
- }
506
+ :root {
507
+ --app-gutter: 0.5rem;
477
508
  }
478
509
 
479
- @utility app-header {
480
- width: calc(100% + (2 * var(--app-container-gutter, 0.5rem)));
481
- margin-inline: calc(-1 * var(--app-container-gutter, 0.5rem));
510
+ @media (width >= 96rem) {
511
+ :root {
512
+ --app-gutter: 10%;
513
+ }
482
514
  }
483
515
 
484
- @utility app-header-inner {
485
- padding-inline: var(--app-container-gutter, 0.5rem);
516
+ @utility app-header {
517
+ width: 100%;
518
+ padding-inline: var(--app-gutter);
486
519
  }
487
520
 
488
521
  @utility app-section {
522
+ width: 100%;
523
+ flex-grow: 1;
524
+ padding-inline: var(--app-gutter);
489
525
  padding-block: 0.5rem;
526
+
490
527
  & > :not(:last-child) {
491
528
  margin-bottom: 1rem;
492
529
  }
493
- @apply px-2;
530
+ }
531
+
532
+ @utility app-footer {
533
+ width: 100%;
534
+ padding-inline: var(--app-gutter);
494
535
  }
495
536
 
496
537
  @layer utilities {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rockin",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Reusable React UI components, hooks, icons, utilities, and styles for Rock Star projects.",
5
5
  "keywords": [
6
6
  "react",