@dejwcake/craftable 0.1.10 → 2.0.0

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 (126) hide show
  1. package/README.md +117 -3
  2. package/dist/buildMatchPatternFn-BV4I8r8j.js +63 -0
  3. package/dist/buildMatchPatternFn-T5KjFTBQ.cjs +1 -0
  4. package/dist/craftable.css +2 -0
  5. package/dist/cs-B5QMxFrl.js +682 -0
  6. package/dist/cs-MAoetkhe.cjs +1 -0
  7. package/dist/de-BlQ2ZKmc.js +526 -0
  8. package/dist/de-BoVLAn6U.cjs +1 -0
  9. package/dist/en-US-BLvEnhs4.js +443 -0
  10. package/dist/en-US-Dz8vkDZ_.cjs +1 -0
  11. package/dist/en-US-X9gX759i.cjs +1 -0
  12. package/dist/es-DBHDeXHI.cjs +1 -0
  13. package/dist/es-YEqfkBY2.js +437 -0
  14. package/dist/fr-B7MHC2AN.js +407 -0
  15. package/dist/fr-DLs3QoNB.cjs +1 -0
  16. package/dist/hu-BKZPI9jH.cjs +1 -0
  17. package/dist/hu-reoJgNxD.js +425 -0
  18. package/dist/index.cjs +1 -0
  19. package/dist/index.mjs +3866 -0
  20. package/dist/isSameWeek-CC6GX_zp.js +40 -0
  21. package/dist/isSameWeek-Mctj6Tdj.cjs +1 -0
  22. package/dist/pl-B5A0Rjp7.js +628 -0
  23. package/dist/pl-BMyrOO-Q.cjs +1 -0
  24. package/dist/sk-B7JF2MoV.cjs +1 -0
  25. package/dist/sk-Btro3W4S.js +602 -0
  26. package/package.json +68 -40
  27. package/scripts/publish-components.js +118 -0
  28. package/scss/_images.scss +1 -1
  29. package/scss/_variables.scss +13 -6
  30. package/scss/app.scss +4 -4
  31. package/scss/overrides/_alerts.scss +0 -2
  32. package/scss/overrides/_badges.scss +1 -17
  33. package/scss/overrides/_buttons.scss +64 -7
  34. package/scss/overrides/_cards.scss +4 -51
  35. package/scss/overrides/_checkboxes.scss +54 -59
  36. package/scss/overrides/_forms.scss +270 -176
  37. package/scss/overrides/_index.scss +18 -18
  38. package/scss/overrides/_keyframes.scss +6 -4
  39. package/scss/overrides/_layout.scss +24 -30
  40. package/scss/overrides/_media-wysiwyg.scss +9 -111
  41. package/scss/overrides/_modal.scss +0 -18
  42. package/scss/overrides/_multiselect.scss +63 -7
  43. package/scss/overrides/_nav.scss +55 -33
  44. package/scss/overrides/_notifications.scss +6 -1
  45. package/scss/overrides/_pagination.scss +3 -3
  46. package/scss/overrides/_sidebar.scss +84 -0
  47. package/scss/overrides/_tables.scss +52 -37
  48. package/scss/overrides/_text.scss +1 -3
  49. package/scss/overrides/_wysiwyg.scss +151 -48
  50. package/scss/styles/_auth.scss +32 -37
  51. package/scss/styles/_custom.scss +44 -1
  52. package/scss/styles/_index.scss +4 -4
  53. package/scss/styles/_legacy.scss +5 -81
  54. package/scss/styles/_others.scss +232 -337
  55. package/scss/vendor/_index.scss +5 -4
  56. package/src/auth/ActivationError.vue +23 -0
  57. package/src/auth/ActivationForm.vue +69 -0
  58. package/src/auth/ForgotPasswordForm.vue +74 -0
  59. package/src/auth/LoginForm.vue +107 -0
  60. package/src/auth/ResetPasswordForm.vue +122 -0
  61. package/src/components/ConfirmModal.vue +65 -0
  62. package/src/components/UserDetailTooltip.vue +88 -0
  63. package/src/components/form/CkeditorEditor.vue +205 -0
  64. package/src/components/form/FormCheckbox.vue +29 -0
  65. package/src/components/form/FormDatePicker.vue +52 -0
  66. package/src/components/form/FormEmail.vue +17 -0
  67. package/src/components/form/FormInput.vue +31 -0
  68. package/src/components/form/FormLocalizedInput.vue +47 -0
  69. package/src/components/form/FormLocalizedWysiwyg.vue +55 -0
  70. package/src/components/form/FormLocalizedWysiwygSimple.vue +55 -0
  71. package/src/components/form/FormMultiSelect.vue +36 -0
  72. package/src/components/form/FormPasswordConfirm.vue +49 -0
  73. package/src/components/form/FormSelect.vue +35 -0
  74. package/src/components/form/FormSubmit.vue +13 -0
  75. package/src/components/form/FormTextarea.vue +31 -0
  76. package/src/components/form/FormWysiwyg.vue +31 -0
  77. package/src/components/form/FormWysiwygSimple.vue +31 -0
  78. package/src/components/form/LocalizationBar.vue +90 -0
  79. package/src/components/form/MediaUpload.vue +317 -0
  80. package/src/components/form/TiptapEditor.vue +238 -0
  81. package/src/components/listing/BulkCheckboxHeader.vue +18 -0
  82. package/src/components/listing/BulkCheckboxRow.vue +21 -0
  83. package/src/components/listing/BulkOperationsBar.vue +41 -0
  84. package/src/components/listing/DeleteButton.vue +46 -0
  85. package/src/components/listing/EditButton.vue +17 -0
  86. package/src/components/listing/EmptyState.vue +25 -0
  87. package/src/components/listing/ListingHeader.vue +24 -0
  88. package/src/components/listing/Pagination.vue +158 -0
  89. package/src/components/listing/PerPage.vue +15 -0
  90. package/src/components/listing/PublishedAtColumn.vue +226 -0
  91. package/src/components/listing/Search.vue +81 -0
  92. package/src/components/listing/Sortable.vue +28 -0
  93. package/src/components/listing/ToggleSwitch.vue +47 -0
  94. package/src/composables/useAdmin.js +39 -0
  95. package/src/composables/useBaseAuth.js +81 -0
  96. package/src/composables/useBaseForm.js +265 -0
  97. package/src/composables/useBaseListing.js +316 -0
  98. package/src/composables/useResponsiveColumns.js +62 -0
  99. package/src/index.js +62 -0
  100. package/src/translation/TranslationListing.vue +230 -0
  101. package/src/translation/modals/TranslationEditModal.vue +86 -0
  102. package/src/translation/modals/TranslationExportModal.vue +74 -0
  103. package/src/translation/modals/TranslationImportModal.vue +255 -0
  104. package/src/ui/index.js +99 -0
  105. package/src/utils/ckeditorHelpers.js +36 -0
  106. package/src/utils/dateFnsLocale.js +24 -0
  107. package/src/utils/dateFormatters.js +30 -0
  108. package/src/utils/mediaProps.js +14 -0
  109. package/src/utils/notify.js +22 -0
  110. package/dist/admin/Admin.js +0 -42
  111. package/dist/auth/Form.js +0 -15
  112. package/dist/base-components/Form/BaseForm.js +0 -395
  113. package/dist/base-components/Form/BaseUpload.js +0 -188
  114. package/dist/base-components/Form/bootstrap.js +0 -21
  115. package/dist/base-components/Listing/BaseListing.js +0 -454
  116. package/dist/base-components/Listing/components/Pagination.js +0 -105
  117. package/dist/base-components/Listing/components/Sortable.js +0 -48
  118. package/dist/base-components/Listing/components/UserDetailTooltip.js +0 -55
  119. package/dist/index.js +0 -70
  120. package/dist/overrides/trumbowyg.edit-embed-template.js +0 -72
  121. package/dist/overrides/trumbowyg.reupload.js +0 -146
  122. package/dist/overrides/trumbowyg.template.js +0 -67
  123. package/dist/translation/Form.js +0 -15
  124. package/dist/translation/Listing.js +0 -283
  125. package/dist/ui/index.js +0 -33
  126. package/scss/overrides/_switches.scss +0 -25
@@ -1,64 +1,79 @@
1
1
  table th a:not([href]) {
2
- cursor: pointer;
2
+ cursor: pointer;
3
3
  }
4
4
 
5
5
  .table-hover tbody tr:hover {
6
- background-color: #edf3fe;
6
+ background-color: #edf3fe;
7
7
  }
8
8
 
9
9
  .table-listing thead th {
10
- border: none;
10
+ border: none;
11
11
  }
12
12
 
13
13
  .table-listing thead tr {
14
- border-bottom: 1px solid #f0f2f5;
15
- border-top: 1px solid #dee3e7;
14
+ border-bottom: 1px solid #f0f2f5;
15
+ border-top: 1px solid #dee3e7;
16
16
  }
17
17
 
18
18
  .table-listing td {
19
- border-top: 1px solid #f0f2f5;
20
- vertical-align: middle;
19
+ border-top: 1px solid #f0f2f5;
20
+ vertical-align: middle;
21
21
  }
22
22
 
23
- .table-listing .row.no-gutters .btn {
24
- margin-right: 10px;
25
- @media (max-width: 1319px) {
26
- margin-bottom: 10px;
27
- }
23
+ .table-listing .d-flex .btn {
24
+ @media (width <= 1319px) {
25
+ margin-bottom: 10px;
26
+ }
28
27
  }
29
28
 
30
29
  .table-listing td:last-of-type {
31
- min-width: 95px;
32
- display: flex;
33
- justify-content: flex-end;
30
+ min-width: 95px;
31
+ text-align: end;
32
+ white-space: nowrap;
34
33
  }
35
34
 
36
35
  td > .switch {
37
- top: 4px;
36
+ top: 4px;
38
37
  }
39
38
 
40
- @media (max-width: 991px) {
41
- .table-listing {
42
- th,
43
- td {
44
- display: none;
45
- }
46
- tr {
47
- display: flex;
48
- flex-direction: row;
49
- justify-content: space-between;
39
+ .table-listing td .form-switch.form-switch-inline {
40
+ display: flex;
41
+ justify-content: center;
42
+ padding-left: 0;
43
+ min-width: 2.5em;
44
+ }
45
+
46
+ .table-listing td .form-switch.form-switch-inline .form-check-input {
47
+ margin-left: 0;
48
+ float: none;
49
+ }
50
+
51
+ @media (width <= 991px) {
52
+ .table-listing {
53
+ th,
54
+ td {
55
+ display: none;
56
+ }
57
+
58
+ tr {
59
+ display: flex;
60
+ flex-direction: row;
61
+ justify-content: space-between;
62
+ }
63
+
64
+ th:last-of-type,
65
+ td:last-of-type,
66
+ th:nth-of-type(2),
67
+ td:nth-of-type(2) {
68
+ display: flex;
69
+ }
70
+
71
+ td:last-of-type {
72
+ padding-right: 0;
73
+ }
50
74
  }
51
- th:last-of-type,
52
- td:last-of-type,
53
- th:nth-of-type(2),
75
+
54
76
  td:nth-of-type(2) {
55
- display: flex;
56
- }
57
- td:last-of-type {
58
- padding-right: 0;
77
+ overflow: hidden;
59
78
  }
60
- }
61
- td:nth-of-type(2) {
62
- overflow: hidden;
63
- }
64
79
  }
@@ -1,5 +1,3 @@
1
- @use "../variables" as *;
2
-
3
1
  .text-success {
4
2
  color: $success !important;
5
3
  }
@@ -14,4 +12,4 @@
14
12
 
15
13
  .text-info {
16
14
  color: $primary !important;
17
- }
15
+ }
@@ -1,65 +1,168 @@
1
- @use "../variables" as *;
2
- @use "../images" as *;
3
-
4
- .ql-editor {
5
- min-height: 200px;
6
- padding-right: 2.2rem !important;
7
- color: #3e515b;
8
- &:after {
9
- content: '';
10
- background-size: contain;
11
- background-repeat: no-repeat;
12
- width: 18px;
13
- height: 18px;
14
- position: absolute;
15
- right: 8px;
16
- top: 10px;
17
- background-position: center;
18
- }
1
+ // Tiptap WYSIWYG editor styles
2
+ .tiptap-editor {
3
+ border: 1px solid $mutedText;
4
+ border-radius: $border-radius;
5
+ overflow: hidden;
19
6
  }
20
7
 
21
- .ql-container .ql-editor.ql-blank::before {
22
- font-style: normal;
23
- font-size: 0.875rem;
24
- line-height: 1.25;
25
- color: #B2BDC5;
26
- }
8
+ .tiptap-toolbar {
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ align-items: center;
12
+ gap: 2px;
13
+ padding: 6px 8px;
14
+ border-bottom: 1px solid $mutedText;
15
+ background: #f8f9fa;
27
16
 
28
- .quill-editor .ql-container.ql-snow {
29
- border: 1px solid $mutedText;
30
- }
17
+ button {
18
+ background: none;
19
+ border: 1px solid transparent;
20
+ border-radius: 3px;
21
+ padding: 4px 8px;
22
+ cursor: pointer;
23
+ font-size: 14px;
24
+ line-height: 1;
25
+ color: #555;
31
26
 
32
- .has-danger .quill-editor .ql-container.ql-snow {
33
- border: 1px solid $danger;
34
- }
27
+ &:hover {
28
+ background: #e9ecef;
29
+ border-color: #dee2e6;
30
+ }
35
31
 
36
- .quill-editor .ql-toolbar.ql-snow {
37
- border: 1px solid $mutedText;
38
- border-bottom: 1px solid #E9EDF2;
39
- }
32
+ &.is-active {
33
+ background: $primary;
34
+ color: white;
35
+ border-color: $primary;
36
+ }
37
+
38
+ &:disabled {
39
+ opacity: 0.3;
40
+ cursor: not-allowed;
41
+ }
42
+ }
40
43
 
41
- .has-danger .quill-editor .ql-toolbar.ql-snow {
42
- border: 1px solid $danger;
43
- border-bottom: 1px solid #E9EDF2;
44
+ select {
45
+ border: 1px solid #dee2e6;
46
+ border-radius: 3px;
47
+ padding: 4px 8px;
48
+ font-size: 13px;
49
+ background: white;
50
+ cursor: pointer;
51
+ }
44
52
  }
45
53
 
46
- .ql-snow .ql-picker-label {
47
- color: #C7C7C7;
54
+ .tiptap-toolbar-divider {
55
+ display: inline-block;
56
+ width: 1px;
57
+ height: 24px;
58
+ background: #dee2e6;
59
+ margin: 0 4px;
48
60
  }
49
61
 
50
- .quill-editor .ql-snow .ql-stroke {
51
- stroke: #C7C7C7;
62
+ .tiptap-content {
63
+ .tiptap {
64
+ min-height: 200px;
65
+ padding: 12px 16px;
66
+ outline: none;
67
+ color: #3e515b;
68
+
69
+ > * + * {
70
+ margin-top: 0.75em;
71
+ }
72
+
73
+ p.is-editor-empty:first-child::before {
74
+ content: attr(data-placeholder);
75
+ float: left;
76
+ color: $mutedText;
77
+ pointer-events: none;
78
+ height: 0;
79
+ }
80
+
81
+ img {
82
+ max-width: 100%;
83
+ height: auto;
84
+
85
+ &.ProseMirror-selectednode {
86
+ outline: 2px solid $primary;
87
+ }
88
+ }
89
+
90
+ table {
91
+ border-collapse: collapse;
92
+ margin: 0;
93
+ overflow: hidden;
94
+ width: 100%;
95
+
96
+ td,
97
+ th {
98
+ border: 1px solid #dee2e6;
99
+ min-width: 1em;
100
+ padding: 6px 8px;
101
+ position: relative;
102
+ vertical-align: top;
103
+
104
+ > * {
105
+ margin-bottom: 0;
106
+ }
107
+ }
108
+
109
+ th {
110
+ background-color: #f8f9fa;
111
+ font-weight: bold;
112
+ }
113
+
114
+ .selectedCell {
115
+ background: rgba($primary, 0.1);
116
+ }
117
+ }
118
+
119
+ ul,
120
+ ol {
121
+ padding-inline-start: 24px;
122
+ }
123
+
124
+ blockquote {
125
+ border-left: 3px solid #dee2e6;
126
+ padding-left: 1rem;
127
+ color: #6c757d;
128
+ }
129
+
130
+ code {
131
+ background-color: #f5f5f5;
132
+ color: #e83e8c;
133
+ padding: 0.2em 0.4em;
134
+ border-radius: 3px;
135
+ font-size: 85%;
136
+ }
137
+
138
+ pre {
139
+ background: #2d2d2d;
140
+ color: #f8f8f2;
141
+ padding: 12px 16px;
142
+ border-radius: 4px;
143
+ overflow-x: auto;
144
+
145
+ code {
146
+ background: none;
147
+ color: inherit;
148
+ padding: 0;
149
+ font-size: 100%;
150
+ }
151
+ }
152
+ }
52
153
  }
53
154
 
54
- .quill-editor .ql-snow .ql-fill,
55
- .ql-snow .ql-stroke.ql-fill {
56
- fill: #C7C7C7;
155
+ .tiptap-heading-select {
156
+ margin-right: 4px;
57
157
  }
58
158
 
59
- .has-success .ql-editor:after {
60
- background-image: $icon-correct;
159
+ // CKEditor 5 overrides
160
+ .ck-editor {
161
+ border: 1px solid $mutedText;
162
+ border-radius: $border-radius;
163
+ overflow: hidden;
61
164
  }
62
165
 
63
- .has-danger .ql-editor:after {
64
- background-image: $icon-error;
166
+ .ck-editor__editable {
167
+ min-height: 200px;
65
168
  }
@@ -1,94 +1,89 @@
1
- @use "../variables" as *;
2
-
3
1
  // Auth specific styles
4
2
  .auth {
5
3
  min-height: 100vh;
4
+
6
5
  .auth-header {
7
- border-bottom: 1px solid #F2F5F9;
6
+ border-bottom: 1px solid #f2f5f9;
8
7
  padding: 30px;
9
8
  }
9
+
10
10
  .auth-body {
11
11
  padding: 30px;
12
12
  }
13
+
13
14
  .auth-title {
14
15
  text-transform: uppercase;
15
- color: #333D5D;
16
+ color: #333d5d;
16
17
  font-size: 25px;
17
18
  font-weight: bold;
18
19
  margin-bottom: 15px;
19
20
  }
21
+
20
22
  .auth-subtitle {
21
23
  text-transform: uppercase;
22
24
  font-weight: bold;
23
- color: #B9BBC6;
25
+ color: #b9bbc6;
24
26
  font-size: 12px;
25
27
  letter-spacing: 0;
26
28
  margin-bottom: 0;
27
29
  }
28
- .card-body,
29
- .card-block {
30
+
31
+ .card-body {
30
32
  padding: 0;
31
33
  }
32
- .form-group {
33
- margin-bottom: 1.7rem;
34
+
35
+ .mb-3 {
36
+ margin-bottom: 1.7rem !important;
37
+
34
38
  &:last-of-type {
35
- margin-bottom: 0;
39
+ margin-bottom: 0 !important;
36
40
  }
37
41
  }
42
+
38
43
  label {
39
- color: #9FA6B9;
44
+ color: #9fa6b9;
40
45
  text-transform: uppercase;
41
46
  font-weight: bold;
42
47
  }
48
+
43
49
  .form-control {
44
- border-radius: 4px;
45
50
  padding: 1.3rem 0.75rem;
46
51
  border-color: $mutedText;
47
52
  height: 46px;
48
53
  }
54
+
49
55
  .input-group .form-control {
50
56
  border: 1px solid $mutedText;
51
57
  border-bottom-left-radius: 0;
52
58
  border-top-left-radius: 0;
53
59
  border-left: none;
54
60
  }
55
- .has-danger .input-group .form-control {
61
+
62
+ .is-invalid ~ .form-control,
63
+ .input-group:has(.is-invalid) .form-control {
56
64
  border-color: $danger;
57
65
  }
58
- .input-group-addon {
59
- border-bottom-left-radius: 4px;
60
- border-top-left-radius: 4px;
61
- padding: 0.5rem 0.75rem;
62
- margin-bottom: 0;
63
- font-size: 0.875rem;
64
- font-weight: normal;
65
- line-height: 1.25;
66
- color: #3e515b;
67
- text-align: center;
68
- border: 1px solid $mutedText;
69
- border-radius: 0.25rem;
70
- min-width: 40px;
71
- white-space: nowrap;
72
- vertical-align: middle;
66
+
67
+ .input-group-text {
68
+ border-color: $mutedText;
73
69
  border-right: 0;
74
- border-top-right-radius: 0;
75
- border-bottom-right-radius: 0;
76
70
  }
77
- .form-control-danger {
78
- border: 1px solid $danger;
79
- }
80
- .form-control-feedback {
71
+
72
+ .invalid-feedback {
81
73
  color: $danger;
82
74
  font-weight: 500;
83
75
  }
84
- .btn-block {
76
+
77
+ .btn.w-100 {
85
78
  padding: 1rem;
86
79
  font-size: 16px;
87
80
  }
81
+
88
82
  .auth-ghost-link {
89
- color: #9FA6B9;
83
+ color: #9fa6b9;
90
84
  }
85
+
91
86
  .alert {
92
87
  margin-bottom: 1.4rem;
93
88
  }
94
- }
89
+ }
@@ -1 +1,44 @@
1
- // Write your project specific styles here
1
+ // Write your project specific styles here
2
+
3
+ // Colored toggle switches
4
+ .form-check-input.form-switch-success:checked {
5
+ background-color: var(--cui-success, #2eb85c);
6
+ border-color: var(--cui-success, #2eb85c);
7
+ }
8
+
9
+ .form-check-input.form-switch-danger:checked {
10
+ background-color: var(--cui-danger, #e55353);
11
+ border-color: var(--cui-danger, #e55353);
12
+ }
13
+
14
+ .form-check-input.form-switch-success,
15
+ .form-check-input.form-switch-danger {
16
+ width: 2em;
17
+ height: 1.2em;
18
+ border-radius: 2em;
19
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%288, 10, 12, 0.25%29'/%3e%3c/svg%3e");
20
+ background-position: left center;
21
+ cursor: pointer;
22
+ transition: background-position 0.15s ease-in-out;
23
+
24
+ &:checked {
25
+ background-position: right center;
26
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.87%29'/%3e%3c/svg%3e");
27
+ }
28
+ }
29
+
30
+ .publish-later-backdrop {
31
+ position: fixed;
32
+ inset: 0;
33
+ z-index: 1049;
34
+ }
35
+
36
+ .publish-later-modal {
37
+ position: absolute;
38
+ z-index: 1050;
39
+ background: #fff;
40
+ border: 1px solid #dee2e6;
41
+ border-radius: 0.375rem;
42
+ box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
43
+ padding: 0.75rem;
44
+ }
@@ -1,5 +1,5 @@
1
1
  // Our own styles
2
- @use "auth" as *;
3
- @use "others" as *;
4
- @use "custom" as *;
5
- @use "legacy" as *;
2
+ @import 'auth';
3
+ @import 'others';
4
+ @import 'custom';
5
+ @import 'legacy';
@@ -1,87 +1,11 @@
1
- .input-group-addon {
2
- display: flex;
3
- box-align: center;
4
- align-items: center;
5
- padding: 0.5rem 0.75rem;
6
- margin-bottom: 0;
7
- font-size: 0.875rem;
8
- font-weight: 400;
9
- line-height: 1.25;
10
- color: #3e515b;
11
- text-align: center;
12
- border: 1px solid #c2cfd6;
13
- min-width: 40px;
14
- white-space: nowrap;
15
- vertical-align: middle;
16
- background-color: #fff;
17
- border-bottom-left-radius: 0;
18
- border-top-left-radius: 0;
19
- &:last-child {
20
- border-top-right-radius: 0;
21
- border-bottom-right-radius: 0;
22
- }
23
- &:not(:last-child) {
24
- border-right: 0;
25
- }
26
- }
1
+ // Legacy BS4 compatibility shims removed — all templates now use BS5 patterns
27
2
 
28
3
  .translation-listing .table td:last-of-type {
29
- min-width: 0;
30
- }
31
-
32
- .card-block {
33
- flex: 1 1 auto;
34
- padding: 1.25rem;
4
+ min-width: 0;
35
5
  }
36
6
 
37
- .input-group .btn-group.input-group-btn {
38
- display: flex;
39
- margin-left: -1px;
40
- white-space: nowrap;
41
- vertical-align: middle;
42
- & > .btn {
43
- border-top-left-radius: 0;
44
- border-bottom-left-radius: 0;
45
- position: relative;
46
- z-index: 2;
47
- }
48
- }
49
-
50
- .switch {
51
- .switch-label {
52
- position: relative;
53
- display: block;
54
- height: inherit;
55
- cursor: pointer;
56
- border: 1px solid #c8ced3;
57
- transition: 0.15s ease-out;
58
- background-color: #f0f3f5;
59
- border-radius: 50em;
60
- width: 40px;
61
- &:before {
62
- position: absolute;
63
- box-sizing: border-box;
64
- content: '';
65
- background-color: #fff;
66
- transition: 0.15s ease-out;
67
- top: -1px;
68
- left: -1px;
69
- width: 26px;
70
- height: 26px;
71
- border: 0;
72
- border-radius: 50em;
73
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
74
- transform: translateX(14px);
75
- border-color: transparent;
7
+ @media (width <= 700px) {
8
+ .input-group button {
9
+ font-size: 0.875rem !important;
76
10
  }
77
- }
78
- .switch-handle {
79
- display: none;
80
- }
81
- }
82
-
83
- @media (max-width: 700px) {
84
- .input-group button {
85
- font-size: 0.875rem !important;
86
- }
87
11
  }