disco_app 0.10.5 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/components/disco_app/buttons/model-destroy-button.es6.jsx +31 -0
  3. data/app/assets/components/disco_app/forms/model-form.es6.jsx +64 -0
  4. data/app/assets/components/embedded_app/bar.es6.jsx +31 -0
  5. data/app/assets/components/shopify/buttons/_buttons.scss +546 -0
  6. data/app/assets/{javascripts/disco_app/components/ui-kit/forms → components/shopify/buttons}/button.es6.jsx +0 -0
  7. data/app/assets/components/shopify/card/_card.scss +342 -0
  8. data/app/assets/components/shopify/card/card-header.es6.jsx +34 -0
  9. data/app/assets/{javascripts/disco_app/components/ui-kit/cards → components/shopify/card}/card-section.es6.jsx +9 -13
  10. data/app/assets/{javascripts/disco_app/components/ui-kit/cards → components/shopify/card}/card.es6.jsx +0 -0
  11. data/app/assets/components/shopify/typography/_typography.scss +23 -0
  12. data/app/assets/components/shopify/typography/ui-heading.es6.jsx +16 -0
  13. data/app/assets/{stylesheets/disco_app/ui-kit/_ui-empty-state.scss → components/shopify/ui-layout/_ui-layout.scss} +41 -5
  14. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-annotated-section.es6.jsx +0 -0
  15. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-empty-state.es6.jsx +0 -0
  16. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-footer-help.es6.jsx +0 -0
  17. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout-item.es6.jsx +0 -0
  18. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout-section.es6.jsx +0 -0
  19. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout-sections.es6.jsx +0 -0
  20. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-layout.es6.jsx +0 -0
  21. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-page-actions.es6.jsx +0 -0
  22. data/app/assets/{javascripts/disco_app/components/ui-kit → components/shopify}/ui-layout/ui-page-actions__buttons.es6.jsx +0 -0
  23. data/app/assets/{stylesheets/disco_app/ui-kit → components/shopify/ui-stack}/_ui-stack.scss +0 -0
  24. data/app/assets/components/shopify/ui-stack/ui-stack-item.es6.jsx +21 -0
  25. data/app/assets/components/shopify/ui-stack/ui-stack.es6.jsx +24 -0
  26. data/app/assets/javascripts/disco_app/components/ui-kit/forms/input-select.es6.jsx +1 -1
  27. data/app/assets/javascripts/disco_app/components/ui-kit/tables/table.es6.jsx +6 -1
  28. data/app/assets/javascripts/disco_app/components.js +1 -0
  29. data/app/assets/stylesheets/disco_app/disco_app.scss +7 -4
  30. data/app/helpers/disco_app/application_helper.rb +20 -2
  31. data/app/views/layouts/embedded_app.html.erb +10 -4
  32. data/lib/disco_app/version.rb +1 -1
  33. data/lib/generators/disco_app/disco_app_generator.rb +1 -1
  34. metadata +27 -22
  35. data/app/assets/javascripts/disco_app/components/ui-kit/cards/card-footer.es6.jsx +0 -11
  36. data/app/assets/javascripts/disco_app/components/ui-kit/cards/card-header.es6.jsx +0 -11
  37. data/app/assets/javascripts/disco_app/components/ui-kit/cards/cart-section-title.es6.jsx +0 -17
  38. data/app/assets/stylesheets/disco_app/ui-kit/_ui-footer-help.scss +0 -28
  39. data/app/assets/stylesheets/disco_app/ui-kit/_ui-page-actions.scss +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2699aebc167db360768aa4fa911174c22af550d15d9d3193d7748ce6a4dddf3
4
- data.tar.gz: d11b08a1f24ffb3a64d306f03dd84132297c20ea9c51ba86c73f5f5450b4fa33
3
+ metadata.gz: 893a4010d6048ec000968116ee29259c28743a5489626f7077f7264c36e1bafd
4
+ data.tar.gz: caf568c938697a64e4d8b0edc2affd1acf68eb1a44f1901b632c97b7ede4fa1a
5
5
  SHA512:
6
- metadata.gz: 79865fb4cb2da60159930b27830937634e40f10749866fafc27a5fd47af56fcb4343a199d93416df7edd398441b860e0531831a14d167078b8468729ad10e382
7
- data.tar.gz: 9edcce2afda59c4a59d850d9018b84ac645941dc1d330bc1ff1075b22c7c0324d9fdd249ae4b7ea9452b959d3f8c1cfb36d3b311c5f63e6b196e7395c395d24c
6
+ metadata.gz: ff59d830f2aed98994285e32b41597ae5cd150ac2deebc00fb0fcb481d80806e16688aa1b4a5f02e31aaab1acf3f9565ebc5bf32e77a230089b31a19c77110e2
7
+ data.tar.gz: b9652c159dc3342ed3e12421b4c2ec580e1525d545f56ceeb4466eae6dac9ecce4ecbf480cfa331f3ffb0e17ea29e5e50d5b67aaf1fad7ba1d41ea7b00552603
@@ -0,0 +1,31 @@
1
+ const ModelDestroyButton = ({ label, modelName, modelUrl, modelsUrl }) => {
2
+
3
+ const openModal = () => {
4
+ ShopifyApp.Modal.confirm({
5
+ title: 'Delete ' + modelName + '?',
6
+ message: 'Are you sure you want to delete this ' + modelName + '?',
7
+ okButton: 'Delete ' + modelName,
8
+ cancelButton: 'Cancel',
9
+ style: 'danger'
10
+ }, handleModalResult);
11
+ };
12
+
13
+ const handleModalResult = (result) => {
14
+ if(result) {
15
+ $.ajax({
16
+ url: modelUrl,
17
+ method: 'DELETE',
18
+ contentType: 'application/json',
19
+ dataType: 'json',
20
+ success: function() {
21
+ window.location.href = modelsUrl;
22
+ }
23
+ });
24
+ }
25
+ };
26
+
27
+ return (
28
+ <Button destroy={true} onClick={openModal}>{label}</Button>
29
+ );
30
+
31
+ };
@@ -0,0 +1,64 @@
1
+ class ModelForm extends BaseForm {
2
+
3
+ render() {
4
+ const { modelTitle, modelName, modelUrl, modelsUrl, children, authenticityToken } = this.props;
5
+ const errors = this.renderErrors();
6
+
7
+ return(
8
+ <form action={modelUrl ? modelUrl : modelsUrl} acceptCharset="UTF-8" method="POST" data-shopify-app-submit="ea.save">
9
+ <input type="hidden" name="utf8" value="✓"/>
10
+ <input type="hidden" name="_method" value={modelUrl ? 'patch' : 'post'} />
11
+ <input type="hidden" name="authenticity_token" value={authenticityToken}/>
12
+
13
+ {(() => {
14
+ if (!errors) return false;
15
+ return (
16
+ {errors}
17
+ );
18
+ })()}
19
+
20
+ {children}
21
+
22
+ <ModelFormEmbeddedAppBar modelTitle={modelTitle} modelsUrl={modelsUrl} />
23
+ <ModelFormPageActions modelName={modelName} modelUrl={modelUrl} modelsUrl={modelsUrl} />
24
+ </form>
25
+ )
26
+ }
27
+ }
28
+
29
+ const ModelFormEmbeddedAppBar = ({ modelTitle, modelsUrl }) => {
30
+ const buttons = {
31
+ primary: {
32
+ label: "Save",
33
+ message: "ea.save"
34
+ },
35
+ secondary: [{
36
+ label: "Cancel",
37
+ href: modelsUrl
38
+ }]
39
+ };
40
+
41
+ return (
42
+ <EmbeddedAppBar title={modelTitle} buttons={buttons} />
43
+ );
44
+ };
45
+
46
+ const ModelFormPageActions = ({ modelName, modelUrl, modelsUrl }) => {
47
+ const primary = [
48
+ <a href={modelsUrl} className="btn">Cancel</a>,
49
+ <Button type="submit" primary={true}>{'Save' + (modelUrl ? '' : ' ' + modelName)}</Button>
50
+ ];
51
+
52
+ const secondary = modelUrl ? [
53
+ <ModelDestroyButton
54
+ label={'Delete ' + modelName}
55
+ modelName={modelName}
56
+ modelUrl={modelUrl}
57
+ modelsUrl={modelsUrl}
58
+ />
59
+ ] : [];
60
+
61
+ return (
62
+ <UIPageActions primary={primary} secondary={secondary} />
63
+ );
64
+ };
@@ -0,0 +1,31 @@
1
+ class EmbeddedAppBar extends React.Component {
2
+
3
+ componentDidMount() {
4
+ const { title, icon, buttons, breadcrumb } = this.props;
5
+ ShopifyApp.Bar.initialize({
6
+ title: title || DiscoApp.INITIAL_TITLE,
7
+ icon: icon || DiscoApp.INITIAL_ICON,
8
+ buttons: buttons,
9
+ breadcrumb: breadcrumb
10
+ });
11
+ }
12
+
13
+ render() {
14
+ return null;
15
+ }
16
+
17
+ }
18
+
19
+ EmbeddedAppBar.propTypes = {
20
+ title: React.PropTypes.string,
21
+ icon: React.PropTypes.string,
22
+ buttons: React.PropTypes.object,
23
+ breadcrumbs: React.PropTypes.object
24
+ };
25
+
26
+ EmbeddedAppBar.defaultProps = {
27
+ title: undefined,
28
+ icon: undefined,
29
+ buttons: {},
30
+ breadcrumbs: undefined
31
+ };
@@ -0,0 +1,546 @@
1
+ .btn {
2
+ color: rgba(0,0,0,0.9);
3
+ font-size: 1.14286rem;
4
+ line-height: 1.71429rem;
5
+ font-weight: 400;
6
+ text-transform: initial;
7
+ letter-spacing: initial;
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ line-height: 1.14286rem;
11
+ box-sizing: border-box;
12
+ cursor: pointer;
13
+ display: inline-block;
14
+ padding: 9px 15px;
15
+ margin: 0;
16
+ border-radius: 3px;
17
+ height: auto;
18
+ white-space: nowrap;
19
+ text-transform: none;
20
+ font-family: inherit;
21
+ font-weight: normal;
22
+ position: relative;
23
+ vertical-align: middle;
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ -ms-user-select: none;
27
+ user-select: none;
28
+ -webkit-appearance: none;
29
+ -webkit-tap-highlight-color: transparent;
30
+ }
31
+
32
+ .btn-default, .btn {
33
+ background-color: #ffffff;
34
+ color: #0078bd;
35
+ border: 1px solid #d3dbe2;
36
+ }
37
+
38
+ .btn-default:hover, .btn:hover, .btn-default:focus, .btn:focus, .btn-default.focus, .focus.btn, .btn-default:active, .btn:active, .btn-default.active, .active.btn {
39
+ border: 1px solid #d3dbe2;
40
+ background-color: #f5f6f7;
41
+ color: #0078bd;
42
+ text-decoration: none;
43
+ }
44
+
45
+ .btn-default:active, .btn:active, .btn-default.active, .active.btn, .btn-default.rte-command-active, .rte-command-active.btn {
46
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) inset;
47
+ background: #f5f6f7;
48
+ }
49
+
50
+ .btn-primary {
51
+ background-color: #0078bd;
52
+ color: #ffffff;
53
+ border: 1px solid #0078bd;
54
+ }
55
+
56
+ .btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active {
57
+ border: 1px solid #0069a6;
58
+ background-color: #0069a6;
59
+ color: #ffffff;
60
+ text-decoration: none;
61
+ }
62
+
63
+ .btn-primary:active, .btn-primary.active, .btn-primary.rte-command-active {
64
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
65
+ background: #0069a6;
66
+ }
67
+
68
+ .btn-destroy {
69
+ background-color: #ffffff;
70
+ color: #0078bd;
71
+ border: 1px solid #d3dbe2;
72
+ }
73
+
74
+ .btn-destroy:hover, .btn-destroy:focus, .btn-destroy.focus, .btn-destroy:active, .btn-destroy.active {
75
+ border: 1px solid #d3dbe2;
76
+ background-color: #ff5d5d;
77
+ color: #0078bd;
78
+ text-decoration: none;
79
+ }
80
+
81
+ .btn-destroy:active, .btn-destroy.active, .btn-destroy.rte-command-active {
82
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
83
+ background: #ff5d5d;
84
+ }
85
+
86
+ .btn-destroy-no-hover {
87
+ background-color: #ff5d5d;
88
+ color: #ffffff;
89
+ border: 1px solid #ff5d5d;
90
+ }
91
+
92
+ .btn-destroy-no-hover:hover, .btn-destroy-no-hover:focus, .btn-destroy-no-hover.focus, .btn-destroy-no-hover:active, .btn-destroy-no-hover.active {
93
+ border: 1px solid #d83e3e;
94
+ background-color: #d83e3e;
95
+ color: #ffffff;
96
+ text-decoration: none;
97
+ }
98
+
99
+ .btn-destroy-no-hover:active, .btn-destroy-no-hover.active, .btn-destroy-no-hover.rte-command-active {
100
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
101
+ background: #d83e3e;
102
+ }
103
+
104
+ .btn-disabled {
105
+ background-color: #fafbfc;
106
+ color: #c3cfd8;
107
+ border: 1px solid #d3dbe2;
108
+ }
109
+
110
+ .btn-disabled:hover, .btn-disabled:focus, .btn-disabled.focus, .btn-disabled:active, .btn-disabled.active {
111
+ border: 1px solid #d3dbe2;
112
+ background-color: #fafbfc;
113
+ color: #c3cfd8;
114
+ text-decoration: none;
115
+ }
116
+
117
+ .btn-disabled:active, .btn-disabled.active, .btn-disabled.rte-command-active {
118
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) inset;
119
+ background: #fafbfc;
120
+ }
121
+
122
+ .btn-purchase {
123
+ background-color: #96bf48;
124
+ color: #ffffff;
125
+ border: 1px solid #96bf48;
126
+ }
127
+
128
+ .btn-purchase:hover, .btn-purchase:focus, .btn-purchase.focus, .btn-purchase:active, .btn-purchase.active {
129
+ border: 1px solid #7ba232;
130
+ background-color: #7ba232;
131
+ color: #ffffff;
132
+ text-decoration: none;
133
+ }
134
+
135
+ .btn-purchase:active, .btn-purchase.active, .btn-purchase.rte-command-active {
136
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
137
+ background: #7ba232;
138
+ }
139
+
140
+ .btn--facebook {
141
+ background-color: #3b5998;
142
+ color: #ffffff;
143
+ border: 1px solid #3b5998;
144
+ }
145
+
146
+ .btn--facebook:hover, .btn--facebook:focus, .btn--facebook.focus, .btn--facebook:active, .btn--facebook.active {
147
+ border: 1px solid #344e86;
148
+ background-color: #344e86;
149
+ color: #ffffff;
150
+ text-decoration: none;
151
+ }
152
+
153
+ .btn--facebook:active, .btn--facebook.active, .btn--facebook.rte-command-active {
154
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
155
+ background: #344e86;
156
+ }
157
+
158
+ .btn--twitter {
159
+ background-color: #55acee;
160
+ color: #ffffff;
161
+ border: 1px solid #55acee;
162
+ }
163
+
164
+ .btn--twitter:hover, .btn--twitter:focus, .btn--twitter.focus, .btn--twitter:active, .btn--twitter.active {
165
+ border: 1px solid #3ea1ec;
166
+ background-color: #3ea1ec;
167
+ color: #ffffff;
168
+ text-decoration: none;
169
+ }
170
+
171
+ .btn--twitter:active, .btn--twitter.active, .btn--twitter.rte-command-active {
172
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
173
+ background: #3ea1ec;
174
+ }
175
+
176
+ .btn-warning {
177
+ background-color: transparent;
178
+ color: #6f4f0c;
179
+ border: 1px solid #6f4f0c;
180
+ }
181
+
182
+ .btn-warning:hover, .btn-warning:focus, .btn-warning.focus, .btn-warning:active, .btn-warning.active {
183
+ border: 1px solid #6f4f0c;
184
+ background-color: rgba(111, 79, 12, 0.1);
185
+ color: #6f4f0c;
186
+ text-decoration: none;
187
+ }
188
+
189
+ .btn-warning:active, .btn-warning.active, .btn-warning.rte-command-active {
190
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
191
+ background: rgba(111, 79, 12, 0.1);
192
+ }
193
+
194
+ .btn--outline {
195
+ background-color: transparent;
196
+ color: #31373d;
197
+ border: 1px solid #31373d;
198
+ }
199
+
200
+ .btn--outline:hover, .btn--outline:focus, .btn--outline.focus, .btn--outline:active, .btn--outline.active {
201
+ border: 1px solid #31373d;
202
+ background-color: rgba(49, 55, 61, 0.1);
203
+ color: #31373d;
204
+ text-decoration: none;
205
+ }
206
+
207
+ .btn--outline:active, .btn--outline.active, .btn--outline.rte-command-active {
208
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) inset;
209
+ background: rgba(49, 55, 61, 0.1);
210
+ }
211
+
212
+ .btn.has-loading::before {
213
+ background-position: 50% 50% !important;
214
+ background-repeat: no-repeat !important;
215
+ content: "";
216
+ display: none;
217
+ height: 100%;
218
+ left: 0;
219
+ position: absolute;
220
+ top: 0;
221
+ width: 100%;
222
+ }
223
+
224
+ .btn:not(.btn-disabled).is-loading, .btn:not(.btn-disabled).is-loading:hover {
225
+ border: 1px solid #d3dbe2;
226
+ cursor: default;
227
+ color: transparent;
228
+ text-shadow: none;
229
+ }
230
+
231
+ .btn:not(.btn-disabled).is-loading::before, .btn:not(.btn-disabled).is-loading:hover::before {
232
+ display: block;
233
+ }
234
+
235
+ .btn:disabled {
236
+ cursor: default;
237
+ }
238
+
239
+ .btn::-moz-focus-inner {
240
+ border: 0;
241
+ padding: 0;
242
+ }
243
+
244
+ .btn .next-icon {
245
+ margin-top: -13px;
246
+ margin-bottom: -13px;
247
+ }
248
+
249
+ .btn .ico {
250
+ vertical-align: middle;
251
+ margin-top: -17px;
252
+ margin-bottom: -13px;
253
+ }
254
+
255
+ .btn.attached-to-right {
256
+ border-radius: 0 3px 3px 0;
257
+ position: relative;
258
+ left: -2px;
259
+ }
260
+
261
+ .btn-large {
262
+ font-size: 16px;
263
+ padding: 13px 30px;
264
+ margin: 15px 0;
265
+ }
266
+
267
+ .btn-slim {
268
+ padding: 6.5px 10px;
269
+ }
270
+
271
+ .btn-extra-slim {
272
+ font-size: 11px;
273
+ padding: 3.5px 6px;
274
+ }
275
+
276
+ .btn.btn--full-width {
277
+ width: 100%;
278
+ line-height: 1.3;
279
+ white-space: normal;
280
+ padding: 13px 15px;
281
+ }
282
+
283
+ .btn-destroy:hover, .btn-destroy:focus, .btn-destroy:active {
284
+ border: 1px solid #ff5d5d;
285
+ color: #ffffff;
286
+ }
287
+
288
+ .btn-disabled.btn-disabled,
289
+ input[type="submit"].btn-disabled,
290
+ .btn.disabled {
291
+ cursor: default;
292
+ box-shadow: none;
293
+ background: #fafbfc;
294
+ color: #c3cfd8;
295
+ border: 1px solid #d3dbe2;
296
+ }
297
+
298
+ .btn-disabled.btn-disabled.btn--outline,
299
+ input[type="submit"].btn-disabled.btn--outline,
300
+ .btn.disabled.btn--outline {
301
+ background: transparent;
302
+ color: #95a7b7;
303
+ border-color: #95a7b7;
304
+ }
305
+
306
+ .btn-more::before {
307
+ content: "•••";
308
+ text-indent: 0;
309
+ display: block;
310
+ font-size: 13px;
311
+ }
312
+
313
+ .btn-skip {
314
+ z-index: 226;
315
+ border-radius: 0;
316
+ left: 0;
317
+ min-width: 240px;
318
+ padding: 20px 0 !important;
319
+ text-align: center;
320
+ top: 0;
321
+ }
322
+
323
+ .btn--icon {
324
+ padding-left: 9px;
325
+ padding-right: 9px;
326
+ }
327
+
328
+ .btn--icon.btn-large {
329
+ padding-left: 13px;
330
+ padding-right: 13px;
331
+ }
332
+
333
+ .btn--icon.btn-slim {
334
+ padding-left: 7px;
335
+ padding-right: 7px;
336
+ }
337
+
338
+ .btn--icon--tiny {
339
+ padding: 1px;
340
+ }
341
+
342
+ .btn--plain,
343
+ .btn--link {
344
+ background-color: transparent !important;
345
+ border: none;
346
+ cursor: pointer;
347
+ color: #0078bd;
348
+ text-decoration: none;
349
+ vertical-align: initial;
350
+ }
351
+
352
+ .btn--plain:hover, .btn--plain:focus, .btn--plain:active,
353
+ .btn--link:hover,
354
+ .btn--link:focus,
355
+ .btn--link:active {
356
+ background: transparent;
357
+ box-shadow: none;
358
+ border: none;
359
+ }
360
+
361
+ .btn--plain:hover,
362
+ .btn--link:hover {
363
+ color: #0069a6;
364
+ text-decoration: underline;
365
+ }
366
+
367
+ .btn--link {
368
+ height: auto;
369
+ padding: 0;
370
+ line-height: 18px;
371
+ white-space: normal;
372
+ text-align: left;
373
+ }
374
+
375
+ .btn--plain--flush-right {
376
+ margin-right: -15px;
377
+ }
378
+
379
+ .btn--link.btn-disabled,
380
+ .btn--plain.btn-disabled {
381
+ border: none;
382
+ color: #c3cfd8;
383
+ }
384
+
385
+ .btn--link.btn-disabled:hover, .btn--link.btn-disabled:active, .btn--link.btn-disabled:focus,
386
+ .btn--plain.btn-disabled:hover,
387
+ .btn--plain.btn-disabled:active,
388
+ .btn--plain.btn-disabled:focus {
389
+ text-decoration: none;
390
+ }
391
+
392
+ .segmented {
393
+ padding: 0;
394
+ line-height: 22px;
395
+ font-size: 0;
396
+ margin: 0;
397
+ display: inline-block;
398
+ vertical-align: middle;
399
+ }
400
+
401
+ .segmented > li {
402
+ position: relative;
403
+ }
404
+
405
+ .segmented > li .btn {
406
+ display: inline-block;
407
+ position: static;
408
+ border-radius: 0px 0px 0px 0px;
409
+ border-left-width: 0 !important;
410
+ }
411
+
412
+ .segmented > li .btn.btn-primary {
413
+ border: 1px solid #0078bd;
414
+ border-right-color: #3e89b5;
415
+ }
416
+
417
+ .segmented > li {
418
+ list-style-type: none;
419
+ display: inline-block;
420
+ margin: 0;
421
+ }
422
+
423
+ .segmented > li:first-child .btn, .segmented > li.first-child .btn {
424
+ border-radius: 3px 0px 0px 3px;
425
+ border-left-width: 1px !important;
426
+ }
427
+
428
+ .segmented > li:last-child .btn {
429
+ border-radius: 0px 3px 3px 0px;
430
+ }
431
+
432
+ .segmented > li:last-child .btn.btn-primary {
433
+ border-right-color: #0078bd;
434
+ }
435
+
436
+ .segmented > li.middle-child > .btn {
437
+ border-radius: 0px;
438
+ }
439
+
440
+ .segmented > li:only-child > .btn, .segmented > li.only-child > .btn {
441
+ border-radius: 3px 3px 3px 3px;
442
+ border-left-width: 1px !important;
443
+ }
444
+
445
+ .segmented .btn.active {
446
+ color: #c3cfd8;
447
+ }
448
+
449
+ .segmented .btn.active.btn-primary {
450
+ color: #ffffff;
451
+ }
452
+
453
+ .segmented .btn.active:hover {
454
+ cursor: default;
455
+ }
456
+
457
+ .buttons {
458
+ text-align: right;
459
+ padding: 10px;
460
+ background: #fafbfc;
461
+ border-top: 1px solid #d3dbe2;
462
+ border-bottom: 1px solid #d3dbe2;
463
+ }
464
+
465
+ .buttons.slim {
466
+ padding: 5px 10px;
467
+ }
468
+
469
+ .buttons.slim .btn {
470
+ padding: 6px 10px;
471
+ }
472
+
473
+ .buttons.plain {
474
+ background: none;
475
+ padding: 13px 0;
476
+ border-bottom: none;
477
+ border-top: 1px solid #d3dbe2;
478
+ }
479
+
480
+ .buttons.connected {
481
+ background: #fafbfc;
482
+ border: 1px solid #d3dbe2;
483
+ border-top: none;
484
+ }
485
+
486
+ .buttons .text-action {
487
+ line-height: 32px;
488
+ }
489
+
490
+ .button-group {
491
+ display: -webkit-box;
492
+ display: -webkit-flex;
493
+ display: -ms-flexbox;
494
+ display: flex;
495
+ -webkit-flex-wrap: wrap;
496
+ -ms-flex-wrap: wrap;
497
+ flex-wrap: wrap;
498
+ margin-right: -10px;
499
+ margin-top: -10px;
500
+ -webkit-box-align: center;
501
+ -webkit-align-items: center;
502
+ -ms-flex-align: center;
503
+ align-items: center;
504
+ }
505
+
506
+ .button-group .btn {
507
+ margin-right: 10px;
508
+ margin-top: 10px;
509
+ }
510
+
511
+ .button-group .button-group {
512
+ margin-right: 0;
513
+ }
514
+
515
+ .button-group--right-aligned {
516
+ -webkit-box-pack: end;
517
+ -webkit-justify-content: flex-end;
518
+ -ms-flex-pack: end;
519
+ justify-content: flex-end;
520
+ }
521
+
522
+ .btn-separate {
523
+ margin-left: 5px;
524
+ }
525
+
526
+ .btn-separate-left {
527
+ margin-right: 5px;
528
+ }
529
+
530
+ .btn-separate-top {
531
+ margin-top: 10px;
532
+ }
533
+
534
+ .btn--plain, .btn--link {
535
+ font-size: 14px;
536
+ background-color: transparent !important;
537
+ border: none;
538
+ cursor: pointer;
539
+ color: #0078bd;
540
+ text-decoration: none;
541
+ vertical-align: initial;
542
+ -webkit-user-select: text;
543
+ -moz-user-select: text;
544
+ -ms-user-select: text;
545
+ user-select: text;
546
+ }