qpp-style 9.36.0 → 9.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qpp-style",
3
- "version": "9.36.0",
3
+ "version": "9.37.0",
4
4
  "description": "Shared style guide across the QPP program.",
5
5
  "main": "dist/index.js",
6
6
  "homepage": "https://cmsgov.github.io/qpp-style",
@@ -1,4 +1,5 @@
1
1
  @use '../settings/variables' as v;
2
+ @use '../settings/functions' as f;
2
3
 
3
4
  // this should be a global thing
4
5
  [hidden] {
@@ -28,6 +29,14 @@ header {
28
29
  }
29
30
  }
30
31
 
32
+ .header-height {
33
+ height: 100%;
34
+
35
+ @include breakpoint(sm) {
36
+ height: 200px;
37
+ }
38
+ }
39
+
31
40
  .header-dropdown--open {
32
41
  z-index: v.$zIndexTopNavOpen;
33
42
  }
@@ -38,11 +47,11 @@ header {
38
47
  // logo
39
48
  .header-logo {
40
49
  height: 45px;
41
- margin-left: 40px;
50
+ margin-left: f.rem(30px);
42
51
  @include breakpoint(sm) {
43
52
  float: left;
44
- margin-left: 30px;
45
- padding: 27px 0;
53
+ margin-left: f.rem(40px);
54
+ padding: f.rem(27px) 0;
46
55
  height: 103px;
47
56
  }
48
57
  @include breakpoint(md) {
@@ -52,6 +61,13 @@ header {
52
61
  height: 108px;
53
62
  }
54
63
  }
64
+ .header-logo-search {
65
+ margin-top: 0;
66
+
67
+ @include breakpoint(sm) {
68
+ margin-top: f.rem(-60px);
69
+ }
70
+ }
55
71
  .qpp-logo {
56
72
  height: 100%;
57
73
  }
@@ -60,8 +76,8 @@ header {
60
76
  .header-help {
61
77
  font-size: 0.9rem;
62
78
  text-decoration: none;
63
- margin: 0 40px 0 0;
64
- padding-top: 10px;
79
+ margin: 0 f.rem(30px) 0 0;
80
+ padding-top: f.rem(20px);
65
81
  width: 30px;
66
82
  height: 86px;
67
83
  @include breakpoint(sm) {
@@ -79,8 +95,8 @@ header {
79
95
  background-color: transparent;
80
96
  border: none;
81
97
  color: #006771;
82
- font-size: 16px;
83
- margin-right: 30px;
98
+ font-size: f.rem(16px);
99
+ margin-right: f.rem(30px);
84
100
  text-transform: uppercase;
85
101
  }
86
102
 
@@ -90,7 +106,7 @@ header {
90
106
  border: none;
91
107
  display: block;
92
108
  flex: 0 0 100%;
93
- padding: 14px 0;
109
+ padding: f.rem(14px) 0;
94
110
  width: 100%;
95
111
  &[aria-expanded='true'] {
96
112
  color: v.$gray-90;
@@ -103,13 +119,13 @@ header {
103
119
  fill: v.$cyan-50;
104
120
  height: 18px;
105
121
  width: 35px;
106
- margin-bottom: -2px;
122
+ margin-bottom: f.rem(-2px);
107
123
  }
108
124
  }
109
125
 
110
126
  .icon {
111
127
  display: inline-block;
112
- margin-right: 14px;
128
+ margin-right: f.rem(14px);
113
129
  }
114
130
  .icon-bar {
115
131
  background-color: v.$cyan-50;
@@ -119,7 +135,7 @@ header {
119
135
  width: 22px;
120
136
  }
121
137
  .icon-bar + .icon-bar {
122
- margin-top: 5px;
138
+ margin-top: f.rem(5px);
123
139
  }
124
140
  .toggle-text {
125
141
  display: inline-block;
@@ -131,12 +147,13 @@ header {
131
147
  flex: 0 0 100%;
132
148
  background-color: $color-teal-dark;
133
149
  color: $color-white;
150
+ margin-right: f.rem(30px);
134
151
  @include breakpoint(sm) {
135
152
  background-color: transparent;
136
153
  color: $color-navy;
137
154
  display: block;
138
155
  float: right;
139
- margin-right: 16px;
156
+ margin-right: f.rem(40px);
140
157
  }
141
158
  }
142
159
  [class^='header-item-'] {
@@ -200,6 +217,11 @@ header {
200
217
  .menu-dropdown-toggle,
201
218
  .header-item-login {
202
219
  background-color: v.$white;
220
+
221
+ a {
222
+ padding-right: 0
223
+ }
224
+
203
225
  @media only screen and (max-width: 767px) {
204
226
  border-top: 1px solid v.$gray-10;
205
227
  }
@@ -247,14 +269,14 @@ header {
247
269
 
248
270
  .chevron-container {
249
271
  margin: 0;
250
- margin-right: 10px;
272
+ margin-right: f.rem(10px);
251
273
 
252
274
  @include breakpoint(xs) {
253
275
  margin-right: 0;
254
276
  }
255
277
 
256
278
  @include breakpoint(sm) {
257
- margin-right: 10px;
279
+ margin-right: f.rem(10px);
258
280
  }
259
281
  }
260
282
 
@@ -275,7 +297,7 @@ header {
275
297
  color: $color-gray-dark;
276
298
  font-size: 1rem;
277
299
  font-weight: 400;
278
- margin-top: 5px;
300
+ margin-top: f.rem(5px);
279
301
  }
280
302
 
281
303
  p {
@@ -290,7 +312,7 @@ header {
290
312
  margin-top: 0;
291
313
 
292
314
  @include breakpoint(xs) {
293
- margin-top: 20px;
315
+ margin-top: f.rem(20px);
294
316
  }
295
317
 
296
318
  @include breakpoint(sm) {
@@ -337,11 +359,11 @@ header {
337
359
  }
338
360
 
339
361
  @include breakpoint(sm) {
340
- padding-right: 6px;
362
+ padding-right: f.rem(6px);
341
363
  }
342
364
 
343
365
  @include breakpoint(md) {
344
- padding-right: 9px;
366
+ padding-right: f.rem(9px);
345
367
  }
346
368
 
347
369
  @include breakpoint(lg) {
@@ -357,7 +379,7 @@ header {
357
379
  .nav-description {
358
380
  color: v.$gray-70;
359
381
  font-weight: $rubik-light;
360
- margin-top: 5px;
382
+ margin-top: f.rem(5px);
361
383
 
362
384
  @include breakpoint(xs) {
363
385
  margin-top: 0;
@@ -393,7 +415,7 @@ header {
393
415
  display: flex;
394
416
  flex-direction: row;
395
417
  align-items: center;
396
- margin-bottom: 10px;
418
+ margin-bottom: f.rem(10px);
397
419
  }
398
420
 
399
421
  .sublink a {
@@ -431,7 +453,7 @@ header {
431
453
  // mobile top nav - mips dropdown
432
454
  .navigation-menu.navigation-new-style {
433
455
  #nav-section-MIPS {
434
- padding: 24px;
456
+ padding: f.rem(24px);
435
457
 
436
458
  .nav-column:last-child {
437
459
  .submenu-section-mips-mobile:last-child {
@@ -466,11 +488,11 @@ header {
466
488
  margin: 0;
467
489
 
468
490
  .accordion {
469
- padding: 12px 5px 12px 30px;
491
+ padding: f.rem(12px) f.rem(5px) f.rem(12px) f.rem(30px);
470
492
  background-color: v.$gray-02;
471
493
 
472
494
  .accordion-left-title {
473
- font-size: 14px;
495
+ font-size: f.rem(14px);
474
496
  }
475
497
 
476
498
  .chevron-container {
@@ -487,7 +509,7 @@ header {
487
509
  .accordion-content {
488
510
  .accordion-text {
489
511
  padding: 0;
490
- margin-bottom: 10px;
512
+ margin-bottom: f.rem(10px);
491
513
 
492
514
  a {
493
515
  display: inline-block;
@@ -495,7 +517,7 @@ header {
495
517
  font-weight: 300;
496
518
  line-height: 1.4;
497
519
  text-decoration: none;
498
- margin-bottom: 10px;
520
+ margin-bottom: f.rem(10px);
499
521
  }
500
522
 
501
523
  .sublink a {
@@ -547,7 +569,7 @@ header {
547
569
  .menu-dropdown-toggle {
548
570
  background-color: transparent;
549
571
  border: none;
550
- padding: 20px 16px;
572
+ padding: f.rem(20px) f.rem(16px);
551
573
  position: relative;
552
574
  text-align: left;
553
575
  width: 100%;
@@ -572,7 +594,7 @@ header {
572
594
  @include breakpoint(md) {
573
595
  height: 106px;
574
596
  max-width: 132px;
575
- padding: 0 10px;
597
+ padding: 0 f.rem(10px);
576
598
  &::after {
577
599
  content: '';
578
600
  background: $color-gray-very-light;
@@ -586,11 +608,11 @@ header {
586
608
  @media (min-width: 1080px) {
587
609
  height: 108px;
588
610
  max-width: 158px;
589
- padding: 0 15px;
611
+ padding: 0 f.rem(15px);
590
612
  }
591
613
  }
592
614
  .menu-link {
593
- padding: 20px 16px;
615
+ padding: f.rem(20px) f.rem(16px);
594
616
  width: 100%;
595
617
  display: inline-block;
596
618
  text-decoration: none;
@@ -599,11 +621,11 @@ header {
599
621
  text-decoration: none;
600
622
  }
601
623
  @include breakpoint(sm) {
602
- margin-top: -2px;
624
+ margin-top: f.rem(-2px);
603
625
  align-items: center;
604
626
  display: grid;
605
627
  height: 103px;
606
- padding: 0 14px;
628
+ padding: 0 f.rem(14px);
607
629
  _:-ms-fullscreen,
608
630
  :root & {
609
631
  display: flex;
@@ -615,11 +637,11 @@ header {
615
637
  align-content: center;
616
638
  height: 106px;
617
639
  justify-content: center;
618
- padding: 0 10px;
640
+ padding: 0 f.rem(10px);
619
641
  }
620
642
  @media (min-width: 1080px) {
621
643
  max-width: 158px;
622
- padding: 0 15px;
644
+ padding: 0 f.rem(15px);
623
645
  }
624
646
  }
625
647
  .dropdown-title {
@@ -627,14 +649,14 @@ header {
627
649
  display: inline-block;
628
650
  font-size: 1.25rem;
629
651
  line-height: 1.2;
630
- margin-bottom: 6px;
631
- margin-right: 8px;
652
+ margin-bottom: f.rem(6px);
653
+ margin-right: f.rem(8px);
632
654
  position: relative;
633
655
  &::after {
634
656
  content: '\f078';
635
657
  display: inline-block;
636
658
  font-family: 'FontAwesome';
637
- font-size: 10px;
659
+ font-size: f.rem(10px);
638
660
  transform: translateX(0.5rem) translateY(-0.25rem);
639
661
  transition: 0.25s;
640
662
  }
@@ -642,8 +664,8 @@ header {
642
664
  color: $color-navy;
643
665
  font-size: 1rem;
644
666
  margin: 0;
645
- padding-left: 14px;
646
- padding-right: 22px;
667
+ padding-left: f.rem(14px);
668
+ padding-right: f.rem(22px);
647
669
  &::before {
648
670
  content: '';
649
671
  border-right: 1px solid $color-gray-very-light;
@@ -663,15 +685,15 @@ header {
663
685
  }
664
686
  @media (min-width: 1080px) {
665
687
  font-size: 1.25rem;
666
- margin-right: 8px;
688
+ margin-right: f.rem(8px);
667
689
  }
668
690
  }
669
691
  .nav-title {
670
692
  color: $color-white;
671
693
  display: inline-block;
672
694
  font-size: 1.25rem;
673
- margin-bottom: 6px;
674
- margin-right: 8px;
695
+ margin-bottom: f.rem(6px);
696
+ margin-right: f.rem(8px);
675
697
  line-height: 1.2;
676
698
  @include breakpoint(sm) {
677
699
  color: $color-navy;
@@ -719,12 +741,12 @@ header {
719
741
  font-size: 1rem;
720
742
  font-weight: 500;
721
743
  line-height: 1.4;
722
- margin: 0 0 18px;
744
+ margin: 0 0 f.rem(18px);
723
745
  padding: 0;
724
746
  text-transform: uppercase;
725
747
  }
726
748
  .nav-section {
727
- padding: 24px;
749
+ padding: f.rem(24px);
728
750
  box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.1);
729
751
  & ul {
730
752
  list-style: none;
@@ -733,7 +755,7 @@ header {
733
755
  }
734
756
 
735
757
  ul + ul {
736
- margin-top: 26px;
758
+ margin-top: f.rem(26px);
737
759
  }
738
760
 
739
761
  .btn {
@@ -743,7 +765,7 @@ header {
743
765
  .sublink::before {
744
766
  content: '\2022';
745
767
  font-weight: 500;
746
- padding: 0 12px;
768
+ padding: 0 f.rem(12px);
747
769
  }
748
770
 
749
771
  $menu-spacing: 18px;
@@ -780,7 +802,7 @@ header {
780
802
  :root & {
781
803
  .nav-column {
782
804
  flex-basis: calc((100% / 2) - 15px);
783
- margin-right: 30px;
805
+ margin-right: f.rem(30px);
784
806
  }
785
807
  .nav-column:last-of-type {
786
808
  margin-right: 0;
@@ -801,7 +823,7 @@ header {
801
823
  :root & {
802
824
  .nav-column {
803
825
  flex-basis: calc((100% / 3) - 15px);
804
- margin-right: 30px;
826
+ margin-right: f.rem(30px);
805
827
  }
806
828
  .nav-column:last-of-type {
807
829
  margin-right: 0;
@@ -821,7 +843,7 @@ header {
821
843
  :root & {
822
844
  .nav-column {
823
845
  flex-basis: calc((100% / 4) - 15px);
824
- margin-right: 30px;
846
+ margin-right: f.rem(30px);
825
847
  }
826
848
  .nav-column:last-of-type {
827
849
  margin-right: 0;
@@ -848,7 +870,7 @@ header {
848
870
  font-weight: 300;
849
871
  line-height: 1.4;
850
872
  text-decoration: none;
851
- margin-bottom: 10px;
873
+ margin-bottom: f.rem(10px);
852
874
 
853
875
  &:hover:not(.btn),
854
876
  &:focus:not(.btn) {
@@ -872,7 +894,7 @@ header {
872
894
  }
873
895
 
874
896
  @include breakpoint(xs) {
875
- margin-top: 26px;
897
+ margin-top: f.rem(26px);
876
898
  }
877
899
  }
878
900
 
@@ -118,7 +118,7 @@
118
118
  .qpp-c-search__submit {
119
119
  position: relative;
120
120
  border-radius: 0 3px 3px 0;
121
- margin-left: -1px;
121
+ margin-left: f.rem(-1px);
122
122
  color: v.$blue-60;
123
123
 
124
124
  &:focus {
@@ -161,3 +161,62 @@
161
161
  margin-right: 0;
162
162
  }
163
163
  }
164
+
165
+ .qpp-c-search--header-container {
166
+ display: flex;
167
+ flex-direction: column;
168
+ align-items: center;
169
+ padding-top: f.rem(20px);
170
+ margin-right: 0;
171
+
172
+ .qpp-c-search--header-container__block {
173
+ display: flex;
174
+ flex-direction: column;
175
+ align-items: center;
176
+ max-width: 435px;
177
+ width: 100%;
178
+ padding: 0 f.rem(30px);
179
+ }
180
+
181
+ .qpp-c-search--header-container__title {
182
+ display: flex;
183
+ justify-content: center;
184
+ align-items: center;
185
+ max-width: 84px;
186
+ width: 100%;
187
+ background-color: v.$blue-05;
188
+ color: v.$black;
189
+ font-size: v.$font-size-12;
190
+ line-height: f.rem(14px);
191
+ margin-bottom: f.rem(10px);
192
+ padding: f.rem(3px) 0px;
193
+ border-radius: 1.5px;
194
+ }
195
+
196
+ .survey-link {
197
+ color: v.$blue-70;
198
+ font-size: v.$font-size-12;
199
+ }
200
+
201
+ @include m.media-breakpoint(sm) {
202
+ align-items: flex-end;
203
+ margin-right: f.rem(40px);
204
+
205
+ .qpp-c-search--header-container__block {
206
+ flex-direction: row;
207
+ align-items: normal;
208
+ padding: 0 0;
209
+ }
210
+
211
+ .qpp-c-search--header-container__title {
212
+ margin-bottom: 0;
213
+ border-radius: 3px 0px 0px 3px;
214
+ }
215
+ }
216
+
217
+ @media (min-width: 860px) {
218
+ .qpp-c-search--header-container__block {
219
+ max-width: 505px;
220
+ }
221
+ }
222
+ }