hancock_cms 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +113 -0
- data/Rakefile +1 -0
- data/app/assets/images/devices/login-bg.jpg +0 -0
- data/app/assets/images/rails-admin/hancock_logo.svg +5 -0
- data/app/assets/javascripts/hancock/app/back_to_top.coffee +24 -0
- data/app/assets/javascripts/hancock/cms.coffee +11 -0
- data/app/assets/javascripts/hancock/cms/flash.coffee +3 -0
- data/app/assets/javascripts/hancock/cms/init.coffee +1 -0
- data/app/assets/javascripts/hancock/cms/map.coffee +22 -0
- data/app/assets/javascripts/hancock/rails_admin/cms.ui.coffee +43 -0
- data/app/assets/javascripts/hancock/rails_admin/custom/ui.coffee +0 -0
- data/app/assets/javascripts/head.load.js +707 -0
- data/app/assets/javascripts/jquery.placeholder.js +157 -0
- data/app/assets/javascripts/rails_admin/custom/ui.coffee +2 -0
- data/app/assets/stylesheets/hancock/cms.sass +9 -0
- data/app/assets/stylesheets/hancock/cms/devise.sass +157 -0
- data/app/assets/stylesheets/hancock/cms/flash.sass +69 -0
- data/app/assets/stylesheets/hancock/cms/mixins.sass +98 -0
- data/app/assets/stylesheets/hancock/cms/normalize.scss +407 -0
- data/app/assets/stylesheets/hancock/cms/powered.sass +18 -0
- data/app/assets/stylesheets/hancock/rails_admin/cms.theming.sass +703 -0
- data/app/assets/stylesheets/hancock/rails_admin/custom/theming.sass +1 -0
- data/app/assets/stylesheets/hancock/toplink/toplink.sass +24 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.sass +4 -0
- data/app/controllers/concerns/hancock/current_user.rb +12 -0
- data/app/controllers/concerns/hancock/decorators/home.rb +12 -0
- data/app/controllers/concerns/hancock/decorators/registrations.rb +5 -0
- data/app/controllers/concerns/hancock/decorators/sessions.rb +5 -0
- data/app/controllers/concerns/hancock/errors.rb +94 -0
- data/app/controllers/concerns/hancock/fancybox.rb +14 -0
- data/app/controllers/concerns/hancock/no_cache.rb +12 -0
- data/app/controllers/hancock/home_controller.rb +10 -0
- data/app/controllers/hancock/registrations_controller.rb +23 -0
- data/app/controllers/hancock/sessions_controller.rb +24 -0
- data/app/helpers/hancock/gzip_helper.rb +27 -0
- data/app/helpers/hancock/home_helper.rb +2 -0
- data/app/helpers/hancock/powered_helper.rb +42 -0
- data/app/models/concerns/hancock/boolean_field.rb +21 -0
- data/app/models/concerns/hancock/cacheable.rb +33 -0
- data/app/models/concerns/hancock/decorators/embedded_element.rb +28 -0
- data/app/models/concerns/hancock/enableable.rb +8 -0
- data/app/models/concerns/hancock/geocodeable.rb +4 -0
- data/app/models/concerns/hancock/hash_field.rb +113 -0
- data/app/models/concerns/hancock/html_field.rb +33 -0
- data/app/models/concerns/hancock/mappable.rb +91 -0
- data/app/models/concerns/hancock/model_localizeable.rb +33 -0
- data/app/models/concerns/hancock/rails_admin_patch.rb +86 -0
- data/app/models/concerns/hancock/sort_field.rb +20 -0
- data/app/models/concerns/hancock/sortable.rb +8 -0
- data/app/models/hancock/embedded_element.rb +17 -0
- data/app/views/blocks/_favicon.html.slim +60 -0
- data/app/views/blocks/_footer.html.slim +1 -0
- data/app/views/blocks/_header.html.slim +3 -0
- data/app/views/devise/passwords/edit.html.slim +29 -0
- data/app/views/devise/passwords/new.html.slim +19 -0
- data/app/views/devise/registrations/edit.html.slim +31 -0
- data/app/views/devise/registrations/new.html.slim +39 -0
- data/app/views/devise/sessions/new.html.slim +39 -0
- data/app/views/devise/shared/_links.html.slim +11 -0
- data/app/views/hancock/errors/_base.html.slim +3 -0
- data/app/views/hancock/errors/error_403.html.slim +1 -0
- data/app/views/hancock/errors/error_404.html.slim +1 -0
- data/app/views/hancock/errors/error_500.html.slim +1 -0
- data/app/views/hancock/home/index.html.slim +1 -0
- data/app/views/hancock/simple_captcha/_simple_captcha.html.slim +13 -0
- data/app/views/hancock/toplink/_toplink.html.slim +2 -0
- data/app/views/layouts/application.html.slim +35 -0
- data/app/views/layouts/hancock/devise/confirmations.html.slim +22 -0
- data/app/views/layouts/hancock/devise/passwords.html.slim +22 -0
- data/app/views/layouts/hancock/devise/registrations.html.slim +22 -0
- data/app/views/layouts/hancock/devise/sessions.html.slim +22 -0
- data/app/views/layouts/hancock/devise/unlocks.html.slim +22 -0
- data/app/views/layouts/rails_admin/_footer.html.slim +2 -0
- data/app/views/layouts/rails_admin/_footer_navigation.html.slim +20 -0
- data/app/views/layouts/rails_admin/_navigation.html.slim +73 -0
- data/app/views/layouts/rails_admin/_secondary_navigation.html.slim +32 -0
- data/app/views/layouts/rails_admin/application.html.haml +68 -0
- data/app/views/layouts/rails_admin/pjax.html.haml +17 -0
- data/app/views/rails_admin/main/_check_boxes.html.slim +27 -0
- data/app/views/rails_admin/main/_enum_check_boxes.html.slim +5 -0
- data/app/views/rails_admin/main/_enum_radio_buttons.html.slim +5 -0
- data/app/views/rails_admin/main/_form_hancock_multiselect.html.slim +48 -0
- data/app/views/rails_admin/main/_form_raw.html.slim +1 -0
- data/app/views/rails_admin/main/_hancock_hash.html.slim +9 -0
- data/app/views/rails_admin/main/_hancock_hash_ml.html.slim +10 -0
- data/app/views/rails_admin/main/_hancock_html.html.slim +16 -0
- data/app/views/rails_admin/main/_hancock_html_ml.html.slim +53 -0
- data/app/views/shared/_admin_link.html.slim +3 -0
- data/app/views/shared/_messages.html.slim +7 -0
- data/config/initializers/embedded_findable.rb +57 -0
- data/config/initializers/hancock_cms.rb +11 -0
- data/config/initializers/simple_captcha.rb +70 -0
- data/config/locales/en.hancock.yml +29 -0
- data/config/locales/en.hancock_admin.yml +6 -0
- data/config/locales/ru.cancan.yml +4 -0
- data/config/locales/ru.devise.yml +65 -0
- data/config/locales/ru.hancock.yml +36 -0
- data/config/locales/ru.hancock_admin.yml +6 -0
- data/config/locales/ru.models.yml +82 -0
- data/config/locales/ru.mongoid.yml +450 -0
- data/config/locales/ru.rails_admin.yml +168 -0
- data/hancock_cms.gemspec +46 -0
- data/lib/filename_to_slug.rb +32 -0
- data/lib/generators/hancock/cms/ability_generator.rb +14 -0
- data/lib/generators/hancock/cms/admin_generator.rb +21 -0
- data/lib/generators/hancock/cms/application_generator.rb +14 -0
- data/lib/generators/hancock/cms/assets_generator.rb +35 -0
- data/lib/generators/hancock/cms/config_generator.rb +13 -0
- data/lib/generators/hancock/cms/controllers/decorators_generator.rb +27 -0
- data/lib/generators/hancock/cms/gemfile_generator.rb +13 -0
- data/lib/generators/hancock/cms/layout_generator.rb +14 -0
- data/lib/generators/hancock/cms/model_generator.rb +39 -0
- data/lib/generators/hancock/cms/models/embedded_element_generator.rb +56 -0
- data/lib/generators/hancock/cms/models/templates/embedded_element.erb +47 -0
- data/lib/generators/hancock/cms/paperclip_optimizer_generator.rb +13 -0
- data/lib/generators/hancock/cms/rack_generator.rb +12 -0
- data/lib/generators/hancock/cms/robots_generator.rb +14 -0
- data/lib/generators/hancock/cms/scripts_generator.rb +31 -0
- data/lib/generators/hancock/cms/templates/Gemfile.erb +69 -0
- data/lib/generators/hancock/cms/templates/ability.erb +49 -0
- data/lib/generators/hancock/cms/templates/admin.erb +74 -0
- data/lib/generators/hancock/cms/templates/application.erb +42 -0
- data/lib/generators/hancock/cms/templates/assets/javascripts/application.coffee.erb +5 -0
- data/lib/generators/hancock/cms/templates/assets/stylesheets/application.sass.erb +88 -0
- data/lib/generators/hancock/cms/templates/hancock_cms.erb +30 -0
- data/lib/generators/hancock/cms/templates/model.erb +42 -0
- data/lib/generators/hancock/cms/templates/paperclip_optimizer.erb +80 -0
- data/lib/generators/hancock/cms/templates/rack.erb +15 -0
- data/lib/generators/hancock/cms/templates/robots.txt.erb +5 -0
- data/lib/generators/hancock/cms/templates/scripts/assets_precompile.sh +3 -0
- data/lib/generators/hancock/cms/templates/scripts/bundle_production.sh +4 -0
- data/lib/generators/hancock/cms/templates/scripts/db_dump.sh.erb +3 -0
- data/lib/generators/hancock/cms/templates/scripts/db_restore.sh +3 -0
- data/lib/generators/hancock/cms/templates/scripts/full_assets_precompile.sh +4 -0
- data/lib/generators/hancock/cms/templates/scripts/restart_thru_kill.sh +3 -0
- data/lib/generators/hancock/cms/templates/scripts/send_hup.sh +3 -0
- data/lib/generators/hancock/cms/templates/scripts/send_usr2.sh +3 -0
- data/lib/generators/hancock/cms/templates/scripts/server.sh +5 -0
- data/lib/generators/hancock/cms/templates/scripts/server_alt.sh +5 -0
- data/lib/generators/hancock/cms/templates/unicorn.erb +57 -0
- data/lib/generators/hancock/cms/templates/unicorn.god.erb +59 -0
- data/lib/generators/hancock/cms/unicorn_god_generator.rb +15 -0
- data/lib/generators/hancock/cms/utils.rb +21 -0
- data/lib/hancock/admin.rb +60 -0
- data/lib/hancock/admin/embedded_element.rb +26 -0
- data/lib/hancock/configuration.rb +48 -0
- data/lib/hancock/controller.rb +30 -0
- data/lib/hancock/engine.rb +48 -0
- data/lib/hancock/migration.rb +15 -0
- data/lib/hancock/model.rb +53 -0
- data/lib/hancock/models/embedded_element.rb +12 -0
- data/lib/hancock/models/mongoid/embedded_element.rb +14 -0
- data/lib/hancock/plugin.rb +25 -0
- data/lib/hancock/plugin_configuration.rb +30 -0
- data/lib/hancock/rails_admin_ext/config.rb +129 -0
- data/lib/hancock/rails_admin_ext/hancock_hash.rb +84 -0
- data/lib/hancock/rails_admin_ext/hancock_html.rb +79 -0
- data/lib/hancock/rails_admin_ext/hancock_multiselect.rb +44 -0
- data/lib/hancock/rails_admin_ext/hancock_slugs.rb +35 -0
- data/lib/hancock/rails_admin_ext/patches/field_patch.rb +14 -0
- data/lib/hancock/rails_admin_ext/patches/group_patch.rb +41 -0
- data/lib/hancock/rails_admin_ext/patches/hancock_cms_group.rb +61 -0
- data/lib/hancock/rails_admin_ext/patches/new_controller_patch.rb +54 -0
- data/lib/hancock/routes.rb +20 -0
- data/lib/hancock/simple_form_patch.rb +12 -0
- data/lib/hancock/tasks.rb +13 -0
- data/lib/hancock/version.rb +3 -0
- data/lib/hancock_cms.rb +130 -0
- data/lib/manual_slug.rb +10 -0
- data/lib/manual_slug/active_record.rb +32 -0
- data/lib/manual_slug/mongoid.rb +40 -0
- data/lib/rails_admin/custom_show_in_app.rb +43 -0
- data/release.sh +12 -0
- data/template.rb +564 -0
- metadata +455 -0
@@ -0,0 +1,157 @@
|
|
1
|
+
/*! http://mths.be/placeholder v2.0.7 by @mathias */
|
2
|
+
;(function(window, document, $) {
|
3
|
+
|
4
|
+
var isInputSupported = 'placeholder' in document.createElement('input'),
|
5
|
+
isTextareaSupported = 'placeholder' in document.createElement('textarea'),
|
6
|
+
prototype = $.fn,
|
7
|
+
valHooks = $.valHooks,
|
8
|
+
hooks,
|
9
|
+
placeholder;
|
10
|
+
|
11
|
+
if (isInputSupported && isTextareaSupported) {
|
12
|
+
|
13
|
+
placeholder = prototype.placeholder = function() {
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
|
17
|
+
placeholder.input = placeholder.textarea = true;
|
18
|
+
|
19
|
+
} else {
|
20
|
+
|
21
|
+
placeholder = prototype.placeholder = function() {
|
22
|
+
var $this = this;
|
23
|
+
$this
|
24
|
+
.filter((isInputSupported ? 'textarea' : ':input') + '[placeholder]')
|
25
|
+
.not('.placeholder')
|
26
|
+
.bind({
|
27
|
+
'focus.placeholder': clearPlaceholder,
|
28
|
+
'blur.placeholder': setPlaceholder
|
29
|
+
})
|
30
|
+
.data('placeholder-enabled', true)
|
31
|
+
.trigger('blur.placeholder');
|
32
|
+
return $this;
|
33
|
+
};
|
34
|
+
|
35
|
+
placeholder.input = isInputSupported;
|
36
|
+
placeholder.textarea = isTextareaSupported;
|
37
|
+
|
38
|
+
hooks = {
|
39
|
+
'get': function(element) {
|
40
|
+
var $element = $(element);
|
41
|
+
return $element.data('placeholder-enabled') && $element.hasClass('placeholder') ? '' : element.value;
|
42
|
+
},
|
43
|
+
'set': function(element, value) {
|
44
|
+
var $element = $(element);
|
45
|
+
if (!$element.data('placeholder-enabled')) {
|
46
|
+
return element.value = value;
|
47
|
+
}
|
48
|
+
if (value == '') {
|
49
|
+
element.value = value;
|
50
|
+
// Issue #56: Setting the placeholder causes problems if the element continues to have focus.
|
51
|
+
if (element != document.activeElement) {
|
52
|
+
// We can't use `triggerHandler` here because of dummy text/password inputs :(
|
53
|
+
setPlaceholder.call(element);
|
54
|
+
}
|
55
|
+
} else if ($element.hasClass('placeholder')) {
|
56
|
+
clearPlaceholder.call(element, true, value) || (element.value = value);
|
57
|
+
} else {
|
58
|
+
element.value = value;
|
59
|
+
}
|
60
|
+
// `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363
|
61
|
+
return $element;
|
62
|
+
}
|
63
|
+
};
|
64
|
+
|
65
|
+
isInputSupported || (valHooks.input = hooks);
|
66
|
+
isTextareaSupported || (valHooks.textarea = hooks);
|
67
|
+
|
68
|
+
$(function() {
|
69
|
+
// Look for forms
|
70
|
+
$(document).delegate('form', 'submit.placeholder', function() {
|
71
|
+
// Clear the placeholder values so they don't get submitted
|
72
|
+
var $inputs = $('.placeholder', this).each(clearPlaceholder);
|
73
|
+
setTimeout(function() {
|
74
|
+
$inputs.each(setPlaceholder);
|
75
|
+
}, 10);
|
76
|
+
});
|
77
|
+
});
|
78
|
+
|
79
|
+
// Clear placeholder values upon page reload
|
80
|
+
$(window).bind('beforeunload.placeholder', function() {
|
81
|
+
$('.placeholder').each(function() {
|
82
|
+
this.value = '';
|
83
|
+
});
|
84
|
+
});
|
85
|
+
|
86
|
+
}
|
87
|
+
|
88
|
+
function args(elem) {
|
89
|
+
// Return an object of element attributes
|
90
|
+
var newAttrs = {},
|
91
|
+
rinlinejQuery = /^jQuery\d+$/;
|
92
|
+
$.each(elem.attributes, function(i, attr) {
|
93
|
+
if (attr.specified && !rinlinejQuery.test(attr.name)) {
|
94
|
+
newAttrs[attr.name] = attr.value;
|
95
|
+
}
|
96
|
+
});
|
97
|
+
return newAttrs;
|
98
|
+
}
|
99
|
+
|
100
|
+
function clearPlaceholder(event, value) {
|
101
|
+
var input = this,
|
102
|
+
$input = $(input);
|
103
|
+
if (input.value == $input.attr('placeholder') && $input.hasClass('placeholder')) {
|
104
|
+
if ($input.data('placeholder-password')) {
|
105
|
+
$input = $input.hide().next().show().attr('id', $input.removeAttr('id').data('placeholder-id'));
|
106
|
+
// If `clearPlaceholder` was called from `$.valHooks.input.set`
|
107
|
+
if (event === true) {
|
108
|
+
return $input[0].value = value;
|
109
|
+
}
|
110
|
+
$input.focus();
|
111
|
+
} else {
|
112
|
+
input.value = '';
|
113
|
+
$input.removeClass('placeholder');
|
114
|
+
input == document.activeElement && input.select();
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
function setPlaceholder() {
|
120
|
+
var $replacement,
|
121
|
+
input = this,
|
122
|
+
$input = $(input),
|
123
|
+
$origInput = $input,
|
124
|
+
id = this.id;
|
125
|
+
if (input.value == '') {
|
126
|
+
if (input.type == 'password') {
|
127
|
+
if (!$input.data('placeholder-textinput')) {
|
128
|
+
try {
|
129
|
+
$replacement = $input.clone().attr({ 'type': 'text' });
|
130
|
+
} catch(e) {
|
131
|
+
$replacement = $('<input>').attr($.extend(args(this), { 'type': 'text' }));
|
132
|
+
}
|
133
|
+
$replacement
|
134
|
+
.removeAttr('name')
|
135
|
+
.data({
|
136
|
+
'placeholder-password': true,
|
137
|
+
'placeholder-id': id
|
138
|
+
})
|
139
|
+
.bind('focus.placeholder', clearPlaceholder);
|
140
|
+
$input
|
141
|
+
.data({
|
142
|
+
'placeholder-textinput': $replacement,
|
143
|
+
'placeholder-id': id
|
144
|
+
})
|
145
|
+
.before($replacement);
|
146
|
+
}
|
147
|
+
$input = $input.removeAttr('id').hide().prev().attr('id', id).show();
|
148
|
+
// Note: `$input[0] != input` now!
|
149
|
+
}
|
150
|
+
$input.addClass('placeholder');
|
151
|
+
$input[0].value = $input.attr('placeholder');
|
152
|
+
} else {
|
153
|
+
$input.removeClass('placeholder');
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
}(this, document, jQuery));
|
@@ -0,0 +1,157 @@
|
|
1
|
+
#content.devise
|
2
|
+
background: #333C44 image-url("devices/login-bg.jpg") no-repeat center center / cover !important
|
3
|
+
position: fixed
|
4
|
+
top: 0
|
5
|
+
right: 0
|
6
|
+
bottom: 0
|
7
|
+
left: 0
|
8
|
+
overflow: auto
|
9
|
+
white-space: nowrap
|
10
|
+
text-align: center
|
11
|
+
|
12
|
+
&:before
|
13
|
+
height: 100%
|
14
|
+
display: inline-block
|
15
|
+
vertical-align: middle
|
16
|
+
content: ''
|
17
|
+
|
18
|
+
.devise-box
|
19
|
+
display: inline-block
|
20
|
+
white-space: normal
|
21
|
+
vertical-align: middle
|
22
|
+
text-align: left
|
23
|
+
background: #fff
|
24
|
+
webkit-box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19)
|
25
|
+
-moz-box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19)
|
26
|
+
box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19)
|
27
|
+
min-width: 400px
|
28
|
+
|
29
|
+
.white-box
|
30
|
+
background: #ffffff
|
31
|
+
padding: 25px
|
32
|
+
margin-bottom: 15px
|
33
|
+
|
34
|
+
form
|
35
|
+
#error_explanation
|
36
|
+
margin-bottom: 25px
|
37
|
+
h2
|
38
|
+
font-size: 16px
|
39
|
+
color: #EF5350
|
40
|
+
ul
|
41
|
+
font-size: 14px
|
42
|
+
padding-left: 25px
|
43
|
+
color: #EF5350
|
44
|
+
|
45
|
+
h2.title
|
46
|
+
height: 40px
|
47
|
+
color: #333C44
|
48
|
+
width: 100%
|
49
|
+
font-size: 18px
|
50
|
+
|
51
|
+
.form-group
|
52
|
+
display: block
|
53
|
+
margin: 10px 0px
|
54
|
+
&::before
|
55
|
+
display: table
|
56
|
+
content: " "
|
57
|
+
&::after
|
58
|
+
clear: both
|
59
|
+
display: table
|
60
|
+
content: " "
|
61
|
+
|
62
|
+
.form-control
|
63
|
+
background-image: linear-gradient(#9675ce, #9675ce), linear-gradient(rgba(120, 130, 140, 0.13), rgba(120, 130, 140, 0.13))
|
64
|
+
border: 0 none
|
65
|
+
border-radius: 0
|
66
|
+
box-shadow: none
|
67
|
+
background-color: rgba(0, 0, 0, 0)
|
68
|
+
background-position: center bottom, center calc(99%)
|
69
|
+
background-repeat: no-repeat
|
70
|
+
background-size: 0 2px, 100% 1px
|
71
|
+
background-color: #ffffff
|
72
|
+
box-shadow: none
|
73
|
+
color: #565656
|
74
|
+
height: 38px
|
75
|
+
width: 100%
|
76
|
+
padding: 7px 12px
|
77
|
+
transition: all 300ms linear 0s
|
78
|
+
display: block
|
79
|
+
font-size: 14px
|
80
|
+
line-height: 1.42857143
|
81
|
+
-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s
|
82
|
+
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
|
83
|
+
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
|
84
|
+
input
|
85
|
+
width: 100%
|
86
|
+
height: 100%
|
87
|
+
|
88
|
+
.link-to-recover
|
89
|
+
float: right
|
90
|
+
padding-right: 10px
|
91
|
+
a
|
92
|
+
-webkit-transition: color ease-in-out .15s
|
93
|
+
-o-transition: color ease-in-out .15s
|
94
|
+
transition: color ease-in-out .15s
|
95
|
+
color: #333C44
|
96
|
+
&:hover
|
97
|
+
color: #EF5350
|
98
|
+
|
99
|
+
.link-to-recover.center
|
100
|
+
float: none
|
101
|
+
margin: 0 auto
|
102
|
+
text-align: center
|
103
|
+
|
104
|
+
.checkbox-primary
|
105
|
+
min-height: 27px
|
106
|
+
padding-left: 10px
|
107
|
+
float: left
|
108
|
+
position: relative
|
109
|
+
display: block
|
110
|
+
input
|
111
|
+
cursor: pointer
|
112
|
+
opacity: 1
|
113
|
+
z-index: 1
|
114
|
+
outline: none !important
|
115
|
+
line-height: normal
|
116
|
+
label
|
117
|
+
display: inline-block
|
118
|
+
padding-left: 5px
|
119
|
+
position: relative
|
120
|
+
min-height: 20px
|
121
|
+
margin-bottom: 0
|
122
|
+
font-weight: 400
|
123
|
+
cursor: pointer
|
124
|
+
max-width: 100%
|
125
|
+
color: #333C44
|
126
|
+
-webkit-transition: color ease-in-out .15s
|
127
|
+
-o-transition: color ease-in-out .15s
|
128
|
+
transition: color ease-in-out .15s
|
129
|
+
&:hover
|
130
|
+
label
|
131
|
+
color: #EF5350
|
132
|
+
|
133
|
+
.actions
|
134
|
+
input
|
135
|
+
position: relative
|
136
|
+
cursor: pointer
|
137
|
+
display: inline-block
|
138
|
+
overflow: hidden
|
139
|
+
background: #EF5350
|
140
|
+
border: 1px solid #EF5350
|
141
|
+
color: #fff
|
142
|
+
text-transform: uppercase
|
143
|
+
text-align: center
|
144
|
+
width: 100%
|
145
|
+
padding: 10px 16px
|
146
|
+
font-size: 18px
|
147
|
+
line-height: 1.3333333
|
148
|
+
-webkit-transition: all ease-in-out .15s
|
149
|
+
-o-transition: all ease-in-out .15s
|
150
|
+
transition: all ease-in-out .15s
|
151
|
+
&:hover
|
152
|
+
background: rgba(#ee5350, 0.8)
|
153
|
+
border: 1px solid rgba(#ee5350, 0.8)
|
154
|
+
|
155
|
+
|
156
|
+
.form-group.links
|
157
|
+
margin-top: 25px
|
@@ -0,0 +1,69 @@
|
|
1
|
+
.flash
|
2
|
+
margin: 0 auto
|
3
|
+
padding: 10px 0
|
4
|
+
width: 530px
|
5
|
+
z-index: 99999
|
6
|
+
position: absolute
|
7
|
+
left: 50%
|
8
|
+
margin-left: -265px
|
9
|
+
&.recaptcha_error
|
10
|
+
display: none
|
11
|
+
|
12
|
+
.message
|
13
|
+
border-radius: 3px
|
14
|
+
behavior: url('/PIE.htc')
|
15
|
+
text-align: center
|
16
|
+
margin: 0 auto 15px
|
17
|
+
color: white
|
18
|
+
font-family: Tahoma
|
19
|
+
font-size: 17px
|
20
|
+
position: relative
|
21
|
+
a.close_flash
|
22
|
+
cursor: pointer
|
23
|
+
position: absolute
|
24
|
+
top: 1px
|
25
|
+
right: 2px
|
26
|
+
font-weight: bold
|
27
|
+
text-shadow: none
|
28
|
+
text-decoration: none
|
29
|
+
font-family: Arial
|
30
|
+
&:hover
|
31
|
+
opacity: 0.8
|
32
|
+
|
33
|
+
p
|
34
|
+
margin: 5px 10px 7px
|
35
|
+
color: white
|
36
|
+
font-size: 17px
|
37
|
+
line-height: 1.2
|
38
|
+
|
39
|
+
.success
|
40
|
+
border: 1px solid #009357
|
41
|
+
background: #02bb6f
|
42
|
+
+background(linear-gradient(top, #02bb6f, #019f4b))
|
43
|
+
text-shadow: 0px 1px #006d1c
|
44
|
+
a.close_flash
|
45
|
+
color: #004b2c
|
46
|
+
|
47
|
+
.notice
|
48
|
+
border: 1px solid #69b3d1
|
49
|
+
background: #79cdee
|
50
|
+
+background(linear-gradient(top, #79cdee, #56b6e5))
|
51
|
+
text-shadow: 0px 1px #248cd1
|
52
|
+
a.close_flash
|
53
|
+
color: #2f5f72
|
54
|
+
|
55
|
+
.warning
|
56
|
+
border: 1px solid #ce8f4b
|
57
|
+
background: #fbae5c
|
58
|
+
+background(linear-gradient(top, #fbae5c, #f9903b))
|
59
|
+
text-shadow: 0px 1px #f57024
|
60
|
+
a.close_flash
|
61
|
+
color: #865623
|
62
|
+
|
63
|
+
.error, .alert
|
64
|
+
border: 1px solid #ce4549
|
65
|
+
background: #f0565b
|
66
|
+
+background(linear-gradient(top, #f0565b, #e83639))
|
67
|
+
text-shadow: 0px 1px #d71012
|
68
|
+
a.close_flash
|
69
|
+
color: #782124
|
@@ -0,0 +1,98 @@
|
|
1
|
+
=transition($transition...)
|
2
|
+
-moz-transition: $transition
|
3
|
+
-o-transition: $transition
|
4
|
+
-webkit-transition: $transition
|
5
|
+
transition: $transition
|
6
|
+
|
7
|
+
=transition-property($property...)
|
8
|
+
-moz-transition-property: $property
|
9
|
+
-o-transition-property: $property
|
10
|
+
-webkit-transition-property: $property
|
11
|
+
transition-property: $property
|
12
|
+
|
13
|
+
=transition-duration($duration...)
|
14
|
+
-moz-transition-property: $duration
|
15
|
+
-o-transition-property: $duration
|
16
|
+
-webkit-transition-property: $duration
|
17
|
+
transition-property: $duration
|
18
|
+
|
19
|
+
=transition-timing-function($timing...)
|
20
|
+
-moz-transition-timing-function: $timing
|
21
|
+
-o-transition-timing-function: $timing
|
22
|
+
-webkit-transition-timing-function: $timing
|
23
|
+
transition-timing-function: $timing
|
24
|
+
|
25
|
+
=transition-delay($delay...)
|
26
|
+
-moz-transition-delay: $delay
|
27
|
+
-o-transition-delay: $delay
|
28
|
+
-webkit-transition-delay: $delay
|
29
|
+
transition-delay: $delay
|
30
|
+
|
31
|
+
=box-shadow($shadow...)
|
32
|
+
-webkit-box-shadow: $shadow
|
33
|
+
box-shadow: $shadow
|
34
|
+
-moz-box-shadow: $shadow
|
35
|
+
-o-box-shadow: $shadow
|
36
|
+
|
37
|
+
=border-radius($radius)
|
38
|
+
-webkit-border-radius: $radius
|
39
|
+
-moz-border-radius: $radius
|
40
|
+
-ms-border-radius: $radius
|
41
|
+
border-radius: $radius
|
42
|
+
|
43
|
+
=display-flex()
|
44
|
+
display: -webkit-box
|
45
|
+
display: -moz-box
|
46
|
+
display: -ms-flexbox
|
47
|
+
display: -webkit-flex
|
48
|
+
display: flex
|
49
|
+
|
50
|
+
=flex-wrap($value)
|
51
|
+
-webkit-flex-wrap: $value
|
52
|
+
flex-wrap: $value
|
53
|
+
|
54
|
+
=flex-grow($value)
|
55
|
+
-webkit-flex-grow: $value
|
56
|
+
flex-grow: $value
|
57
|
+
|
58
|
+
=flex-shrink($value)
|
59
|
+
-webkit-flex-shrink: $value
|
60
|
+
flex-shrink: $value
|
61
|
+
|
62
|
+
=flex-basis($value)
|
63
|
+
-webkit-flex-basis: $value
|
64
|
+
flex-basis: $value
|
65
|
+
|
66
|
+
=flex($value)
|
67
|
+
-webkit-flex: $value
|
68
|
+
flex: $value
|
69
|
+
|
70
|
+
=justify-content($value)
|
71
|
+
-webkit-justify-content: $value
|
72
|
+
justify-content: $value
|
73
|
+
|
74
|
+
=align-items($value)
|
75
|
+
-webkit-align-content: $value
|
76
|
+
align-content: $value
|
77
|
+
|
78
|
+
=display-flex-center()
|
79
|
+
display: -webkit-box
|
80
|
+
display: -moz-box
|
81
|
+
display: -ms-flexbox
|
82
|
+
display: -webkit-flex
|
83
|
+
display: flex
|
84
|
+
-webkit-box-pack: center
|
85
|
+
-ms-flex-pack: center
|
86
|
+
-webkit-justify-content: center
|
87
|
+
justify-content: center
|
88
|
+
-webkit-box-align: center
|
89
|
+
-ms-flex-align: center
|
90
|
+
-webkit-align-items: center
|
91
|
+
align-items: center
|
92
|
+
|
93
|
+
=transform($transforms)
|
94
|
+
-moz-transform: $transforms
|
95
|
+
-o-transform: $transforms
|
96
|
+
-ms-transform: $transforms
|
97
|
+
-webkit-transform: $transforms
|
98
|
+
transform: $transforms
|