daisyui 4.0.0-alpha.6 → 4.0.0-alpha.7
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.
- package/README.md +1 -85
- package/dist/full.css +112 -35
- package/dist/styled.css +95 -7
- package/dist/styled.js +1 -1
- package/dist/unstyled.css +66 -7
- package/dist/unstyled.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
|
-
[![][banner-url]][docs-url]
|
|
14
|
-
|
|
15
13
|
# daisyUI 3.0
|
|
16
14
|
|
|
17
15
|
[![][build]][build-url] [![][npm]][npm-url] [![][number-of-components]][docs-url] [![][license]][license-url]
|
|
@@ -61,89 +59,7 @@ See the official site: [ [daisyui.com →](https://daisyui.com/)]
|
|
|
61
59
|
| **Backers** <br /> Thank you to all our backers! <br /> [[Become a backer](https://opencollective.com/daisyui)] | <a href="https://opencollective.com/daisyui" target="_blank"><img src="https://opencollective.com/daisyui/backers.svg?button=false&width=500&avatarHeight=46"><img src="https://opencollective.com/daisyui/organizations.svg?button=false&width=500&avatarHeight=46"></a> |
|
|
62
60
|
| **Contributors** <br /> This project exists thanks to all the people who contribute. <br /> [[Contribute](https://github.com/saadeghi/daisyui/blob/master/.github/CONTRIBUTING.md)] | <a href="https://github.com/saadeghi/daisyui/graphs/contributors" target="_blank"><img src="https://contrib.rocks/image?repo=saadeghi/daisyui&columns=14&anon=1&max=300" width="500"></a> |
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## 📁 List of components
|
|
67
|
-
|
|
68
|
-
<details>
|
|
69
|
-
<summary>
|
|
70
|
-
show / hide
|
|
71
|
-
</summary>
|
|
72
|
-
|
|
73
|
-
- Actions
|
|
74
|
-
|
|
75
|
-
- [x] Button
|
|
76
|
-
- [x] Dropdown
|
|
77
|
-
- [x] Modal
|
|
78
|
-
- [x] Swap
|
|
79
|
-
|
|
80
|
-
- Data display
|
|
81
|
-
|
|
82
|
-
- [x] Alert
|
|
83
|
-
- [x] Avatar
|
|
84
|
-
- [x] Badge
|
|
85
|
-
- [ ] Banner
|
|
86
|
-
- [ ] Calendar
|
|
87
|
-
- [x] Card
|
|
88
|
-
- [x] Carousel
|
|
89
|
-
- [x] Chat bubble
|
|
90
|
-
- [x] Collapse
|
|
91
|
-
- [x] Countdown
|
|
92
|
-
- [ ] Empty placeholder
|
|
93
|
-
- [x] Kbd
|
|
94
|
-
- [x] Loading
|
|
95
|
-
- [x] Progress
|
|
96
|
-
- [x] Radial progress
|
|
97
|
-
- [x] Stat
|
|
98
|
-
- [x] Table
|
|
99
|
-
- [ ] Tag
|
|
100
|
-
- [ ] Timeline
|
|
101
|
-
- [x] Toast
|
|
102
|
-
- [x] Tooltip
|
|
103
|
-
- [x] Treeview
|
|
104
|
-
|
|
105
|
-
- Data input
|
|
106
|
-
- [x] Checkbox
|
|
107
|
-
- [x] File input
|
|
108
|
-
- [x] Text input
|
|
109
|
-
- [x] Radio
|
|
110
|
-
- [x] Range
|
|
111
|
-
- [x] Rating
|
|
112
|
-
- [x] Select
|
|
113
|
-
- [x] Textarea
|
|
114
|
-
- [x] Toggle
|
|
115
|
-
- Layout
|
|
116
|
-
|
|
117
|
-
- [x] Artboard
|
|
118
|
-
- [x] Button group
|
|
119
|
-
- [x] Divider
|
|
120
|
-
- [x] Drawer
|
|
121
|
-
- [x] Footer
|
|
122
|
-
- [x] Join
|
|
123
|
-
- [x] Hero
|
|
124
|
-
- [x] Indicator
|
|
125
|
-
- [x] Input group
|
|
126
|
-
- [x] Mask
|
|
127
|
-
- [x] Stack
|
|
128
|
-
|
|
129
|
-
- Navigation
|
|
130
|
-
|
|
131
|
-
- [x] Bottom Navigation
|
|
132
|
-
- [x] Breadcrumbs
|
|
133
|
-
- [x] Link
|
|
134
|
-
- [x] Menu
|
|
135
|
-
- [x] Navbar
|
|
136
|
-
- [x] Pagination
|
|
137
|
-
- [x] Steps
|
|
138
|
-
- [x] Tab
|
|
139
|
-
|
|
140
|
-
- Mockup
|
|
141
|
-
- [x] Browser
|
|
142
|
-
- [x] Code
|
|
143
|
-
- [x] Phone
|
|
144
|
-
- [x] Window
|
|
145
|
-
|
|
146
|
-
</details>
|
|
62
|
+
[![][banner-url]][docs-url]
|
|
147
63
|
|
|
148
64
|
---
|
|
149
65
|
|
package/dist/full.css
CHANGED
|
@@ -1980,6 +1980,76 @@ html {
|
|
|
1980
1980
|
top: calc(var(--value) * -1em);
|
|
1981
1981
|
text-align: center;
|
|
1982
1982
|
transition: all 1s cubic-bezier(1, 0, 0, 1)}
|
|
1983
|
+
.diff {
|
|
1984
|
+
position: relative;
|
|
1985
|
+
display: grid;
|
|
1986
|
+
overflow: hidden;
|
|
1987
|
+
container-type: inline-size;
|
|
1988
|
+
grid-template-columns: auto 1fr}
|
|
1989
|
+
.diff-resizer {
|
|
1990
|
+
position: relative;
|
|
1991
|
+
top: 50%;
|
|
1992
|
+
z-index: 1;
|
|
1993
|
+
height: 3rem;
|
|
1994
|
+
width: 25rem;
|
|
1995
|
+
min-width: 1rem;
|
|
1996
|
+
max-width: calc(100cqi - 1rem);
|
|
1997
|
+
resize: horizontal;
|
|
1998
|
+
overflow: hidden;
|
|
1999
|
+
opacity: 0;
|
|
2000
|
+
transform-origin: 100% 100%;
|
|
2001
|
+
scale: 4;
|
|
2002
|
+
translate: 1.5rem -1.5rem;
|
|
2003
|
+
clip-path: inset(calc(100% - 0.75rem) 0 0 calc(100% - 0.75rem))}
|
|
2004
|
+
.diff-resizer,
|
|
2005
|
+
.diff-item-1,
|
|
2006
|
+
.diff-item-2 {
|
|
2007
|
+
position: relative;
|
|
2008
|
+
grid-column-start: 1;
|
|
2009
|
+
grid-row-start: 1}
|
|
2010
|
+
.diff-item-1:after {
|
|
2011
|
+
pointer-events: none;
|
|
2012
|
+
position: absolute;
|
|
2013
|
+
bottom: 0px;
|
|
2014
|
+
right: 1px;
|
|
2015
|
+
top: 50%;
|
|
2016
|
+
z-index: 1;
|
|
2017
|
+
height: 2rem;
|
|
2018
|
+
width: 2rem;
|
|
2019
|
+
--tw-content: '';
|
|
2020
|
+
content: var(--tw-content);
|
|
2021
|
+
translate: 50% -50%;
|
|
2022
|
+
border-radius: 9999px;
|
|
2023
|
+
border-width: 2px;
|
|
2024
|
+
--tw-border-opacity: 1;
|
|
2025
|
+
border-color: oklch(var(--b1) / var(--tw-border-opacity));
|
|
2026
|
+
background-color: oklch(var(--b1) / 0.5);
|
|
2027
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
2028
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
2029
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2030
|
+
outline-style: solid;
|
|
2031
|
+
outline-offset: -3px;
|
|
2032
|
+
outline-color: oklch(var(--bc) / 0.05);
|
|
2033
|
+
--tw-backdrop-blur: blur(8px);
|
|
2034
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2035
|
+
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}
|
|
2036
|
+
.diff-item-2 {
|
|
2037
|
+
overflow: hidden;
|
|
2038
|
+
border-right-width: 2px;
|
|
2039
|
+
--tw-border-opacity: 1;
|
|
2040
|
+
border-color: oklch(var(--b1) / var(--tw-border-opacity))}
|
|
2041
|
+
.diff-item-1 > *,
|
|
2042
|
+
.diff-item-2 > * {
|
|
2043
|
+
pointer-events: none;
|
|
2044
|
+
position: absolute;
|
|
2045
|
+
bottom: 0px;
|
|
2046
|
+
left: 0px;
|
|
2047
|
+
top: 0px;
|
|
2048
|
+
height: 100%;
|
|
2049
|
+
width: 100cqi;
|
|
2050
|
+
max-width: none;
|
|
2051
|
+
object-fit: cover;
|
|
2052
|
+
object-position: center}
|
|
1983
2053
|
.divider {
|
|
1984
2054
|
display: flex;
|
|
1985
2055
|
flex-direction: row;
|
|
@@ -2980,29 +3050,28 @@ input.tab:checked + .tab-content,
|
|
|
2980
3050
|
.timeline {
|
|
2981
3051
|
position: relative;
|
|
2982
3052
|
display: flex}
|
|
2983
|
-
:where(.timeline li) {
|
|
3053
|
+
:where(.timeline > li) {
|
|
2984
3054
|
position: relative;
|
|
2985
3055
|
display: grid;
|
|
2986
3056
|
align-items: center;
|
|
2987
3057
|
grid-template-rows: var(--timeline-row-start, 1fr) auto var(--timeline-row-end, 1fr);
|
|
2988
3058
|
grid-template-columns: var(--timeline-col-start, 1fr) auto var(--timeline-col-end, 1fr)}
|
|
2989
|
-
:where(.timeline:not(:has(.timeline-start)) li) {
|
|
3059
|
+
:where(.timeline:not(:has(.timeline-start)) > li) {
|
|
2990
3060
|
--timeline-row-start: min-content}
|
|
2991
|
-
:where(.timeline:not(:has(.timeline-end)) li) {
|
|
3061
|
+
:where(.timeline:not(:has(.timeline-end)) > li) {
|
|
2992
3062
|
--timeline-row-end: min-content}
|
|
2993
3063
|
:where(.timeline:not(:has(.timeline-start)):not(:has(.timeline-end)) li) {
|
|
2994
3064
|
--timeline-row-start: min-content;
|
|
2995
3065
|
--timeline-row-end: min-content}
|
|
2996
|
-
.timeline hr {
|
|
3066
|
+
.timeline > li > hr {
|
|
2997
3067
|
width: 100%;
|
|
2998
|
-
border-width: 0px
|
|
2999
|
-
|
|
3000
|
-
.timeline-snap-icon li {
|
|
3068
|
+
border-width: 0px}
|
|
3069
|
+
.timeline-snap-icon > li {
|
|
3001
3070
|
--timeline-col-start: 0.5rem}
|
|
3002
|
-
:where(.timeline hr):first-child {
|
|
3071
|
+
:where(.timeline > li > hr):first-child {
|
|
3003
3072
|
grid-column-start: 1;
|
|
3004
3073
|
grid-row-start: 2}
|
|
3005
|
-
:where(.timeline hr):last-child {
|
|
3074
|
+
:where(.timeline > li > hr):last-child {
|
|
3006
3075
|
grid-column-start: 3;
|
|
3007
3076
|
grid-row-start: 2}
|
|
3008
3077
|
.timeline-start {
|
|
@@ -5026,9 +5095,15 @@ details.collapse summary::-webkit-details-marker {
|
|
|
5026
5095
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled]):first-child:before, .tab-lifted:is(input:checked):first-child:before {
|
|
5027
5096
|
background-image: var(--radius-end);
|
|
5028
5097
|
background-position: top right}
|
|
5098
|
+
[dir="rtl"] .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):first-child:before, [dir="rtl"] .tab-lifted:is(input:checked):first-child:before {
|
|
5099
|
+
background-image: var(--radius-start);
|
|
5100
|
+
background-position: top left}
|
|
5029
5101
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled]):last-child:before, .tab-lifted:is(input:checked):last-child:before {
|
|
5030
5102
|
background-image: var(--radius-start);
|
|
5031
5103
|
background-position: top left}
|
|
5104
|
+
[dir="rtl"] .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):last-child:before, [dir="rtl"] .tab-lifted:is(input:checked):last-child:before {
|
|
5105
|
+
background-image: var(--radius-end);
|
|
5106
|
+
background-position: top right}
|
|
5032
5107
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled])
|
|
5033
5108
|
+ .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):before, .tab-lifted:is(input:checked) + .tab-lifted:is(input:checked):before {
|
|
5034
5109
|
background-image: var(--radius-end);
|
|
@@ -5138,6 +5213,8 @@ details.collapse summary::-webkit-details-marker {
|
|
|
5138
5213
|
.textarea[disabled]::placeholder {
|
|
5139
5214
|
color: oklch(var(--bc) / var(--tw-placeholder-opacity));
|
|
5140
5215
|
--tw-placeholder-opacity: 0.2}
|
|
5216
|
+
.timeline hr {
|
|
5217
|
+
height: 0.25rem}
|
|
5141
5218
|
:where(.timeline hr) {
|
|
5142
5219
|
--tw-bg-opacity: 1;
|
|
5143
5220
|
background-color: oklch(var(--b3) / var(--tw-bg-opacity))}
|
|
@@ -23625,23 +23702,23 @@ details.collapse summary::-webkit-details-marker {
|
|
|
23625
23702
|
line-height: 2}
|
|
23626
23703
|
.timeline-vertical {
|
|
23627
23704
|
flex-direction: column}
|
|
23628
|
-
:where(.timeline-vertical li) {
|
|
23705
|
+
:where(.timeline-vertical > li) {
|
|
23629
23706
|
--timeline-row-start: 1fr;
|
|
23630
23707
|
--timeline-row-end: 1fr;
|
|
23631
23708
|
justify-items: center}
|
|
23632
|
-
:where(.timeline-vertical:not(:has(.timeline-start)) li) {
|
|
23709
|
+
:where(.timeline-vertical:not(:has(.timeline-start)) > li) {
|
|
23633
23710
|
--timeline-col-start: min-content}
|
|
23634
|
-
:where(.timeline-vertical:not(:has(.timeline-end)) li) {
|
|
23711
|
+
:where(.timeline-vertical:not(:has(.timeline-end)) > li) {
|
|
23635
23712
|
--timeline-col-end: min-content}
|
|
23636
|
-
:where(.timeline-vertical:not(:has(.timeline-start)):not(:has(.timeline-end)) li) {
|
|
23713
|
+
:where(.timeline-vertical:not(:has(.timeline-start)):not(:has(.timeline-end)) > li) {
|
|
23637
23714
|
--timeline-col-start: min-content;
|
|
23638
23715
|
--timeline-col-end: min-content}
|
|
23639
|
-
.timeline-vertical hr {
|
|
23716
|
+
.timeline-vertical > li > hr {
|
|
23640
23717
|
height: 100%}
|
|
23641
|
-
:where(.timeline-vertical hr):first-child {
|
|
23718
|
+
:where(.timeline-vertical > li > hr):first-child {
|
|
23642
23719
|
grid-column-start: 2;
|
|
23643
23720
|
grid-row-start: 1}
|
|
23644
|
-
:where(.timeline-vertical hr):last-child {
|
|
23721
|
+
:where(.timeline-vertical > li > hr):last-child {
|
|
23645
23722
|
grid-column-start: 2;
|
|
23646
23723
|
grid-row-start: 3}
|
|
23647
23724
|
.timeline-vertical .timeline-start {
|
|
@@ -23658,27 +23735,27 @@ details.collapse summary::-webkit-details-marker {
|
|
|
23658
23735
|
grid-row-end: 4;
|
|
23659
23736
|
align-self: center;
|
|
23660
23737
|
justify-self: start}
|
|
23661
|
-
.timeline-vertical.timeline-snap-icon li {
|
|
23738
|
+
.timeline-vertical.timeline-snap-icon > li {
|
|
23662
23739
|
--timeline-row-start: 0.5rem}
|
|
23663
23740
|
.timeline-horizontal {
|
|
23664
23741
|
flex-direction: row}
|
|
23665
|
-
:where(.timeline-horizontal li) {
|
|
23742
|
+
:where(.timeline-horizontal > li) {
|
|
23666
23743
|
--timeline-col-start: 1fr;
|
|
23667
23744
|
--timeline-col-end: 1fr;
|
|
23668
23745
|
align-items: center}
|
|
23669
|
-
:where(.timeline-horizontal:not(:has(.timeline-start)) li) {
|
|
23746
|
+
:where(.timeline-horizontal:not(:has(.timeline-start)) > li) {
|
|
23670
23747
|
--timeline-row-start: min-content}
|
|
23671
|
-
:where(.timeline-horizontal:not(:has(.timeline-end)) li) {
|
|
23748
|
+
:where(.timeline-horizontal:not(:has(.timeline-end)) > li) {
|
|
23672
23749
|
--timeline-row-end: min-content}
|
|
23673
|
-
:where(.timeline-horizontal:not(:has(.timeline-start)):not(:has(.timeline-end)) li) {
|
|
23750
|
+
:where(.timeline-horizontal:not(:has(.timeline-start)):not(:has(.timeline-end)) > li) {
|
|
23674
23751
|
--timeline-row-start: min-content;
|
|
23675
23752
|
--timeline-row-end: min-content}
|
|
23676
|
-
.timeline-horizontal hr {
|
|
23753
|
+
.timeline-horizontal > li > hr {
|
|
23677
23754
|
width: 100%}
|
|
23678
|
-
:where(.timeline-horizontal hr):first-child {
|
|
23755
|
+
:where(.timeline-horizontal > li > hr):first-child {
|
|
23679
23756
|
grid-column-start: 1;
|
|
23680
23757
|
grid-row-start: 2}
|
|
23681
|
-
:where(.timeline-horizontal hr):last-child {
|
|
23758
|
+
:where(.timeline-horizontal > li > hr):last-child {
|
|
23682
23759
|
grid-column-start: 3;
|
|
23683
23760
|
grid-row-start: 2}
|
|
23684
23761
|
.timeline-horizontal .timeline-start {
|
|
@@ -23695,7 +23772,7 @@ details.collapse summary::-webkit-details-marker {
|
|
|
23695
23772
|
grid-row-end: 4;
|
|
23696
23773
|
align-self: flex-start;
|
|
23697
23774
|
justify-self: center}
|
|
23698
|
-
.timeline-horizontal.timeline-snap-icon li {
|
|
23775
|
+
.timeline-horizontal.timeline-snap-icon > li {
|
|
23699
23776
|
--timeline-col-start: 0.5rem}
|
|
23700
23777
|
:where(.toast) {
|
|
23701
23778
|
bottom: 0px;
|
|
@@ -24102,46 +24179,46 @@ details.collapse summary::-webkit-details-marker {
|
|
|
24102
24179
|
padding-right: 1.5rem;
|
|
24103
24180
|
padding-top: 1rem;
|
|
24104
24181
|
padding-bottom: 1rem}
|
|
24105
|
-
.timeline-vertical hr {
|
|
24182
|
+
.timeline-vertical > li > hr {
|
|
24106
24183
|
width: 0.25rem}
|
|
24107
|
-
:where(.timeline-vertical:has(.timeline-middle) hr):first-child {
|
|
24184
|
+
:where(.timeline-vertical:has(.timeline-middle) > li > hr):first-child {
|
|
24108
24185
|
border-bottom-right-radius: var(--rounded-badge, 1.9rem);
|
|
24109
24186
|
border-bottom-left-radius: var(--rounded-badge, 1.9rem);
|
|
24110
24187
|
border-top-left-radius: 0px;
|
|
24111
24188
|
border-top-right-radius: 0px}
|
|
24112
|
-
:where(.timeline-vertical:has(.timeline-middle) hr):last-child {
|
|
24189
|
+
:where(.timeline-vertical:has(.timeline-middle) > li > hr):last-child {
|
|
24113
24190
|
border-top-left-radius: var(--rounded-badge, 1.9rem);
|
|
24114
24191
|
border-top-right-radius: var(--rounded-badge, 1.9rem);
|
|
24115
24192
|
border-bottom-right-radius: 0px;
|
|
24116
24193
|
border-bottom-left-radius: 0px}
|
|
24117
|
-
:where(.timeline-vertical:not(:has(.timeline-middle)) :first-child hr:last-child) {
|
|
24194
|
+
:where(.timeline-vertical:not(:has(.timeline-middle)) :first-child > hr:last-child) {
|
|
24118
24195
|
border-top-left-radius: var(--rounded-badge, 1.9rem);
|
|
24119
24196
|
border-top-right-radius: var(--rounded-badge, 1.9rem);
|
|
24120
24197
|
border-bottom-right-radius: 0px;
|
|
24121
24198
|
border-bottom-left-radius: 0px}
|
|
24122
|
-
:where(.timeline-vertical:not(:has(.timeline-middle)) :last-child hr:first-child) {
|
|
24199
|
+
:where(.timeline-vertical:not(:has(.timeline-middle)) :last-child > hr:first-child) {
|
|
24123
24200
|
border-bottom-right-radius: var(--rounded-badge, 1.9rem);
|
|
24124
24201
|
border-bottom-left-radius: var(--rounded-badge, 1.9rem);
|
|
24125
24202
|
border-top-left-radius: 0px;
|
|
24126
24203
|
border-top-right-radius: 0px}
|
|
24127
|
-
.timeline-horizontal hr {
|
|
24204
|
+
.timeline-horizontal > li > hr {
|
|
24128
24205
|
height: 0.25rem}
|
|
24129
|
-
:where(.timeline-horizontal:has(.timeline-middle) hr):first-child {
|
|
24206
|
+
:where(.timeline-horizontal:has(.timeline-middle) > li > hr):first-child {
|
|
24130
24207
|
border-start-end-radius: var(--rounded-badge, 1.9rem);
|
|
24131
24208
|
border-end-end-radius: var(--rounded-badge, 1.9rem);
|
|
24132
24209
|
border-start-start-radius: 0px;
|
|
24133
24210
|
border-end-start-radius: 0px}
|
|
24134
|
-
:where(.timeline-horizontal:has(.timeline-middle) hr):last-child {
|
|
24211
|
+
:where(.timeline-horizontal:has(.timeline-middle) > li > hr):last-child {
|
|
24135
24212
|
border-start-start-radius: var(--rounded-badge, 1.9rem);
|
|
24136
24213
|
border-end-start-radius: var(--rounded-badge, 1.9rem);
|
|
24137
24214
|
border-start-end-radius: 0px;
|
|
24138
24215
|
border-end-end-radius: 0px}
|
|
24139
|
-
:where(.timeline-horizontal:not(:has(.timeline-middle)) :first-child hr:last-child) {
|
|
24216
|
+
:where(.timeline-horizontal:not(:has(.timeline-middle)) :first-child > hr:last-child) {
|
|
24140
24217
|
border-start-start-radius: var(--rounded-badge, 1.9rem);
|
|
24141
24218
|
border-end-start-radius: var(--rounded-badge, 1.9rem);
|
|
24142
24219
|
border-start-end-radius: 0px;
|
|
24143
24220
|
border-end-end-radius: 0px}
|
|
24144
|
-
:where(.timeline-horizontal:not(:has(.timeline-middle)) :last-child hr:first-child) {
|
|
24221
|
+
:where(.timeline-horizontal:not(:has(.timeline-middle)) :last-child > hr:first-child) {
|
|
24145
24222
|
border-start-end-radius: var(--rounded-badge, 1.9rem);
|
|
24146
24223
|
border-end-end-radius: var(--rounded-badge, 1.9rem);
|
|
24147
24224
|
border-start-start-radius: 0px;
|
package/dist/styled.css
CHANGED
|
@@ -378,6 +378,65 @@
|
|
|
378
378
|
white-space: pre;
|
|
379
379
|
top: calc(var(--value) * -1em);
|
|
380
380
|
}
|
|
381
|
+
.diff {
|
|
382
|
+
position: relative;
|
|
383
|
+
display: grid;
|
|
384
|
+
overflow: hidden;
|
|
385
|
+
container-type: inline-size;
|
|
386
|
+
grid-template-columns: auto 1fr
|
|
387
|
+
}
|
|
388
|
+
.diff-resizer {
|
|
389
|
+
position: relative;
|
|
390
|
+
top: 50%;
|
|
391
|
+
z-index: 1;
|
|
392
|
+
height: 3rem;
|
|
393
|
+
width: 25rem;
|
|
394
|
+
min-width: 1rem;
|
|
395
|
+
max-width: calc(100cqi - 1rem);
|
|
396
|
+
resize: horizontal;
|
|
397
|
+
overflow: hidden;
|
|
398
|
+
opacity: 0;
|
|
399
|
+
transform-origin: 100% 100%;
|
|
400
|
+
scale: 4;
|
|
401
|
+
translate: 1.5rem -1.5rem;
|
|
402
|
+
clip-path: inset(calc(100% - 0.75rem) 0 0 calc(100% - 0.75rem))
|
|
403
|
+
}
|
|
404
|
+
.diff-resizer,
|
|
405
|
+
.diff-item-1,
|
|
406
|
+
.diff-item-2 {
|
|
407
|
+
position: relative;
|
|
408
|
+
grid-column-start: 1;
|
|
409
|
+
grid-row-start: 1
|
|
410
|
+
}
|
|
411
|
+
.diff-item-1:after {
|
|
412
|
+
pointer-events: none;
|
|
413
|
+
position: absolute;
|
|
414
|
+
bottom: 0px;
|
|
415
|
+
right: 1px;
|
|
416
|
+
top: 50%;
|
|
417
|
+
z-index: 1;
|
|
418
|
+
height: 2rem;
|
|
419
|
+
width: 2rem;
|
|
420
|
+
--tw-content: '';
|
|
421
|
+
content: var(--tw-content);
|
|
422
|
+
translate: 50% -50%
|
|
423
|
+
}
|
|
424
|
+
.diff-item-2 {
|
|
425
|
+
overflow: hidden
|
|
426
|
+
}
|
|
427
|
+
.diff-item-1 > *,
|
|
428
|
+
.diff-item-2 > * {
|
|
429
|
+
pointer-events: none;
|
|
430
|
+
position: absolute;
|
|
431
|
+
bottom: 0px;
|
|
432
|
+
left: 0px;
|
|
433
|
+
top: 0px;
|
|
434
|
+
height: 100%;
|
|
435
|
+
width: 100cqi;
|
|
436
|
+
max-width: none;
|
|
437
|
+
object-fit: cover;
|
|
438
|
+
object-position: center
|
|
439
|
+
}
|
|
381
440
|
.divider {
|
|
382
441
|
display: flex;
|
|
383
442
|
flex-direction: row;
|
|
@@ -1169,35 +1228,35 @@ input.tab:checked + .tab-content,
|
|
|
1169
1228
|
position: relative;
|
|
1170
1229
|
display: flex;
|
|
1171
1230
|
}
|
|
1172
|
-
:where(.timeline li) {
|
|
1231
|
+
:where(.timeline > li) {
|
|
1173
1232
|
position: relative;
|
|
1174
1233
|
display: grid;
|
|
1175
1234
|
align-items: center;
|
|
1176
1235
|
grid-template-rows: var(--timeline-row-start, 1fr) auto var(--timeline-row-end, 1fr);
|
|
1177
1236
|
grid-template-columns: var(--timeline-col-start, 1fr) auto var(--timeline-col-end, 1fr);
|
|
1178
1237
|
}
|
|
1179
|
-
:where(.timeline:not(:has(.timeline-start)) li) {
|
|
1238
|
+
:where(.timeline:not(:has(.timeline-start)) > li) {
|
|
1180
1239
|
--timeline-row-start: min-content;
|
|
1181
1240
|
}
|
|
1182
|
-
:where(.timeline:not(:has(.timeline-end)) li) {
|
|
1241
|
+
:where(.timeline:not(:has(.timeline-end)) > li) {
|
|
1183
1242
|
--timeline-row-end: min-content;
|
|
1184
1243
|
}
|
|
1185
1244
|
:where(.timeline:not(:has(.timeline-start)):not(:has(.timeline-end)) li) {
|
|
1186
1245
|
--timeline-row-start: min-content;
|
|
1187
1246
|
--timeline-row-end: min-content;
|
|
1188
1247
|
}
|
|
1189
|
-
.timeline hr {
|
|
1248
|
+
.timeline > li > hr {
|
|
1190
1249
|
width: 100%;
|
|
1191
1250
|
border-width: 0px;
|
|
1192
1251
|
}
|
|
1193
|
-
.timeline-snap-icon li {
|
|
1252
|
+
.timeline-snap-icon > li {
|
|
1194
1253
|
--timeline-col-start: 0.5rem;
|
|
1195
1254
|
}
|
|
1196
|
-
:where(.timeline hr):first-child {
|
|
1255
|
+
:where(.timeline > li > hr):first-child {
|
|
1197
1256
|
grid-column-start: 1;
|
|
1198
1257
|
grid-row-start: 2;
|
|
1199
1258
|
}
|
|
1200
|
-
:where(.timeline hr):last-child {
|
|
1259
|
+
:where(.timeline > li > hr):last-child {
|
|
1201
1260
|
grid-column-start: 3;
|
|
1202
1261
|
grid-row-start: 2;
|
|
1203
1262
|
}
|
|
@@ -2531,6 +2590,27 @@ details.collapse summary {
|
|
|
2531
2590
|
text-align: center;
|
|
2532
2591
|
transition: all 1s cubic-bezier(1, 0, 0, 1);
|
|
2533
2592
|
}
|
|
2593
|
+
.diff-item-1:after {
|
|
2594
|
+
border-radius: 9999px;
|
|
2595
|
+
border-width: 2px;
|
|
2596
|
+
--tw-border-opacity: 1;
|
|
2597
|
+
border-color: oklch(var(--b1) / var(--tw-border-opacity));
|
|
2598
|
+
background-color: oklch(var(--b1) / 0.5);
|
|
2599
|
+
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
2600
|
+
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
2601
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2602
|
+
outline-style: solid;
|
|
2603
|
+
outline-offset: -3px;
|
|
2604
|
+
outline-color: oklch(var(--bc) / 0.05);
|
|
2605
|
+
--tw-backdrop-blur: blur(8px);
|
|
2606
|
+
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
2607
|
+
translate: 50% -50%
|
|
2608
|
+
}
|
|
2609
|
+
.diff-item-2 {
|
|
2610
|
+
border-right-width: 2px;
|
|
2611
|
+
--tw-border-opacity: 1;
|
|
2612
|
+
border-color: oklch(var(--b1) / var(--tw-border-opacity))
|
|
2613
|
+
}
|
|
2534
2614
|
.divider {
|
|
2535
2615
|
margin-top: 1rem;
|
|
2536
2616
|
margin-bottom: 1rem;
|
|
@@ -4512,10 +4592,18 @@ details.collapse summary {
|
|
|
4512
4592
|
background-image: var(--radius-end);
|
|
4513
4593
|
background-position: top right;
|
|
4514
4594
|
}
|
|
4595
|
+
[dir="rtl"] .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):first-child:before, [dir="rtl"] .tab-lifted:is(input:checked):first-child:before {
|
|
4596
|
+
background-image: var(--radius-start);
|
|
4597
|
+
background-position: top left;
|
|
4598
|
+
}
|
|
4515
4599
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled]):last-child:before, .tab-lifted:is(input:checked):last-child:before {
|
|
4516
4600
|
background-image: var(--radius-start);
|
|
4517
4601
|
background-position: top left;
|
|
4518
4602
|
}
|
|
4603
|
+
[dir="rtl"] .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):last-child:before, [dir="rtl"] .tab-lifted:is(input:checked):last-child:before {
|
|
4604
|
+
background-image: var(--radius-end);
|
|
4605
|
+
background-position: top right;
|
|
4606
|
+
}
|
|
4519
4607
|
.tab-lifted.tab-active:not(.tab-disabled):not([disabled])
|
|
4520
4608
|
+ .tab-lifted.tab-active:not(.tab-disabled):not([disabled]):before, .tab-lifted:is(input:checked) + .tab-lifted:is(input:checked):before {
|
|
4521
4609
|
background-image: var(--radius-end);
|