carnival_devise_views 0.0.1 → 0.0.2
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.
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/app/assets/images/fonts/opensans-regular-webfont.eot +0 -0
- data/app/assets/images/fonts/opensans-regular-webfont.svg +252 -0
- data/app/assets/images/fonts/opensans-regular-webfont.ttf +0 -0
- data/app/assets/images/fonts/opensans-regular-webfont.woff +0 -0
- data/app/assets/images/fonts/opensans-semibold-webfont.eot +0 -0
- data/app/assets/images/fonts/opensans-semibold-webfont.svg +251 -0
- data/app/assets/images/fonts/opensans-semibold-webfont.ttf +0 -0
- data/app/assets/images/fonts/opensans-semibold-webfont.woff +0 -0
- data/app/assets/images/fonts/up-not.png +0 -0
- data/app/assets/stylesheets/carnival_devise_views.css +255 -0
- data/app/assets/stylesheets/carnival_devise_views.sass +212 -0
- data/app/views/erb/devise/confirmations/new.html.erb +12 -0
- data/app/views/erb/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/erb/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/erb/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/erb/devise/passwords/edit.html.erb +16 -0
- data/app/views/erb/devise/passwords/new.html.erb +12 -0
- data/app/views/erb/devise/registrations/edit.html.erb +29 -0
- data/app/views/erb/devise/registrations/new.html.erb +18 -0
- data/app/views/erb/devise/sessions/new.html.erb +21 -0
- data/app/views/erb/devise/shared/_links.html.erb +24 -0
- data/app/views/haml/devise/confirmations/new.html.haml +9 -0
- data/app/views/haml/devise/mailer/confirmation_instructions.html.haml +8 -0
- data/app/views/haml/devise/mailer/reset_password_instructions.html.haml +14 -0
- data/app/views/haml/devise/mailer/unlock_instructions.html.haml +11 -0
- data/app/views/haml/devise/passwords/edit.html.haml +14 -0
- data/app/views/haml/devise/passwords/new.html.haml +11 -0
- data/app/views/haml/devise/registrations/edit.html.haml +33 -0
- data/app/views/haml/devise/registrations/new.html.haml +17 -0
- data/app/views/haml/devise/sessions/new.html.haml +13 -0
- data/app/views/haml/devise/shared/_links.html.haml +14 -0
- data/app/views/haml/devise/unlocks/new.html.erb +12 -0
- data/config/locales/en.yml +42 -0
- data/config/locales/pt-BR.yml +42 -0
- data/lib/carnival_devise_views.rb +5 -0
- data/lib/carnival_devise_views/version.rb +3 -0
- data/lib/generators/carnival_devise_views/install_generator.rb +45 -0
- metadata +46 -6
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,255 @@
|
|
1
|
+
*{outline:none;}
|
2
|
+
|
3
|
+
@font-face {
|
4
|
+
font-family: 'OpenSansRegular';
|
5
|
+
src: url('fonts/opensans-regular-webfont.eot');
|
6
|
+
src: url('fonts/opensans-regular-webfont.eot?#iefix') format('embedded-opentype'),
|
7
|
+
url('fonts/opensans-regular-webfont.woff') format('woff'),
|
8
|
+
url('fonts/opensans-regular-webfont.ttf') format('truetype'),
|
9
|
+
url('fonts/opensans-regular-webfont.svg#OpenSansRegular') format('svg');
|
10
|
+
font-weight: normal;
|
11
|
+
font-style: normal;
|
12
|
+
}
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: 'OpenSansSemibold';
|
16
|
+
src: url('fonts/opensans-semibold-webfont.eot');
|
17
|
+
src: url('fonts/opensans-semibold-webfont.eot?#iefix') format('embedded-opentype'),
|
18
|
+
url('fonts/opensans-semibold-webfont.woff') format('woff'),
|
19
|
+
url('fonts/opensans-semibold-webfont.ttf') format('truetype'),
|
20
|
+
url('fonts/opensans-semibold-webfont.svg#OpenSansSemibold') format('svg');
|
21
|
+
font-weight: normal;
|
22
|
+
font-style: normal;
|
23
|
+
}
|
24
|
+
|
25
|
+
input[type=number]::-webkit-inner-spin-button,
|
26
|
+
input[type=number]::-webkit-outer-spin-button {
|
27
|
+
-webkit-appearance: none;
|
28
|
+
margin: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
body, html{
|
32
|
+
margin:0;
|
33
|
+
padding:0;
|
34
|
+
font-size:14px;
|
35
|
+
line-height:22px;
|
36
|
+
color:#666;
|
37
|
+
font-family: 'OpenSansRegular', sans-serif;
|
38
|
+
overflow-y: auto !important;
|
39
|
+
height: 100%;
|
40
|
+
background-color: #eee;
|
41
|
+
}
|
42
|
+
|
43
|
+
.login-container{
|
44
|
+
float: left;
|
45
|
+
width: 100%;
|
46
|
+
height: 100%;
|
47
|
+
}
|
48
|
+
|
49
|
+
.login-container form{
|
50
|
+
background-color: #f7f7f7;
|
51
|
+
padding: 20px 25px 20px;
|
52
|
+
margin: -200px auto 25px;
|
53
|
+
width: 304px;
|
54
|
+
box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2);
|
55
|
+
position: relative;
|
56
|
+
top: 50%;
|
57
|
+
border-radius: 5px;
|
58
|
+
border: 1px solid #ccc;
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
.login-container h2{
|
63
|
+
margin-bottom: 30px;
|
64
|
+
text-align: center;
|
65
|
+
}
|
66
|
+
|
67
|
+
.button{
|
68
|
+
-moz-appearance: none;
|
69
|
+
-webkit-appearance: none;
|
70
|
+
appearance: none;
|
71
|
+
display: inline-block;
|
72
|
+
height: 36px;
|
73
|
+
padding: 0 8px;
|
74
|
+
margin: 0;
|
75
|
+
-moz-box-sizing: border-box;
|
76
|
+
-webkit-box-sizing: border-box;
|
77
|
+
box-sizing: border-box;
|
78
|
+
-moz-border-radius: 1px;
|
79
|
+
-webkit-border-radius: 1px;
|
80
|
+
border-radius: 1px;
|
81
|
+
font-size: 15px;
|
82
|
+
box-shadow: 0 -1px 0px 0 #fff;
|
83
|
+
color: #333;
|
84
|
+
border: 1px solid #ccc;
|
85
|
+
}
|
86
|
+
|
87
|
+
.button:hover{
|
88
|
+
color: #fff;
|
89
|
+
cursor: pointer;
|
90
|
+
border: 1px solid #2A6198;
|
91
|
+
background-color: #2D66A0;
|
92
|
+
}
|
93
|
+
|
94
|
+
/********************* FORM BASE STYLE ******************* START */
|
95
|
+
|
96
|
+
input::-webkit-outer-spin-button,
|
97
|
+
input::-webkit-inner-spin-button {
|
98
|
+
/* display: none; <- Crashes Chrome on hover */
|
99
|
+
-webkit-appearance: none;
|
100
|
+
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
101
|
+
}
|
102
|
+
|
103
|
+
.login-container *{
|
104
|
+
transition: all 0.3s ease;
|
105
|
+
}
|
106
|
+
|
107
|
+
.login-container input{
|
108
|
+
width: 100%;
|
109
|
+
outline:none;
|
110
|
+
height:21px;
|
111
|
+
border: 1px solid #c8c8c8;
|
112
|
+
font-family: 'OpenSansRegular';
|
113
|
+
padding:2px 6px 2px 6px;
|
114
|
+
color:#555;
|
115
|
+
border-radius: 3px;
|
116
|
+
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
|
117
|
+
background:#fff;
|
118
|
+
box-sizing: border-box;
|
119
|
+
-moz-box-sizing: border-box;
|
120
|
+
height: 35px;
|
121
|
+
margin: 0px 0px 10px 0px;
|
122
|
+
}
|
123
|
+
|
124
|
+
.login-container input[type="checkbox"]{
|
125
|
+
width: auto;
|
126
|
+
height: auto;
|
127
|
+
float: left;
|
128
|
+
margin: 4px 5px 0px 0px;
|
129
|
+
padding: 0;
|
130
|
+
}
|
131
|
+
|
132
|
+
.login-container input[type='file']{
|
133
|
+
padding:0px 6px 0px 0px;
|
134
|
+
border-left:none;
|
135
|
+
}
|
136
|
+
|
137
|
+
.login-container input:focus{
|
138
|
+
border: 1px solid #A2C5F3;
|
139
|
+
box-shadow: 0px 0px 3px rgba(110, 220, 255, 0.6);
|
140
|
+
}
|
141
|
+
|
142
|
+
.login-container input.submit{
|
143
|
+
width: auto !important;
|
144
|
+
cursor: pointer !important;
|
145
|
+
display: inline-block;
|
146
|
+
text-align: center;
|
147
|
+
font-size:14px;
|
148
|
+
padding: 7px 12px 6px 12px !important;
|
149
|
+
border: 1px solid
|
150
|
+
#C8C8C8;
|
151
|
+
background: url(bg_button.png);
|
152
|
+
color: #333;
|
153
|
+
margin-right: 0px;
|
154
|
+
box-shadow:none;
|
155
|
+
font-weight: 300;
|
156
|
+
border-radius: 2px;
|
157
|
+
height: auto;
|
158
|
+
margin-top: 0px;
|
159
|
+
}
|
160
|
+
|
161
|
+
.login-container input.submit:hover, #profile_submit:hover{
|
162
|
+
color:#3079ed;
|
163
|
+
cursor:pointer;
|
164
|
+
background:#efefef;
|
165
|
+
}
|
166
|
+
|
167
|
+
.login-container input.submit:active, #profile_submit:active{
|
168
|
+
background-position:0px -30px ;
|
169
|
+
border: 1px solid #173988;
|
170
|
+
color:#fff;
|
171
|
+
text-shadow: 0px 1px 0px #173988;
|
172
|
+
cursor:pointer;
|
173
|
+
}
|
174
|
+
|
175
|
+
.login-container textarea{
|
176
|
+
width: 100%;
|
177
|
+
outline:none;
|
178
|
+
line-height:18px;
|
179
|
+
border: 1px solid #c8c8c8;
|
180
|
+
font-family: 'OpenSansRegular';
|
181
|
+
padding:7px 7px 7px 7px;
|
182
|
+
min-height:100px;
|
183
|
+
margin:0;
|
184
|
+
color:#555;
|
185
|
+
box-shadow: 0px 1px 0px 0px #fff;
|
186
|
+
border-radius: 4px;
|
187
|
+
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
|
188
|
+
font-size:13px;
|
189
|
+
}
|
190
|
+
|
191
|
+
.login-container textarea:focus{
|
192
|
+
border: 1px solid #2c6fec;
|
193
|
+
}
|
194
|
+
|
195
|
+
.login-container button{
|
196
|
+
border: 1px solid #c8c8c8;
|
197
|
+
padding:7px 15px 6px 15px;
|
198
|
+
background:url(bg_button.png);
|
199
|
+
font-family: 'OpenSansSemibold';
|
200
|
+
color:#333;
|
201
|
+
box-shadow: 0px 1px 0px 0px #fff;
|
202
|
+
border-radius: 4px;
|
203
|
+
}
|
204
|
+
|
205
|
+
.login-container button:hover{
|
206
|
+
color:#3079ed;
|
207
|
+
cursor:pointer;
|
208
|
+
}
|
209
|
+
|
210
|
+
.login-container button:active{
|
211
|
+
background-position:0px -30px ;
|
212
|
+
border: 1px solid #173988;
|
213
|
+
color:#fff;
|
214
|
+
text-shadow: 0px 1px 0px #173988;
|
215
|
+
cursor:pointer;
|
216
|
+
}
|
217
|
+
|
218
|
+
.login-container fieldset{
|
219
|
+
width:97%;
|
220
|
+
margin: 15px 0px;
|
221
|
+
padding: 8px 5px;
|
222
|
+
border: 1px solid #ccc;
|
223
|
+
}
|
224
|
+
|
225
|
+
.login-container .sign_up{
|
226
|
+
margin: 10px 0px 0px 0px;
|
227
|
+
float: left;
|
228
|
+
width: 100%;
|
229
|
+
}
|
230
|
+
|
231
|
+
.login-container .forgot_password{
|
232
|
+
margin: 10px 0px 0px 0px;
|
233
|
+
width: 100%;
|
234
|
+
}
|
235
|
+
|
236
|
+
.login-container .sign_up a, .login-container .forgot_password a{
|
237
|
+
text-decoration: none;
|
238
|
+
opacity: 0.6;
|
239
|
+
}
|
240
|
+
|
241
|
+
.login-container .sign_up a:hover, .login-container .forgot_password a:hover{
|
242
|
+
opacity: 1;
|
243
|
+
}
|
244
|
+
|
245
|
+
.login-container .button{
|
246
|
+
background: white;
|
247
|
+
background: -webkit-linear-gradient(-90deg, #fff, #f0f0f0);
|
248
|
+
background: -moz-linear-gradient(-90deg, #fff, #f0f0f0);
|
249
|
+
background: linear, -90deg, white, #f0f0f0;
|
250
|
+
}
|
251
|
+
|
252
|
+
.login-container .button:hover{
|
253
|
+
background: #007ae1;
|
254
|
+
color: #fff;
|
255
|
+
}
|
@@ -0,0 +1,212 @@
|
|
1
|
+
*
|
2
|
+
outline: none
|
3
|
+
|
4
|
+
@font-face
|
5
|
+
font-family: 'OpenSansRegular'
|
6
|
+
src: url('fonts/opensans-regular-webfont.eot')
|
7
|
+
src: url('fonts/opensans-regular-webfont.eot?#iefix') format("embedded-opentype"), url('fonts/opensans-regular-webfont.woff') format("woff"), url('fonts/opensans-regular-webfont.ttf') format("truetype"), url('fonts/opensans-regular-webfont.svg#OpenSansRegular') format("svg")
|
8
|
+
font-weight: normal
|
9
|
+
font-style: normal
|
10
|
+
|
11
|
+
|
12
|
+
@font-face
|
13
|
+
font-family: 'OpenSansSemibold'
|
14
|
+
src: url('fonts/opensans-semibold-webfont.eot')
|
15
|
+
src: url('fonts/opensans-semibold-webfont.eot?#iefix') format("embedded-opentype"), url('fonts/opensans-semibold-webfont.woff') format("woff"), url('fonts/opensans-semibold-webfont.ttf') format("truetype"), url('fonts/opensans-semibold-webfont.svg#OpenSansSemibold') format("svg")
|
16
|
+
font-weight: normal
|
17
|
+
font-style: normal
|
18
|
+
|
19
|
+
|
20
|
+
input[type=number]
|
21
|
+
&::-webkit-inner-spin-button, &::-webkit-outer-spin-button
|
22
|
+
-webkit-appearance: none
|
23
|
+
margin: 0
|
24
|
+
|
25
|
+
body, html
|
26
|
+
margin: 0
|
27
|
+
padding: 0
|
28
|
+
font-size: 14px
|
29
|
+
line-height: 22px
|
30
|
+
color: #666
|
31
|
+
font-family: 'OpenSansRegular', sans-serif
|
32
|
+
overflow-y: auto !important
|
33
|
+
height: 100%
|
34
|
+
background-color: #eee
|
35
|
+
|
36
|
+
.login-container
|
37
|
+
float: left
|
38
|
+
width: 100%
|
39
|
+
height: 100%
|
40
|
+
form
|
41
|
+
background-color: #f7f7f7
|
42
|
+
padding: 20px 25px 20px
|
43
|
+
margin: -200px auto 25px
|
44
|
+
width: 304px
|
45
|
+
box-shadow: 0px 0px 150px rgba(0, 0, 0, 0.2)
|
46
|
+
position: relative
|
47
|
+
top: 50%
|
48
|
+
border-radius: 5px
|
49
|
+
border: 1px solid #ccc
|
50
|
+
h2
|
51
|
+
margin-bottom: 30px
|
52
|
+
text-align: center
|
53
|
+
|
54
|
+
.button
|
55
|
+
-moz-appearance: none
|
56
|
+
-webkit-appearance: none
|
57
|
+
appearance: none
|
58
|
+
display: inline-block
|
59
|
+
height: 36px
|
60
|
+
padding: 0 8px
|
61
|
+
margin: 0
|
62
|
+
-moz-box-sizing: border-box
|
63
|
+
-webkit-box-sizing: border-box
|
64
|
+
box-sizing: border-box
|
65
|
+
-moz-border-radius: 1px
|
66
|
+
-webkit-border-radius: 1px
|
67
|
+
border-radius: 1px
|
68
|
+
font-size: 15px
|
69
|
+
box-shadow: 0 -1px 0px 0 white
|
70
|
+
color: #333
|
71
|
+
border: 1px solid #ccc
|
72
|
+
&:hover
|
73
|
+
color: #fff
|
74
|
+
cursor: pointer
|
75
|
+
border: 1px solid #2A6198
|
76
|
+
background-color: #2D66A0
|
77
|
+
|
78
|
+
/********************* FORM BASE STYLE ******************* START
|
79
|
+
|
80
|
+
input
|
81
|
+
&::-webkit-outer-spin-button, &::-webkit-inner-spin-button
|
82
|
+
/* display: none; <- Crashes Chrome on hover
|
83
|
+
-webkit-appearance: none
|
84
|
+
margin: 0
|
85
|
+
/* <-- Apparently some margin are still there even though it's hidden
|
86
|
+
|
87
|
+
.login-container
|
88
|
+
*
|
89
|
+
transition: all 0.3s ease
|
90
|
+
input
|
91
|
+
width: 100%
|
92
|
+
outline: none
|
93
|
+
height: 21px
|
94
|
+
border: 1px solid #c8c8c8
|
95
|
+
font-family: 'OpenSansRegular'
|
96
|
+
padding: 2px 6px 2px 6px
|
97
|
+
color: #555
|
98
|
+
border-radius: 3px
|
99
|
+
-moz-background-clip: padding
|
100
|
+
-webkit-background-clip: padding-box
|
101
|
+
background-clip: padding-box
|
102
|
+
background: #fff
|
103
|
+
box-sizing: border-box
|
104
|
+
-moz-box-sizing: border-box
|
105
|
+
height: 35px
|
106
|
+
margin: 0px 0px 10px 0px
|
107
|
+
&[type="checkbox"]
|
108
|
+
width: auto
|
109
|
+
height: auto
|
110
|
+
float: left
|
111
|
+
margin: 4px 5px 0px 0px
|
112
|
+
padding: 0
|
113
|
+
&[type='file']
|
114
|
+
padding: 0px 6px 0px 0px
|
115
|
+
border-left: none
|
116
|
+
&:focus
|
117
|
+
border: 1px solid #A2C5F3
|
118
|
+
box-shadow: 0px 0px 3px rgba(110, 220, 255, 0.6)
|
119
|
+
&.submit
|
120
|
+
width: auto !important
|
121
|
+
cursor: pointer !important
|
122
|
+
display: inline-block
|
123
|
+
text-align: center
|
124
|
+
font-size: 14px
|
125
|
+
padding: 7px 12px 6px 12px !important
|
126
|
+
border: 1px solid #c8c8c8
|
127
|
+
background: url(bg_button.png)
|
128
|
+
color: #333
|
129
|
+
margin-right: 0px
|
130
|
+
box-shadow: none
|
131
|
+
font-weight: 300
|
132
|
+
border-radius: 2px
|
133
|
+
height: auto
|
134
|
+
margin-top: 0px
|
135
|
+
&:hover
|
136
|
+
color: #3079ed
|
137
|
+
cursor: pointer
|
138
|
+
background: #efefef
|
139
|
+
|
140
|
+
#profile_submit:hover
|
141
|
+
color: #3079ed
|
142
|
+
cursor: pointer
|
143
|
+
background: #efefef
|
144
|
+
|
145
|
+
.login-container input.submit:active, #profile_submit:active
|
146
|
+
background-position: 0px -30px
|
147
|
+
border: 1px solid #173988
|
148
|
+
color: #fff
|
149
|
+
text-shadow: 0px 1px 0px #173988
|
150
|
+
cursor: pointer
|
151
|
+
|
152
|
+
.login-container
|
153
|
+
textarea
|
154
|
+
width: 100%
|
155
|
+
outline: none
|
156
|
+
line-height: 18px
|
157
|
+
border: 1px solid #c8c8c8
|
158
|
+
font-family: 'OpenSansRegular'
|
159
|
+
padding: 7px 7px 7px 7px
|
160
|
+
min-height: 100px
|
161
|
+
margin: 0
|
162
|
+
color: #555
|
163
|
+
box-shadow: 0px 1px 0px 0px #fff
|
164
|
+
border-radius: 4px
|
165
|
+
-moz-background-clip: padding
|
166
|
+
-webkit-background-clip: padding-box
|
167
|
+
background-clip: padding-box
|
168
|
+
font-size: 13px
|
169
|
+
&:focus
|
170
|
+
border: 1px solid #2c6fec
|
171
|
+
button
|
172
|
+
border: 1px solid #c8c8c8
|
173
|
+
padding: 7px 15px 6px 15px
|
174
|
+
background: url(bg_button.png)
|
175
|
+
font-family: 'OpenSansSemibold'
|
176
|
+
color: #333
|
177
|
+
box-shadow: 0px 1px 0px 0px #fff
|
178
|
+
border-radius: 4px
|
179
|
+
&:hover
|
180
|
+
color: #3079ed
|
181
|
+
cursor: pointer
|
182
|
+
&:active
|
183
|
+
background-position: 0px -30px
|
184
|
+
border: 1px solid #173988
|
185
|
+
color: #fff
|
186
|
+
text-shadow: 0px 1px 0px #173988
|
187
|
+
cursor: pointer
|
188
|
+
fieldset
|
189
|
+
width: 97%
|
190
|
+
margin: 15px 0px
|
191
|
+
padding: 8px 5px
|
192
|
+
border: 1px solid #ccc
|
193
|
+
.sign_up
|
194
|
+
margin: 10px 0px 0px 0px
|
195
|
+
float: left
|
196
|
+
width: 100%
|
197
|
+
.forgot_password
|
198
|
+
margin: 10px 0px 0px 0px
|
199
|
+
width: 100%
|
200
|
+
.sign_up a, .forgot_password a
|
201
|
+
text-decoration: none
|
202
|
+
opacity: 0.6
|
203
|
+
.sign_up a:hover, .forgot_password a:hover
|
204
|
+
opacity: 1
|
205
|
+
.button
|
206
|
+
background: white
|
207
|
+
background: -webkit-linear-gradient(-90deg, white, #f0f0f0)
|
208
|
+
background: -moz-linear-gradient(-90deg, white, #f0f0f0)
|
209
|
+
background: linear, -90deg, white, #f0f0f0
|
210
|
+
&:hover
|
211
|
+
background: #007ae1
|
212
|
+
color: #fff
|