This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
recaptcha.scss
114 lines (98 loc) · 2.13 KB
/
recaptcha.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
// Compass imports
@import "compass/reset";
@import "compass/css3";
// Settings
$recaptcha-base-color: #AF1500 !default;
$recaptcha-border-radius: 4px !default;
$recaptcha-border-radius-inner: 2px !default;
$recaptcha-input-background: #FFDC73 !default;
$recaptcha-icons-color: white !default;
$recaptcha-icons-shadow: 0 1px 1px black !default;
// reCAPTCHA container
.recaptcha_widget {
@include box-sizing('border-box');
max-width: 300px;
border: 4px solid $recaptcha-base-color;
@include border-radius( $recaptcha-border-radius );
background: $recaptcha-base-color;
margin: 0 0 10px;
}
// Showing an image...
#recaptcha_image {
width: 100% !important;
height: auto !important;
img {
@include box-sizing('border-box');
width: 100%;
height: auto;
@include border-radius( $recaptcha-border-radius-inner );
border: 3px solid #FFF;
}
}
// Showing audio...
.recaptcha_is_showing_audio {
embed {
height: 0;
width: 0;
overflow: hidden;
}
#recaptcha_image {
@include box-sizing('border-box');
width: 100%;
height: 60px;
background: #FFF;
@include border-radius( $recaptcha-border-radius-inner );
border: 3px solid #FFF;
br {
display: none;
}
#recaptcha_audio_download {
display: block;
}
}
}
// Input area container
.recaptcha_input {
background: $recaptcha-input-background;
color: #000;
font: 13px/1.5 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
margin: 4px 0 0;
padding: 0 4px 4px;
border: 4px solid $recaptcha-input-background;
@include border-radius( $recaptcha-border-radius-inner );
label {
margin: 0 0 6px;
@include box-sizing('border-box');
}
input {
width: 100%;
}
}
// Icon options
.recaptcha_options {
list-style: none;
margin: 4px 0 0;
height: 18px;
li {
float: left;
margin: 0 4px 0 0;
a {
text-decoration: none;
@include text-shadow( $recaptcha-icons-shadow );
font-size: 16px;
color: $recaptcha-icons-color;
display: block;
width: 20px;
height: 18px;
&:active {
position: relative;
top: 1px;
@include text-shadow(none);
}
}
}
}
// Hide icon labels
.captcha_hide {
display: none;
}