File tree Expand file tree Collapse file tree 4 files changed +74
-8
lines changed Expand file tree Collapse file tree 4 files changed +74
-8
lines changed Original file line number Diff line number Diff line change 1
1
export const utilityTypes = `
2
- type ModalCallback = {
2
+ export type ModalCallback = {
3
3
trigger: Element | null
4
4
modal: HTMLElement
5
5
}
6
6
7
- type Modal = {
7
+ export type Modal = {
8
8
trigger: string
9
9
modal: string
10
10
onOpen?: (args: ModalCallback) => unknown
11
11
onClose?: (args: ModalCallback) => unknown
12
12
}
13
13
14
- type PopoverPosition = 'top'
14
+ export type PopoverPosition = 'top'
15
15
| 'top-start'
16
16
| 'top-end'
17
17
| 'left'
@@ -24,13 +24,13 @@ type PopoverPosition = 'top'
24
24
| 'bottom-start'
25
25
| 'bottom-end'
26
26
27
- type PopoverCallback = {
27
+ export type PopoverCallback = {
28
28
trigger: HTMLElement
29
29
popover: HTMLElement
30
30
position: PopoverPosition | undefined
31
31
}
32
32
33
- type Popover = {
33
+ export type Popover = {
34
34
trigger: string
35
35
popover: string
36
36
position?: PopoverPosition
@@ -40,7 +40,7 @@ type Popover = {
40
40
onClose?: (args: PopoverCallback) => unknown
41
41
}
42
42
43
- type Toast = {
43
+ export type Toast = {
44
44
element: string
45
45
timeout?: number
46
46
title?: string
Original file line number Diff line number Diff line change @@ -49,5 +49,45 @@ import Card from '@components/Card/Card.astro'
49
49
</figcaption >
50
50
</figure >
51
51
</div >
52
+
53
+ <h2 class =" reset" >Other ways to configure CSS</h2 >
54
+
55
+ <p >You can use the following options in your <code >setup</code > mixin to further configure your CSS.</p >
56
+
57
+ <table >
58
+ <thead >
59
+ <tr >
60
+ <th >Option</th >
61
+ <th >Default value</th >
62
+ <th >Purpose</th >
63
+ </tr >
64
+ </thead >
65
+ <tbody >
66
+ <tr >
67
+ <td ><code >includeResets</code ></td >
68
+ <td ><code >true</code ></td >
69
+ <td >
70
+ Include reset styles for native HTML elements.
71
+ </td >
72
+ </tr >
73
+ <tr >
74
+ <td ><code >includeUtilities</code ></td >
75
+ <td ><code >true</code ></td >
76
+ <td >
77
+ Adds utility classes for CSS.
78
+ </td >
79
+ </tr >
80
+ <tr >
81
+ <td ><code >includeTooltip</code ></td >
82
+ <td ><code >true</code ></td >
83
+ <td >Adds global styles for tooltips.</td >
84
+ </tr >
85
+ <tr >
86
+ <td ><code >includeScrollbarStyles</code ></td >
87
+ <td ><code >true</code ></td >
88
+ <td >Adds global styles for scrollbars.</td >
89
+ </tr >
90
+ </tbody >
91
+ </table >
52
92
</Card >
53
93
</Layout >
Original file line number Diff line number Diff line change 103
103
@include border (0 );
104
104
@include background (primary- 50);
105
105
}
106
+
107
+ table {
108
+ @include size (' w100%' );
109
+ @include typography (left );
110
+
111
+ border-collapse : collapse ;
112
+ }
113
+
114
+ thead ,
115
+ tfoot {
116
+ @include typography (bold );
117
+ }
118
+
119
+ th ,
120
+ td {
121
+ @include spacing (py- xs, px- sm);
122
+ }
123
+
124
+ thead ,
125
+ tr {
126
+ @include border (bottom , primary- 50);
127
+
128
+ & :last-child {
129
+ @include border (bottom , 0 );
130
+ }
131
+ }
106
132
}
Original file line number Diff line number Diff line change @@ -91,13 +91,13 @@ const externalLinks = [
91
91
margin-bottom: 100px;
92
92
}
93
93
94
- h1 {
94
+ h1:not(.reset) {
95
95
margin: 100px 0 10px;
96
96
font-size: 48px;
97
97
text-align: center;
98
98
}
99
99
100
- h2 {
100
+ h2:not(.reset) {
101
101
color: var(--w-color-primary-10);
102
102
font-family: Regular;
103
103
font-weight: 400;
You can’t perform that action at this time.
0 commit comments