@nys-cui/cui-formpill 0.2.10 → 0.2.20
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/component-base/README.md +43 -0
- package/component-base/cui.jsonc +6 -0
- package/component-base/package.json +42 -0
- package/component-base/src/assets/scss/_button-menu.scss +270 -0
- package/component-base/src/assets/scss/_buttons.scss +200 -0
- package/component-base/src/assets/scss/_cui-asof.scss +86 -0
- package/component-base/src/assets/scss/_cui-formpill.scss +284 -0
- package/component-base/src/assets/scss/_cui-general.scss +19 -0
- package/component-base/src/assets/scss/_cui-message.scss +119 -0
- package/component-base/src/assets/scss/_cui-spinner.scss +27 -0
- package/component-base/src/assets/scss/_cui-tree.scss +136 -0
- package/component-base/src/assets/scss/_cui-widget.scss +128 -0
- package/component-base/src/assets/scss/_field-check-group.scss +296 -0
- package/component-base/src/assets/scss/_field-radio-group.scss +236 -0
- package/component-base/src/assets/scss/_fonts.scss +20 -0
- package/component-base/src/assets/scss/_globalNotes.scss +419 -0
- package/component-base/src/assets/scss/_grid.scss +489 -0
- package/component-base/src/assets/scss/_help.scss +46 -0
- package/component-base/src/assets/scss/_inputs.scss +1145 -0
- package/component-base/src/assets/scss/_modal.scss +56 -0
- package/component-base/src/assets/scss/_normalize.scss +3 -0
- package/component-base/src/assets/scss/_popovers.scss +119 -0
- package/component-base/src/assets/scss/_quick_lookup.scss +87 -0
- package/component-base/src/assets/scss/_sidebar-context.scss +896 -0
- package/component-base/src/assets/scss/_table.scss +702 -0
- package/component-base/src/assets/scss/_toast.scss +219 -0
- package/component-base/src/assets/scss/_utility.scss +64 -0
- package/component-base/src/assets/scss/_variables.scss +58 -0
- package/component-base/src/assets/scss/main.scss +451 -0
- package/component-base/src/assets/scss/normalize/_import-now.scss +11 -0
- package/component-base/src/assets/scss/normalize/_normalize-mixin.scss +570 -0
- package/component-base/src/assets/scss/normalize/_variables.scss +37 -0
- package/component-base/src/assets/scss/normalize/_vertical-rhythm.scss +63 -0
- package/component-base/src/assets/scss/readme.md +1 -0
- package/component-base/src/modules/dom.js +21 -0
- package/component-base/src/screens/index/cui.jsonc +3 -0
- package/component-base/src/screens/index/index.js +228 -0
- package/component-base/src/screens/index/index.tpl.html +32 -0
- package/component-base/src/spa.js +117 -0
- package/package.json +1 -1
- package/src/cui-formpill.js +452 -1000
@@ -0,0 +1,43 @@
|
|
1
|
+
## Creating a new component repository
|
2
|
+
|
3
|
+
The top-level folder that should be checked into the git repository should be named after the component with the cui- prefix. For instance, for the widget component, the top-level folder should be cui-widget. Within that folder should be two folders: src for the code specific to the component, and a local copy of this spa base project.
|
4
|
+
|
5
|
+
The top-level folder should also copy the files from the 'for-component' folder in this repository. The copied files should then be edited to replace any instance of [COMPONENT] with the name of the newly developed component. It is also suggested that a description is written in the package.json file. Once these files are copied, the for-component folder is no longer necessary and may be deleted.
|
6
|
+
|
7
|
+
```
|
8
|
+
[component directory]
|
9
|
+
├── src
|
10
|
+
├── component-base (this repo locally copied)
|
11
|
+
│ ├── src
|
12
|
+
│ │ ├── ... (details of src content not necessary)
|
13
|
+
│ ├── cui.jsonc
|
14
|
+
│ ├── package.json
|
15
|
+
| └── README.md
|
16
|
+
├── .gitignore )
|
17
|
+
├── cui.jsonc } moved from the deleted for-component folder
|
18
|
+
└── package.json )
|
19
|
+
```
|
20
|
+
|
21
|
+
## Creating a component
|
22
|
+
|
23
|
+
It is recommended to use the following page of our documentation for assistance in creating a new component: https://tax-qa.tax.ny.gov/training/ui/CUI/guide/project-structure/component/
|
24
|
+
|
25
|
+
## Building & registering the component
|
26
|
+
|
27
|
+
Once the web component is ready to be tested in an spa environment, the command "npm run build" should be run on the top-level component directory in the terminal. This should create a 'dist' folder in the top-level component directory that contains another component.js file.
|
28
|
+
|
29
|
+
Within this spa base project, the developer should then go from the 'src' folder to 'spa.js'. Within that file are two commented out lines to be used as templates to import the component.
|
30
|
+
|
31
|
+
`import [COMPONENT] from '../../dist/js/[component].js';`
|
32
|
+
`[COMPONENT]` should be replaced with the name of the component's class, `[component]` should be replaced with the same case as the filename in the dist folder.
|
33
|
+
|
34
|
+
`customElements.define('[component]', [COMPONENT]);`
|
35
|
+
`[component]` here should be replaced with how the developer intends the tag to be formatted when used in html, while `[COMPONENT]` should match `[COMPONENT]` from the previously documented line.
|
36
|
+
|
37
|
+
## Running the base project
|
38
|
+
|
39
|
+
Once that's done, open a terminal on this spa base project directory, run the command 'npm install' to get the latest version of our spa app class, then the command 'cui -d -w' to run the spa base project on http://localhost:4080. For more information on our CUI CLI, please read about installing it here https://tax-qa.tax.ny.gov/training/ui/CUI/guide/getting-started/cui-cli/ and details of runner parameters here https://tax-qa.tax.ny.gov/training/ui/CUI/guide/getting-started/working-with-coreui/
|
40
|
+
|
41
|
+
The developer should not be able to add instances of their component to their index page (located in the spa base project's src -> screens -> index folder), which should be used for comprehensive testing of the component's features or link to additional pages created to test categories of features for larget components.
|
42
|
+
|
43
|
+
For additional guidance by way of seeing this setup for a specific component, please refer to the cui-widget component project structure found here https://nyssc.svc.ny.gov/DTF/ui/cui2-components/cui-widget
|
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"name": "component-test-base-widget",
|
3
|
+
"description": "Component Test Base - Widget",
|
4
|
+
"version": "0.0.1",
|
5
|
+
"dependencies": {
|
6
|
+
"@nys-cui/cui-asof": "latest",
|
7
|
+
"@nys-cui/cui-button": "latest",
|
8
|
+
"@nys-cui/cui-button-menu": "latest",
|
9
|
+
"@nys-cui/cui-dynamic-block": "latest",
|
10
|
+
"@nys-cui/cui-field": "latest",
|
11
|
+
"@nys-cui/cui-field-check-group": "latest",
|
12
|
+
"@nys-cui/cui-field-checkbox": "latest",
|
13
|
+
"@nys-cui/cui-field-file-upload": "latest",
|
14
|
+
"@nys-cui/cui-field-listbox": "latest",
|
15
|
+
"@nys-cui/cui-field-password": "latest",
|
16
|
+
"@nys-cui/cui-field-radio-group": "latest",
|
17
|
+
"@nys-cui/cui-field-select": "latest",
|
18
|
+
"@nys-cui/cui-field-text": "latest",
|
19
|
+
"@nys-cui/cui-field-text-date": "latest",
|
20
|
+
"@nys-cui/cui-field-textarea": "latest",
|
21
|
+
"@nys-cui/cui-form": "latest",
|
22
|
+
"@nys-cui/cui-formpill": "latest",
|
23
|
+
"@nys-cui/cui-help": "latest",
|
24
|
+
"@nys-cui/cui-hidden": "latest",
|
25
|
+
"@nys-cui/cui-icon": "latest",
|
26
|
+
"@nys-cui/cui-input-group": "latest",
|
27
|
+
"@nys-cui/cui-link": "latest",
|
28
|
+
"@nys-cui/cui-message": "latest",
|
29
|
+
"@nys-cui/cui-message-list": "latest",
|
30
|
+
"@nys-cui/cui-modal": "latest",
|
31
|
+
"@nys-cui/cui-notifier": "latest",
|
32
|
+
"@nys-cui/cui-popover": "latest",
|
33
|
+
"@nys-cui/cui-section": "latest",
|
34
|
+
"@nys-cui/cui-spa-app-class": "latest",
|
35
|
+
"@nys-cui/cui-spinner": "latest",
|
36
|
+
"@nys-cui/cui-table": "latest",
|
37
|
+
"@nys-cui/cui-tabs": "latest",
|
38
|
+
"@nys-cui/cui-toast": "latest",
|
39
|
+
"@nys-cui/cui-tree": "latest",
|
40
|
+
"@nys-cui/cui-widget": "latest"
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,270 @@
|
|
1
|
+
cui-button-menu {
|
2
|
+
display: flex;
|
3
|
+
cursor: pointer !important;
|
4
|
+
|
5
|
+
.accessible-hidden {
|
6
|
+
position: absolute !important;
|
7
|
+
width: 1px !important;
|
8
|
+
height: 1px !important;
|
9
|
+
padding: 0 !important;
|
10
|
+
margin: -1px !important;
|
11
|
+
overflow: hidden !important;
|
12
|
+
clip: rect(0, 0, 0, 0) !important;
|
13
|
+
white-space: nowrap !important;
|
14
|
+
border: 0 !important;
|
15
|
+
top: -1px;
|
16
|
+
}
|
17
|
+
|
18
|
+
button.button-menu-trigger {
|
19
|
+
|
20
|
+
position: relative;
|
21
|
+
background: #f6f3f4;
|
22
|
+
text-shadow: none;
|
23
|
+
font-size: 14px;
|
24
|
+
margin-top: 0;
|
25
|
+
border: 1px solid #a1a1a1;
|
26
|
+
border-radius: 5px;
|
27
|
+
color: #333;
|
28
|
+
cursor: pointer !important;
|
29
|
+
padding: 5px 15px;
|
30
|
+
display: flex;
|
31
|
+
align-items: center;
|
32
|
+
margin-left: 0 !important;
|
33
|
+
|
34
|
+
cui-icon {
|
35
|
+
svg {
|
36
|
+
width: 15px !important;
|
37
|
+
height: 15px !important;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.arrow-down {
|
42
|
+
width: 0px;
|
43
|
+
height: 0px;
|
44
|
+
border-left: 5px solid transparent;
|
45
|
+
border-right: 5px solid transparent;
|
46
|
+
border-top: 5px solid #A1A1A1;
|
47
|
+
margin-left: 10px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.vertical {
|
51
|
+
height: 15px;
|
52
|
+
margin-left: 10px;
|
53
|
+
border-left: 1px solid #A1A1A1;
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
button-menu-popover:has(dialog) {
|
60
|
+
left: 0;
|
61
|
+
right: 0 !important;
|
62
|
+
top: 0 !important;
|
63
|
+
display: flex !important;
|
64
|
+
|
65
|
+
.dialog-popover-contents {
|
66
|
+
max-height: 90%;
|
67
|
+
width: 90%;
|
68
|
+
overflow: hidden;
|
69
|
+
z-index: 100;
|
70
|
+
border: 0;
|
71
|
+
border-radius: 5px;
|
72
|
+
|
73
|
+
header {
|
74
|
+
display: flex;
|
75
|
+
background: #fff;
|
76
|
+
border: 1;
|
77
|
+
border-radius: 32px;
|
78
|
+
|
79
|
+
span {
|
80
|
+
flex: 1;
|
81
|
+
border-radius: 32px;
|
82
|
+
color: #a1a1a1;
|
83
|
+
display: inline-flex;
|
84
|
+
font-size: 1.5em;
|
85
|
+
font-weight: 400;
|
86
|
+
height: 32px;
|
87
|
+
width: 32px;
|
88
|
+
justify-content: center;
|
89
|
+
flex-direction: column;
|
90
|
+
|
91
|
+
&:hover {
|
92
|
+
background: #EFEFEF;
|
93
|
+
color: #787878;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.dialog-close {
|
98
|
+
background-color: var(--cui-field-size-datapicker-btns-bcg-color);
|
99
|
+
border-color: var(--cui-field-size-datapicker-btns-brd-color);
|
100
|
+
width: var(--cui-field-size-nextprev-button-wdt);
|
101
|
+
height: var(--cui-field-size-nextprev-button-hgt);
|
102
|
+
margin: 0;
|
103
|
+
padding: 0;
|
104
|
+
box-sizing: border-box;
|
105
|
+
order: 4;
|
106
|
+
margin-left: auto;
|
107
|
+
border: 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
button {
|
111
|
+
flex: 0 1 50px;
|
112
|
+
position: relative;
|
113
|
+
font-size: 16px;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&::backdrop {
|
118
|
+
background: rgba(0, 0, 0, 0.5);
|
119
|
+
}
|
120
|
+
|
121
|
+
cui-button {
|
122
|
+
margin-left: 3px;
|
123
|
+
margin-right: 3px;
|
124
|
+
padding-left: 5px;
|
125
|
+
padding-right: 5px;
|
126
|
+
padding-top: 2px;
|
127
|
+
padding-bottom: 2px;
|
128
|
+
display: flex;
|
129
|
+
|
130
|
+
button {
|
131
|
+
text-align: left;
|
132
|
+
background: none;
|
133
|
+
border: none;
|
134
|
+
padding: 0;
|
135
|
+
margin: 0 !important;
|
136
|
+
padding: 5px 30px 5px 5px;
|
137
|
+
width: 100%;
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
&:hover {
|
142
|
+
background-color: #EBEBEB;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
cui-link {
|
147
|
+
margin-left: 3px;
|
148
|
+
margin-right: 3px;
|
149
|
+
padding-left: 5px;
|
150
|
+
padding-right: 5px;
|
151
|
+
padding-top: 2px;
|
152
|
+
padding-bottom: 2px;
|
153
|
+
|
154
|
+
display: flex;
|
155
|
+
|
156
|
+
a {
|
157
|
+
text-align: left;
|
158
|
+
margin: 0 !important;
|
159
|
+
padding: 5px 30px 5px 5px;
|
160
|
+
width: 100%;
|
161
|
+
}
|
162
|
+
|
163
|
+
&:hover {
|
164
|
+
background-color: #EBEBEB;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
&.show {
|
171
|
+
display: block;
|
172
|
+
}
|
173
|
+
|
174
|
+
ul {
|
175
|
+
list-style-type: none;
|
176
|
+
padding: 0;
|
177
|
+
margin: 0;
|
178
|
+
|
179
|
+
li {
|
180
|
+
border-bottom: 0.5px solid #EBEBEB;
|
181
|
+
|
182
|
+
&:last-child {
|
183
|
+
border-bottom: none;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
button-menu-popover {
|
192
|
+
position: absolute;
|
193
|
+
|
194
|
+
&.button-menu {
|
195
|
+
|
196
|
+
position: absolute;
|
197
|
+
display: flex;
|
198
|
+
|
199
|
+
.popover-contents {
|
200
|
+
z-index: 20;
|
201
|
+
background-color: #FFF;
|
202
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
203
|
+
width: auto;
|
204
|
+
// max-width: 85%;
|
205
|
+
border-radius: 2px;
|
206
|
+
flex-direction: column;
|
207
|
+
justify-content: center;
|
208
|
+
display: block;
|
209
|
+
margin-top: -5px;
|
210
|
+
|
211
|
+
cui-button {
|
212
|
+
margin-left: 3px;
|
213
|
+
margin-right: 3px;
|
214
|
+
padding-left: 5px;
|
215
|
+
padding-right: 5px;
|
216
|
+
padding-top: 2px;
|
217
|
+
padding-bottom: 2px;
|
218
|
+
border-bottom: 0.5px solid #EBEBEB;
|
219
|
+
display: flex;
|
220
|
+
|
221
|
+
button {
|
222
|
+
text-align: left;
|
223
|
+
background: none;
|
224
|
+
border: none;
|
225
|
+
padding: 0;
|
226
|
+
margin: 0 !important;
|
227
|
+
padding: 10px 30px 10px 5px;
|
228
|
+
width: 95%;
|
229
|
+
}
|
230
|
+
|
231
|
+
&:hover {
|
232
|
+
background-color: #EBEBEB;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
cui-link {
|
237
|
+
margin-left: 3px;
|
238
|
+
margin-right: 3px;
|
239
|
+
padding-left: 5px;
|
240
|
+
padding-right: 5px;
|
241
|
+
padding-top: 2px;
|
242
|
+
padding-bottom: 2px;
|
243
|
+
border-bottom: 0.5px solid #EBEBEB;
|
244
|
+
display: flex;
|
245
|
+
|
246
|
+
a {
|
247
|
+
text-align: left;
|
248
|
+
margin: 0 !important;
|
249
|
+
padding: 10px 30px 10px 5px;
|
250
|
+
width: 95%;
|
251
|
+
}
|
252
|
+
|
253
|
+
&:hover {
|
254
|
+
background-color: #EBEBEB;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
&.show {
|
259
|
+
display: block;
|
260
|
+
}
|
261
|
+
|
262
|
+
ul {
|
263
|
+
list-style-type: none;
|
264
|
+
padding: 0;
|
265
|
+
margin: 0;
|
266
|
+
}
|
267
|
+
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
@@ -0,0 +1,200 @@
|
|
1
|
+
@use '_variables.scss';
|
2
|
+
|
3
|
+
button {
|
4
|
+
background: variables.$secondaryButtonBackground;
|
5
|
+
border: 1px solid variables.$secondaryButtonBorderColor;
|
6
|
+
border-radius: 5px;
|
7
|
+
color: variables.$secondaryButtonTextColor;
|
8
|
+
cursor: pointer;
|
9
|
+
margin-bottom: 15px;
|
10
|
+
padding: 5px 15px;
|
11
|
+
|
12
|
+
&.primary {
|
13
|
+
background: variables.$primaryButtonBackground;
|
14
|
+
color: variables.$primaryButtonTextColor;
|
15
|
+
}
|
16
|
+
|
17
|
+
&.caret{
|
18
|
+
|
19
|
+
border-radius: 0;
|
20
|
+
border: 1px solid variables.$black;
|
21
|
+
padding: 2px 2px 0px 2px;
|
22
|
+
background: white;
|
23
|
+
cui-icon{
|
24
|
+
|
25
|
+
svg{
|
26
|
+
|
27
|
+
width: 12px;
|
28
|
+
height: 12px;
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
&.right{
|
33
|
+
svg{
|
34
|
+
transform: rotate(-90deg);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&.left{
|
39
|
+
svg{
|
40
|
+
transform: rotate(90deg);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&.arrow{
|
47
|
+
background: rgba(0, 0, 0, 0);
|
48
|
+
border: 0;
|
49
|
+
margin-bottom:0;
|
50
|
+
cui-icon{
|
51
|
+
|
52
|
+
svg{
|
53
|
+
|
54
|
+
width: 12px;
|
55
|
+
height: 12px;
|
56
|
+
|
57
|
+
path{
|
58
|
+
fill: #a1a1a1;
|
59
|
+
}
|
60
|
+
|
61
|
+
}
|
62
|
+
}
|
63
|
+
&.next{
|
64
|
+
|
65
|
+
cui-icon{
|
66
|
+
svg{
|
67
|
+
transform: scaleX(-1);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
&.label-align{
|
72
|
+
margin-right: 4px;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
cui-button::part(control) {
|
78
|
+
background: variables.$secondaryButtonBackground;
|
79
|
+
border: 1px solid variables.$secondaryButtonBorderColor;
|
80
|
+
border-radius: 5px;
|
81
|
+
color: variables.$secondaryButtonTextColor;
|
82
|
+
cursor: pointer;
|
83
|
+
margin-bottom: 15px;
|
84
|
+
padding: 5px 15px;
|
85
|
+
}
|
86
|
+
|
87
|
+
cui-button[primary] button {
|
88
|
+
background: variables.$primaryButtonBackground;
|
89
|
+
color: variables.$primaryButtonTextColor;
|
90
|
+
}
|
91
|
+
|
92
|
+
cui-button {
|
93
|
+
&+cui-button {
|
94
|
+
margin-left: 10px;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
cui-button.table button {
|
99
|
+
background: none;
|
100
|
+
border: none;
|
101
|
+
margin: 0;
|
102
|
+
padding: 6px;
|
103
|
+
|
104
|
+
cui-icon svg {
|
105
|
+
width: 18px;
|
106
|
+
height: 18px;
|
107
|
+
}
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
cui-button.table-fake-link button {
|
112
|
+
background: none;
|
113
|
+
border: none;
|
114
|
+
margin: 0;
|
115
|
+
padding: 0px;
|
116
|
+
color: #397dbb
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
rpso-toggle-button {
|
121
|
+
|
122
|
+
button {
|
123
|
+
border: 1px solid variables.$secondaryButtonBorderColor;
|
124
|
+
border-radius: 5px;
|
125
|
+
cursor: pointer;
|
126
|
+
margin: 0;
|
127
|
+
padding: 5px 15px;
|
128
|
+
}
|
129
|
+
|
130
|
+
&.primary {
|
131
|
+
button {
|
132
|
+
border: 1px solid variables.$secondaryButtonBorderColor;
|
133
|
+
border-radius: 5px;
|
134
|
+
cursor: pointer;
|
135
|
+
padding: 5px 15px;
|
136
|
+
background: variables.$primaryButtonBackground;
|
137
|
+
color: variables.$primaryButtonTextColor;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
&.icon {
|
142
|
+
cursor: pointer;
|
143
|
+
align-items: center;
|
144
|
+
justify-content: center;
|
145
|
+
display: flex;
|
146
|
+
height: 30px;
|
147
|
+
padding-left: 15px;
|
148
|
+
padding-right: 15px;
|
149
|
+
padding-top: 3px;
|
150
|
+
|
151
|
+
button {
|
152
|
+
background: none;
|
153
|
+
border: none;
|
154
|
+
margin: 0;
|
155
|
+
padding: 0;
|
156
|
+
|
157
|
+
span.cui-hide-from-screen{
|
158
|
+
display: none;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
cui-icon {
|
163
|
+
|
164
|
+
svg {
|
165
|
+
width: 18px;
|
166
|
+
height: 18px;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
@media only screen and (max-width: 830px) {
|
173
|
+
button {
|
174
|
+
|
175
|
+
&.caret{
|
176
|
+
|
177
|
+
cui-icon{
|
178
|
+
|
179
|
+
svg{
|
180
|
+
|
181
|
+
width: 12px;
|
182
|
+
height: 12px;
|
183
|
+
|
184
|
+
}
|
185
|
+
|
186
|
+
&.right{
|
187
|
+
svg{
|
188
|
+
transform: none;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
&.left{
|
193
|
+
svg{
|
194
|
+
transform: rotate(180deg);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
cui-section cui-asof::part(asof-wrapper) {
|
2
|
+
padding-bottom: 20px;
|
3
|
+
}
|
4
|
+
|
5
|
+
rpso-pageinfo + cui-asof::part(asof-wrapper) {
|
6
|
+
padding-top: 15px;
|
7
|
+
}
|
8
|
+
|
9
|
+
cui-asof {
|
10
|
+
&::part(asof-label) {
|
11
|
+
display: flex;
|
12
|
+
justify-content: center;
|
13
|
+
padding: 0px 10px;
|
14
|
+
color: var(--page-title-color);
|
15
|
+
}
|
16
|
+
|
17
|
+
cui-button {
|
18
|
+
margin: unset;
|
19
|
+
|
20
|
+
button {
|
21
|
+
background: transparent;
|
22
|
+
border: none;
|
23
|
+
padding: unset;
|
24
|
+
margin: unset;
|
25
|
+
|
26
|
+
cui-icon {
|
27
|
+
svg {
|
28
|
+
height: 12px !important;
|
29
|
+
width: 12px !important;
|
30
|
+
fill: var(--page-title-icon-color);
|
31
|
+
}
|
32
|
+
|
33
|
+
&.flipped svg {
|
34
|
+
transform: scaleX(-1);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&:hover cui-icon svg {
|
39
|
+
fill: var(--page-icon-hover-color);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
&#first,
|
44
|
+
&[slot="first-button"] {
|
45
|
+
margin-right: 10px;
|
46
|
+
}
|
47
|
+
|
48
|
+
&#last,
|
49
|
+
&[slot="last-button"] {
|
50
|
+
margin-left: 10px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
@media screen and (max-width: 830px) {
|
56
|
+
cui-asof {
|
57
|
+
&::part(asof-wrapper) {
|
58
|
+
width: fit-content;
|
59
|
+
flex-wrap: wrap;
|
60
|
+
justify-content: space-around;
|
61
|
+
}
|
62
|
+
|
63
|
+
&::part(asof-label) {
|
64
|
+
width: 100%;
|
65
|
+
order: 1;
|
66
|
+
margin-bottom: 10px;
|
67
|
+
flex-basis: unset;
|
68
|
+
}
|
69
|
+
|
70
|
+
[slot="first-button"] {
|
71
|
+
order: 2;
|
72
|
+
}
|
73
|
+
|
74
|
+
[slot="prev-button"] {
|
75
|
+
order: 3;
|
76
|
+
}
|
77
|
+
|
78
|
+
[slot="next-button"] {
|
79
|
+
order: 4;
|
80
|
+
}
|
81
|
+
|
82
|
+
[slot="last-button"] {
|
83
|
+
order: 5;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|