_featherlight.scss
4.47 KB
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
/**
* Featherlight - ultra slim jQuery lightbox
* Version 1.5.0 - http://noelboss.github.io/featherlight/
*
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
@media all {
.featherlight {
display : none;
position : fixed;
top : 0;
right : 0;
bottom : 0;
left : 0;
z-index : 2147483647;
text-align : center;
white-space : nowrap;
cursor : pointer;
background : #333;
background : rgba(0, 0, 0, 0)
}
.featherlight:last-of-type {
background : rgba(0, 0, 0, .8)
}
.featherlight:before {
content : '';
display : inline-block;
height : 100%;
vertical-align : middle;
margin-right : -.25em
}
.featherlight .featherlight-content {
position : relative;
text-align : left;
vertical-align : middle;
display : inline-block;
overflow : auto;
padding : 25px 25px 0;
border-bottom : 25px solid transparent;
margin-left : 5%;
margin-right : 5%;
max-height : 95%;
background : #fff;
cursor : auto;
white-space : normal
}
.featherlight .featherlight-inner {
display : block
}
.featherlight .featherlight-close-icon {
position : absolute;
z-index : 9999;
top : 0;
right : 0;
line-height : 25px;
width : 25px;
cursor : pointer;
text-align : center;
font-family : Arial, sans-serif;
background : #fff;
background : rgba(255, 255, 255, .3);
color : #000
}
.featherlight .featherlight-image {
width : 100%
}
.featherlight-iframe .featherlight-content {
border-bottom : 0;
padding : 0
}
.featherlight iframe {
border : 0
}
.featherlight * {
-webkit-box-sizing : border-box;
-moz-box-sizing : border-box;
box-sizing : border-box
}
}
@media only screen and (max-width : 1024px) {
.featherlight .featherlight-content {
margin-left : 10px;
margin-right : 10px;
max-height : 98%;
padding : 10px 10px 0;
border-bottom : 10px solid transparent
}
}
.canada-post-strike-container {
position : absolute;
right : 9px;
top : 140px;
-webkit-transform : translate(0, 0);
-moz-transform : translate(0, 0);
-ms-transform : translate(0, 0);
-o-transform : translate(0, 0);
transition : all 0.2s ease;
z-index : 40;
@media only screen and (min-width : $bp-middle) {
top : 155px;
right : 0;
}
.canada-post-icon-button {
position : relative;
background-color : #d92c27;
display : inline-block;
width : 80px;
text-align : center;
padding : 15px;
&:hover {
filter : url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
filter : gray; /* IE6-9 */
-webkit-filter : grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}
img, .canada-post-logo {
background-image : url(../images/cp_logo_reverse.svg);
background-repeat : no-repeat;
background-size : 50px 50px;
display : block;
width : 50px;
height : 50px;
margin : 0 auto;
}
.strike-notice {
color : #ffffff;
display : block;
margin-top : 10px;
line-height : 1;
text-align : center;
font-weight : bold;
font-size: 13px;
}
}
}
.canada-post-strike-content, .featherlight-custom-content {
display : none;
}
.featherlight {
.featherlight-content {
max-width: 690px;
.featherlight-close-icon {
&:hover {
opacity : 0.5;
}
}
}
}