histoire 0.1.3 → 0.1.4

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 (46) hide show
  1. package/dist/client/app/App.vue +15 -0
  2. package/dist/client/app/components/app/AppHeader.vue +6 -6
  3. package/dist/client/app/components/app/Breadcrumb.vue +98 -0
  4. package/dist/client/app/components/app/MobileOverlay.vue +34 -0
  5. package/dist/client/app/components/misc/HatchedPattern.vue +11 -23
  6. package/dist/client/app/components/search/SearchItem.vue +1 -1
  7. package/dist/client/app/components/search/SearchModal.vue +2 -2
  8. package/dist/client/app/components/story/StoryListFolder.vue +2 -2
  9. package/dist/client/app/components/story/StoryListItem.vue +2 -2
  10. package/dist/client/app/components/story/StoryResponsivePreview.vue +52 -8
  11. package/dist/client/app/components/story/StorySidePanel.vue +68 -0
  12. package/dist/client/app/components/story/StoryVariantListItem.vue +2 -2
  13. package/dist/client/app/components/story/StoryVariantSingleView.vue +5 -1
  14. package/dist/client/app/components/story/StoryView.vue +10 -121
  15. package/dist/client/app/components/story/StoryViewer.vue +157 -0
  16. package/dist/client/app/stores/story.ts +1 -1
  17. package/dist/client/app/style/{floating-vue.css → floating-vue.pcss} +0 -0
  18. package/dist/client/app/style/{main.css → main.pcss} +13 -3
  19. package/dist/client/app/style/transitions.pcss +26 -0
  20. package/dist/client/app/util/responsive.d.ts +1 -0
  21. package/dist/client/app/util/responsive.js +2 -0
  22. package/dist/client/app/util/responsive.ts +3 -0
  23. package/dist/style.css +158 -67
  24. package/package.json +3 -3
  25. package/src/client/app/App.vue +15 -0
  26. package/src/client/app/components/app/AppHeader.vue +6 -6
  27. package/src/client/app/components/app/Breadcrumb.vue +98 -0
  28. package/src/client/app/components/app/MobileOverlay.vue +34 -0
  29. package/src/client/app/components/misc/HatchedPattern.vue +11 -23
  30. package/src/client/app/components/search/SearchItem.vue +1 -1
  31. package/src/client/app/components/search/SearchModal.vue +2 -2
  32. package/src/client/app/components/story/StoryListFolder.vue +2 -2
  33. package/src/client/app/components/story/StoryListItem.vue +2 -2
  34. package/src/client/app/components/story/StoryResponsivePreview.vue +52 -8
  35. package/src/client/app/components/story/StorySidePanel.vue +68 -0
  36. package/src/client/app/components/story/StoryVariantListItem.vue +2 -2
  37. package/src/client/app/components/story/StoryVariantSingleView.vue +5 -1
  38. package/src/client/app/components/story/StoryView.vue +10 -121
  39. package/src/client/app/components/story/StoryViewer.vue +157 -0
  40. package/src/client/app/stores/story.ts +1 -1
  41. package/src/client/app/style/{floating-vue.css → floating-vue.pcss} +0 -0
  42. package/src/client/app/style/{main.css → main.pcss} +13 -3
  43. package/src/client/app/style/transitions.pcss +26 -0
  44. package/src/client/app/util/responsive.ts +3 -0
  45. package/dist/client/app/style/transitions.css +0 -12
  46. package/src/client/app/style/transitions.css +0 -12
@@ -0,0 +1,157 @@
1
+ <script lang="ts" setup>
2
+ import { computed, ref, watch } from 'vue'
3
+ import { useRoute, useRouter } from 'vue-router'
4
+ import { useStoryStore } from '../../stores/story'
5
+
6
+ import BaseSplitPane from '../base/BaseSplitPane.vue'
7
+ import StoryVariantListItem from './StoryVariantListItem.vue'
8
+ import StoryVariantGridItem from './StoryVariantGridItem.vue'
9
+ import StoryVariantSingleView from './StoryVariantSingleView.vue'
10
+ import { isMobile } from '../../util/responsive'
11
+ import { Icon } from '@iconify/vue'
12
+ import MobileOverlay from '../app/MobileOverlay.vue'
13
+
14
+ const storyStore = useStoryStore()
15
+
16
+ const router = useRouter()
17
+ const route = useRoute()
18
+
19
+ const hasSingleVariant = computed(() => (storyStore.currentStory?.variants.length === 1))
20
+
21
+ const variant = computed(() => storyStore.currentVariant)
22
+
23
+ const isMenuOpened = ref(false)
24
+
25
+ function openMenu () {
26
+ isMenuOpened.value = true
27
+ }
28
+
29
+ function closeMenu () {
30
+ isMenuOpened.value = false
31
+ }
32
+
33
+ watch(variant, () => {
34
+ isMenuOpened.value = false
35
+ })
36
+ </script>
37
+
38
+ <template>
39
+ <div class="htw-bg-gray-50 htw-h-full dark:htw-bg-gray-750">
40
+ <div
41
+ v-if="storyStore.currentStory.layout.type === 'grid'"
42
+ class="htw-h-full htw-overflow-y-auto"
43
+ >
44
+ <div
45
+ class="htw-grid htw-gap-4 htw-m-4"
46
+ :style="{
47
+ gridTemplateColumns: `repeat(auto-fill, ${storyStore.currentStory.layout.width ?? 200}px)`,
48
+ }"
49
+ >
50
+ <StoryVariantGridItem
51
+ v-for="(variant, index) of storyStore.currentStory.variants"
52
+ :key="index"
53
+ :variant="variant"
54
+ :story="storyStore.currentStory"
55
+ />
56
+ </div>
57
+ </div>
58
+
59
+ <template v-else-if="storyStore.currentStory.layout.type === 'single'">
60
+ <div
61
+ v-if="hasSingleVariant && storyStore.currentVariant"
62
+ class="htw-p-2 htw-h-full"
63
+ >
64
+ <StoryVariantSingleView
65
+ :variant="storyStore.currentVariant"
66
+ :story="storyStore.currentStory"
67
+ />
68
+ </div>
69
+ <template v-else>
70
+ <div
71
+ v-if="isMobile"
72
+ class="htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800 htw-h-full htw-flex htw-flex-col"
73
+ >
74
+ <a
75
+ class="htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center"
76
+ @click="openMenu"
77
+ >
78
+ <template v-if="variant">
79
+ <Icon
80
+ :icon="variant.icon ?? 'carbon:cube'"
81
+ class="base-list-item-link-icon htw-w-5 htw-h-5 htw-flex-none"
82
+ :class="{
83
+ 'htw-text-gray-500': !variant.iconColor,
84
+ 'bind-icon-color': variant.iconColor,
85
+ }"
86
+ />
87
+ {{ variant.title }}
88
+ </template>
89
+ <template v-else>
90
+ Select a variant...
91
+ </template>
92
+
93
+ <Icon
94
+ icon="carbon:chevron-sort"
95
+ class="htw-w-5 htw-h-5 htw-shrink-0 htw-ml-auto"
96
+ />
97
+ </a>
98
+ <div
99
+ v-if="storyStore.currentVariant"
100
+ class="htw-p-2 htw-h-full"
101
+ >
102
+ <StoryVariantSingleView
103
+ :variant="storyStore.currentVariant"
104
+ :story="storyStore.currentStory"
105
+ />
106
+ </div>
107
+ </div>
108
+ <BaseSplitPane
109
+ v-else
110
+ save-id="story-single-main-split"
111
+ :min="5"
112
+ :max="40"
113
+ :default-split="17"
114
+ >
115
+ <template #first>
116
+ <div class="htw-h-full htw-overflow-y-auto">
117
+ <StoryVariantListItem
118
+ v-for="(variant, index) of storyStore.currentStory.variants"
119
+ :key="index"
120
+ :variant="variant"
121
+ />
122
+ </div>
123
+ </template>
124
+ <template #last>
125
+ <div
126
+ v-if="storyStore.currentVariant"
127
+ class="htw-p-2 htw-h-full"
128
+ >
129
+ <StoryVariantSingleView
130
+ :variant="storyStore.currentVariant"
131
+ :story="storyStore.currentStory"
132
+ />
133
+ </div>
134
+ </template>
135
+ </BaseSplitPane>
136
+ </template>
137
+ </template>
138
+ </div>
139
+
140
+ <MobileOverlay
141
+ title="Select a variant"
142
+ :opened="isMenuOpened"
143
+ @close="closeMenu"
144
+ >
145
+ <StoryVariantListItem
146
+ v-for="(variant, index) of storyStore.currentStory.variants"
147
+ :key="index"
148
+ :variant="variant"
149
+ />
150
+ </MobileOverlay>
151
+ </template>
152
+
153
+ <style scoped>
154
+ .bind-icon-color {
155
+ color: v-bind('variant?.iconColor');
156
+ }
157
+ </style>
@@ -1,5 +1,5 @@
1
1
  import { defineStore } from 'pinia'
2
- import { computed, reactive, ref, watch } from 'vue'
2
+ import { computed, ref, watch } from 'vue'
3
3
  import { router } from '../router'
4
4
  import { Story } from '../types'
5
5
 
@@ -1,7 +1,8 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
2
2
  @import 'floating-vue/dist/style.css';
3
- @import 'floating-vue.css';
4
- @import 'transitions.css';
3
+
4
+ @import 'floating-vue.pcss';
5
+ @import 'transitions.pcss';
5
6
 
6
7
  *,
7
8
  ::before,
@@ -45,7 +46,16 @@ body,
45
46
  #app {
46
47
  height: 100%;
47
48
  font-family: 'Lato', sans-serif;
48
- font-size: 14px;
49
+ }
50
+
51
+ #app {
52
+ font-size: 18px;
53
+ }
54
+
55
+ @media (min-width: 640px) {
56
+ #app {
57
+ font-size: 14px;
58
+ }
49
59
  }
50
60
 
51
61
  .__histoire-sandbox {
@@ -0,0 +1,26 @@
1
+ .__histoire-scale-x {
2
+ &-enter-active,
3
+ &-leave-active {
4
+ transition: transform .15s, opacity .15s;
5
+ }
6
+
7
+ &-enter-from,
8
+ &-leave-to {
9
+ transform: scaleX(0);
10
+ opacity: 0;
11
+ }
12
+ }
13
+
14
+ .__histoire-fade {
15
+ &-enter-active,
16
+ &-leave-active {
17
+ transition: transform .15s, opacity .15s;
18
+ transform: translateY(0px);
19
+ }
20
+
21
+ &-enter-from,
22
+ &-leave-to {
23
+ transform: translateY(32px);
24
+ opacity: 0;
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ export declare const isMobile: import("vue").Ref<boolean>;
@@ -0,0 +1,2 @@
1
+ import { useMediaQuery } from '@vueuse/core';
2
+ export const isMobile = useMediaQuery('(max-width: 640px)');
@@ -0,0 +1,3 @@
1
+ import { useMediaQuery } from '@vueuse/core'
2
+
3
+ export const isMobile = useMediaQuery('(max-width: 640px)')
package/dist/style.css CHANGED
@@ -249,6 +249,18 @@
249
249
  opacity: 0;
250
250
  }
251
251
 
252
+ .__histoire-fade-enter-active,
253
+ .__histoire-fade-leave-active {
254
+ transition: transform .15s, opacity .15s;
255
+ transform: translateY(0px);
256
+ }
257
+
258
+ .__histoire-fade-enter-from,
259
+ .__histoire-fade-leave-to {
260
+ transform: translateY(32px);
261
+ opacity: 0;
262
+ }
263
+
252
264
  *,
253
265
  ::before,
254
266
  ::after {
@@ -848,14 +860,14 @@ button {
848
860
  isolation:isolate
849
861
  }
850
862
 
851
- .htw-z-20{
852
- z-index:20
853
- }
854
-
855
863
  .htw-z-10{
856
864
  z-index:10
857
865
  }
858
866
 
867
+ .htw-z-20{
868
+ z-index:20
869
+ }
870
+
859
871
  .htw-m-1{
860
872
  margin:0.25rem
861
873
  }
@@ -932,10 +944,22 @@ button {
932
944
  height:4rem
933
945
  }
934
946
 
947
+ .htw-h-6{
948
+ height:1.5rem
949
+ }
950
+
951
+ .htw-h-12{
952
+ height:3rem
953
+ }
954
+
935
955
  .htw-h-5{
936
956
  height:1.25rem
937
957
  }
938
958
 
959
+ .htw-h-8{
960
+ height:2rem
961
+ }
962
+
939
963
  .htw-h-\[2px\]{
940
964
  height:2px
941
965
  }
@@ -952,10 +976,6 @@ button {
952
976
  height:1px
953
977
  }
954
978
 
955
- .htw-h-8{
956
- height:2rem
957
- }
958
-
959
979
  .htw-h-10{
960
980
  height:2.5rem
961
981
  }
@@ -980,18 +1000,26 @@ button {
980
1000
  width:100%
981
1001
  }
982
1002
 
983
- .htw-w-5{
984
- width:1.25rem
1003
+ .htw-w-6{
1004
+ width:1.5rem
985
1005
  }
986
1006
 
987
- .htw-w-4{
988
- width:1rem
1007
+ .htw-w-5{
1008
+ width:1.25rem
989
1009
  }
990
1010
 
991
1011
  .htw-w-screen{
992
1012
  width:100vw
993
1013
  }
994
1014
 
1015
+ .htw-w-8{
1016
+ width:2rem
1017
+ }
1018
+
1019
+ .htw-w-4{
1020
+ width:1rem
1021
+ }
1022
+
995
1023
  .htw-w-px{
996
1024
  width:1px
997
1025
  }
@@ -1042,6 +1070,14 @@ button {
1042
1070
  flex:1 1 0%
1043
1071
  }
1044
1072
 
1073
+ .htw-shrink-0{
1074
+ flex-shrink:0
1075
+ }
1076
+
1077
+ .htw-grow{
1078
+ flex-grow:1
1079
+ }
1080
+
1045
1081
  .htw-rotate-90{
1046
1082
  --tw-rotate:90deg;
1047
1083
  transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
@@ -1086,6 +1122,14 @@ button {
1086
1122
  flex-direction:column
1087
1123
  }
1088
1124
 
1125
+ .htw-flex-wrap{
1126
+ flex-wrap:wrap
1127
+ }
1128
+
1129
+ .htw-place-content-between{
1130
+ place-content:space-between
1131
+ }
1132
+
1089
1133
  .htw-items-center{
1090
1134
  align-items:center
1091
1135
  }
@@ -1134,6 +1178,11 @@ button {
1134
1178
  border-bottom-width:calc(1px * var(--tw-divide-y-reverse))
1135
1179
  }
1136
1180
 
1181
+ .htw-divide-gray-100 > :not([hidden]) ~ :not([hidden]){
1182
+ --tw-divide-opacity:1;
1183
+ border-color:rgb(var(--_histoire-color-gray-100) / var(--tw-divide-opacity))
1184
+ }
1185
+
1137
1186
  .htw-divide-gray-200 > :not([hidden]) ~ :not([hidden]){
1138
1187
  --tw-divide-opacity:1;
1139
1188
  border-color:rgb(var(--_histoire-color-gray-200) / var(--tw-divide-opacity))
@@ -1151,6 +1200,10 @@ button {
1151
1200
  overflow-y:auto
1152
1201
  }
1153
1202
 
1203
+ .htw-overflow-y-scroll{
1204
+ overflow-y:scroll
1205
+ }
1206
+
1154
1207
  .htw-truncate{
1155
1208
  overflow:hidden;
1156
1209
  text-overflow:ellipsis;
@@ -1195,6 +1248,10 @@ button {
1195
1248
  border-bottom-width:2px
1196
1249
  }
1197
1250
 
1251
+ .htw-border-b{
1252
+ border-bottom-width:1px
1253
+ }
1254
+
1198
1255
  .htw-border-r{
1199
1256
  border-right-width:1px
1200
1257
  }
@@ -1207,15 +1264,16 @@ button {
1207
1264
  border-left-width:2px
1208
1265
  }
1209
1266
 
1210
- .htw-border-b{
1211
- border-bottom-width:1px
1212
- }
1213
-
1214
1267
  .htw-border-gray-600{
1215
1268
  --tw-border-opacity:1;
1216
1269
  border-color:rgb(var(--_histoire-color-gray-600) / var(--tw-border-opacity))
1217
1270
  }
1218
1271
 
1272
+ .htw-border-gray-100{
1273
+ --tw-border-opacity:1;
1274
+ border-color:rgb(var(--_histoire-color-gray-100) / var(--tw-border-opacity))
1275
+ }
1276
+
1219
1277
  .htw-border-gray-200{
1220
1278
  --tw-border-opacity:1;
1221
1279
  border-color:rgb(var(--_histoire-color-gray-200) / var(--tw-border-opacity))
@@ -1225,11 +1283,6 @@ button {
1225
1283
  border-color:transparent
1226
1284
  }
1227
1285
 
1228
- .htw-border-gray-100{
1229
- --tw-border-opacity:1;
1230
- border-color:rgb(var(--_histoire-color-gray-100) / var(--tw-border-opacity))
1231
- }
1232
-
1233
1286
  .htw-border-gray-500\/10{
1234
1287
  border-color:rgb(var(--_histoire-color-gray-500) / 0.1)
1235
1288
  }
@@ -1258,6 +1311,11 @@ button {
1258
1311
  background-color:rgb(var(--_histoire-color-gray-500) / var(--tw-bg-opacity))
1259
1312
  }
1260
1313
 
1314
+ .htw-bg-white{
1315
+ --tw-bg-opacity:1;
1316
+ background-color:rgb(255 255 255 / var(--tw-bg-opacity))
1317
+ }
1318
+
1261
1319
  .htw-bg-primary-500{
1262
1320
  --tw-bg-opacity:1;
1263
1321
  background-color:rgb(var(--_histoire-color-primary-500) / var(--tw-bg-opacity))
@@ -1271,11 +1329,6 @@ button {
1271
1329
  background-color:rgb(255 255 255 / 0.8)
1272
1330
  }
1273
1331
 
1274
- .htw-bg-white{
1275
- --tw-bg-opacity:1;
1276
- background-color:rgb(255 255 255 / var(--tw-bg-opacity))
1277
- }
1278
-
1279
1332
  .htw-bg-transparent{
1280
1333
  background-color:transparent
1281
1334
  }
@@ -1308,16 +1361,16 @@ button {
1308
1361
  stroke-width:2
1309
1362
  }
1310
1363
 
1311
- .htw-p-1{
1312
- padding:0.25rem
1364
+ .htw-p-2{
1365
+ padding:0.5rem
1313
1366
  }
1314
1367
 
1315
1368
  .htw-p-4{
1316
1369
  padding:1rem
1317
1370
  }
1318
1371
 
1319
- .htw-p-2{
1320
- padding:0.5rem
1372
+ .htw-p-1{
1373
+ padding:0.25rem
1321
1374
  }
1322
1375
 
1323
1376
  .htw-p-2\.5{
@@ -1334,9 +1387,14 @@ button {
1334
1387
  padding-right:1rem
1335
1388
  }
1336
1389
 
1337
- .htw-py-4{
1338
- padding-top:1rem;
1339
- padding-bottom:1rem
1390
+ .htw-py-3{
1391
+ padding-top:0.75rem;
1392
+ padding-bottom:0.75rem
1393
+ }
1394
+
1395
+ .htw-px-6{
1396
+ padding-left:1.5rem;
1397
+ padding-right:1.5rem
1340
1398
  }
1341
1399
 
1342
1400
  .htw-py-12{
@@ -1344,9 +1402,9 @@ button {
1344
1402
  padding-bottom:3rem
1345
1403
  }
1346
1404
 
1347
- .htw-px-6{
1348
- padding-left:1.5rem;
1349
- padding-right:1.5rem
1405
+ .htw-py-4{
1406
+ padding-top:1rem;
1407
+ padding-bottom:1rem
1350
1408
  }
1351
1409
 
1352
1410
  .htw-px-0\.5{
@@ -1354,9 +1412,9 @@ button {
1354
1412
  padding-right:0.125rem
1355
1413
  }
1356
1414
 
1357
- .htw-py-1\.5{
1358
- padding-top:0.375rem;
1359
- padding-bottom:0.375rem
1415
+ .htw-py-2{
1416
+ padding-top:0.5rem;
1417
+ padding-bottom:0.5rem
1360
1418
  }
1361
1419
 
1362
1420
  .htw-px-0{
@@ -1364,11 +1422,6 @@ button {
1364
1422
  padding-right:0px
1365
1423
  }
1366
1424
 
1367
- .htw-py-1{
1368
- padding-top:0.25rem;
1369
- padding-bottom:0.25rem
1370
- }
1371
-
1372
1425
  .htw-px-2{
1373
1426
  padding-left:0.5rem;
1374
1427
  padding-right:0.5rem
@@ -1384,11 +1437,6 @@ button {
1384
1437
  padding-bottom:0px
1385
1438
  }
1386
1439
 
1387
- .htw-py-3{
1388
- padding-top:0.75rem;
1389
- padding-bottom:0.75rem
1390
- }
1391
-
1392
1440
  .htw-pr-2{
1393
1441
  padding-right:0.5rem
1394
1442
  }
@@ -1444,24 +1492,24 @@ button {
1444
1492
  color:rgb(255 255 255 / 0.4)
1445
1493
  }
1446
1494
 
1447
- .htw-text-gray-400{
1495
+ .htw-text-primary-500{
1448
1496
  --tw-text-opacity:1;
1449
- color:rgb(var(--_histoire-color-gray-400) / var(--tw-text-opacity))
1497
+ color:rgb(var(--_histoire-color-primary-500) / var(--tw-text-opacity))
1450
1498
  }
1451
1499
 
1452
- .htw-text-white{
1500
+ .htw-text-gray-500{
1453
1501
  --tw-text-opacity:1;
1454
- color:rgb(255 255 255 / var(--tw-text-opacity))
1502
+ color:rgb(var(--_histoire-color-gray-500) / var(--tw-text-opacity))
1455
1503
  }
1456
1504
 
1457
- .htw-text-primary-500{
1505
+ .htw-text-gray-400{
1458
1506
  --tw-text-opacity:1;
1459
- color:rgb(var(--_histoire-color-primary-500) / var(--tw-text-opacity))
1507
+ color:rgb(var(--_histoire-color-gray-400) / var(--tw-text-opacity))
1460
1508
  }
1461
1509
 
1462
- .htw-text-gray-500{
1510
+ .htw-text-white{
1463
1511
  --tw-text-opacity:1;
1464
- color:rgb(var(--_histoire-color-gray-500) / var(--tw-text-opacity))
1512
+ color:rgb(255 255 255 / var(--tw-text-opacity))
1465
1513
  }
1466
1514
 
1467
1515
  .htw-text-black\/\[2\%\]{
@@ -1585,7 +1633,16 @@ body,
1585
1633
  #app {
1586
1634
  height: 100%;
1587
1635
  font-family: 'Lato', sans-serif;
1588
- font-size: 14px;
1636
+ }
1637
+
1638
+ #app {
1639
+ font-size: 18px;
1640
+ }
1641
+
1642
+ @media (min-width: 640px) {
1643
+ #app {
1644
+ font-size: 14px;
1645
+ }
1589
1646
  }
1590
1647
 
1591
1648
  .__histoire-sandbox {
@@ -1675,25 +1732,35 @@ body,
1675
1732
  --tw-prose-td-borders:var(--tw-prose-invert-td-borders)
1676
1733
  }
1677
1734
 
1735
+ .htw-dark .dark\:htw-divide-gray-800 > :not([hidden]) ~ :not([hidden]){
1736
+ --tw-divide-opacity:1;
1737
+ border-color:rgb(var(--_histoire-color-gray-800) / var(--tw-divide-opacity))
1738
+ }
1739
+
1678
1740
  .htw-dark .dark\:htw-divide-gray-850 > :not([hidden]) ~ :not([hidden]){
1679
1741
  --tw-divide-opacity:1;
1680
1742
  border-color:rgb(var(--_histoire-color-gray-850) / var(--tw-divide-opacity))
1681
1743
  }
1682
1744
 
1683
- .htw-dark .dark\:htw-border-gray-850{
1745
+ .htw-dark .dark\:htw-border-gray-800{
1684
1746
  --tw-border-opacity:1;
1685
- border-color:rgb(var(--_histoire-color-gray-850) / var(--tw-border-opacity))
1747
+ border-color:rgb(var(--_histoire-color-gray-800) / var(--tw-border-opacity))
1686
1748
  }
1687
1749
 
1688
- .htw-dark .dark\:htw-border-gray-800{
1750
+ .htw-dark .dark\:htw-border-gray-850{
1689
1751
  --tw-border-opacity:1;
1690
- border-color:rgb(var(--_histoire-color-gray-800) / var(--tw-border-opacity))
1752
+ border-color:rgb(var(--_histoire-color-gray-850) / var(--tw-border-opacity))
1691
1753
  }
1692
1754
 
1693
1755
  .htw-dark .dark\:htw-border-gray-700\/30{
1694
1756
  border-color:rgb(var(--_histoire-color-gray-700) / 0.3)
1695
1757
  }
1696
1758
 
1759
+ .htw-dark .dark\:htw-border-gray-750{
1760
+ --tw-border-opacity:1;
1761
+ border-color:rgb(var(--_histoire-color-gray-750) / var(--tw-border-opacity))
1762
+ }
1763
+
1697
1764
  .htw-dark .dark\:htw-border-primary-900{
1698
1765
  --tw-border-opacity:1;
1699
1766
  border-color:rgb(var(--_histoire-color-primary-900) / var(--tw-border-opacity))
@@ -1703,11 +1770,6 @@ body,
1703
1770
  border-color:rgb(255 255 255 / 0.2)
1704
1771
  }
1705
1772
 
1706
- .htw-dark .dark\:htw-border-gray-750{
1707
- --tw-border-opacity:1;
1708
- border-color:rgb(var(--_histoire-color-gray-750) / var(--tw-border-opacity))
1709
- }
1710
-
1711
1773
  .htw-dark .dark\:htw-border-gray-500{
1712
1774
  --tw-border-opacity:1;
1713
1775
  border-color:rgb(var(--_histoire-color-gray-500) / var(--tw-border-opacity))
@@ -1801,6 +1863,25 @@ body,
1801
1863
  border-color:rgb(var(--_histoire-color-primary-500) / var(--tw-border-opacity))
1802
1864
  }
1803
1865
 
1866
+ @media (min-width: 640px){
1867
+ .sm\:htw-h-4{
1868
+ height:1rem
1869
+ }
1870
+
1871
+ .sm\:htw-w-4{
1872
+ width:1rem
1873
+ }
1874
+
1875
+ .sm\:htw-p-1{
1876
+ padding:0.25rem
1877
+ }
1878
+
1879
+ .sm\:htw-py-4{
1880
+ padding-top:1rem;
1881
+ padding-bottom:1rem
1882
+ }
1883
+ }
1884
+
1804
1885
  @media (min-width: 768px){
1805
1886
  .md\:htw-mx-auto{
1806
1887
  margin-left:auto;
@@ -1810,4 +1891,14 @@ body,
1810
1891
  .md\:htw-mt-16{
1811
1892
  margin-top:4rem
1812
1893
  }
1894
+
1895
+ .md\:htw-py-1\.5{
1896
+ padding-top:0.375rem;
1897
+ padding-bottom:0.375rem
1898
+ }
1899
+
1900
+ .md\:htw-py-1{
1901
+ padding-top:0.25rem;
1902
+ padding-bottom:0.25rem
1903
+ }
1813
1904
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histoire",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A fast story book powered by Vite",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@iconify/vue": "^3.1.3",
37
- "@histoire/controls": "^0.1.3",
37
+ "@histoire/controls": "^0.1.4",
38
38
  "@vitejs/plugin-vue": "^2.2.0",
39
39
  "@vueuse/core": "^8.1.1",
40
40
  "case": "^1.6.3",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "scripts": {
82
82
  "build": "rimraf dist && tsc -d && pnpm run build:css && node ./scripts/copy.mjs",
83
- "build:css": "tailwindcss -i src/client/app/style/main.css -o ./dist/style.css -c tailwind.config.cjs --postcss postcss.config.cjs",
83
+ "build:css": "tailwindcss -i src/client/app/style/main.pcss -o ./dist/style.css -c tailwind.config.cjs --postcss postcss.config.cjs",
84
84
  "watch": "concurrently \"tsc -d -w --sourceMap\" \"pnpm run build:css -- --watch\" \"node ./scripts/watchAndCopy.mjs\"",
85
85
  "test:open": "peeky open",
86
86
  "test": "peeky run"