-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_card-provider-set.scss
160 lines (133 loc) · 3.08 KB
/
_card-provider-set.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
// styles for the `additional-providers` card
// https://issues.sho.com/browse/SITE-15784
// later repurposed for the `showtime-app` direct card
// https://issues.sho.com/browse/SITE-16124
// and then returned for additional-providers redux!
// https://issues.sho.com/browse/SITE-16633
.order-card__provider-set {
}
.order-card__provider-entry {
@include from-order-tray-sidebar-visible {
border-bottom: $colors-light-grey solid 1px;
&:last-child {
border-bottom: none;
}
}
&__body {
position: relative;
padding: $size-s 0;
min-height: 40px;
}
&__details {
// padding: $size-s 0;
clear: both;
}
&__logo,
&__free-trial-callout,
&__provider-lead {
display: block;
margin-bottom: $size-s;
}
&__free-trial-callout {
margin-bottom: 0
}
&__logo {
@include from-large {
margin-bottom: 0
}
// adjust centering on disclosure arrow
&:before {
top:50%;
transform: translateY(unquote("-#{map-get($icon-sizes, 'small') / 2}"));
}
.order-card__logo {
margin-bottom: 0
}
}
&__free-trial-callout {
min-width: 140px;
color: $colors-mid-grey !important;
@include upcase;
}
&__provider-lead {
display: block;
@include round-button;
@include button--solid($colors-red);
height:$size-s;
@include until-small {
line-height: $size-s;
}
}
// drawing a divider between description and price info is ok,
// but it shouldn't span the entire width of the card
& .order-card__divider:before {
position: static;
}
// drawing a divider between each provider-entry only makes sense on mobile
& + .order-card__divider {
@include from-order-tray-sidebar-visible {
display: none
}
}
@include from-small {
&__provider-lead {
display: block;
padding-top: $size-xs;
padding-bottom: ($size-s + ($size-xxs * 2));
width: 250px;
white-space: nowrap;
}
}
@include from-medium {
&__provider-lead {
position: absolute;
right:0;
top:$size-l + $size-s;
}
}
@include until-large {
&--no-free-trial &__free-trial-callout {
display: none;
}
}
@include from-large {
&__body {}
&__logo {
margin-right: $size-m
}
&__provider-lead {}
}
&__details {
overflow: hidden;
}
&--expanded &__details--expanded {
overflow: visible; // allow price callouts to peek out of container
}
&--expanded &__details {
margin-bottom: $size-l;
}
}
.order-card--with-provider-set {
.order-card__headline {
@include from-medium {
margin-top:$size-s;
@include header('delta');
color: $colors-pure-black
}
}
.order-card__blurb--price {
padding-bottom: 0
}
// custom styles for samsung smart TVs
.order-card__provider-entry[data-provider-id="126"] {
.order-card__provider-entry__cta {
@include header('delta');
color: $colors-pure-black !important;
text-transform: uppercase;
@include from-medium {
@include header('epsilon');
margin-top: $size-m;
}
}
}
}