@vixcom/ui 1.7.0 → 1.7.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.
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../styles/menu.scss","../styles/_mixins.scss"],"names":[],"mappings":"AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmDA;AACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EAGE;;AAQI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;;AAaV;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;EAKE;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAKA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACE;;;AAMN;AAEA;EACE;EACA;EACA;EACA;;AAGE;AAAA;AAAA;EAGE;;AAIJ;EACE;;AAGF;EACE;;AAIA;EACE;;AAIJ;EACE;EACA;;AAIA;EACE;;AAEA;EACE;;AAEF;EACE;;AAEA;EACE;;AAEF;EACE;;AAQF;AAAA;EACE;EACA;;AAON;EACE;;AAIJ;EACE;;AAEA;EACE;;AAIJ;EACE;;AAEA;EACE;;;AAMN;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;AAAA;EAEE;;AAEA;AAAA;AAEE;EACA;;ACxNJ;AAAA;EACE;;AAGF;AAAA;AACE;AACA;;AAGF;AAAA;EArBA;EAXA;EACA;EACA;EAWA;EACA;EACA;EACA;EACA;EACA;AACA;;AAbA;AAAA;EAEE;;AD0OE;AAAA;EACE;EACA;EACA;;AAGF;AAAA;EACE;;AAGF;AAAA;EACE;;AAGF;AAAA;EACE;EACA;EACA;;AAKN;EACE;;;AAKJ;EACE;EACA;EACA;;AAEA;EACE;EACA;;;AAKJ;EACE;EACA;EACA;EACA;AAEA;;AAC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AAA;AAAA;IACE;IACA;;EAoZJ;AACE;;;AAIJ;AACA;EAEI;AACE;;EAUQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAEE;IACA;;EASV;IACE;IACA;;EAEA;IAEE;;EAGF;IACE;;;AAOV;AACA;EAGI;IACE;IACA;IACA;IACA;;EAKI;AAAA;IACE;;EAGF;AAAA;IACE;;EAIJ;AAAA;IACE;IACA;;EAGF;AAAA;AAAA;AAAA;AAAA;IACE;AAAA;AAAA;AAAA;AAAA;IAKA;IACA;IACA;;EAYF;AAAA;IACE;IACA;IACA;IACA;;EAEA;AAAA;IACE;;EAQR;IAEE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAEA;IACE","file":"menu.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../styles/menu.scss","../styles/_mixins.scss"],"names":[],"mappings":"AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA;AACA;EACE;EACA;EACA;EACA;;;AAsCF;AACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EAGE;;AAcJ;EACE;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;EAKE;;;AAGF;AAAA;EAEE;;;AAIA;AAAA;AAAA;EAGE;;;AAMF;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACE;;;AAMN;AAEA;EACE;EACA;EACA;EACA;;AASA;EACE;EACA;;AAGF;EACE;;AAEA;EACE;;AAGF;EACE;;AAIJ;EACE;;AAEA;EACE;EACA;EACA;;AAGE;EACE;;AAGF;EACE;;AAGF;EACE;;AAMN;AAAA;AAAA;EAGE;EACA;EACA;;;AAKN;EACE;EACA;EACA;EACA;EACA;EACA;;AAGE;AAAA;EAEE;;AAIJ;EACE;;AAGF;EACE;;AAIA;EACE;;AAIJ;EACE;;AAGF;AAAA;EAEE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;IACE;;EAEA;IACE;;EA9aR;IACE;;EAGF;IACE;;EAGF;IACE;IACA;IACA;;EASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IACE;IACA;IACA;;EAIJ;AAAA;AAAA;AAAA;IACE;IACA;;;AA0ZN;AACA;EACE;AACE;;EASQ;AAAA;AAAA;AAAA;IAEE;IACA;;EASV;IACE;IACA;;EAEA;IAEE;;EAGF;IACE;;;AAMR;AACA;EACE;IACE;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAKA;IACE;IACA;IACA;IACA;;EAGE;IACE;AAAA;AAAA;AAAA;AAAA;IAKA;;EAEA;IACE;;EAGF;IACE;;EAIJ;IACE;IACA;;EAGF;IACE;IACA;IACA;;EAYF;IACE;IACA;IACA;IACA;;EAEA;IACE;;EAOV;IACE;;EAIA;IAEE","file":"menu.css"}
@@ -19,95 +19,59 @@
19
19
  <!-- <script src="js/alpine" defer></script> -->
20
20
  </head>
21
21
 
22
- <body class="main-menu-container" :class="container" x-data="{type:'side-menu', container:'grid', mini: true, active: false, flat: false}">
22
+ <body class="main-menu-container" :class="container" x-data="{type:'side-menu', container:'grid', mini: true, removed:false, active: false, flat: false}">
23
23
  <input type="checkbox" id="main-menu-trigger" class="main-menu-trigger" x-model="active">
24
- <menu :class="`main-menu bg-primary ${type} ${mini ? 'mini':'max'}`">
25
- <nav class="menu-snap bg-text text-black">
26
- <template x-for="() in 5">
27
- <img src="assets/img/icon.png" class="item icon" alt="icon">
28
- </template>
29
- </nav>
30
- <div class="menu-container p-1 rounded-2 bg-inherit">
31
- <header class="menu-header">
32
- <img src="assets/img/logo.png" class="main-logo menu-logo silhouette" alt="icon">
33
- <img src="assets/img/icon.png" class="main-logo menu-logo-alt" alt="icon-alt">
34
- </header>
35
- <nav>
36
- <template x-for="(v,k) of {flex:'bounding-box', grid: 'grid'}">
37
- <label class="item" :class="{active: k === container}" :title="k">
38
- <i :class="`icon bi bi-${v}`"></i>
39
- <input type="radio" name="container" :value="k" x-model="container" hidden>
40
- <span class="label" x-text="k"></span>
41
- </label>
42
- </template>
43
- <divider></divider>
44
- <template x-for="(v,k) of {
45
- 'full-menu':'window-fullscreen',
46
- 'float-menu':'menu-up',
47
- 'side-menu':'layout-sidebar',
48
- }">
49
- <label class="item" :class="{active: k === type}" :title="k">
50
- <i :class="`icon bi bi-${v}`"></i>
51
- <input type="radio" name="type" :value="k" x-model="type" hidden>
52
- <span class="label" x-text="k"></span>
53
- </label>
24
+ <template x-if="!removed">
25
+ <menu :class="`main-menu bg-primary ${type} ${mini ? 'mini':'max'}`">
26
+ <nav class="menu-snap bg-text text-black">
27
+ <template x-for="() in 5">
28
+ <img src="assets/img/icon.png" class="item icon" alt="icon">
54
29
  </template>
55
- <button class="bg-green item"><i class="icon bi bi-check"></i><span class="label">Activate</span></button>
56
- <button class="bg-blue item"><i class="icon bi bi-share"></i><span class="label">Share</span></button>
57
- <button class="bg-white item"><i class="icon bi bi-person"></i><span class="label">Account</span></button>
58
30
  </nav>
59
- <label for="main-menu-trigger" class="bi bi-list main-menu-toggle icon border bg-text p-2 m-auto rounded-circle align-self-center" />
60
- </div>
61
- </menu>
62
- <template x-if="flat">
63
- <header class="p-3 bg-white"><img class="sq-2 ml-auto" src="assets/img/avatar.svg" alt="P"></header>
64
- </template>
65
- <main>
66
- <template x-if="!flat">
67
- <header class="p-3 bg-white"><img class="sq-2 ml-auto" src="assets/img/avatar.svg" alt="P"></header>
68
- </template>
69
- <section>
70
- <h1 x-text="`VX Dashboard ${type}`"></h1>
71
- <menu>
72
- <div class="tabs tabs-primary md">
73
- <label>
74
- <input class="default" type="checkbox" name="flat" x-model="flat">
75
- <span class="label" x-text="`Flat: ${flat}`"></span>
76
- </label>
77
- </div>
78
- <div class="tabs tabs-secondary prefill">
31
+ <div class="menu-container p-1 rounded-2 bg-inherit">
32
+ <header class="menu-header">
33
+ <img src="assets/img/logo.png" class="main-logo menu-logo silhouette" alt="icon">
34
+ <img src="assets/img/icon.png" class="main-logo menu-logo-alt" alt="icon-alt">
35
+ </header>
36
+ <nav>
79
37
  <template x-for="(v,k) of {flex:'bounding-box', grid: 'grid'}">
80
- <label class="tab" :class="{active: k === container}" :title="k">
38
+ <label class="item" :class="{active: k === container}" :title="k">
81
39
  <i :class="`icon bi bi-${v}`"></i>
82
40
  <input type="radio" name="container" :value="k" x-model="container" hidden>
83
41
  <span class="label" x-text="k"></span>
84
42
  </label>
85
43
  </template>
44
+ <divider></divider>
86
45
  <template x-for="(v,k) of {
87
- 'full-menu':'window-fullscreen',
88
- 'float-menu':'menu-up',
89
- 'side-menu':'layout-sidebar',
90
- }">
91
- <label class="tab" :class="{active: k === type}" :title="k">
46
+ 'full-menu':'window-fullscreen',
47
+ 'float-menu':'menu-up',
48
+ 'side-menu':'layout-sidebar',
49
+ }">
50
+ <label class="item" :class="{active: k === type}" :title="k">
92
51
  <i :class="`icon bi bi-${v}`"></i>
93
52
  <input type="radio" name="type" :value="k" x-model="type" hidden>
94
53
  <span class="label" x-text="k"></span>
95
54
  </label>
96
55
  </template>
97
- </div>
98
- <label class="item gap-1 checkbox">
99
- <input class="default" type="checkbox" name="mini" x-model="mini">
100
- <span class="label">Mini</span>
101
- </label>
102
- <label class="item gap-1 checkbox">
103
- <input class="default" type="checkbox" name="menu" x-model="active">
104
- <span class="label">Toggle Menu</span>
105
- </label>
106
- </menu>
107
- <template x-for="(v,k) in Array(10)">
108
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
109
- </template>
110
- </section>
56
+ <button class="bg-green item"><i class="icon bi bi-check"></i><span class="label">Activate</span></button>
57
+ <button class="bg-blue item"><i class="icon bi bi-share"></i><span class="label">Share</span></button>
58
+ <button class="bg-white item"><i class="icon bi bi-person"></i><span class="label">Account</span></button>
59
+ </nav>
60
+ <label for="main-menu-trigger" class="bi bi-list main-menu-toggle icon border bg-text p-2 rounded-circle" />
61
+ </div>
62
+ </menu>
63
+ </template>
64
+ <template x-if="flat">
65
+ <header class="p-3 bg-white"><img class="sq-2 ml-auto" src="assets/img/avatar.svg" alt="P"></header>
66
+ </template>
67
+ <template x-else>Else</template>
68
+ <main>
69
+ <template x-if="!flat">
70
+ <header class="p-3 bg-white"><img class="sq-2 ml-auto" src="assets/img/avatar.svg" alt="P"></header>
71
+ </template>
72
+ <template x-for="(v,k) in Array(10)">
73
+ <section>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</section>
74
+ </template>
111
75
  <template x-if="!flat">
112
76
  <footer>All rights reserved</footer>
113
77
  </template>
@@ -115,6 +79,91 @@
115
79
  <template x-if="flat">
116
80
  <footer>All rights reserved</footer>
117
81
  </template>
82
+ <menu id="menu" class="float-menu bg-primary">
83
+ <nav>
84
+ <template x-for="(v,k) of {flex: 'bounding-box', grid: 'grid'}">
85
+ <label class="item" :class="{active: k === container}" :title="k">
86
+ <i :class="`icon bi bi-${v}`"></i>
87
+ <input type="radio" name="container" :value="k" x-model="container" hidden>
88
+ <span class="label" x-text="k"></span>
89
+ </label>
90
+ </template>
91
+ <template x-for="(v,k) of {
92
+ 'full-menu':'window-fullscreen',
93
+ 'float-menu':'menu-up',
94
+ 'side-menu':'layout-sidebar',
95
+ }">
96
+ <label class="item" :class="{active: k === type}" :title="k">
97
+ <i :class="`icon bi bi-${v}`"></i>
98
+ <input type="radio" name="type" :value="k" x-model="type" hidden>
99
+ <span class="label" x-text="k"></span>
100
+ </label>
101
+ </template>
102
+ <label for="main-menu-trigger" class="bi bi-list icon" />
103
+ </nav>
104
+ <div class="flex">
105
+ <label class="item gap-1 checkbox">
106
+ <input class="default" type="checkbox" name="flat" x-model="flat">
107
+ <span class="label">Flat</span>
108
+ </label>
109
+ <label class="item gap-1 checkbox">
110
+ <input class="default" type="checkbox" name="mini" x-model="mini">
111
+ <span class="label">Mini</span>
112
+ </label>
113
+ <label class="item gap-1 checkbox">
114
+ <input class="default" type="checkbox" name="menu" x-model="active">
115
+ <span class="label">Toggle Menu</span>
116
+ </label>
117
+ <label class="item gap-1 checkbox">
118
+ <input class="default" type="checkbox" name="remove_menu" x-model="removed">
119
+ <span class="label">Remove Menu</span>
120
+ </label>
121
+ </div>
122
+ </menu>
123
+ <style>
124
+ menu#menu {
125
+ position: fixed;
126
+ margin: 1rem;
127
+ right: 0;
128
+ border-radius: 0.25rem;
129
+ box-shadow: 0 0 10px -5px black;
130
+ transition: opacity 0.25s;
131
+ z-index: 1;
132
+ }
133
+
134
+ menu#menu:not(:hover) {
135
+ opacity: 0.125;
136
+ }
137
+
138
+ menu#menu nav,
139
+ menu#menu .flex {
140
+ display: flex;
141
+ flex-wrap: wrap;
142
+ gap: 0.25rem;
143
+ }
144
+
145
+ menu#menu .flex {
146
+ padding: 0.5rem;
147
+ justify-content: space-between;
148
+ }
149
+
150
+ menu#menu nav .item {
151
+ display: inline-flex;
152
+ align-items: center;
153
+ gap: 0.5rem;
154
+ border-radius: 0.25rem;
155
+ padding: 0.5rem;
156
+ }
157
+
158
+ menu#menu .item.active {
159
+ background-color: var(--secondary);
160
+ color: var(--secondary-c);
161
+ }
162
+
163
+ section {
164
+ min-height: 50dvh;
165
+ }
166
+ </style>
118
167
  </body>
119
168
 
120
169
  </html>
@@ -214,7 +214,7 @@ $colors-mapped: map-merge(
214
214
 
215
215
  // /* Functions and Mixins */
216
216
 
217
- @mixin bg-color-variant($selector, $k, $v) {
217
+ @mixin bg-variant($selector, $k, $v) {
218
218
  #{$selector} {
219
219
  color: var(--#{$k}-c, map-get($v, 'c'));
220
220
  background-color: hsla(var(--#{$k}-hs), var(--#{$k}-l), var(--#{$k}-a));
@@ -265,7 +265,7 @@ $colors-mapped: map-merge(
265
265
  }
266
266
  }
267
267
 
268
- @mixin group-bg-color-variant($selector, $k, $v) {
268
+ @mixin group-bg-variant($selector, $k, $v) {
269
269
  #{$selector} {
270
270
  // &:hover >.active {
271
271
  // background-color: hsla(var(--#{$k}-hs), var(--#{$k}-l), 0.275);
@@ -316,14 +316,14 @@ $colors-mapped: map-merge(
316
316
  }
317
317
  }
318
318
 
319
- @mixin neon-color-variant($selector, $k, $v) {
319
+ @mixin neon-fg-variant($selector, $k, $v) {
320
320
  #{$selector} {
321
321
  /* color: var(--white); */
322
322
  text-shadow: 0 0 20px var(--#{$k}, map-get($v, 'bg')), 0 0 10px var(--white);
323
323
  }
324
324
  }
325
325
 
326
- @mixin color-variant($selector, $k, $v) {
326
+ @mixin fg-variant($selector, $k, $v) {
327
327
  #{$selector} {
328
328
  color: var(--#{$k}, map-get($v, 'bg'));
329
329
  }
@@ -339,7 +339,7 @@ $colors-mapped: map-merge(
339
339
  }
340
340
  }
341
341
 
342
- @mixin gradient-variant($selector, $k, $v) {
342
+ @mixin bg-gradient-variant($selector, $k, $v) {
343
343
  #{$selector} {
344
344
  background-image: linear-gradient(
345
345
  var(--#{$k}, map-get($v, 'bg')),
@@ -367,23 +367,7 @@ $colors-mapped: map-merge(
367
367
  }
368
368
  }
369
369
 
370
- // @mixin bg-color-light-variant($selector, $k, $v) {
371
- // #{$selector} {
372
- // background-color: hsla(
373
- // var(--#{$k}-hs),
374
- // calc(var(--#{$k}-l) + 45%),
375
- // var(--#{$k}-a)
376
- // );
377
- // color: hsla(var(--#{$k}-hs), calc(var(--#{$k}-l) - 45%), var(--#{$k}-a));
378
- // border-color: hsla(var(--#{$k}-hs), var(--#{$k}-l), var(--#{$k}-a));
379
-
380
- // &.is-blur:not(:hover) {
381
- // background-color: hsla(var(--#{$k}-hs), calc(var(--#{$k}-l) + 45%), 0.5);
382
- // }
383
- // }
384
- // }
385
-
386
- @mixin outline-variant($selector, $k, $v) {
370
+ @mixin bg-outline-variant($selector, $k, $v) {
387
371
  #{$selector} {
388
372
  background-color: transparent;
389
373
  color: hsla(var(--#{$k}-hs), var(--#{$k}-l), var(--#{$k}-a));
@@ -13,14 +13,14 @@
13
13
 
14
14
  @each $k, $v in $colors-mapped {
15
15
  // Texts
16
- @include color-variant('.text-#{$k}', $k, $v);
17
- @include neon-color-variant('.text-neon-#{$k}', $k, $v);
16
+ @include fg-variant('.text-#{$k}', $k, $v);
17
+ @include neon-fg-variant('.text-neon-#{$k}', $k, $v);
18
18
  // Background
19
- @include bg-color-variant('.bg-#{$k}', $k, $v);
20
- @include gradient-variant('.bg-g-#{$k}', $k, $v);
21
- @include outline-variant('.bg-outline-#{$k}', $k, $v);
22
- @include group-bg-color-variant('.tabs-#{$k}', $k, $v);
23
- @include group-bg-color-variant('.dots-#{$k}', $k, $v);
19
+ @include bg-variant('.bg-#{$k}', $k, $v);
20
+ @include bg-gradient-variant('.bg-gradient-#{$k}', $k, $v);
21
+ @include bg-outline-variant('.bg-outline-#{$k}', $k, $v);
22
+ @include group-bg-variant('.tabs-#{$k}', $k, $v);
23
+ @include group-bg-variant('.dots-#{$k}', $k, $v);
24
24
 
25
25
  .border-#{$k} {
26
26
  border-color: map-get($v, 'bg');
@@ -99,12 +99,6 @@ input {
99
99
  @include before-content;
100
100
  }
101
101
 
102
- input,
103
- input::placeholder,
104
- input::-webkit-input-placeholder {
105
- color: currentColor;
106
- }
107
-
108
102
  .text-unset,
109
103
  .text-color-unset {
110
104
  color: unset;
@@ -53,6 +53,12 @@
53
53
  }
54
54
  }
55
55
 
56
+ .p-tabmenu {
57
+ &-nav {
58
+ align-items: flex-end;
59
+ }
60
+ }
61
+
56
62
  .p-dialog-mask,
57
63
  .p-component-overlay,
58
64
  .p-dialog-mask.p-component-overlay {
@@ -130,6 +136,13 @@
130
136
  }
131
137
  }
132
138
 
139
+ .p-dialog,
140
+ .p-overlaypanel {
141
+ ul {
142
+ list-style: inside;
143
+ }
144
+ }
145
+
133
146
  .p-toast {
134
147
  z-index: 5;
135
148
  }
@@ -138,9 +151,33 @@
138
151
  font-size: 0.75rem;
139
152
  }
140
153
 
141
- body .p-float-label {
142
- display: flex;
143
- flex-wrap: wrap;
154
+ .p-float-label {
155
+ &,
156
+ &.p-inputgroup {
157
+ display: flex;
158
+ }
159
+
160
+ :focus,
161
+ .p-filled {
162
+ ~ label {
163
+ top: 0;
164
+ transform: translateY(-100%);
165
+ }
166
+ }
167
+
168
+ label {
169
+ margin-top: 0;
170
+ /* top: 50%; */
171
+ left: 0;
172
+ padding: 0.25rem;
173
+ transform: translateY(-50%);
174
+
175
+ &.bottom {
176
+ transform: translateY(100%);
177
+ top: unset;
178
+ bottom: 0;
179
+ }
180
+ }
144
181
 
145
182
  .p-dropdown .p-placeholder {
146
183
  opacity: 1;
@@ -156,16 +193,18 @@ body .p-float-label {
156
193
  .p-input-icon-left,
157
194
  .p-input-icon-right {
158
195
  display: flex;
196
+ align-items: center;
159
197
 
160
198
  i {
161
199
  display: flex;
162
200
  align-items: center;
163
- position: relative;
164
- top: 0;
201
+ position: absolute;
202
+ top: unset;
165
203
  margin-top: 0;
166
204
  }
167
205
  }
168
- .p-input-group {
206
+
207
+ .p-inputgroup {
169
208
  .p-button {
170
209
  width: unset;
171
210
  }
@@ -179,7 +218,7 @@ body .p-float-label {
179
218
  border-radius: var(--border-radius);
180
219
 
181
220
  & &-label {
182
- display: flex;
221
+ /* display: flex; */
183
222
  }
184
223
  }
185
224
 
@@ -200,12 +239,13 @@ body .p-float-label {
200
239
  }
201
240
  }
202
241
 
203
- *:not(.p-paginator) > {
204
- .p-dropdown,
205
- .p-inputtext,
206
- .p-inputnumber {
207
- width: 100%;
208
- }
242
+ .p-dropdown,
243
+ .p-calendar,
244
+ .p-password,
245
+ .p-inputtext,
246
+ .p-inputnumber {
247
+ width: 100%;
248
+ flex: 1 1 auto;
209
249
  }
210
250
 
211
251
  p-chart {
@@ -217,47 +257,47 @@ p-chart {
217
257
  }
218
258
  }
219
259
 
220
- .p-calendar {
221
- /* width: 100%; */
260
+ .p-datepicker {
261
+ min-width: unset;
222
262
 
223
- .p-datepicker {
224
- min-width: unset;
225
-
226
- .p-datepicker-header {
227
- .p-datepicker-month {
228
- border: none;
229
- }
263
+ .p-datepicker-header {
264
+ .p-datepicker-month {
265
+ border: none;
230
266
  }
267
+ }
231
268
 
232
- &:not(.p-datepicker-inline) {
233
- box-shadow: unset;
269
+ &:not(.p-datepicker-inline) {
270
+ box-shadow: unset;
234
271
 
235
- & > * {
236
- position: relative;
237
- }
238
-
239
- &::before {
240
- content: '';
241
- display: block;
242
- height: 100%;
243
- width: 100%;
244
- position: absolute;
245
- box-shadow: var(--card-shadow);
246
- border-radius: inherit;
247
- top: 0;
248
- left: 0;
249
- z-index: 0;
250
- }
272
+ & > * {
273
+ position: relative;
251
274
  }
252
275
 
253
- table td > span {
254
- width: 2.25rem;
255
- height: 2.25rem;
276
+ &::before {
277
+ content: '';
278
+ display: block;
279
+ height: 100%;
280
+ width: 100%;
281
+ position: absolute;
282
+ box-shadow: var(--card-shadow);
283
+ border-radius: inherit;
284
+ top: 0;
285
+ left: 0;
286
+ z-index: 0;
256
287
  }
288
+ }
257
289
 
258
- .p-datepicker-buttonbar {
259
- padding: 0;
260
- }
290
+ .p-datepicker-buttonbar {
291
+ padding: 0;
292
+ }
293
+
294
+ .p-timepicker span {
295
+ font-size: inherit;
296
+ }
297
+
298
+ table td > span {
299
+ width: 2.25rem;
300
+ height: 2.25rem;
261
301
  }
262
302
  }
263
303
 
@@ -279,6 +319,15 @@ p-chart {
279
319
  }
280
320
  }
281
321
 
322
+ .p-timeline-horizontal {
323
+ &.p-timeline-left .p-timeline-event-opposite {
324
+ text-align: left;
325
+ }
326
+ &.p-timeline-right .p-timeline-event-opposite {
327
+ text-align: right;
328
+ }
329
+ }
330
+
282
331
  .p-accordion {
283
332
  .p-accordion-header-link {
284
333
  border-radius: inherit;
@@ -349,6 +398,13 @@ p-chart {
349
398
  }
350
399
 
351
400
  .p-paginator {
401
+ background-color: unset;
402
+ padding: 0;
403
+
404
+ .p-inputwrapper {
405
+ width: unset;
406
+ }
407
+
352
408
  &-left-content {
353
409
  margin-right: none;
354
410
  }
@@ -359,18 +415,31 @@ p-chart {
359
415
  }
360
416
 
361
417
  .p-datatable {
418
+ &-header {
419
+ display: flex;
420
+ flex-wrap: wrap;
421
+ gap: 1rem;
422
+ }
423
+
362
424
  &-thead {
363
425
  text-transform: capitalize;
364
426
  }
365
427
 
366
428
  &-thead > tr > th,
367
429
  &-tbody > tr > td {
368
- padding: 0.25rem 0.5rem;
430
+ /* max-width: 1px; */
431
+ padding: 0.5rem;
369
432
 
370
433
  .p-row-toggler {
371
434
  min-width: unset;
372
435
  }
373
436
  }
437
+ tr.p-datatable-row-expansion > td {
438
+ padding: {
439
+ left: 5%;
440
+ right: 5%;
441
+ }
442
+ }
374
443
  }
375
444
 
376
445
  .p-message {
@@ -391,18 +460,19 @@ p-chart {
391
460
  display: flex;
392
461
 
393
462
  > .p-button {
394
- flex: 1 1 100%;
463
+ /* flex: 1 1 100%; */
395
464
  // padding: 1rem;
396
465
  }
397
466
  }
398
467
 
399
468
  .p-button {
400
469
  width: unset;
401
- min-width: 2.5rem;
470
+ /* min-width: 2.5rem; */
402
471
  /* text-transform: capitalize; */
403
472
 
404
473
  &:hover {
405
- background-color: hsl(var(--primary-hs), calc(var(--primary-l) - 20%));
474
+ /* background-color: hsl(var(--primary-hs), calc(var(--primary-l) - 20%)); */
475
+ /* color: var(--primary-c); */
406
476
  }
407
477
  }
408
478