oauth2_provider_engine 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/oauth2_provider/application.js +52 -0
- data/app/assets/javascripts/oauth2_provider/highcharts.js +162 -0
- data/app/assets/javascripts/oauth2_provider/jquery.tagsinput.js +218 -0
- data/app/assets/stylesheets/oauth2_provider/gh-buttons.css +388 -0
- data/app/assets/stylesheets/oauth2_provider/gh-icons.png +0 -0
- data/app/assets/stylesheets/oauth2_provider/jquery.tagsinput.css +6 -0
- data/app/assets/stylesheets/oauth2_provider/reset.css +2 -0
- data/app/assets/stylesheets/oauth2_provider/template.css +52 -0
- data/app/controllers/oauth2_provider/accesses_controller.rb +39 -0
- data/app/controllers/oauth2_provider/application_controller.rb +17 -0
- data/app/controllers/oauth2_provider/authorize_controller.rb +141 -0
- data/app/controllers/oauth2_provider/clients_controller.rb +85 -0
- data/app/controllers/oauth2_provider/scopes_controller.rb +63 -0
- data/app/controllers/oauth2_provider/token_controller.rb +187 -0
- data/app/helpers/clients_helper.rb +5 -0
- data/app/helpers/oauth2_provider/application_helper.rb +4 -0
- data/app/models/oauth2_provider/client.rb +129 -0
- data/app/models/oauth2_provider/document.rb +15 -0
- data/app/models/oauth2_provider/oauth_access.rb +80 -0
- data/app/models/oauth2_provider/oauth_authorization.rb +70 -0
- data/app/models/oauth2_provider/oauth_daily_request.rb +54 -0
- data/app/models/oauth2_provider/oauth_refresh_token.rb +20 -0
- data/app/models/oauth2_provider/oauth_token.rb +78 -0
- data/app/models/oauth2_provider/scope.rb +39 -0
- data/app/views/layouts/oauth2_provider/application.html.erb +62 -0
- data/app/views/oauth2_provider/accesses/index.html.erb +25 -0
- data/app/views/oauth2_provider/accesses/show.html.erb +35 -0
- data/app/views/oauth2_provider/clients/_form.html.erb +50 -0
- data/app/views/oauth2_provider/clients/edit.html.erb +9 -0
- data/app/views/oauth2_provider/clients/index.html.erb +43 -0
- data/app/views/oauth2_provider/clients/new.html.erb +8 -0
- data/app/views/oauth2_provider/clients/show.html.erb +49 -0
- data/app/views/oauth2_provider/scopes/_form.html.erb +35 -0
- data/app/views/oauth2_provider/scopes/edit.html.erb +8 -0
- data/app/views/oauth2_provider/scopes/index.html.erb +27 -0
- data/app/views/oauth2_provider/scopes/new.html.erb +7 -0
- data/app/views/oauth2_provider/scopes/show.html.erb +19 -0
- data/app/views/shared/authorize.html.erb +34 -0
- data/app/views/shared/token.json.erb +8 -0
- data/config/locales/en.yml +31 -0
- data/config/oauth.yml +4 -0
- data/config/routes.rb +25 -0
- data/lib/oauth2_provider.rb +38 -0
- data/lib/oauth2_provider/controller_mixin.rb +53 -0
- data/lib/oauth2_provider/engine.rb +4 -0
- data/lib/oauth2_provider_engine.rb +1 -0
- data/lib/oauth2_provider_engine/version.rb +3 -0
- data/test/dummy/CHANGELOG.rdoc +67 -0
- data/test/dummy/Gemfile +53 -0
- data/test/dummy/Gemfile.lock +254 -0
- data/test/dummy/README.rdoc +522 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/VERSION +1 -0
- data/test/dummy/app/assets/stylesheets/reset.css +2 -0
- data/test/dummy/app/assets/stylesheets/template.css +52 -0
- data/test/dummy/app/controllers/application_controller.rb +52 -0
- data/test/dummy/app/controllers/pastas_controller.rb +23 -0
- data/test/dummy/app/controllers/pizzas_controller.rb +23 -0
- data/test/dummy/app/controllers/sessions_controller.rb +26 -0
- data/test/dummy/app/controllers/users_controller.rb +59 -0
- data/test/dummy/app/models/user.rb +50 -0
- data/test/dummy/app/views/layouts/application.html.erb +65 -0
- data/test/dummy/app/views/sessions/new.html.erb +25 -0
- data/test/dummy/app/views/shared/403.json.erb +4 -0
- data/test/dummy/app/views/shared/404.json.erb +6 -0
- data/test/dummy/app/views/shared/422.json.erb +5 -0
- data/test/dummy/app/views/shared/500.json.erb +4 -0
- data/test/dummy/app/views/shared/html/404.html.erb +0 -0
- data/test/dummy/app/views/shared/html/422.html.erb +0 -0
- data/test/dummy/app/views/users/_form.html.erb +27 -0
- data/test/dummy/app/views/users/edit.html.erb +8 -0
- data/test/dummy/app/views/users/index.html.erb +20 -0
- data/test/dummy/app/views/users/new.html.erb +46 -0
- data/test/dummy/app/views/users/show.html.erb +15 -0
- data/test/dummy/app/views/users/show.json.erb +6 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +57 -0
- data/test/dummy/config/boot.rb +13 -0
- data/test/dummy/config/cucumber.yml +8 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +32 -0
- data/test/dummy/config/environments/production.rb +58 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/test.rb +3 -0
- data/test/dummy/config/locales/en.yml +1 -0
- data/test/dummy/config/mongoid.yml +20 -0
- data/test/dummy/config/routes.rb +22 -0
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/doc/README_FOR_APP +2 -0
- data/test/dummy/lib/tasks/cucumber.rake +53 -0
- data/test/dummy/lib/tasks/watchr.rake +5 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +4 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/robots.txt +5 -0
- data/test/dummy/script/cucumber +10 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/spec/acceptance/acceptance_helper.rb +5 -0
- data/test/dummy/spec/acceptance/accesses_controller_spec.rb +77 -0
- data/test/dummy/spec/acceptance/clients_controller_spec.rb +218 -0
- data/test/dummy/spec/acceptance/oauth_authorize_controller_spec.rb +241 -0
- data/test/dummy/spec/acceptance/oauth_token_controller_spec.rb +196 -0
- data/test/dummy/spec/acceptance/resource_controller_spec.rb +143 -0
- data/test/dummy/spec/acceptance/scopes_controller_spec.rb +227 -0
- data/test/dummy/spec/acceptance/support/helpers.rb +81 -0
- data/test/dummy/spec/acceptance/support/paths.rb +9 -0
- data/test/dummy/spec/acceptance/support/view_helpers.rb +52 -0
- data/test/dummy/spec/acceptance/users_controller_spec.rb +198 -0
- data/test/dummy/spec/extras/scope_spec.rb +105 -0
- data/test/dummy/spec/factories/oauth.rb +106 -0
- data/test/dummy/spec/models/oauth/client_spec.rb +123 -0
- data/test/dummy/spec/models/oauth/oauth_access_spec.rb +48 -0
- data/test/dummy/spec/models/oauth/oauth_authorization_spec.rb +50 -0
- data/test/dummy/spec/models/oauth/oauth_daily_request_spec.rb +14 -0
- data/test/dummy/spec/models/oauth/oauth_refresh_token_spec.rb +11 -0
- data/test/dummy/spec/models/oauth/oauth_token_spec.rb +55 -0
- data/test/dummy/spec/models/scope_spec.rb +17 -0
- data/test/dummy/spec/spec_helper.rb +39 -0
- data/test/dummy/spec/support/settings_helper.rb +28 -0
- data/test/dummy/test/initializers/capybara_headers_hack.rb +23 -0
- data/test/oauth2_provider_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +387 -0
@@ -0,0 +1,388 @@
|
|
1
|
+
/* ------------------------------------------
|
2
|
+
CSS3 GITHUB BUTTONS (Nicolas Gallagher)
|
3
|
+
Licensed under Unlicense
|
4
|
+
http://github.com/necolas/css3-github-buttons
|
5
|
+
------------------------------------------ */
|
6
|
+
|
7
|
+
|
8
|
+
/* ------------------------------------------------------------------------------------------------------------- BUTTON */
|
9
|
+
|
10
|
+
.button {
|
11
|
+
position: relative;
|
12
|
+
overflow: visible;
|
13
|
+
display: inline-block;
|
14
|
+
padding: 0.5em 1em;
|
15
|
+
border: 1px solid #d4d4d4;
|
16
|
+
margin: 0;
|
17
|
+
text-decoration: none;
|
18
|
+
text-shadow: 1px 1px 0 #fff;
|
19
|
+
font:11px/normal sans-serif;
|
20
|
+
color: #333;
|
21
|
+
white-space: nowrap;
|
22
|
+
cursor: pointer;
|
23
|
+
outline: none;
|
24
|
+
background-color: #ececec;
|
25
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#ececec));
|
26
|
+
background-image: -moz-linear-gradient(#f4f4f4, #ececec);
|
27
|
+
background-image: -o-linear-gradient(#f4f4f4, #ececec);
|
28
|
+
background-image: linear-gradient(#f4f4f4, #ececec);
|
29
|
+
-webkit-background-clip: padding;
|
30
|
+
-moz-background-clip: padding;
|
31
|
+
-o-background-clip: padding-box;
|
32
|
+
/*background-clip: padding-box;*/ /* commented out due to Opera 11.10 bug */
|
33
|
+
-webkit-border-radius: 0.2em;
|
34
|
+
-moz-border-radius: 0.2em;
|
35
|
+
border-radius: 0.2em;
|
36
|
+
/* IE hacks */
|
37
|
+
zoom: 1;
|
38
|
+
*display: inline;
|
39
|
+
}
|
40
|
+
|
41
|
+
.button:hover,
|
42
|
+
.button:focus,
|
43
|
+
.button:active {
|
44
|
+
border-color: #3072b3;
|
45
|
+
border-bottom-color: #2a65a0;
|
46
|
+
text-decoration: none;
|
47
|
+
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
|
48
|
+
color: #fff;
|
49
|
+
background-color: #3072b3;
|
50
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#599bdc), to(#3072b3));
|
51
|
+
background-image: -moz-linear-gradient(#599bdc, #3072b3);
|
52
|
+
background-image: -o-linear-gradient(#599bdc, #3072b3);
|
53
|
+
background-image: linear-gradient(#599bdc, #3072b3);
|
54
|
+
}
|
55
|
+
|
56
|
+
.button:active,
|
57
|
+
.button.active {
|
58
|
+
border-color: #2a65a0;
|
59
|
+
border-bottom-color: #3884CF;
|
60
|
+
color: #fff;
|
61
|
+
background-color: #3072b3;
|
62
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#3072b3), to(#599bdc));
|
63
|
+
background-image: -moz-linear-gradient(#3072b3, #599bdc);
|
64
|
+
background-image: -o-linear-gradient(#3072b3, #599bdc);
|
65
|
+
background-image: linear-gradient(#3072b3, #599bdc);
|
66
|
+
}
|
67
|
+
|
68
|
+
/* overrides extra padding on button elements in Firefox */
|
69
|
+
.button::-moz-focus-inner {
|
70
|
+
padding: 0;
|
71
|
+
border: 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
/* ............................................................................................................. Icons */
|
75
|
+
|
76
|
+
.button.icon:before {
|
77
|
+
content: "";
|
78
|
+
position: relative;
|
79
|
+
top: 1px;
|
80
|
+
float:left;
|
81
|
+
width: 12px;
|
82
|
+
height: 12px;
|
83
|
+
margin: 0 0.75em 0 -0.25em;
|
84
|
+
background: url(gh-icons.png) 0 99px no-repeat;
|
85
|
+
}
|
86
|
+
|
87
|
+
.button.arrowup.icon:before { background-position: 0 0; }
|
88
|
+
.button.arrowup.icon:hover:before,
|
89
|
+
.button.arrowup.icon:focus:before,
|
90
|
+
.button.arrowup.icon:active:before { background-position: -12px 0; }
|
91
|
+
|
92
|
+
.button.arrowdown.icon:before { background-position: 0 -12px; }
|
93
|
+
.button.arrowdown.icon:hover:before,
|
94
|
+
.button.arrowdown.icon:focus:before,
|
95
|
+
.button.arrowdown.icon:active:before { background-position: -12px -12px; }
|
96
|
+
|
97
|
+
.button.arrowleft.icon:before { background-position: 0 -24px; }
|
98
|
+
.button.arrowleft.icon:hover:before,
|
99
|
+
.button.arrowleft.icon:focus:before,
|
100
|
+
.button.arrowleft.icon:active:before { background-position: -12px -24px; }
|
101
|
+
|
102
|
+
.button.arrowright.icon:before { float:right; margin: 0 -0.25em 0 0.5em; background-position: 0 -36px; }
|
103
|
+
.button.arrowright.icon:hover:before,
|
104
|
+
.button.arrowright.icon:focus:before,
|
105
|
+
.button.arrowright.icon:active:before { background-position: -12px -36px; }
|
106
|
+
|
107
|
+
.button.approve.icon:before { background-position: 0 -48px; }
|
108
|
+
.button.approve.icon:hover:before,
|
109
|
+
.button.approve.icon:focus:before,
|
110
|
+
.button.approve.icon:active:before { background-position: -12px -48px; }
|
111
|
+
|
112
|
+
.button.add.icon:before { background-position: 0 -288px; }
|
113
|
+
.button.add.icon:hover:before,
|
114
|
+
.button.add.icon:focus:before,
|
115
|
+
.button.add.icon:active:before { background-position: -12px -288px; }
|
116
|
+
|
117
|
+
.button.remove.icon:before { background-position: 0 -60px; }
|
118
|
+
.button.remove.icon:hover:before,
|
119
|
+
.button.remove.icon:focus:before,
|
120
|
+
.button.remove.icon:active:before { background-position: -12px -60px; }
|
121
|
+
|
122
|
+
.button.log.icon:before { background-position: 0 -72px; }
|
123
|
+
.button.log.icon:hover:before,
|
124
|
+
.button.log.icon:focus:before,
|
125
|
+
.button.log.icon:active:before { background-position: -12px -72px; }
|
126
|
+
|
127
|
+
.button.calendar.icon:before { background-position: 0 -84px; }
|
128
|
+
.button.calendar.icon:hover:before,
|
129
|
+
.button.calendar.icon:focus:before,
|
130
|
+
.button.calendar.icon:active:before { background-position: -12px -84px; }
|
131
|
+
|
132
|
+
.button.chat.icon:before { background-position: 0 -96px; }
|
133
|
+
.button.chat.icon:hover:before,
|
134
|
+
.button.chat.icon:focus:before,
|
135
|
+
.button.chat.icon:active:before { background-position: -12px -96px; }
|
136
|
+
|
137
|
+
.button.clock.icon:before { background-position: 0 -108px; }
|
138
|
+
.button.clock.icon:hover:before,
|
139
|
+
.button.clock.icon:focus:before,
|
140
|
+
.button.clock.icon:active:before { background-position: -12px -108px; }
|
141
|
+
|
142
|
+
.button.settings.icon:before { background-position: 0 -120px; }
|
143
|
+
.button.settings.icon:hover:before,
|
144
|
+
.button.settings.icon:focus:before,
|
145
|
+
.button.settings.icon:active:before { background-position: -12px -120px; }
|
146
|
+
|
147
|
+
.button.comment.icon:before { background-position: 0 -132px; }
|
148
|
+
.button.comment.icon:hover:before,
|
149
|
+
.button.comment.icon:focus:before,
|
150
|
+
.button.comment.icon:active:before { background-position: -12px -132px; }
|
151
|
+
|
152
|
+
.button.fork.icon:before { background-position: 0 -144px; }
|
153
|
+
.button.fork.icon:hover:before,
|
154
|
+
.button.fork.icon:focus:before,
|
155
|
+
.button.fork.icon:active:before { background-position: -12px -144px; }
|
156
|
+
|
157
|
+
.button.like.icon:before { background-position: 0 -156px; }
|
158
|
+
.button.like.icon:hover:before,
|
159
|
+
.button.like.icon:focus:before,
|
160
|
+
.button.like.icon:active:before { background-position: -12px -156px; }
|
161
|
+
|
162
|
+
.button.favorite.icon:before { background-position: 0 -348px; }
|
163
|
+
.button.favorite.icon:hover:before,
|
164
|
+
.button.favorite.icon:focus:before,
|
165
|
+
.button.favorite.icon:active:before { background-position: -12px -348px; }
|
166
|
+
|
167
|
+
.button.home.icon:before { background-position: 0 -168px; }
|
168
|
+
.button.home.icon:hover:before,
|
169
|
+
.button.home.icon:focus:before,
|
170
|
+
.button.home.icon:active:before { background-position: -12px -168px; }
|
171
|
+
|
172
|
+
.button.key.icon:before { background-position: 0 -180px; }
|
173
|
+
.button.key.icon:hover:before,
|
174
|
+
.button.key.icon:focus:before,
|
175
|
+
.button.key.icon:active:before { background-position: -12px -180px; }
|
176
|
+
|
177
|
+
.button.lock.icon:before { background-position: 0 -192px; }
|
178
|
+
.button.lock.icon:hover:before,
|
179
|
+
.button.lock.icon:focus:before,
|
180
|
+
.button.lock.icon:active:before { background-position: -12px -192px; }
|
181
|
+
|
182
|
+
.button.unlock.icon:before { background-position: 0 -204px; }
|
183
|
+
.button.unlock.icon:hover:before,
|
184
|
+
.button.unlock.icon:focus:before,
|
185
|
+
.button.unlock.icon:active:before { background-position: -12px -204px; }
|
186
|
+
|
187
|
+
.button.loop.icon:before { background-position: 0 -216px; }
|
188
|
+
.button.loop.icon:hover:before,
|
189
|
+
.button.loop.icon:focus:before,
|
190
|
+
.button.loop.icon:active:before { background-position: -12px -216px; }
|
191
|
+
|
192
|
+
.button.search.icon:before { background-position: 0 -228px; }
|
193
|
+
.button.search.icon:hover:before,
|
194
|
+
.button.search.icon:focus:before,
|
195
|
+
.button.search.icon:active:before { background-position: -12px -228px; }
|
196
|
+
|
197
|
+
.button.mail.icon:before { background-position: 0 -240px; }
|
198
|
+
.button.mail.icon:hover:before,
|
199
|
+
.button.mail.icon:focus:before,
|
200
|
+
.button.mail.icon:active:before { background-position: -12px -240px; }
|
201
|
+
|
202
|
+
.button.move.icon:before { background-position: 0 -252px; }
|
203
|
+
.button.move.icon:hover:before,
|
204
|
+
.button.move.icon:focus:before,
|
205
|
+
.button.move.icon:active:before { background-position: -12px -252px; }
|
206
|
+
|
207
|
+
.button.edit.icon:before { background-position: 0 -264px; }
|
208
|
+
.button.edit.icon:hover:before,
|
209
|
+
.button.edit.icon:focus:before,
|
210
|
+
.button.edit.icon:active:before { background-position: -12px -264px; }
|
211
|
+
|
212
|
+
.button.pin.icon:before { background-position: 0 -276px; }
|
213
|
+
.button.pin.icon:hover:before,
|
214
|
+
.button.pin.icon:focus:before,
|
215
|
+
.button.pin.icon:active:before { background-position: -12px -276px; }
|
216
|
+
|
217
|
+
.button.reload.icon:before { background-position: 0 -300px; }
|
218
|
+
.button.reload.icon:hover:before,
|
219
|
+
.button.reload.icon:focus:before,
|
220
|
+
.button.reload.icon:active:before { background-position: -12px -300px; }
|
221
|
+
|
222
|
+
.button.rss.icon:before { background-position: 0 -312px; }
|
223
|
+
.button.rss.icon:hover:before,
|
224
|
+
.button.rss.icon:focus:before,
|
225
|
+
.button.rss.icon:active:before { background-position: -12px -312px; }
|
226
|
+
|
227
|
+
.button.tag.icon:before { background-position: 0 -324px; }
|
228
|
+
.button.tag.icon:hover:before,
|
229
|
+
.button.tag.icon:focus:before,
|
230
|
+
.button.tag.icon:active:before { background-position: -12px -324px; }
|
231
|
+
|
232
|
+
.button.trash.icon:before { background-position: 0 -336px; }
|
233
|
+
.button.trash.icon:hover:before,
|
234
|
+
.button.trash.icon:focus:before,
|
235
|
+
.button.trash.icon:active:before { background-position: -12px -336px; }
|
236
|
+
|
237
|
+
.button.user.icon:before { background-position: 0 -360px; }
|
238
|
+
.button.user.icon:hover:before,
|
239
|
+
.button.user.icon:focus:before,
|
240
|
+
.button.user.icon:active:before { background-position: -12px -360px; }
|
241
|
+
|
242
|
+
|
243
|
+
/* ------------------------------------------------------------------------------------------------------------- BUTTON EXTENSIONS */
|
244
|
+
|
245
|
+
/* ............................................................................................................. Primary */
|
246
|
+
|
247
|
+
.button.primary {
|
248
|
+
font-weight: bold;
|
249
|
+
}
|
250
|
+
|
251
|
+
/* ............................................................................................................. Danger */
|
252
|
+
|
253
|
+
.button.danger {
|
254
|
+
color: #900;
|
255
|
+
}
|
256
|
+
|
257
|
+
.button.danger:hover,
|
258
|
+
.button.danger:focus,
|
259
|
+
.button.danger:active {
|
260
|
+
border-color: #b53f3a;
|
261
|
+
border-bottom-color: #a0302a;
|
262
|
+
color: #fff;
|
263
|
+
background-color: #dc5f59;
|
264
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dc5f59), to(#b33630));
|
265
|
+
background-image: -moz-linear-gradient(#dc5f59, #b33630);
|
266
|
+
background-image: -o-linear-gradient(#dc5f59, #b33630);
|
267
|
+
background-image: linear-gradient(#dc5f59, #b33630);
|
268
|
+
}
|
269
|
+
|
270
|
+
.button.danger:active,
|
271
|
+
.button.danger.active {
|
272
|
+
border-color: #a0302a;
|
273
|
+
border-bottom-color: #bf4843;
|
274
|
+
background-color: #b33630;
|
275
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b33630), to(#dc5f59));
|
276
|
+
background-image: -moz-linear-gradient(#b33630, #dc5f59);
|
277
|
+
background-image: -o-linear-gradient(#b33630, #dc5f59);
|
278
|
+
background-image: linear-gradient(#b33630, #dc5f59);
|
279
|
+
}
|
280
|
+
|
281
|
+
/* ............................................................................................................. Pill */
|
282
|
+
|
283
|
+
.button.pill {
|
284
|
+
-webkit-border-radius: 50em;
|
285
|
+
-moz-border-radius: 50em;
|
286
|
+
border-radius: 50em;
|
287
|
+
}
|
288
|
+
|
289
|
+
/* ............................................................................................................. Big */
|
290
|
+
|
291
|
+
.button.big {
|
292
|
+
font-size: 14px;
|
293
|
+
}
|
294
|
+
|
295
|
+
.button.big.icon:before { top: 0; }
|
296
|
+
|
297
|
+
|
298
|
+
/* ------------------------------------------------------------------------------------------------------------- BUTTON GROUPS */
|
299
|
+
|
300
|
+
/* ............................................................................................................. Standard */
|
301
|
+
|
302
|
+
.button-group {
|
303
|
+
display: inline-block;
|
304
|
+
list-style: none;
|
305
|
+
padding: 0;
|
306
|
+
margin: 0;
|
307
|
+
/* IE hacks */
|
308
|
+
zoom: 1;
|
309
|
+
*display: inline;
|
310
|
+
}
|
311
|
+
|
312
|
+
.button + .button,
|
313
|
+
.button + .button-group,
|
314
|
+
.button-group + .button,
|
315
|
+
.button-group + .button-group {
|
316
|
+
margin-left: 15px;
|
317
|
+
}
|
318
|
+
|
319
|
+
.button-group li {
|
320
|
+
float: left;
|
321
|
+
padding: 0;
|
322
|
+
margin: 0;
|
323
|
+
}
|
324
|
+
|
325
|
+
.button-group .button {
|
326
|
+
float: left;
|
327
|
+
margin-left: -1px;
|
328
|
+
}
|
329
|
+
|
330
|
+
.button-group > .button:not(:first-child):not(:last-child),
|
331
|
+
.button-group li:not(:first-child):not(:last-child) .button {
|
332
|
+
-webkit-border-radius: 0;
|
333
|
+
-moz-border-radius: 0;
|
334
|
+
border-radius: 0;
|
335
|
+
}
|
336
|
+
|
337
|
+
.button-group > .button:first-child,
|
338
|
+
.button-group li:first-child .button {
|
339
|
+
margin-left: 0;
|
340
|
+
-webkit-border-top-right-radius: 0;
|
341
|
+
-webkit-border-bottom-right-radius: 0;
|
342
|
+
-moz-border-radius-topright: 0;
|
343
|
+
-moz-border-radius-bottomright: 0;
|
344
|
+
border-top-right-radius: 0;
|
345
|
+
border-bottom-right-radius: 0;
|
346
|
+
}
|
347
|
+
|
348
|
+
.button-group > .button:last-child,
|
349
|
+
.button-group li:last-child > .button {
|
350
|
+
-webkit-border-top-left-radius: 0;
|
351
|
+
-webkit-border-bottom-left-radius: 0;
|
352
|
+
-moz-border-radius-topleft: 0;
|
353
|
+
-moz-border-radius-bottomleft: 0;
|
354
|
+
border-top-left-radius: 0;
|
355
|
+
border-bottom-left-radius: 0;
|
356
|
+
}
|
357
|
+
|
358
|
+
/* ............................................................................................................. Minor */
|
359
|
+
|
360
|
+
.button-group.minor-group .button {
|
361
|
+
border: 1px solid #d4d4d4;
|
362
|
+
text-shadow: none;
|
363
|
+
background-image: none;
|
364
|
+
background-color: #fff;
|
365
|
+
}
|
366
|
+
|
367
|
+
.button-group.minor-group .button:hover,
|
368
|
+
.button-group.minor-group .button:focus,
|
369
|
+
.button-group.minor-group .button:active {
|
370
|
+
background-color: #599bdc;
|
371
|
+
}
|
372
|
+
|
373
|
+
.button-group.minor-group .button:active,
|
374
|
+
.button-group.minor-group .button.active {
|
375
|
+
background-color: #3072b3;
|
376
|
+
}
|
377
|
+
|
378
|
+
.button-group.minor-group .button.icon:before {
|
379
|
+
opacity: 0.8;
|
380
|
+
}
|
381
|
+
|
382
|
+
/* ------------------------------------------------------------------------------------------------------------- BUTTON CONTAINER */
|
383
|
+
/* For mixing buttons and button groups, e.g., in a navigation bar */
|
384
|
+
|
385
|
+
.button-container .button,
|
386
|
+
.button-container .button-group {
|
387
|
+
vertical-align: top;
|
388
|
+
}
|
Binary file
|
@@ -0,0 +1,6 @@
|
|
1
|
+
div.tagsinput { border:1px solid #CCC; background: #FFF; padding:5px; width:300px; height:100px; overflow-y: auto;}
|
2
|
+
div.tagsinput span.tag { border: 1px solid #ccc; -moz-border-radius:2px; -webkit-border-radius:2px; display: block; float: left; padding:2px 5px; text-decoration:none; background: #eeeeee; color: #666666; margin-right: 5px; margin-bottom:5px;font-family: helvetica; font-size:13px;}
|
3
|
+
div.tagsinput span.tag a { font-weight: bold; color: #999999; text-decoration:none; font-size: 11px; }
|
4
|
+
div.tagsinput input { width:80px; margin:0px; font-family: helvetica; font-size: 13px; border:1px solid transparent; padding:0px; background: transparent; color: #000; outline:0px; margin-right:5px; margin-bottom:5px; }
|
5
|
+
div.tagsinput div { display:block; float: left; }
|
6
|
+
.tags_clear { clear: both; width: 100%; height: 0px; }
|
@@ -0,0 +1,52 @@
|
|
1
|
+
body { font: 14px/1.333 sans-serif; color: #444; background: #eee; }
|
2
|
+
|
3
|
+
a { color: #980905; }
|
4
|
+
a:hover, a:focus, a:active { text-decoration: none; }
|
5
|
+
|
6
|
+
h1 { margin: 0 0 0.2em; font-size: 36px; }
|
7
|
+
h2 { margin: 0 0 0.75em; font-size: 21px; }
|
8
|
+
h3 { margin: 0 0 0.333em; font-size: 16px; font-weight: normal; }
|
9
|
+
p { margin: 0 0 1.333em; }
|
10
|
+
em { font-style: italic; }
|
11
|
+
table { border-collapse: separate; border-spacing: 0; margin: 0; vertical-align: middle; }
|
12
|
+
th { font-weight: bold; }
|
13
|
+
th, td { padding: 5px 8px 5px 5px; text-align: left; vertical-align: middle; }
|
14
|
+
pre, code { font-family: monospace, sans-serif; font-size: 1em; color:#080; }
|
15
|
+
|
16
|
+
.container { position:relative; overflow:hidden; width: 780px; padding: 40px 60px; border: 1px solid #ccc; margin: 40px auto 20px; background: #fff; -webkit-box-shadow: 0 0 15px rgba(0,0,0,0.1); -moz-box-shadow: 0 0 15px rgba(0,0,0,0.1); box-shadow: 0 0 15px rgba(0,0,0,0.1); }
|
17
|
+
|
18
|
+
.container pre,
|
19
|
+
.container .prettyprint { padding: 0; border: 0; margin: 0 0 20px; font-size: 13px; background: #fff; }
|
20
|
+
|
21
|
+
.ribbon { position: absolute; top: -1px; right: -1px; opacity: 0.9; }
|
22
|
+
.ribbon:hover, .ribbon:focus, .ribbon:active { opacity: 1; }
|
23
|
+
.ribbon img { display: block; border: 0; }
|
24
|
+
|
25
|
+
.header { padding-right:80px; }
|
26
|
+
.header, .navigation { border-bottom: 1px solid #ccc; }
|
27
|
+
.navigation { padding: 10px; margin: 0px; background-color: #EEE }
|
28
|
+
|
29
|
+
.section { margin: 40px 0 20px; }
|
30
|
+
|
31
|
+
.example { padding: 20px; border: 1px solid #ccc; margin: 10px -20px 20px; }
|
32
|
+
|
33
|
+
.footer { margin: 20px 0 50px; font-size: 11px; color: #666; text-align: center; }
|
34
|
+
.footer a { color: #666; }
|
35
|
+
|
36
|
+
.field, .actions { margin: 0 0 1.333em; }
|
37
|
+
.field_show { margin: 0 0 0.666em; }
|
38
|
+
|
39
|
+
.admin_notice { color: green }
|
40
|
+
.details { color: #CCC; padding: 5px 0 }
|
41
|
+
|
42
|
+
.header_buttons { margin: -8px 0px 20px 0px }
|
43
|
+
.footer_buttons { margin: 1em 0 0 0 }
|
44
|
+
|
45
|
+
.flash_notice { margin: 0 0 1em 0; color: green; font-weight: bold }
|
46
|
+
.flash_alert { margin: 0 0 1em 0; color: #980905; font-weight: bold }
|
47
|
+
|
48
|
+
.field input { width: 300px; height: 25px; font: 14px/1.333 sans-serif; padding-left: 4px; }
|
49
|
+
.field input { border: 1px solid #CCC; }
|
50
|
+
|
51
|
+
#grant, #deny { padding: 5px 0px }
|
52
|
+
.green { color: green }
|