alchemy_cms 2.1.rc6 → 2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/app/assets/images/alchemy/lupe.cur +0 -0
  2. data/app/assets/javascripts/alchemy/alchemy.buttons.js +1 -1
  3. data/app/assets/javascripts/alchemy/alchemy.page_sorter.js +1 -0
  4. data/app/assets/stylesheets/alchemy/alchemy.css +11 -0
  5. data/app/assets/stylesheets/alchemy/base.css.scss +447 -2446
  6. data/app/assets/stylesheets/alchemy/buttons.css.scss +354 -0
  7. data/app/assets/stylesheets/alchemy/dashboard.css.scss +76 -0
  8. data/app/assets/stylesheets/alchemy/flags.css.scss +1 -1
  9. data/app/assets/stylesheets/alchemy/flash.css.scss +54 -0
  10. data/app/assets/stylesheets/alchemy/frame.css.scss +287 -0
  11. data/app/assets/stylesheets/alchemy/icons.css.scss +300 -0
  12. data/app/assets/stylesheets/alchemy/jquery-ui.alchemy.css.scss +3 -2
  13. data/app/assets/stylesheets/alchemy/jquery.sb.css.scss +1 -1
  14. data/app/assets/stylesheets/alchemy/login.css.scss +53 -0
  15. data/app/assets/stylesheets/alchemy/menubar.css.scss +26 -11
  16. data/app/assets/stylesheets/alchemy/modules.css.scss +31 -0
  17. data/app/assets/stylesheets/alchemy/pagination.css.scss +56 -0
  18. data/app/assets/stylesheets/alchemy/sitemap.css.scss +285 -0
  19. data/app/assets/stylesheets/alchemy/tables.css.scss +150 -0
  20. data/app/assets/stylesheets/alchemy/upload.css.scss +92 -0
  21. data/app/controllers/alchemy/admin/dashboard_controller.rb +1 -1
  22. data/app/controllers/alchemy/admin/pages_controller.rb +1 -1
  23. data/app/controllers/alchemy/admin/resources_controller.rb +35 -2
  24. data/app/controllers/alchemy/user_sessions_controller.rb +3 -0
  25. data/app/helpers/alchemy/admin/attachments_helper.rb +1 -1
  26. data/app/helpers/alchemy/admin/base_helper.rb +69 -20
  27. data/app/helpers/alchemy/pages_helper.rb +0 -55
  28. data/app/views/alchemy/admin/attachments/_attachment.html.erb +1 -1
  29. data/app/views/alchemy/admin/clipboard/index.html.erb +4 -1
  30. data/app/views/alchemy/admin/dashboard/index.html.erb +16 -11
  31. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +4 -1
  32. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +1 -20
  33. data/app/views/alchemy/admin/layoutpages/index.html.erb +1 -1
  34. data/app/views/alchemy/admin/pages/index.html.erb +3 -3
  35. data/app/views/alchemy/admin/partials/_search_form.html.erb +7 -1
  36. data/app/views/alchemy/admin/resources/_form.html.erb +1 -1
  37. data/app/views/alchemy/admin/resources/_resource.html.erb +8 -5
  38. data/app/views/alchemy/admin/resources/_table.html.erb +1 -1
  39. data/app/views/alchemy/admin/resources/index.html.erb +4 -3
  40. data/app/views/alchemy/admin/trash/index.html.erb +3 -2
  41. data/app/views/alchemy/user_sessions/login.html.erb +2 -1
  42. data/app/views/layouts/alchemy/admin.html.erb +3 -4
  43. data/app/views/layouts/alchemy/login.html.erb +9 -8
  44. data/config/authorization_rules.rb +0 -1
  45. data/config/locales/alchemy.de.yml +1 -0
  46. data/config/locales/alchemy.en.yml +1 -0
  47. data/lib/alchemy/seeder.rb +1 -1
  48. data/lib/alchemy/version.rb +1 -1
  49. data/spec/integration/admin/pages_controller_spec.rb +45 -57
  50. data/spec/integration/admin/resources_spec.rb +19 -0
  51. data/spec/models/content_spec.rb +6 -5
  52. data/spec/support/alchemy/controller_hacks.rb +41 -0
  53. data/spec/support/alchemy/specs_helpers.rb +32 -0
  54. data/vendor/assets/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +137 -1
  55. metadata +55 -37
  56. data/app/views/alchemy/admin/languages/_language.html.erb +0 -36
  57. data/spec/support/controller_hacks.rb +0 -37
@@ -0,0 +1,354 @@
1
+ @import "alchemy/defaults";
2
+
3
+ a.button.small.disabled img {
4
+ display: inline-block;
5
+ float: none;
6
+ position: relative;
7
+ height: 16px;
8
+ width: 16px;
9
+ top: -1px;
10
+ }
11
+
12
+ a.button.disabled,
13
+ a.button.disabled:hover,
14
+ a.button.disabled:active {
15
+ padding: 2px !important;
16
+ text-align: center;
17
+ }
18
+
19
+ a.button {
20
+ padding: 5px 8px;
21
+ text-decoration: none;
22
+ float: left;
23
+ line-height: 13px;
24
+ }
25
+
26
+ a.button.small {
27
+ height: 14px;
28
+ padding-top: 2px;
29
+ padding-bottom: 2px;
30
+ border-radius: 10px;
31
+ -o-border-radius: 10px;
32
+ -ms-border-radius: 10px;
33
+ -moz-border-radius: 10px;
34
+ -webkit-border-radius: 10px;
35
+ }
36
+
37
+ a.small.button.with_icon span.icon {
38
+ margin-top: -5px;
39
+ position: relative;
40
+ top: 3px;
41
+ left: -1px;
42
+ }
43
+
44
+ input.button,
45
+ a.button,
46
+ button.button {
47
+ @include button-styles;
48
+ }
49
+
50
+ #new_element button.button {
51
+ float: right;
52
+ }
53
+
54
+ input.button {
55
+ padding-left: 8px;
56
+ padding-right: 8px;
57
+ padding-bottom: 2px;
58
+ height: 25px;
59
+ }
60
+
61
+ button.button {
62
+ line-height: 19px;
63
+ padding: 2px 8px 2px 8px;
64
+ height: 25px;
65
+ font-size: 11px;
66
+ }
67
+
68
+ .button img {
69
+ margin: 2px 0 0 0;
70
+ width: 20px;
71
+ height: 20px;
72
+ }
73
+
74
+ #new_page_form tbody tr td.second_row .button {
75
+ float: right;
76
+ }
77
+
78
+ input.button:hover,
79
+ input.button:focus,
80
+ a.button:hover,
81
+ a.button:focus,
82
+ button.button:hover,
83
+ button.button:focus {
84
+ @include button-hover-styles;
85
+ }
86
+
87
+ input.button:active,
88
+ a.button:active {
89
+ text-decoration: none;
90
+ text-shadow: none;
91
+ background-color: #e5e5e5;
92
+ }
93
+
94
+ a.button.disabled,
95
+ a.button.disabled:hover,
96
+ a.button.disabled:active,
97
+ input.button.disabled,
98
+ input.button.disabled:hover,
99
+ input.button.disabled:active,
100
+ button.button.disabled,
101
+ button.button.disabled:hover,
102
+ button.button.disabled:active {
103
+ color: $text-color;
104
+ text-shadow: none;
105
+ border-color: #ccc;
106
+ cursor: default;
107
+ background-image: none;
108
+ background-color: #f5f5f5;
109
+ padding: 1px 0 0;
110
+ }
111
+
112
+ a.button.disabled img {
113
+ display: inline-block;
114
+ float: none;
115
+ }
116
+
117
+
118
+ div.button_with_label {
119
+ text-align: center;
120
+ margin-right: 8px;
121
+ margin-left: 8px;
122
+ float: left;
123
+ min-width: 70px;
124
+ line-height: 0;
125
+
126
+ &.active {
127
+ .icon_button {
128
+ background-color: #cdd6db;
129
+ border-style: inset;
130
+ border-color: #bfbfbf;
131
+ }
132
+ label {
133
+ color: black;
134
+ text-shadow: white 0 0 2px;
135
+ }
136
+ }
137
+
138
+ .disabledButton {
139
+ position: absolute;
140
+ top: 0;
141
+ left: 0;
142
+ width: 100%;
143
+ height: 100%;
144
+ z-index: 1;
145
+ }
146
+
147
+ a.icon_button {
148
+ float: none;
149
+ margin-right: auto;
150
+ margin-left: auto;
151
+ display: inline-block;
152
+ position: relative;
153
+ }
154
+
155
+ &.disabled {
156
+ position: relative;
157
+ @include opacity(50);
158
+ cursor: default;
159
+
160
+ a:hover, a:active {
161
+ cursor: default;
162
+ background-color: #f7f7f7;
163
+ border: 1px solid #9a9a9a;
164
+ }
165
+
166
+ &:before {
167
+ content: '';
168
+ position: absolute;
169
+ z-index: 1;
170
+ width: 100%;
171
+ height: 100%;
172
+ background-color: transparent;
173
+ @include opacity(50);
174
+ }
175
+
176
+ &:hover label {
177
+ color: $text-color;
178
+ cursor: default;
179
+ }
180
+
181
+ }
182
+
183
+ }
184
+
185
+ .icon_button.disabled span {
186
+ position: relative;
187
+ @include opacity(30);
188
+ cursor: default;
189
+ }
190
+
191
+ .icon_button.disabled:hover {
192
+ background-color: #f7f7f7;
193
+ border: 1px solid #9a9a9a;
194
+ cursor: default;
195
+ }
196
+
197
+ div#toolbar label, div#overlay_toolbar label {
198
+ font-size: 10px;
199
+ text-shadow: #fff 0 1px 2px;
200
+ margin-top: $default-margin;
201
+ display: block;
202
+ line-height: 13px;
203
+ }
204
+
205
+ div.button_with_label:hover label {
206
+ color: #000;
207
+ text-shadow: #fff 0 1px 4px;
208
+ }
209
+
210
+ div.search_field span.icon,
211
+ div.js_filter_field_box span.icon {
212
+ position: absolute;
213
+ left: 6px;
214
+ top: 4px;
215
+ }
216
+
217
+ button.icon_button {
218
+ @include button-styles;
219
+ padding: $default-padding;
220
+ height: 25px;
221
+ line-height: 19px;
222
+ font-size: 0;
223
+ width: 25px;
224
+ position: relative;
225
+
226
+ .icon {
227
+ position: static;
228
+ }
229
+
230
+ img {
231
+ margin: 0;
232
+ border-style: none;
233
+ border-width: 0;
234
+ }
235
+
236
+ &.small {
237
+ background: transparent;
238
+ padding: 0;
239
+ width: 17px;
240
+ height: 17px;
241
+ border: none;
242
+ line-height: 13px;
243
+
244
+ .icon {
245
+ position: relative;
246
+ right: 1px;
247
+ top: 2px;
248
+ }
249
+
250
+ &:hover {
251
+ background-color: #e6f0f5;
252
+ color: $dark-gray;
253
+ border: 1px solid #888;
254
+ text-shadow: 0 1px 4px #fff;
255
+ text-decoration: none;
256
+ }
257
+ }
258
+
259
+ &:hover {
260
+ background-color: #e6f0f5;
261
+ color: $dark-gray;
262
+ border: 1px solid #888;
263
+ text-shadow: 0 1px 4px #fff;
264
+ text-decoration: none;
265
+ }
266
+
267
+ &:active {
268
+ background-color: #cdd6db;
269
+ }
270
+ }
271
+
272
+ a.icon_button {
273
+ float: left;
274
+ width: 23px;
275
+ height: 23px;
276
+ background-color: #f7f7f7;
277
+ background-image: image-url('alchemy/shading.png');
278
+ background-repeat: repeat-x;
279
+ background-position: 0 -75px;
280
+ margin-right: 8px;
281
+ border: 1px solid #9a9a9a;
282
+ @include rounded-corner;
283
+ -webkit-user-select: none;
284
+ -moz-user-select: none;
285
+ user-select: none;
286
+ overflow: hidden;
287
+ position: relative;
288
+
289
+ .icon {
290
+ position: absolute;
291
+ left: 4px;
292
+ top: 4px;
293
+ }
294
+
295
+ .old_icon {
296
+ position: relative;
297
+ background-repeat: no-repeat;
298
+ width: 22px;
299
+ height: 20px;
300
+ display: inline-block;
301
+ top: -1px;
302
+ left: -1px;
303
+ }
304
+
305
+ img {
306
+ position: absolute;
307
+ top: 2px;
308
+ left: 3px;
309
+ }
310
+
311
+ &.small {
312
+ width: 11px;
313
+ height: 11px;
314
+ float: none;
315
+ display: inline-block;
316
+ background-position: 0 -8px;
317
+ vertical-align: -1px;
318
+
319
+ .icon {
320
+ position: absolute;
321
+ right: 5px;
322
+ left: auto;
323
+ top: 4px;
324
+ }
325
+ }
326
+
327
+ &.old_icon {
328
+ width: 20px;
329
+ height: 19px;
330
+
331
+ img {
332
+ top: 0;
333
+ left: 1px;
334
+ }
335
+ }
336
+
337
+ &:hover {
338
+ background-color: #e6f0f5;
339
+ color: $dark-gray;
340
+ border: 1px solid #888;
341
+ text-shadow: 0 1px 4px #fff;
342
+ text-decoration: none;
343
+ }
344
+
345
+ &:active {
346
+ background-color: #cdd6db;
347
+ border-style: inset;
348
+ border-color: #bfbfbf;
349
+ }
350
+ }
351
+
352
+ div.sitemap_right_tools .sitemap_sitetools a.icon_button {
353
+ margin-right: 4px;
354
+ }
@@ -0,0 +1,76 @@
1
+ @import "alchemy/defaults";
2
+
3
+ #dashboard {
4
+ overflow: auto;
5
+ float: left;
6
+ padding: 8px;
7
+ width: 450px;
8
+
9
+ h1 {
10
+ font-size: 2em;
11
+ margin-bottom: 0;
12
+ text-shadow: #fff 1px 1px 2px;
13
+ }
14
+
15
+ h2 {
16
+ padding: 0;
17
+ margin-bottom: 2em;
18
+ }
19
+
20
+ div.widget {
21
+ padding: 2*$default-padding;
22
+ margin: 16px 0;
23
+ background-color: $medium-gray;
24
+ border: $default-border;
25
+ @include rounded-corner;
26
+
27
+ h2 {
28
+ padding-bottom: 0;
29
+ margin-bottom: 0;
30
+ }
31
+
32
+ p {
33
+ margin: 4px 0;
34
+ }
35
+
36
+ ul {
37
+ padding: 0;
38
+ list-style-type: none;
39
+ @include rounded-corner;
40
+ margin-right: -9px;
41
+ margin-left: -9px;
42
+ margin-bottom: -9px;
43
+ border: $default-border;
44
+
45
+ li {
46
+ padding: 2*$default-padding;
47
+ margin-bottom: 0;
48
+ position: relative;
49
+
50
+ form {
51
+ line-height: 10px;
52
+ position: absolute;
53
+ top: 2*$default-padding;
54
+ right: $default-padding;
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+ div#sideboard {
62
+ float: right;
63
+ width: 240px;
64
+ padding-right: 16px;
65
+
66
+ div.sideboard_widget img {
67
+ margin-bottom: 16px;
68
+ float: none;
69
+ }
70
+ }
71
+
72
+ div#license {
73
+ overflow: auto;
74
+ height: 24em;
75
+ background-color: white;
76
+ }
@@ -1 +1 @@
1
- .flag{width:16px;height:11px;line-height:11px;background:image-url('alchemy/flags.png') no-repeat}.flag.ad{background-position:0 0}.flag.ae{background-position:0 -11px}.flag.af{background-position:0 -22px}.flag.ag{background-position:0 -33px}.flag.ai{background-position:0 -44px}.flag.al{background-position:0 -55px}.flag.am{background-position:0 -66px}.flag.an{background-position:0 -77px}.flag.ao{background-position:0 -88px}.flag.ar{background-position:0 -99px}.flag.as{background-position:0 -110px}.flag.at{background-position:0 -121px}.flag.au{background-position:0 -132px}.flag.aw{background-position:0 -143px}.flag.ax{background-position:0 -154px}.flag.az{background-position:0 -165px}.flag.ba{background-position:0 -176px}.flag.bb{background-position:0 -187px}.flag.bd{background-position:0 -198px}.flag.be{background-position:0 -209px}.flag.bf{background-position:0 -220px}.flag.bg{background-position:0 -231px}.flag.bh{background-position:0 -242px}.flag.bi{background-position:0 -253px}.flag.bj{background-position:0 -264px}.flag.bm{background-position:0 -275px}.flag.bn{background-position:0 -286px}.flag.bo{background-position:0 -297px}.flag.br{background-position:0 -308px}.flag.bs{background-position:0 -319px}.flag.bt{background-position:0 -330px}.flag.bv{background-position:0 -341px}.flag.bw{background-position:0 -352px}.flag.by{background-position:0 -363px}.flag.bz{background-position:0 -374px}.flag.ca{background-position:0 -385px}.flag.catalonia{background-position:0 -396px}.flag.cc{background-position:0 -407px}.flag.cd{background-position:0 -418px}.flag.cf{background-position:0 -429px}.flag.cg{background-position:0 -440px}.flag.ch{background-position:0 -451px}.flag.ci{background-position:0 -462px}.flag.ck{background-position:0 -473px}.flag.cl{background-position:0 -484px}.flag.cm{background-position:0 -495px}.flag.cn{background-position:0 -506px}.flag.co{background-position:0 -517px}.flag.cu{background-position:0 -528px}.flag.cr{background-position:0 -539px}.flag.cs{background-position:0 -550px}.flag.cv{background-position:0 -561px}.flag.cx{background-position:0 -572px}.flag.cy{background-position:-16px 0}.flag.cz{background-position:-16px -11px}.flag.de{background-position:-16px -22px}.flag.dj{background-position:-16px -33px}.flag.dk{background-position:-16px -44px}.flag.dm{background-position:-16px -55px}.flag.do{background-position:-16px -66px}.flag.dz{background-position:-16px -77px}.flag.ec{background-position:-16px -88px}.flag.ee{background-position:-16px -99px}.flag.eg{background-position:-16px -110px}.flag.eh{background-position:-16px -121px}.flag.england{background-position:-16px -132px}.flag.er{background-position:-16px -143px}.flag.es{background-position:-16px -154px}.flag.et{background-position:-16px -165px}.flag.eu{background-position:-16px -176px}.flag.fam{background-position:-16px -187px}.flag.fi{background-position:-16px -198px}.flag.fj{background-position:-16px -209px}.flag.fk{background-position:-16px -220px}.flag.fm{background-position:-16px -231px}.flag.fo{background-position:-16px -242px}.flag.fr{background-position:-16px -253px}.flag.ga{background-position:-16px -264px}.flag.en{background-position:-16px -275px}.flag.gd{background-position:-16px -286px}.flag.ge{background-position:-16px -297px}.flag.gf{background-position:-16px -308px}.flag.gh{background-position:-16px -319px}.flag.gi{background-position:-16px -330px}.flag.gl{background-position:-16px -341px}.flag.gm{background-position:-16px -352px}.flag.gn{background-position:-16px -363px}.flag.gp{background-position:-16px -374px}.flag.gq{background-position:-16px -385px}.flag.gr{background-position:-16px -396px}.flag.gs{background-position:-16px -407px}.flag.gt{background-position:-16px -418px}.flag.gu{background-position:-16px -429px}.flag.gw{background-position:-16px -440px}.flag.gy{background-position:-16px -451px}.flag.hk{background-position:-16px -462px}.flag.hm{background-position:-16px -473px}.flag.hn{background-position:-16px -484px}.flag.hr{background-position:-16px -495px}.flag.ht{background-position:-16px -506px}.flag.hu{background-position:-16px -517px}.flag.id{background-position:-16px -528px}.flag.ie{background-position:-16px -539px}.flag.il{background-position:-16px -550px}.flag.in{background-position:-16px -561px}.flag.io{background-position:-16px -572px}.flag.iq{background-position:-32px 0}.flag.ir{background-position:-32px -11px}.flag.is{background-position:-32px -22px}.flag.it{background-position:-32px -33px}.flag.jm{background-position:-32px -44px}.flag.jo{background-position:-32px -55px}.flag.jp{background-position:-32px -66px}.flag.ke{background-position:-32px -77px}.flag.kg{background-position:-32px -88px}.flag.kh{background-position:-32px -99px}.flag.ki{background-position:-32px -110px}.flag.km{background-position:-32px -121px}.flag.kn{background-position:-32px -132px}.flag.kp{background-position:-32px -143px}.flag.kr{background-position:-32px -154px}.flag.kw{background-position:-32px -165px}.flag.ky{background-position:-32px -176px}.flag.kz{background-position:-32px -187px}.flag.la{background-position:-32px -198px}.flag.lb{background-position:-32px -209px}.flag.lc{background-position:-32px -220px}.flag.li{background-position:-32px -231px}.flag.lr{background-position:-32px -242px}.flag.lk{background-position:-32px -253px}.flag.ls{background-position:-32px -264px}.flag.lt{background-position:-32px -275px}.flag.lu{background-position:-32px -286px}.flag.lv{background-position:-32px -297px}.flag.ly{background-position:-32px -308px}.flag.ma{background-position:-32px -319px}.flag.mc{background-position:-32px -330px}.flag.md{background-position:-32px -341px}.flag.me{background-position:-32px -352px}.flag.mg{background-position:-32px -363px}.flag.mh{background-position:-32px -374px}.flag.mk{background-position:-32px -385px}.flag.ml{background-position:-32px -396px}.flag.mm{background-position:-32px -407px}.flag.mn{background-position:-32px -418px}.flag.mo{background-position:-32px -429px}.flag.mp{background-position:-32px -440px}.flag.mq{background-position:-32px -451px}.flag.mr{background-position:-32px -462px}.flag.ms{background-position:-32px -473px}.flag.mt{background-position:-32px -484px}.flag.mu{background-position:-32px -495px}.flag.mv{background-position:-32px -506px}.flag.mw{background-position:-32px -517px}.flag.mx{background-position:-32px -528px}.flag.my{background-position:-32px -539px}.flag.mz{background-position:-32px -550px}.flag.na{background-position:-32px -561px}.flag.nc{background-position:-32px -572px}.flag.ne{background-position:-48px 0}.flag.nf{background-position:-48px -11px}.flag.ng{background-position:-48px -22px}.flag.ni{background-position:-48px -33px}.flag.nl{background-position:-48px -44px}.flag.no{background-position:-48px -55px}.flag.np{background-position:-48px -66px}.flag.nr{background-position:-48px -77px}.flag.nu{background-position:-48px -88px}.flag.nz{background-position:-48px -99px}.flag.om{background-position:-48px -110px}.flag.pa{background-position:-48px -121px}.flag.pe{background-position:-48px -132px}.flag.pf{background-position:-48px -143px}.flag.pg{background-position:-48px -154px}.flag.ph{background-position:-48px -165px}.flag.pk{background-position:-48px -176px}.flag.pl{background-position:-48px -187px}.flag.pm{background-position:-48px -198px}.flag.pn{background-position:-48px -209px}.flag.pr{background-position:-48px -220px}.flag.ps{background-position:-48px -231px}.flag.pt{background-position:-48px -242px}.flag.pw{background-position:-48px -253px}.flag.py{background-position:-48px -264px}.flag.qa{background-position:-48px -275px}.flag.re{background-position:-48px -286px}.flag.ro{background-position:-48px -297px}.flag.rs{background-position:-48px -308px}.flag.ru{background-position:-48px -319px}.flag.rw{background-position:-48px -330px}.flag.sa{background-position:-48px -341px}.flag.sb{background-position:-48px -352px}.flag.sc{background-position:-48px -363px}.flag.scotland{background-position:-48px -374px}.flag.sd{background-position:-48px -385px}.flag.se{background-position:-48px -396px}.flag.sg{background-position:-48px -407px}.flag.sh{background-position:-48px -418px}.flag.si{background-position:-48px -429px}.flag.sj{background-position:-48px -440px}.flag.sk{background-position:-48px -451px}.flag.sl{background-position:-48px -462px}.flag.sm{background-position:-48px -473px}.flag.sn{background-position:-48px -484px}.flag.so{background-position:-48px -495px}.flag.sr{background-position:-48px -506px}.flag.st{background-position:-48px -517px}.flag.sv{background-position:-48px -528px}.flag.sy{background-position:-48px -539px}.flag.sz{background-position:-48px -550px}.flag.tc{background-position:-48px -561px}.flag.td{background-position:-48px -572px}.flag.tf{background-position:-64px 0}.flag.tg{background-position:-64px -11px}.flag.th{background-position:-64px -22px}.flag.tj{background-position:-64px -33px}.flag.tk{background-position:-64px -44px}.flag.tl{background-position:-64px -55px}.flag.tm{background-position:-64px -66px}.flag.tn{background-position:-64px -77px}.flag.to{background-position:-64px -88px}.flag.tr{background-position:-64px -99px}.flag.tt{background-position:-64px -110px}.flag.tv{background-position:-64px -121px}.flag.tw{background-position:-64px -132px}.flag.tz{background-position:-64px -143px}.flag.ua{background-position:-64px -154px}.flag.ug{background-position:-64px -165px}.flag.um{background-position:-64px -176px}.flag.us{background-position:-64px -187px}.flag.uy{background-position:-64px -198px}.flag.uz{background-position:-64px -209px}.flag.va{background-position:-64px -220px}.flag.vc{background-position:-64px -231px}.flag.ve{background-position:-64px -242px}.flag.vg{background-position:-64px -253px}.flag.vi{background-position:-64px -264px}.flag.vn{background-position:-64px -275px}.flag.vu{background-position:-64px -286px}.flag.wales{background-position:-64px -297px}.flag.wf{background-position:-64px -308px}.flag.ws{background-position:-64px -319px}.flag.ye{background-position:-64px -330px}.flag.yt{background-position:-64px -341px}.flag.za{background-position:-64px -352px}.flag.zm{background-position:-64px -363px}.flag.zw{background-position:-64px -374px}
1
+ .flag{width:16px;height:11px;line-height:11px;background:image-url('alchemy/flags.png') no-repeat}.flag.ad{background-position:0 0}.flag.ae{background-position:0 -11px}.flag.af{background-position:0 -22px}.flag.ag{background-position:0 -33px}.flag.ai{background-position:0 -44px}.flag.al{background-position:0 -55px}.flag.am{background-position:0 -66px}.flag.an{background-position:0 -77px}.flag.ao{background-position:0 -88px}.flag.ar{background-position:0 -99px}.flag.as{background-position:0 -110px}.flag.at{background-position:0 -121px}.flag.au{background-position:0 -132px}.flag.aw{background-position:0 -143px}.flag.ax{background-position:0 -154px}.flag.az{background-position:0 -165px}.flag.ba{background-position:0 -176px}.flag.bb{background-position:0 -187px}.flag.bd{background-position:0 -198px}.flag.be{background-position:0 -209px}.flag.bf{background-position:0 -220px}.flag.bg{background-position:0 -231px}.flag.bh{background-position:0 -242px}.flag.bi{background-position:0 -253px}.flag.bj{background-position:0 -264px}.flag.bm{background-position:0 -275px}.flag.bn{background-position:0 -286px}.flag.bo{background-position:0 -297px}.flag.br{background-position:0 -308px}.flag.bs{background-position:0 -319px}.flag.bt{background-position:0 -330px}.flag.bv{background-position:0 -341px}.flag.bw{background-position:0 -352px}.flag.by{background-position:0 -363px}.flag.bz{background-position:0 -374px}.flag.ca{background-position:0 -385px}.flag.catalonia{background-position:0 -396px}.flag.cc{background-position:0 -407px}.flag.cd{background-position:0 -418px}.flag.cf{background-position:0 -429px}.flag.cg{background-position:0 -440px}.flag.ch{background-position:0 -451px}.flag.ci{background-position:0 -462px}.flag.ck{background-position:0 -473px}.flag.cl{background-position:0 -484px}.flag.cm{background-position:0 -495px}.flag.cn{background-position:0 -506px}.flag.co{background-position:0 -517px}.flag.cu{background-position:0 -528px}.flag.cr{background-position:0 -539px}.flag.cs{background-position:0 -550px}.flag.cv{background-position:0 -561px}.flag.cx{background-position:0 -572px}.flag.cy{background-position:-16px 0}.flag.cz{background-position:-16px -11px}.flag.de{background-position:-16px -22px}.flag.dj{background-position:-16px -33px}.flag.dk{background-position:-16px -44px}.flag.dm{background-position:-16px -55px}.flag.do{background-position:-16px -66px}.flag.dz{background-position:-16px -77px}.flag.ec{background-position:-16px -88px}.flag.ee{background-position:-16px -99px}.flag.eg{background-position:-16px -110px}.flag.eh{background-position:-16px -121px}.flag.england{background-position:-16px -132px}.flag.er{background-position:-16px -143px}.flag.es{background-position:-16px -154px}.flag.et{background-position:-16px -165px}.flag.eu{background-position:-16px -176px}.flag.fam{background-position:-16px -187px}.flag.fi{background-position:-16px -198px}.flag.fj{background-position:-16px -209px}.flag.fk{background-position:-16px -220px}.flag.fm{background-position:-16px -231px}.flag.fo{background-position:-16px -242px}.flag.fr{background-position:-16px -253px}.flag.ga{background-position:-16px -264px}.flag.en{background-position:-16px -275px}.flag.gd{background-position:-16px -286px}.flag.ge{background-position:-16px -297px}.flag.gf{background-position:-16px -308px}.flag.gh{background-position:-16px -319px}.flag.gi{background-position:-16px -330px}.flag.gl{background-position:-16px -341px}.flag.gm{background-position:-16px -352px}.flag.gn{background-position:-16px -363px}.flag.gp{background-position:-16px -374px}.flag.gq{background-position:-16px -385px}.flag.gr{background-position:-16px -396px}.flag.gs{background-position:-16px -407px}.flag.gt{background-position:-16px -418px}.flag.gu{background-position:-16px -429px}.flag.gw{background-position:-16px -440px}.flag.gy{background-position:-16px -451px}.flag.hk{background-position:-16px -462px}.flag.hm{background-position:-16px -473px}.flag.hn{background-position:-16px -484px}.flag.hr{background-position:-16px -495px}.flag.ht{background-position:-16px -506px}.flag.hu{background-position:-16px -517px}.flag.id{background-position:-16px -528px}.flag.ie{background-position:-16px -539px}.flag.il{background-position:-16px -550px}.flag.in{background-position:-16px -561px}.flag.io{background-position:-16px -572px}.flag.iq{background-position:-32px 0}.flag.ir{background-position:-32px -11px}.flag.is{background-position:-32px -22px}.flag.it{background-position:-32px -33px}.flag.jm{background-position:-32px -44px}.flag.jo{background-position:-32px -55px}.flag.jp{background-position:-32px -66px}.flag.ke{background-position:-32px -77px}.flag.kg{background-position:-32px -88px}.flag.kh{background-position:-32px -99px}.flag.ki{background-position:-32px -110px}.flag.km{background-position:-32px -121px}.flag.kn{background-position:-32px -132px}.flag.kp{background-position:-32px -143px}.flag.kr{background-position:-32px -154px}.flag.kw{background-position:-32px -165px}.flag.ky{background-position:-32px -176px}.flag.kz{background-position:-32px -187px}.flag.la{background-position:-32px -198px}.flag.lb{background-position:-32px -209px}.flag.lc{background-position:-32px -220px}.flag.li{background-position:-32px -231px}.flag.lr{background-position:-32px -242px}.flag.lk{background-position:-32px -253px}.flag.ls{background-position:-32px -264px}.flag.lt{background-position:-32px -275px}.flag.lu{background-position:-32px -286px}.flag.lv{background-position:-32px -297px}.flag.ly{background-position:-32px -308px}.flag.ma{background-position:-32px -319px}.flag.mc{background-position:-32px -330px}.flag.md{background-position:-32px -341px}.flag.me{background-position:-32px -352px}.flag.mg{background-position:-32px -363px}.flag.mh{background-position:-32px -374px}.flag.mk{background-position:-32px -385px}.flag.ml{background-position:-32px -396px}.flag.mm{background-position:-32px -407px}.flag.mn{background-position:-32px -418px}.flag.mo{background-position:-32px -429px}.flag.mp{background-position:-32px -440px}.flag.mq{background-position:-32px -451px}.flag.mr{background-position:-32px -462px}.flag.ms{background-position:-32px -473px}.flag.mt{background-position:-32px -484px}.flag.mu{background-position:-32px -495px}.flag.mv{background-position:-32px -506px}.flag.mw{background-position:-32px -517px}.flag.mx{background-position:-32px -528px}.flag.my{background-position:-32px -539px}.flag.mz{background-position:-32px -550px}.flag.na{background-position:-32px -561px}.flag.nc{background-position:-32px -572px}.flag.ne{background-position:-48px 0}.flag.nf{background-position:-48px -11px}.flag.ng{background-position:-48px -22px}.flag.ni{background-position:-48px -33px}.flag.nl{background-position:-48px -44px}.flag.no{background-position:-48px -55px}.flag.np{background-position:-48px -66px}.flag.nr{background-position:-48px -77px}.flag.nu{background-position:-48px -88px}.flag.nz{background-position:-48px -99px}.flag.om{background-position:-48px -110px}.flag.pa{background-position:-48px -121px}.flag.pe{background-position:-48px -132px}.flag.pf{background-position:-48px -143px}.flag.pg{background-position:-48px -154px}.flag.ph{background-position:-48px -165px}.flag.pk{background-position:-48px -176px}.flag.pl{background-position:-48px -187px}.flag.pm{background-position:-48px -198px}.flag.pn{background-position:-48px -209px}.flag.pr{background-position:-48px -220px}.flag.ps{background-position:-48px -231px}.flag.pt{background-position:-48px -242px}.flag.pw{background-position:-48px -253px}.flag.py{background-position:-48px -264px}.flag.qa{background-position:-48px -275px}.flag.re{background-position:-48px -286px}.flag.ro{background-position:-48px -297px}.flag.rs{background-position:-48px -308px}.flag.ru{background-position:-48px -319px}.flag.rw{background-position:-48px -330px}.flag.sa{background-position:-48px -341px}.flag.sb{background-position:-48px -352px}.flag.sc{background-position:-48px -363px}.flag.scotland{background-position:-48px -374px}.flag.sd{background-position:-48px -385px}.flag.se{background-position:-48px -396px}.flag.sg{background-position:-48px -407px}.flag.sh{background-position:-48px -418px}.flag.si{background-position:-48px -429px}.flag.sj{background-position:-48px -440px}.flag.sk{background-position:-48px -451px}.flag.sl{background-position:-48px -462px}.flag.sm{background-position:-48px -473px}.flag.sn{background-position:-48px -484px}.flag.so{background-position:-48px -495px}.flag.sr{background-position:-48px -506px}.flag.st{background-position:-48px -517px}.flag.sv{background-position:-48px -528px}.flag.sy{background-position:-48px -539px}.flag.sz{background-position:-48px -550px}.flag.tc{background-position:-48px -561px}.flag.td{background-position:-48px -572px}.flag.tf{background-position:-64px 0}.flag.tg{background-position:-64px -11px}.flag.th{background-position:-64px -22px}.flag.tj{background-position:-64px -33px}.flag.tk{background-position:-64px -44px}.flag.tl{background-position:-64px -55px}.flag.tm{background-position:-64px -66px}.flag.tn{background-position:-64px -77px}.flag.to{background-position:-64px -88px}.flag.tr{background-position:-64px -99px}.flag.tt{background-position:-64px -110px}.flag.tv{background-position:-64px -121px}.flag.tw{background-position:-64px -132px}.flag.tz{background-position:-64px -143px}.flag.ua{background-position:-64px -154px}.flag.ug{background-position:-64px -165px}.flag.um{background-position:-64px -176px}.flag.us{background-position:-64px -187px}.flag.uy{background-position:-64px -198px}.flag.uz{background-position:-64px -209px}.flag.va{background-position:-64px -220px}.flag.vc{background-position:-64px -231px}.flag.ve{background-position:-64px -242px}.flag.vg{background-position:-64px -253px}.flag.vi{background-position:-64px -264px}.flag.vn{background-position:-64px -275px}.flag.vu{background-position:-64px -286px}.flag.wales{background-position:-64px -297px}.flag.wf{background-position:-64px -308px}.flag.ws{background-position:-64px -319px}.flag.ye{background-position:-64px -330px}.flag.yt{background-position:-64px -341px}.flag.za{background-position:-64px -352px}.flag.zh{background-position:-16px -462px}.flag.zm{background-position:-64px -363px}.flag.zw{background-position:-64px -374px}
@@ -0,0 +1,54 @@
1
+ @import "alchemy/defaults";
2
+
3
+ /* @group Flash Notices */
4
+
5
+ div#flash_notices {
6
+ position: fixed;
7
+ right: 0;
8
+ z-index: 400000;
9
+ width: 348px;
10
+ top: 0;
11
+ }
12
+
13
+ div.flash {
14
+ @include rounded-corner;
15
+ @include opacity(95);
16
+ padding: 8px 8px 8px 30px;
17
+ font-weight: bold;
18
+ border-width: 1px;
19
+ border-style: solid;
20
+ z-index: 1000;
21
+ margin: $default-margin;
22
+ position: relative;
23
+ min-height: 1.3em;
24
+
25
+ span.icon {
26
+ position: absolute;
27
+ top: 8px;
28
+ left: 8px;
29
+ }
30
+
31
+ &.notice {
32
+ border-color: #9cc4a1;
33
+ color: #2e5934;
34
+ background-color: #e2efd3;
35
+ }
36
+
37
+ &.error {
38
+ border-color: #c49c9c;
39
+ color: #592e2e;
40
+ background-color: #efd3d3;
41
+ }
42
+
43
+ &.info {
44
+ border-color: #8392b5;
45
+ color: #233772;
46
+ background-color: #cadbf3;
47
+ }
48
+
49
+ &.warn, &.warning {
50
+ border-color: #c4c19c;
51
+ color: #726d23;
52
+ background-color: #f3f0c1;
53
+ }
54
+ }