patternfly-sass 3.48.3 → 3.48.4

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.
@@ -6,6 +6,7 @@
6
6
  margin: 0 auto;
7
7
  max-height: 900px;
8
8
  width: auto;
9
+
9
10
  .modal-content {
10
11
  min-height:100%;
11
12
  }
@@ -13,68 +14,77 @@
13
14
 
14
15
  // Wizard header
15
16
  // Top section of the wizard w/ title and dismiss
16
-
17
17
  .wizard-pf-body {
18
18
  background:$color-pf-white;
19
19
  padding: 0;
20
20
  position: static;
21
21
  }
22
+
22
23
  /* styles the sidebard containing the sub-steps */
23
24
  .wizard-pf-sidebar {
24
25
  background: $color-pf-black-100;
25
26
  border-right: 1px solid $color-pf-black-300;
26
27
  display:none;
28
+
27
29
  @media (min-width: $screen-sm-min) {
28
30
  display:inherit;
29
31
  flex:0 0 auto;
30
32
  overflow-x: hidden;
31
33
  overflow-y: auto;
34
+
32
35
  .list-group {
33
36
  border-top: 0;
34
37
  margin-bottom: 0;
35
38
  }
36
- .list-group-item {
37
- background-color: transparent;
38
- border-color: $color-pf-black-200;
39
- padding: 0;
40
- > a {
41
- color: $color-pf-black;
42
- cursor: pointer;
43
- display: block;
44
- font-size: 14px;
45
- font-weight: 700;
46
- height: 50px;
47
- outline: 0;
48
- padding-top: 11px;
49
- padding-left: 20px;
50
- position: relative;
51
- white-space: nowrap;
52
- width: 14em;
53
- &:hover {
54
- text-decoration: none;
55
- background-color: $color-pf-black-200;
56
- }
39
+
40
+ .list-group-item {
41
+ background-color: transparent;
42
+ border-color: $color-pf-black-200;
43
+ padding: 0;
44
+
45
+ > a {
46
+ color: $color-pf-black;
47
+ cursor: pointer;
48
+ display: block;
49
+ font-size: 14px;
50
+ font-weight: 700;
51
+ height: 50px;
52
+ outline: 0;
53
+ padding-top: 11px;
54
+ padding-left: 20px;
55
+ position: relative;
56
+ white-space: nowrap;
57
+ width: 14em;
58
+
59
+ &:hover {
60
+ background-color: $color-pf-black-200;
61
+ text-decoration: none;
62
+
57
63
  &:focus {
58
64
  //corrects odd behavior when hover and focus are combined.
59
65
  text-decoration: none;
66
+
60
67
  span {
61
68
  text-decoration: underline;
62
69
  }
63
70
  }
64
71
  }
65
- &.active {
66
- background-color: $color-pf-black-200;
72
+ }
73
+
74
+ &.active {
75
+ background-color: $color-pf-black-200;
76
+
77
+ //override default behavior
78
+ &:hover {
79
+ border-color: $color-pf-black-200;
80
+ }
81
+
82
+ > a {
83
+ color: $color-pf-blue-300;
84
+ cursor: default;
67
85
 
68
- //override default behavior
69
- &:hover {
70
- border-color: $color-pf-black-200;
71
- }
72
- > a {
73
- color: $color-pf-blue-300;
74
- cursor: default;
75
- }
76
86
  // line to left side showing active substep
77
- > a:before {
87
+ &:before {
78
88
  content: " ";
79
89
  background: $color-pf-blue-300;
80
90
  height: 100%;
@@ -83,8 +93,9 @@
83
93
  top: 0;
84
94
  width: 3px;
85
95
  }
96
+
86
97
  // caret to right showing active substep
87
- > a:after {
98
+ &:after {
88
99
  color: $color-pf-blue-300;
89
100
  content: "\f105"; // right caret
90
101
  display: block;
@@ -100,19 +111,23 @@
100
111
  }
101
112
  }
102
113
  }
114
+ }
103
115
  }
116
+
104
117
  .wizard-pf-substep-number {
105
118
  display:inline-block;
106
119
  margin-right: 5px;
107
120
  vertical-align: middle;
108
121
  width: 25px;
109
122
  }
123
+
110
124
  .wizard-pf-substep-title {
111
125
  display:inline-block;
112
126
  margin-right: 5px;
113
127
  text-align: left;
114
128
  vertical-align: middle;
115
129
  }
130
+
116
131
  /* styles the steps indicator across the top of the wizard */
117
132
  .wizard-pf-steps {
118
133
  border-bottom: solid 1px $color-pf-black-300;
@@ -130,14 +145,15 @@
130
145
  list-style: none;
131
146
  margin-bottom: 0;
132
147
  padding: 15px 0;
133
- @media (min-width: $screen-sm-min) {
134
- background: $color-pf-white;
135
- height: 120px;
136
- padding: 38px 0 0;
137
- justify-content: space-around;
138
- }
139
148
 
140
- li {
149
+ @media (min-width: $screen-sm-min) {
150
+ background: $color-pf-white;
151
+ height: 120px;
152
+ padding: 38px 0 0;
153
+ justify-content: space-around;
154
+ }
155
+
156
+ .wizard-pf-step {
141
157
  counter-increment: section;
142
158
  float:left; /* float for IE9 since it doesn't support flex. If items wrap, they overlap */
143
159
  flex-grow: 1;
@@ -147,47 +163,56 @@
147
163
  padding: 0;
148
164
  position: relative;
149
165
  text-align: center;
166
+
150
167
  &:not(.active) {
151
168
  display: none;
169
+
152
170
  @media (min-width: $screen-sm-min) {
153
171
  display: block;
154
172
  }
155
173
  }
174
+
156
175
  a {
157
- align-items: center;
158
- display: flex;
159
- flex-wrap:wrap;
160
- font-weight: 700;
161
- @media (min-width: $screen-sm-min) {
162
- font-weight: normal;
163
- justify-content: center;
176
+ align-items: center;
177
+ display: flex;
178
+ flex-wrap:wrap;
179
+ font-weight: 700;
180
+
181
+ @media (min-width: $screen-sm-min) {
182
+ font-weight: normal;
183
+ justify-content: center;
184
+ }
185
+ .wizard-pf-step-title {
186
+ margin-left: 10px;
187
+
188
+ @media(min-width: $screen-sm-min) {
189
+ margin-left: 0;
164
190
  }
165
- .wizard-pf-step-title {
166
- margin-left: 10px;
167
- @media(min-width: $screen-sm-min) {
168
- margin-left: 0;
169
- }
170
191
 
171
- &-substep {
172
- font-weight: normal;
173
- margin-left: 10px;
174
- text-transform: capitalize;
175
- &:before {
176
- content:"\00BB";
177
- font-size: 20px;
178
- margin-right: 10px;
179
- }
180
- &:not(.active) {
181
- display: none;
182
- }
183
- }
192
+ &-substep {
193
+ font-weight: normal;
194
+ margin-left: 10px;
195
+ text-transform: capitalize;
196
+
197
+ &:before {
198
+ content:"\00BB";
199
+ font-size: 20px;
200
+ margin-right: 10px;
184
201
  }
202
+
203
+ &:not(.active) {
204
+ display: none;
205
+ }
206
+ }
207
+ }
185
208
  }
209
+
186
210
  /* draw the line between the circles */
187
211
  @media (min-width: $screen-sm-min) {
188
212
  .wizard-pf-step-title-substep {
189
213
  display: none;
190
214
  }
215
+
191
216
  &:before {
192
217
  background-color: $color-pf-black-400;
193
218
  content: "";
@@ -198,19 +223,23 @@
198
223
  top: 40px; // needed for IE9/10 calculate 50% of just the li, others calc 50% of the entire thing including the a:before
199
224
  //otherwise, use top: calc(50% - 1px);
200
225
  }
226
+
201
227
  /* don't draw the line between the circles on the ends */
202
228
  &:first-child:before {
203
229
  left: 50%;
204
230
  right: 0;
205
231
  }
232
+
206
233
  &:last-child:before {
207
234
  left: 0;
208
235
  right: 50%;
209
236
  }
237
+
210
238
  &:only-of-type:before {
211
239
  background-color: transparent;
212
240
  }
213
241
  }
242
+
214
243
  a {
215
244
  color: $color-pf-black;
216
245
  cursor: pointer;
@@ -218,7 +247,10 @@
218
247
  margin-left:1em;
219
248
  margin-right:1em;
220
249
  text-decoration: none;
221
- &:hover {
250
+ }
251
+
252
+ &:not(.active):not(.disabled) {
253
+ a:hover {
222
254
  .wizard-pf-step-number {
223
255
  background-color: $color-pf-black-400;
224
256
  border-color: $color-pf-black-400;
@@ -226,38 +258,42 @@
226
258
  }
227
259
  }
228
260
  }
229
- }
230
- /* draw the step number in the circle */
231
261
 
232
- .wizard-pf-step-number {
233
- background-color: $color-pf-white;
234
- border-radius: 50%;
235
- border: solid 2px $color-pf-black-400;
236
- color: $color-pf-black-400;
237
- font-size: $font-size-base;
238
- font-weight: 700;
239
- height: 25px;
240
- line-height: 22px;
262
+ .wizard-pf-step-number {
263
+ background-color: $color-pf-white;
264
+ border-radius: 50%;
265
+ border: solid 2px $color-pf-blue-300;
266
+ color: $color-pf-black-400;
267
+ font-size: $font-size-base;
268
+ font-weight: 700;
269
+ height: 25px;
270
+ line-height: 22px;
271
+ width: 25px;
272
+ display: inline-block;
273
+
241
274
  @media (min-width: $screen-sm-min) {
242
275
  left: unquote("calc(50% - 13px)");
243
276
  position: absolute;
244
277
  top: 27px;
245
278
  }
246
- width: 25px;
247
- }
248
- .active .wizard-pf-step-number {
249
- background-color: $color-pf-blue-300;
250
- border-color: $color-pf-blue-300;
251
- cursor: default;
252
- color: $color-pf-white;
253
- }
279
+ }
280
+
281
+ &.active {
282
+ .wizard-pf-step-number {
283
+ background-color: $color-pf-blue-300;
284
+ border-color: $color-pf-blue-300;
285
+ cursor: default;
286
+ color: $color-pf-white;
287
+ }
254
288
 
255
- .viewed-pf .wizard-pf-step-number {
256
- color: $color-pf-black;
257
- background-color: $color-pf-white;
258
- border-color: $color-pf-blue-300;
289
+ & ~ .wizard-pf-step {
290
+ .wizard-pf-step-number {
291
+ border-color: $color-pf-black-400;
292
+ background: $color-pf-white;
293
+ }
294
+ }
295
+ }
259
296
  }
260
-
261
297
  }
262
298
 
263
299
  /* styles the main content portion of the wizard */
@@ -266,11 +302,13 @@
266
302
  padding:1em;
267
303
  vertical-align: top;
268
304
  width:100%;
305
+
269
306
  @media (min-width: $screen-sm-min) {
270
307
  overflow: auto;
271
308
  padding:3em;
272
309
  flex:1 1 auto;
273
310
  }
311
+
274
312
  .blank-slate-pf {
275
313
  background-color: transparent;
276
314
  border: none;
@@ -286,10 +324,13 @@
286
324
  /* styles the content of a review page */
287
325
  .wizard-pf-review-steps {
288
326
  list-style: none;
289
- .list-group, .list-group-item {
327
+
328
+ .list-group,
329
+ .list-group-item {
290
330
  border: none;
291
331
  margin-bottom: 0;
292
332
  }
333
+
293
334
  > ul {
294
335
  > li {
295
336
  float: left;
@@ -298,6 +339,7 @@
298
339
  padding-top: 0;
299
340
  position: relative;
300
341
  width: 100%;
342
+
301
343
  > a {
302
344
  color: #030303;
303
345
  cursor: pointer;
@@ -306,6 +348,7 @@
306
348
  padding-right: 5px;
307
349
  text-decoration: none;
308
350
  transition: 250ms;
351
+
309
352
  &:before {
310
353
  content: "\f107";
311
354
  display: block;
@@ -316,6 +359,7 @@
316
359
  position: absolute;
317
360
  top: 0;
318
361
  }
362
+
319
363
  &.collapsed {
320
364
  &:before {
321
365
  content: "\f105";
@@ -328,6 +372,7 @@
328
372
 
329
373
  .wizard-pf-review-substeps {
330
374
  padding-left: 22px;
375
+
331
376
  > ul {
332
377
  > li {
333
378
  float: left;
@@ -335,6 +380,7 @@
335
380
  margin: 0;
336
381
  position: relative;
337
382
  width: 100%;
383
+
338
384
  a {
339
385
  color: #030303;
340
386
  cursor: pointer;
@@ -343,6 +389,7 @@
343
389
  padding-right: 5px;
344
390
  text-decoration: none;
345
391
  transition: 250ms;
392
+
346
393
  &:before {
347
394
  content: "\f107";
348
395
  display: block;
@@ -353,6 +400,7 @@
353
400
  position: absolute;
354
401
  top: 10px;
355
402
  }
403
+
356
404
  &.collapsed {
357
405
  &:before {
358
406
  content: "\f105";
@@ -366,25 +414,32 @@
366
414
  .wizard-pf-review-content {
367
415
  padding-top: 10px;
368
416
  padding-left: 40px;
417
+
369
418
  .wizard-pf-review-item {
370
419
  padding: 5px 0;
420
+
371
421
  &.sub-item {
372
422
  margin-left: 10px;
373
423
  }
424
+
374
425
  .wizard-pf-review-item-label {
375
426
  font-weight: 700;
376
427
  padding-right: 10px;
377
428
  }
429
+
378
430
  .wizard-pf-review-item-field {
379
431
  font-weight: 700;
380
432
  margin: 5px 0;
381
433
  padding-right: 10px;
434
+
382
435
  &:first-of-type {
383
436
  margin-top: 0;
384
437
  }
438
+
385
439
  &:last-of-type {
386
440
  margin-bottom: 0;
387
441
  }
442
+
388
443
  &.sub-field {
389
444
  margin-left: 10px;
390
445
  }
@@ -404,18 +459,27 @@
404
459
  border-top: 1px solid $color-pf-black-300;
405
460
  margin-top: 0;
406
461
  padding-bottom: 17px;
407
- .btn-cancel {
462
+ display: flex;
463
+ justify-content: flex-end;
464
+
465
+ .wizard-pf-cancel {
408
466
  margin-right:25px;
467
+ order: -1;
468
+ }
469
+
470
+ .wizard-pf-next {
471
+ order: 1;
472
+ margin-left: 8px;
409
473
  }
410
474
  }
411
475
 
412
476
  .wizard-pf-row {
413
- @media (min-width: $screen-sm-min) {
414
- display: flex;
415
- width:100%;
416
- height: 900px;
417
- max-height: 65vh;
418
- }
477
+ @media (min-width: $screen-sm-min) {
478
+ display: flex;
479
+ width:100%;
480
+ height: 900px;
481
+ max-height: 65vh;
482
+ }
419
483
  }
420
484
 
421
485
  // Scale up the modal
@@ -425,6 +489,7 @@
425
489
  padding: 30px 0;
426
490
  width: 900px;
427
491
  }
492
+
428
493
  // increasing width of sidebar for larger viewports
429
494
  .wizard-pf-sidebar .list-group-item > a {
430
495
  width: 18em;
@@ -435,22 +500,23 @@
435
500
  //
436
501
  // This is for the new wizard that is more robust on mobile.
437
502
  // --------------------------------------------------
438
-
439
- .wizard-pf-steps-alt, .wizard-pf-steps-alt ul {
503
+ .wizard-pf-steps-alt,
504
+ .wizard-pf-steps-alt ul {
440
505
  list-style: none;
441
506
  margin: 0;
442
507
  padding: 0;
443
508
  }
444
509
 
445
510
  .wizard-pf-steps-alt {
446
- margin-left: 15px;
447
- margin-top: 15px;
448
- background-image: linear-gradient(to right, transparent 11px, $color-pf-black-300 11px, $color-pf-black-300 13px, transparent 13px);
511
+ margin: 15px 0 15px 15px;
512
+
449
513
  @media (min-width: $screen-sm-min) {
450
514
  display:none;
451
515
  }
516
+
452
517
  &-indicator {
453
518
  position: relative;
519
+
454
520
  // caret to top showing active substep
455
521
  &:after {
456
522
  color: $color-pf-black-700;
@@ -467,6 +533,7 @@
467
533
  display:none;
468
534
  }
469
535
  }
536
+
470
537
  &.active {
471
538
  &:after {
472
539
  content: "\f106";
@@ -476,27 +543,52 @@
476
543
  }//.wizard-pf-steps-alt
477
544
 
478
545
  .wizard-pf-step-alt {
479
- margin-bottom: 10px;
546
+ position: relative;
547
+ z-index: 1;
548
+
549
+ &:not(:last-child) {
550
+ padding-bottom: 10px;
551
+ }
552
+
480
553
  a {
481
554
  display:flex;
482
555
  flex:1;
483
- &:hover {
556
+
557
+ &:hover,
558
+ &:focus {
484
559
  text-decoration: none;
560
+
485
561
  .wizard-pf-step-alt-title {
486
562
  color: $color-pf-blue-300;
487
563
  }
488
564
  }
489
565
  }
566
+
490
567
  ul {
491
568
  margin-left: 11px;
492
569
  }
570
+
571
+ .wizard-pf-step-alt-number {
572
+ border-radius: 50%;
573
+ font-size: $font-size-base;
574
+ font-weight: 700;
575
+ height: 24px;
576
+ width: 24px;
577
+ display: inline-block;
578
+ text-align: center;
579
+ flex:0 0 auto;
580
+ border: 2px solid $color-pf-blue-300;
581
+ background-color: $color-pf-white;
582
+ }
583
+
493
584
  .wizard-pf-step-alt-title {
585
+ color: $color-pf-black;
586
+ font-weight: 700;
587
+ text-transform: capitalize;
588
+ display:inline-block;
494
589
  margin-left: 5px;
495
590
  align-self:center;
496
591
  }
497
- .wizard-pf-step-alt-number {
498
- flex:0 0 auto;
499
- }
500
592
 
501
593
  &.active {
502
594
  .wizard-pf-step-alt-number {
@@ -505,72 +597,69 @@
505
597
  cursor: default;
506
598
  color: $color-pf-white;
507
599
  }
600
+
508
601
  .wizard-pf-step-alt-title {
509
602
  color: $color-pf-blue-300;
510
603
  }
511
- .wizard-pf-step-alt-substep:first-of-type {
512
- margin-top: 2px; // gives proper spacing below number in circle active state
513
- }
514
-
515
604
 
605
+ & ~ .wizard-pf-step-alt {
606
+ .wizard-pf-step-alt-number {
607
+ color: $color-pf-black-400;
608
+ border-color: $color-pf-black-400;
609
+ }
610
+ }
516
611
  }
517
- &.viewed {
518
- .wizard-pf-step-alt-number {
519
- color: $color-pf-black;
520
- background-color: $color-pf-white;
521
- border-color: $color-pf-blue-300;
612
+
613
+ &:not(.active) {
614
+ a:hover {
615
+ .wizard-pf-step-alt-number {
616
+ border-color: $color-pf-black-400;
617
+ background: $color-pf-black-400;
618
+ color: $color-pf-white;
619
+ }
522
620
  }
523
621
  }
524
622
 
623
+ &:before {
624
+ content: "";
625
+ position: absolute;
626
+ left: 11px;
627
+ height: 100%;
628
+ border-left: 2px solid $color-pf-black-400;
629
+ z-index: -1;
630
+ }
525
631
  }//.wizard-pf-step-alt
526
632
 
527
- .wizard-pf-step-alt-number {
528
- background-color: $color-pf-white;
529
- border-radius: 50%;
530
- border: solid 2px $color-pf-black-400;
531
- color: $color-pf-black-400;
532
- font-size: $font-size-base;
533
- font-weight: 700;
534
- height: 24px;
535
- width: 24px;
536
- display: inline-block;
537
- text-align: center;
538
- }
539
-
540
-
541
- .wizard-pf-step-alt-title {
542
- color: $color-pf-black;
543
- font-weight: 700;
544
- text-transform: capitalize;
545
- display:inline-block;
546
-
547
- }//.wizard-pf-steps-alt-title
548
-
549
633
  .wizard-pf-step-alt-substep {
550
- display:flex;
634
+ display:flex;
635
+ border-left: 2px solid transparent;
636
+
551
637
  a {
552
638
  padding:5px 0 5px 18px;
553
639
  color: $color-pf-black-800;
554
640
  }
555
641
 
556
- &:not(.disabled) {
557
- &.active, &:hover {
642
+ &.active,
643
+ &:not(.disabled):hover {
558
644
  background-color: $color-pf-black-200;
559
- background-image: linear-gradient(to right, $color-pf-blue-300 2px, transparent 2px);
645
+ border-color: $color-pf-blue-300;
560
646
  a {
561
647
  color:$color-pf-blue-300;
562
648
  }
563
649
  }
564
- }
565
650
  &.active {
566
651
  a {
567
652
  font-weight:700;
568
653
  }
569
654
  }
655
+ }
656
+
657
+ .wizard-pf-step,
658
+ .wizard-pf-step-alt-substep,
659
+ .wizard-pf-sidebar .list-group-item {
570
660
  &.disabled {
571
- cursor: not-allowed;
572
- a {
573
- pointer-events: none;
661
+ > a:hover {
662
+ cursor: not-allowed;
574
663
  }
575
664
  }
576
665
  }