@appscode/design-system 2.0.93 → 2.0.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.0.93",
3
+ "version": "2.0.95",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -16,6 +16,7 @@
16
16
 
17
17
  p {
18
18
  color: $ac-primary;
19
+ margin-bottom: 0 !important;
19
20
 
20
21
  .close-icon {
21
22
  padding-right: 10px;
@@ -46,8 +46,8 @@ const getSanitizedHtml = (content: string) => {
46
46
 
47
47
  <template>
48
48
  <!-- alert-message area start -->
49
- <!-- plsease, use this class name ('.is-info' 'is-success', 'is-danger', 'is-warning') -->
50
- <div class="ac-notification is-${notificationType} mb-15" :class="backgroundColor">
49
+ <!-- use this class name ('.is-info' 'is-success', 'is-danger', 'is-warning') -->
50
+ <div class="ac-notifications mb-15" :class="backgroundColor">
51
51
  <p>
52
52
  <i v-if="!hideIcon" :class="`fa ${iconClass} mr-5`"></i><span v-html="getSanitizedHtml(content)"></span>
53
53
  <ac-button
@@ -62,215 +62,3 @@ const getSanitizedHtml = (content: string) => {
62
62
  </div>
63
63
  <!-- alert-message area end -->
64
64
  </template>
65
-
66
- <style lang="scss" scoped>
67
- // for alert message
68
- .ac-notification {
69
- background-color: $primary-95;
70
- font-size: 13px;
71
- color: $ac-primary;
72
- min-height: 36px;
73
- display: flex;
74
- align-items: center;
75
- padding: 8px 16px;
76
- overflow: hidden;
77
- border: 1px solid $ac-primary;
78
- border-radius: 4px;
79
- justify-content: flex-start;
80
- position: relative;
81
- z-index: 1;
82
- min-width: 280px;
83
-
84
- p {
85
- color: $ac-primary;
86
- margin-bottom: 0;
87
-
88
- .close-icon {
89
- padding-right: 10px;
90
- font-size: 15px;
91
- }
92
-
93
- a {
94
- text-decoration: underline;
95
- color: $ac-primary;
96
-
97
- &:hover {
98
- color: hsla(var(--hsl-hue), var(--hsl-saturation), calc(var(--hsl-lightness) - 10%), 1);
99
- }
100
- }
101
- }
102
-
103
- button.close {
104
- background-color: transparent;
105
- cursor: pointer;
106
- right: 0px;
107
- position: absolute;
108
- box-shadow: none;
109
- border: none;
110
- font-size: 14px;
111
- color: $danger;
112
- width: 40px;
113
- height: 100%;
114
- display: flex;
115
- align-items: center;
116
- justify-content: center;
117
- }
118
- }
119
-
120
- // mixin for .ac-notification
121
- @mixin acNotification($colorName) {
122
- background-color: scale-color($color: $colorName, $lightness: 80%);
123
- color: $white-100;
124
- border-color: $colorName;
125
-
126
- p {
127
- color: $colorName;
128
-
129
- a {
130
- color: $colorName;
131
-
132
- &:hover {
133
- color: $colorName;
134
- opacity: 0.8;
135
- }
136
- }
137
- }
138
- }
139
- @mixin acPrimaryNotification() {
140
- background-color: hsla(var(--hsl-hue), var(--hsl-saturation), var(--hsl-lightness), 0.2);
141
- color: $white-100;
142
- border-color: $ac-primary;
143
-
144
- p {
145
- color: $ac-primary;
146
-
147
- a {
148
- color: $ac-primary;
149
-
150
- &:hover {
151
- color: $ac-primary;
152
- opacity: 0.8;
153
- }
154
- }
155
- }
156
- }
157
-
158
- // is-primary
159
- .ac-notification.is-primary {
160
- @include acPrimaryNotification();
161
- }
162
-
163
- // is.info
164
- .ac-notification.is-info {
165
- @include acNotification($info);
166
- }
167
-
168
- // is.success
169
- .ac-notification.is-success {
170
- @include acNotification($success);
171
- }
172
-
173
- // is-danger
174
- .ac-notification.is-danger {
175
- @include acNotification($danger);
176
- }
177
-
178
- // is-warning
179
- .ac-notification.is-warning {
180
- @include acNotification($warning);
181
- }
182
-
183
- /*====================================
184
- AC Toast
185
- =====================================*/
186
-
187
- .ac-toast {
188
- width: 350px;
189
- display: flex;
190
- align-items: center;
191
- justify-content: space-between;
192
- font-size: 13px;
193
- border-radius: 4px;
194
- position: relative;
195
- padding-right: 30px;
196
- margin-bottom: 10px;
197
-
198
- * {
199
- color: $white-100;
200
- }
201
-
202
- p {
203
- padding-left: 16px;
204
-
205
- i.fa {
206
- padding-right: 0 !important;
207
- margin-right: 4px;
208
- }
209
- }
210
-
211
- a {
212
- font-weight: 500;
213
- text-decoration: underline;
214
- padding: 0 15px;
215
-
216
- &:hover {
217
- color: $gray-70;
218
- }
219
- }
220
-
221
- button.close-button {
222
- border-radius: 0px;
223
- background-color: transparent;
224
- border: none;
225
- color: $white-100;
226
- position: absolute;
227
- right: 0;
228
- top: 0;
229
- padding: 5px;
230
- height: 100%;
231
- width: 30px;
232
- z-index: 1;
233
- cursor: pointer;
234
- border-left: 1px solid #dddddd;
235
- }
236
- }
237
-
238
- // mixin for .ac-toast
239
- @mixin acToast($colorName) {
240
- background-color: $colorName;
241
- color: $white-100;
242
- border-color: $colorName;
243
- }
244
-
245
- // is-primary
246
- .ac-toast.is-primary {
247
- @include acToast($ac-primary);
248
- }
249
-
250
- // is-info
251
- .ac-toast.is-info {
252
- @include acToast($info);
253
- }
254
-
255
- // is.success
256
- .ac-toast.is-success {
257
- @include acToast($success);
258
- }
259
-
260
- // is-danger
261
- .ac-toast.is-danger {
262
- @include acToast($danger);
263
- }
264
-
265
- // is-warning
266
- .ac-toast.is-warning {
267
- @include acToast($warning);
268
- }
269
-
270
- // dark theme start
271
- // .is-dark-theme {
272
- // .ac-notification.is-danger {
273
- // background-color: $gray-80;
274
- // }
275
- // }
276
- </style>