84f7b56ed32c62d5086d04888aa976e8027b5cd9
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / ssl / interstitial_v2.css
1 /* Copyright 2014 The Chromium Authors. All rights reserved.
2    Use of this source code is governed by a BSD-style license that can be
3    found in the LICENSE file. */
4
5 a {
6   color: #585858;
7 }
8
9 body {
10   background-color: #f7f7f7;
11   color: #585858;
12   font-size: 125%;
13 }
14
15 body.safe-browsing {
16   background-color: rgb(206, 52, 38);
17   color: white;
18 }
19
20 button {
21   background: rgb(76, 142, 250);
22   border: 0;
23   border-radius: 2px;
24   box-sizing: border-box;
25   color: #fff;
26   cursor: pointer;
27   float: right;
28   font-size: .875em;
29   height: 36px;
30   margin: -6px 0 0;
31   outline: 0;
32   padding: 8px 24px;
33   transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
34 }
35
36 [dir='rtl'] button {
37   float: left;
38 }
39
40 button:active {
41   background: rgb(50, 102, 213);
42 }
43
44 button:hover {
45   box-shadow: 0 1px 3px rgba(0, 0, 0, .50);
46 }
47
48 #details {
49   color: #696969;
50   margin: 45px 0 50px;
51 }
52
53 #details p:not(:first-of-type) {
54   margin-top: 20px;
55 }
56
57 #error-code {
58   color: black;
59   opacity: .35;
60   text-transform: uppercase;
61 }
62
63 h1 {
64   -webkit-margin-after: 16px;
65   color: #585858;
66   font-size: 1.6em;
67   font-weight: normal;
68   line-height: 1.25em;
69 }
70
71 h2 {
72   font-size: 1.2em;
73   font-weight: normal;
74 }
75
76 .hidden {
77   display: none;
78 }
79
80 .icon {
81   background-repeat: no-repeat;
82   background-size: 100%;
83   height: 72px;
84   margin: 0 0 40px;
85   width: 72px;
86 }
87
88 .interstitial-wrapper {
89   box-sizing: border-box;
90   font-size: 1em;
91   line-height: 1.6em;
92   margin: 100px auto 0;
93   max-width: 600px;
94   width: 100%;
95 }
96
97 #malware-opt-in {
98   font-size: .875em;
99   margin-top: 39px;
100 }
101
102 .nav-wrapper {
103   margin-top: 51px;
104 }
105
106 .nav-wrapper::after {
107   clear: both;
108   content: '';
109   display: table;
110   width: 100%;
111 }
112
113 #opt-in-label {
114   -webkit-margin-start: 32px;
115 }
116
117 .safe-browsing a,
118 .safe-browsing #details,
119 .safe-browsing #details-button,
120 .safe-browsing h1,
121 .safe-browsing h2 {
122   color: white;
123 }
124
125 .safe-browsing button {
126   background-color: rgb(206, 52, 38);
127   border: 1px solid white;
128 }
129
130 .safe-browsing button:active {
131   background-color: rgb(206, 52, 38);
132   border-color: rgba(255, 255, 255, .6);
133 }
134
135 .safe-browsing button:hover {
136   box-shadow: 0 2px 3px rgba(0, 0, 0, .5);
137 }
138
139 .safe-browsing .icon {
140   background-image: -webkit-image-set(
141       url('../safe_browsing/images/1x/stop_sign.png') 1x,
142       url('../safe_browsing/images/2x/stop_sign.png') 2x);
143 }
144
145 .small-link {
146   color: #696969;
147   font-size: .875em;
148 }
149
150 .ssl .icon {
151   background-image: -webkit-image-set(
152       url('images/1x/brokenssl_red.png') 1x,
153       url('images/2x/brokenssl_red.png') 2x);
154 }
155
156 .styled-checkbox {
157   float: left;
158   height: 16px;
159   margin-top: .36em;
160   position: relative;
161   width: 16px;
162 }
163
164 [dir='rtl'] .styled-checkbox {
165   float: right;
166 }
167
168 .styled-checkbox label {
169   background-color: white;
170   border-radius: 2px;
171   height: 16px;
172   left: 0;
173   position: absolute;
174   right: 0;
175   top: 0;
176   width: 16px;
177 }
178
179 .styled-checkbox label::after {
180   background: transparent;
181   border: 2px solid rgb(217, 69, 61);
182   border-right-width: 0;
183   border-top-width: 0;
184   content: '';
185   height: 4px;
186   left: 3px;
187   opacity: 0.3;
188   position: absolute;
189   top: 4px;
190   transform: rotate(-45deg);
191   width: 9px;
192 }
193
194 .styled-checkbox input[type=checkbox]:checked + label::after {
195   opacity: 1;
196 }
197
198 @media (max-width: 700px) {
199   .interstitial-wrapper {
200     padding: 0 10%;
201   }
202 }
203
204 @media (max-height: 600px) {
205   .interstitial-wrapper {
206     margin-top: 13%;
207   }
208 }
209
210 @media (max-width: 400px) {
211   button,
212   [dir='rtl'] button {
213     float: none;
214     font-size: 1em;
215     width: 100%;
216   }
217
218   #details {
219     margin: 20px 0 20px 0;
220   }
221
222   #details p:not(:first-of-type) {
223     margin-top: 10px;
224   }
225
226   #details-button {
227     display: block;
228     padding-top: 14px;
229     text-align: center;
230     width: 100%;
231   }
232
233   .interstitial-wrapper {
234     padding: 0 5%;
235   }
236
237   #malware-opt-in {
238     margin-top: 24px;
239   }
240
241   .nav-wrapper {
242     margin-top: 30px;
243   }
244
245   .small-link {
246     font-size: 1em;
247   }
248 }