@scrippsproduct/entertainment-sites-css 1.0.4 → 1.1.1

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/src/header.scss CHANGED
@@ -10,6 +10,7 @@ header {
10
10
  header-menu-wrapper {
11
11
  display: flex;
12
12
  justify-content: flex-end;
13
+ align-items: flex-end;
13
14
  margin-left: auto;
14
15
  }
15
16
 
@@ -86,73 +87,52 @@ header logo-navigation {
86
87
  display: none;
87
88
  }
88
89
 
90
+ .header-divider {
91
+ margin-block: 2rem 2.5rem;
92
+ transition: border-color 0.325s ease-out;
93
+ }
94
+
89
95
  @media screen and (max-width: 60rem) {
90
96
 
91
- header {
92
- padding-top: 4.375rem; // height of mobile nav
97
+ site-wrapper:has(.mobile-nav--shadow) .header-divider {
98
+ border-color: transparent;
93
99
  }
94
-
95
- // hide desktop nav
96
- header > content-constrainer {
97
- display: none;
100
+
101
+ .header-divider {
102
+ margin: 0 auto 2.5rem;
98
103
  }
99
104
 
100
- .mobile-nav {
101
- z-index: 50;
102
- display: block;
105
+ header {
103
106
  position: fixed;
104
- width: 100%;
105
107
  top: 0;
106
108
  left: 0;
107
109
  width: 100%;
108
- height: 4.375rem;
109
-
110
- // Gradient transition hack for mobile-nav--shadow
111
- &:before {
112
- position: absolute;
113
- content: "";
114
- top: 0;
115
- right: 0;
116
- bottom: 0;
117
- left: 0;
118
- background: linear-gradient(180deg,rgba(0,0,0,.9) 0,rgba(0,0,0,0.3));
119
- z-index: -1;
120
- transition: opacity 0.2s linear;
121
- opacity: 0;
110
+ z-index: 30;
111
+ padding-top: 4.375rem;
112
+
113
+ > .desktop-nav {
114
+ display: none;
122
115
  }
123
116
  }
117
+
118
+ .mobile-nav {
119
+ z-index: 1;
120
+ display: block;
121
+ position: absolute;
122
+ top: 0;
123
+ left: 0;
124
+ width: 100%;
125
+ height: 6.5rem;
126
+ transition: background-image 0.325s ease-out;
127
+ background-image: linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0));
124
128
 
125
- .mobile-nav--shadow::before {
126
- opacity: 1;
129
+ &.mobile-nav--shadow {
130
+ background-image: linear-gradient(180deg,rgba(0,0,0,0.9) 0,rgba(0,0,0,0.5));
131
+ }
127
132
  }
128
133
 
129
134
  .drawer-navigation__nav-bar {
130
135
  background: transparent;
131
-
132
- // Gradient transition hack for nav-bar
133
- &:before {
134
- position: absolute;
135
- content: "";
136
- top: 0;
137
- right: 0;
138
- bottom: 0;
139
- left: 0;
140
- background: var(--theme-color-100);
141
- z-index: -1;
142
- transition: opacity 0.2s linear;
143
- opacity: 0;
144
- }
145
- }
146
-
147
- // Make the gradient appear immediately in the navbar when it gets opened
148
- .drawer-navigation__nav-bar--expanded {
149
- background: var(--theme-color-100);
150
- }
151
-
152
- // transition the nav bar gradient out gracefully when the nav menu closes
153
- .drawer-navigation__nav-bar--expanded::before,
154
- .drawer-navigation__nav-bar--closing::before {
155
- opacity: 1;
156
136
  }
157
137
 
158
138
  .drawer-navigation__primary-navigation {
@@ -160,20 +140,12 @@ header logo-navigation {
160
140
  }
161
141
 
162
142
  .mobile-nav .main-navigation {
163
- margin: 0 1rem 2rem;
143
+ margin: 0 0 2rem;
164
144
  }
165
145
 
166
146
  .mobile-nav .main-navigation__nav-item {
167
147
  margin-bottom: 1rem;
168
148
  }
169
-
170
- .drawer-navigation__nav-bar .image-replacement-anchor {
171
- margin-left: 1rem;
172
- }
173
-
174
- .drawer-navigation__menu-toggle {
175
- padding: 1em;
176
- }
177
149
 
178
150
  .drawer-navigation__separator {
179
151
  margin: 1.5rem auto;
package/src/home.scss CHANGED
@@ -135,6 +135,10 @@
135
135
  align-items: center;
136
136
  grid-template-columns: 1fr 1fr;
137
137
  padding-block: 5rem;
138
+
139
+ @media screen and (max-width: 43.75rem) {
140
+ padding-block: 2rem 5rem;
141
+ }
138
142
  }
139
143
 
140
144
  .program-airdate {
@@ -534,6 +538,10 @@ featured-list {
534
538
  filter: unset;
535
539
  }
536
540
  }
541
+
542
+ #carousel-promotions-row {
543
+ --_control-btns-offset-x: -2rem !important;
544
+ }
537
545
  }
538
546
  // 1170px
539
547
  @media screen and (max-width: 73.125rem) {
@@ -597,7 +605,7 @@ featured-list {
597
605
  --_slide-aspect-ratio: 1/1.1 !important;
598
606
 
599
607
  cta-block {
600
- padding-left: 1.5rem;
608
+ padding-left: 0.5rem;
601
609
 
602
610
  > div {
603
611
  font-size: 1.5em;
@@ -655,7 +663,7 @@ featured-list {
655
663
  @media screen and (max-width: 60rem) {
656
664
  .on-now-section > content-constrainer {
657
665
  grid-template-columns: 1fr;
658
- gap: 2rem;
666
+ gap: 0;
659
667
  }
660
668
 
661
669
  .program-on-now__image-wrapper {
@@ -693,6 +701,12 @@ featured-list {
693
701
  .brand-promotion__item:last-child {
694
702
  margin-block-end: 2rem;
695
703
  }
704
+
705
+ .brand-promotion__item {
706
+ cta-block {
707
+ padding-left: 0rem;
708
+ }
709
+ }
696
710
  }
697
711
  // 700px
698
712
  @media screen and (max-width: 43.75rem) {
@@ -2,7 +2,7 @@
2
2
  max-width: 46.875rem;
3
3
  height: auto;
4
4
  border: 1px solid #c0c2c7;
5
- margin: auto auto 6rem;
5
+ margin: auto;
6
6
  }
7
7
  .ot-form__wrapper > p {
8
8
  padding: 3rem 6rem 2rem;
package/src/schedule.scss CHANGED
@@ -1,14 +1,20 @@
1
1
  sticky-content-wrapper {
2
2
  display: block;
3
3
  position: sticky;
4
- top: -3.1rem;
4
+ top: -1px;
5
5
  z-index: 10;
6
+ }
6
7
 
7
- &[data-pinned-state="pinned"] {
8
- background-image: radial-gradient(ellipse at top left,var(--theme-color-200) 0,var(--theme-color-200) 50%,var(--theme-color-100) 90%);
8
+ @media screen and (max-width: 60rem) {
9
+ sticky-content-wrapper {
10
+ top: 6.3rem;
9
11
  }
10
12
  }
11
13
 
14
+ sticky-content-wrapper[data-pinned-state=pinned] {
15
+ background-image: radial-gradient(ellipse at top left,var(--theme-color-200) 0,var(--theme-color-200) 50%,var(--theme-color-100) 90%);
16
+ }
17
+
12
18
  .schedule-list__airdate {
13
19
  font-size: 2.25rem;
14
20
  font-weight: 500;
@@ -52,7 +58,6 @@ sticky-content-wrapper {
52
58
  font-size: 1.125rem;
53
59
 
54
60
  > div {
55
- margin: 0.5rem 0 1rem;
56
61
 
57
62
  &:first-of-type:not(:last-of-type) {
58
63
  font-size: 1.372rem;
@@ -97,37 +102,41 @@ sticky-content-wrapper {
97
102
  }
98
103
 
99
104
  date-navigation {
100
- padding-top: 2.5rem;
101
- transition: border-top 0.325s ease-in-out;
102
- }
105
+ padding-block-start: 1rem;
103
106
 
104
- sticky-content-wrapper[data-pinned-state="unpinned"] date-navigation {
105
- border-top: 1px solid var(--mono-color-100);
107
+ @media screen and (max-width: 60rem) {
108
+ padding-block-start: 0;
109
+ }
106
110
  }
107
111
 
108
112
  .date-navigation__control {
109
113
  background: transparent;
110
114
  scale: 1.5;
111
- translate: 0 2rem;
115
+ translate: 0 1rem;
112
116
  color: var(--mono-color-100);
113
117
  }
114
118
 
115
119
  .date-navigation__control--next {
116
- inset-inline-end: -5rem;
120
+ inset-inline-end: -2rem;
117
121
  }
118
122
 
119
123
  .date-navigation__control--previous {
120
- inset-inline-start: -5rem;
124
+ inset-inline-start: -2rem;
121
125
  }
122
126
 
123
127
  .date-navigation__item {
128
+ --flex-basis: 14.285714%;
124
129
  border-right: 1px solid rgba(255,255,255, 0.4);
125
- flex-basis: 14.285714%;
130
+ flex-basis: var(--flex-basis);
126
131
  text-align: center;
127
132
 
128
133
  &:last-child {
129
134
  border-width: 0;
130
135
  }
136
+
137
+ @media screen and (max-width: 37.5rem) {
138
+ --flex-basis: 25%;
139
+ }
131
140
  }
132
141
 
133
142
  .date-navigation__list {
@@ -218,7 +227,7 @@ loading-wrapper {
218
227
  }
219
228
 
220
229
  .date-navigation__control--next {
221
- inset-inline-end: -1.4rem;
230
+ inset-inline-end: -1.2rem;
222
231
  }
223
232
 
224
233
  .schedule-list__item {
@@ -256,8 +265,8 @@ loading-wrapper {
256
265
  }
257
266
  // 960px
258
267
  @media screen and (max-width: 60rem) {
259
- sticky-content-wrapper[data-pinned-state=pinned] {
260
- padding-top: 4rem;
268
+ .date-navigation__control {
269
+ translate: 0 0.6rem;
261
270
  }
262
271
  }
263
272
  // 800px
@@ -277,16 +286,25 @@ loading-wrapper {
277
286
  @media screen and (max-width: 46.875rem) {
278
287
  .date-navigation__control {
279
288
  scale: 0.7;
280
- translate: 0 0.5rem;
289
+ translate: 0 -1rem;
290
+ }
291
+
292
+ .date-navigation__control--previous {
293
+ inset-inline-start: -1.6rem;
294
+ }
295
+
296
+ .date-navigation__control--next {
297
+ inset-inline-end: -1.5rem;
281
298
  }
282
299
  }
283
300
  // 500px
284
- @media screen and (max-width: 31.15rem) {
301
+ @media screen and (max-width: 31.25rem) {
285
302
  .date-navigation__weekday {
286
303
  font-size: 1rem;
287
304
  }
288
305
 
289
306
  .date-navigation__date {
290
307
  font-size: 0.8rem;
308
+ white-space: nowrap;
291
309
  }
292
310
  }
@@ -1,3 +1,9 @@
1
+ .show-details-page {
2
+ .header-divider {
3
+ display: none;
4
+ }
5
+ }
6
+
1
7
  show-details-page {
2
8
  display:block;
3
9