binda 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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +63 -0
- data/Rakefile +37 -0
- data/app/assets/config/binda_manifest.js +2 -0
- data/app/assets/javascripts/binda/application.js +18 -0
- data/app/assets/javascripts/binda/components/form_item.js +54 -0
- data/app/assets/javascripts/binda/components/form_item_asset.js +24 -0
- data/app/assets/javascripts/binda/components/form_item_repeater.js +66 -0
- data/app/assets/javascripts/binda/components/sortable.js +44 -0
- data/app/assets/javascripts/binda/dist/binda.bundle.js +336 -0
- data/app/assets/javascripts/binda/index.js +16 -0
- data/app/assets/stylesheets/binda/application.css +6 -0
- data/app/assets/stylesheets/binda/components/assets_manager.scss +46 -0
- data/app/assets/stylesheets/binda/components/button.scss +7 -0
- data/app/assets/stylesheets/binda/components/form_body.scss +2 -0
- data/app/assets/stylesheets/binda/components/form_item.scss +169 -0
- data/app/assets/stylesheets/binda/components/form_item_asset.scss +20 -0
- data/app/assets/stylesheets/binda/components/form_section.scss +40 -0
- data/app/assets/stylesheets/binda/components/login.scss +6 -0
- data/app/assets/stylesheets/binda/components/main_container.scss +0 -0
- data/app/assets/stylesheets/binda/components/main_content.scss +5 -0
- data/app/assets/stylesheets/binda/components/main_header.scss +25 -0
- data/app/assets/stylesheets/binda/components/main_table.scss +28 -0
- data/app/assets/stylesheets/binda/components/sidebar.scss +131 -0
- data/app/assets/stylesheets/binda/components/sortable.scss +98 -0
- data/app/assets/stylesheets/binda/index.scss +24 -0
- data/app/assets/stylesheets/binda/layout/components_index.scss +9 -0
- data/app/assets/stylesheets/binda/layout/dashboard.scss +7 -0
- data/app/assets/stylesheets/binda/layout/users_sign_in.scss +29 -0
- data/app/assets/stylesheets/binda/settings/common.scss +93 -0
- data/app/assets/stylesheets/binda/settings/fonts.scss +90 -0
- data/app/assets/stylesheets/binda/settings/variables.scss +83 -0
- data/app/assets/stylesheets/scaffolds.scss +89 -0
- data/app/controllers/binda/application_controller.rb +29 -0
- data/app/controllers/binda/assets_controller.rb +62 -0
- data/app/controllers/binda/bindings_controller.rb +62 -0
- data/app/controllers/binda/categories_controller.rb +60 -0
- data/app/controllers/binda/components_controller.rb +223 -0
- data/app/controllers/binda/dates_controller.rb +62 -0
- data/app/controllers/binda/field_groups_controller.rb +114 -0
- data/app/controllers/binda/field_settings_controller.rb +66 -0
- data/app/controllers/binda/galleries_controller.rb +62 -0
- data/app/controllers/binda/manage/users_controller.rb +97 -0
- data/app/controllers/binda/repeaters_controller.rb +67 -0
- data/app/controllers/binda/settings_controller.rb +75 -0
- data/app/controllers/binda/structures_controller.rb +89 -0
- data/app/controllers/binda/texts_controller.rb +62 -0
- data/app/controllers/binda/users/confirmations_controller.rb +33 -0
- data/app/controllers/binda/users/omniauth_callbacks_controller.rb +33 -0
- data/app/controllers/binda/users/passwords_controller.rb +37 -0
- data/app/controllers/binda/users/registrations_controller.rb +89 -0
- data/app/controllers/binda/users/sessions_controller.rb +30 -0
- data/app/controllers/binda/users/unlocks_controller.rb +33 -0
- data/app/helpers/binda/application_helper.rb +25 -0
- data/app/helpers/binda/assets_helper.rb +4 -0
- data/app/helpers/binda/bindings_helper.rb +4 -0
- data/app/helpers/binda/categories_helper.rb +10 -0
- data/app/helpers/binda/components_helper.rb +10 -0
- data/app/helpers/binda/dates_helper.rb +4 -0
- data/app/helpers/binda/field_groups_helper.rb +10 -0
- data/app/helpers/binda/field_settings_helper.rb +14 -0
- data/app/helpers/binda/galleries_helper.rb +4 -0
- data/app/helpers/binda/repeaters_helper.rb +4 -0
- data/app/helpers/binda/settings_helper.rb +13 -0
- data/app/helpers/binda/structures_helper.rb +4 -0
- data/app/helpers/binda/texts_helper.rb +4 -0
- data/app/jobs/binda/application_job.rb +4 -0
- data/app/mailers/binda/application_mailer.rb +6 -0
- data/app/models/binda/application_record.rb +5 -0
- data/app/models/binda/asset.rb +21 -0
- data/app/models/binda/binding.rb +24 -0
- data/app/models/binda/category.rb +31 -0
- data/app/models/binda/component.rb +186 -0
- data/app/models/binda/date.rb +9 -0
- data/app/models/binda/field_group.rb +40 -0
- data/app/models/binda/field_setting.rb +95 -0
- data/app/models/binda/gallery.rb +18 -0
- data/app/models/binda/repeater.rb +108 -0
- data/app/models/binda/setting.rb +42 -0
- data/app/models/binda/structure.rb +31 -0
- data/app/models/binda/text.rb +9 -0
- data/app/models/binda/user.rb +8 -0
- data/app/uploaders/binda/asset/image_uploader.rb +76 -0
- data/app/views/binda/assets/_form.html.erb +22 -0
- data/app/views/binda/assets/edit.html.erb +6 -0
- data/app/views/binda/assets/index.html.erb +29 -0
- data/app/views/binda/assets/new.html.erb +5 -0
- data/app/views/binda/assets/show.html.erb +19 -0
- data/app/views/binda/bindings/_form.html.erb +32 -0
- data/app/views/binda/bindings/edit.html.erb +6 -0
- data/app/views/binda/bindings/index.html.erb +31 -0
- data/app/views/binda/bindings/new.html.erb +5 -0
- data/app/views/binda/bindings/show.html.erb +19 -0
- data/app/views/binda/categories/_form.html.erb +58 -0
- data/app/views/binda/categories/edit.html.erb +8 -0
- data/app/views/binda/categories/index.html.erb +34 -0
- data/app/views/binda/categories/new.html.erb +8 -0
- data/app/views/binda/components/_form_body.html.erb +86 -0
- data/app/views/binda/components/_form_item_asset.html.erb +20 -0
- data/app/views/binda/components/_form_item_date.html.erb +16 -0
- data/app/views/binda/components/_form_item_gallery.html.erb +0 -0
- data/app/views/binda/components/_form_item_new_repeater.html.erb +33 -0
- data/app/views/binda/components/_form_item_repeater.html.erb +81 -0
- data/app/views/binda/components/_form_item_text.html.erb +28 -0
- data/app/views/binda/components/_form_section.html.erb +37 -0
- data/app/views/binda/components/_form_section_repeater.html.erb +31 -0
- data/app/views/binda/components/_form_sidebar.html.erb +34 -0
- data/app/views/binda/components/edit.html.erb +8 -0
- data/app/views/binda/components/index.html.erb +43 -0
- data/app/views/binda/components/new.html.erb +8 -0
- data/app/views/binda/dates/_form.html.erb +22 -0
- data/app/views/binda/dates/edit.html.erb +6 -0
- data/app/views/binda/dates/index.html.erb +27 -0
- data/app/views/binda/dates/new.html.erb +5 -0
- data/app/views/binda/dates/show.html.erb +9 -0
- data/app/views/binda/field_groups/_form_body.html.erb +71 -0
- data/app/views/binda/field_groups/_form_item.html.erb +62 -0
- data/app/views/binda/field_groups/_form_section.html.erb +37 -0
- data/app/views/binda/field_groups/_form_section_repeater.html.erb +25 -0
- data/app/views/binda/field_groups/edit.html.erb +8 -0
- data/app/views/binda/field_groups/index.html.erb +34 -0
- data/app/views/binda/field_groups/new.html.erb +8 -0
- data/app/views/binda/field_settings/_form_body.html.erb +60 -0
- data/app/views/binda/field_settings/edit.html.erb +8 -0
- data/app/views/binda/field_settings/index.html.erb +31 -0
- data/app/views/binda/field_settings/new.html.erb +8 -0
- data/app/views/binda/galleries/_form.html.erb +27 -0
- data/app/views/binda/galleries/edit.html.erb +6 -0
- data/app/views/binda/galleries/index.html.erb +29 -0
- data/app/views/binda/galleries/new.html.erb +5 -0
- data/app/views/binda/galleries/show.html.erb +14 -0
- data/app/views/binda/manage/users/_admin_manage_user.json.jbuilder +2 -0
- data/app/views/binda/manage/users/_form_body.html.erb +58 -0
- data/app/views/binda/manage/users/edit.html.erb +8 -0
- data/app/views/binda/manage/users/index.html.erb +38 -0
- data/app/views/binda/manage/users/index.json.jbuilder +1 -0
- data/app/views/binda/manage/users/new.html.erb +8 -0
- data/app/views/binda/manage/users/show.json.jbuilder +1 -0
- data/app/views/binda/repeaters/_form.html.erb +27 -0
- data/app/views/binda/repeaters/edit.html.erb +6 -0
- data/app/views/binda/repeaters/index.html.erb +29 -0
- data/app/views/binda/repeaters/new.html.erb +5 -0
- data/app/views/binda/repeaters/show.html.erb +14 -0
- data/app/views/binda/settings/_dashboard_form.html.erb +51 -0
- data/app/views/binda/settings/_form.html.erb +52 -0
- data/app/views/binda/settings/dashboard.html.erb +9 -0
- data/app/views/binda/settings/edit.html.erb +8 -0
- data/app/views/binda/settings/index.html.erb +34 -0
- data/app/views/binda/settings/new.html.erb +8 -0
- data/app/views/binda/structures/_form_body.html.erb +56 -0
- data/app/views/binda/structures/_form_section.html.erb +64 -0
- data/app/views/binda/structures/add_child.html.erb +0 -0
- data/app/views/binda/structures/edit.html.erb +8 -0
- data/app/views/binda/structures/index.html.erb +34 -0
- data/app/views/binda/structures/new.html.erb +8 -0
- data/app/views/binda/texts/_form.html.erb +22 -0
- data/app/views/binda/texts/edit.html.erb +6 -0
- data/app/views/binda/texts/index.html.erb +27 -0
- data/app/views/binda/texts/new.html.erb +5 -0
- data/app/views/binda/texts/show.html.erb +9 -0
- data/app/views/layouts/binda/_flash.html.erb +26 -0
- data/app/views/layouts/binda/_header.html.erb +9 -0
- data/app/views/layouts/binda/_sidebar.html.erb +50 -0
- data/app/views/layouts/binda/application.html.erb +29 -0
- data/app/views/users/confirmations/new.html.erb +16 -0
- data/app/views/users/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/users/mailer/password_change.html.erb +3 -0
- data/app/views/users/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/users/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/users/passwords/edit.html.erb +31 -0
- data/app/views/users/passwords/new.html.erb +28 -0
- data/app/views/users/registrations/edit.html.erb +27 -0
- data/app/views/users/registrations/new.html.erb +17 -0
- data/app/views/users/sessions/new.html.erb +27 -0
- data/app/views/users/shared/_links.html.erb +25 -0
- data/app/views/users/unlocks/new.html.erb +16 -0
- data/config/initializers/assets.rb +3 -0
- data/config/initializers/devise.rb +278 -0
- data/config/initializers/devise_patch.rb +50 -0
- data/config/initializers/friendly_id.rb +88 -0
- data/config/initializers/simple_form.rb +165 -0
- data/config/initializers/simple_form_bootstrap.rb +149 -0
- data/config/locales/devise.en.yml +62 -0
- data/config/locales/en.yml +37 -0
- data/config/locales/simple_form.en.yml +31 -0
- data/config/routes.rb +67 -0
- data/config/tinymce.yml +15 -0
- data/db/migrate/1_create_binda_tables.rb +172 -0
- data/lib/binda.rb +5 -0
- data/lib/binda/engine.rb +30 -0
- data/lib/binda/version.rb +3 -0
- data/lib/generators/binda/install/USAGE +9 -0
- data/lib/generators/binda/install/install_generator.rb +107 -0
- data/lib/generators/binda/install/templates/config/initializers/carrierwave.rb +32 -0
- data/lib/generators/binda/install/templates/config/initializers/devise.rb +280 -0
- data/lib/generators/binda/setup/USAGE +8 -0
- data/lib/generators/binda/setup/setup_generator.rb +43 -0
- data/lib/tasks/binda.rake +25 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- metadata +637 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
ul#sortable,
|
|
2
|
+
ul.sortable {
|
|
3
|
+
list-style-type: none;
|
|
4
|
+
padding-left: 0;
|
|
5
|
+
margin-bottom: 64px;
|
|
6
|
+
|
|
7
|
+
li {
|
|
8
|
+
padding-bottom: 8px;
|
|
9
|
+
margin-bottom: 8px;
|
|
10
|
+
border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
|
|
11
|
+
cursor: move;
|
|
12
|
+
|
|
13
|
+
&:first-child {
|
|
14
|
+
padding-top: 8px;
|
|
15
|
+
border-top: 1px solid rgba( 0, 0, 0, 0.1 );
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
img {
|
|
19
|
+
max-height: 64px;
|
|
20
|
+
width: auto;
|
|
21
|
+
margin-right: 32px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ul#sortable > li > *,
|
|
27
|
+
ul.sortable > li > * {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sortable-handle {
|
|
32
|
+
width: 12px;
|
|
33
|
+
height: 12px;
|
|
34
|
+
margin-left: 8px;
|
|
35
|
+
margin-right: 16px;
|
|
36
|
+
border-radius: 6px;
|
|
37
|
+
background-color: #CCC;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ui-state-highlight {
|
|
41
|
+
background-color: #E2E2E2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
tbody#sortable,
|
|
45
|
+
tbody.sortable {
|
|
46
|
+
list-style-type: none;
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
margin-bottom: 64px;
|
|
49
|
+
|
|
50
|
+
tr {
|
|
51
|
+
padding-bottom: 8px;
|
|
52
|
+
margin-bottom: 8px;
|
|
53
|
+
border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
|
|
54
|
+
|
|
55
|
+
&:first-child {
|
|
56
|
+
padding-top: 8px;
|
|
57
|
+
border-top: 1px solid rgba( 0, 0, 0, 0.1 );
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
img {
|
|
61
|
+
max-height: 64px;
|
|
62
|
+
width: auto;
|
|
63
|
+
margin-right: 32px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.sortable--no-handle {
|
|
68
|
+
tr {
|
|
69
|
+
cursor: move;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
tbody#sortable > tr > *,
|
|
75
|
+
tbody.sortable > tr > * {
|
|
76
|
+
// display: inline-block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
.sortable-placeholder {
|
|
82
|
+
height: 48px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sortable--handle {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
width: 12px;
|
|
88
|
+
height: 12px;
|
|
89
|
+
margin-left: 8px;
|
|
90
|
+
margin-right: 16px;
|
|
91
|
+
border-radius: 6px;
|
|
92
|
+
background-color: #CCC;
|
|
93
|
+
cursor: move;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ui-state-highlight {
|
|
97
|
+
background-color: #E2E2E2;
|
|
98
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Settings
|
|
2
|
+
@import "settings/variables";
|
|
3
|
+
@import "settings/common";
|
|
4
|
+
@import "settings/fonts";
|
|
5
|
+
|
|
6
|
+
// Components
|
|
7
|
+
@import "components/sidebar";
|
|
8
|
+
@import "components/main_container";
|
|
9
|
+
@import "components/main_content";
|
|
10
|
+
@import "components/main_header";
|
|
11
|
+
@import "components/main_table";
|
|
12
|
+
@import "components/button";
|
|
13
|
+
@import "components/login";
|
|
14
|
+
@import "components/form_section";
|
|
15
|
+
@import "components/form_body";
|
|
16
|
+
@import "components/form_item";
|
|
17
|
+
@import "components/form_item_asset";
|
|
18
|
+
@import "components/sortable";
|
|
19
|
+
@import "components/assets_manager";
|
|
20
|
+
|
|
21
|
+
// Layout
|
|
22
|
+
@import "layout/components_index";
|
|
23
|
+
@import "layout/dashboard";
|
|
24
|
+
@import "layout/users_sign_in";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.devise-view {
|
|
2
|
+
// background: #FFF;
|
|
3
|
+
// background: -moz-linear-gradient(top, #FFF 0%, $gray-lighter 100%);
|
|
4
|
+
// background: -webkit-linear-gradient(top, #FFF 0%,$gray-lighter 100%);
|
|
5
|
+
// background: linear-gradient(to bottom, #FFF 0%,$gray-lighter 100%);
|
|
6
|
+
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFF', endColorstr='$gray-lighter',GradientType=0 );
|
|
7
|
+
background: $gray-lighter;
|
|
8
|
+
height: 100vh;
|
|
9
|
+
|
|
10
|
+
#main-container {
|
|
11
|
+
padding-left: 0;
|
|
12
|
+
position: relative;
|
|
13
|
+
height: 100vh;
|
|
14
|
+
}
|
|
15
|
+
#main-content {
|
|
16
|
+
position: absolute !important;
|
|
17
|
+
top: 50%;
|
|
18
|
+
left: 50%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
transform: translate(-50%, -50%);
|
|
21
|
+
|
|
22
|
+
width: 33% !important;
|
|
23
|
+
padding: $font-size-base * 2;
|
|
24
|
+
// margin: $font-size-base auto;
|
|
25
|
+
background-color: #FFF;
|
|
26
|
+
border-radius: $font-size-base / 2;
|
|
27
|
+
border: 1px solid $gray-lighter;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
background-color: $gray-lighter;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// this could be avoided using more recent version of bootstrap or with bourbon
|
|
7
|
+
.clearfix {
|
|
8
|
+
&::after {
|
|
9
|
+
clear: both;
|
|
10
|
+
content: "";
|
|
11
|
+
display: table;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// useful to debug
|
|
16
|
+
.bordered {
|
|
17
|
+
border: 2px solid red;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.vertical-center {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 50%;
|
|
23
|
+
transform: translateY(-50%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.absolute-center {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 50%;
|
|
29
|
+
left: 50%;
|
|
30
|
+
transform: translate(-50%, -50%);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.box-shadowed {
|
|
34
|
+
box-shadow: 0px 3px 6px 0px rgba( 200, 200, 200, 0.7 );
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.box-shadowed-up {
|
|
38
|
+
box-shadow: 0px 3px 10px 2px rgba( 150, 150, 150, 0.7 );
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// TINYMCE FIXES
|
|
42
|
+
// -------------
|
|
43
|
+
body#tinymce {
|
|
44
|
+
padding: 12px;
|
|
45
|
+
background-color: #FFF;
|
|
46
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.mce-tinymce, .mce-toolbar-grp {
|
|
50
|
+
margin-bottom: $font-size-base * 0.5 !important;
|
|
51
|
+
background-color: #FFF !important;
|
|
52
|
+
border: none !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.mce-btn-group:not(:first-child) {
|
|
56
|
+
border: none !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.mce-btn {
|
|
60
|
+
border-radius: 2px !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.mce-edit-area {
|
|
64
|
+
border: 1px solid #CCC !important;
|
|
65
|
+
border-radius: 1px !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mce-path {
|
|
69
|
+
padding-top: 2px !important;
|
|
70
|
+
padding-bottom: 2px !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mce-statusbar {
|
|
74
|
+
background-color: #FFF !important;
|
|
75
|
+
border: 1px solid #CCC !important;
|
|
76
|
+
border-top: none !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.mce-menubar {
|
|
80
|
+
margin-top: $font-size-base !important;
|
|
81
|
+
padding-top: 2px !important;
|
|
82
|
+
padding-bottom: 2px !important;
|
|
83
|
+
border-top: 1px solid rgba(0, 0, 0, 0.075) !important;
|
|
84
|
+
|
|
85
|
+
.mce-btn {
|
|
86
|
+
margin-right: 4px !important;
|
|
87
|
+
background-color: rgba(0, 0, 0, 0.075) !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:first-child {
|
|
91
|
+
margin-top: 0 !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.default-font {
|
|
2
|
+
font-family: "semplicitapro", arial, sans-serif;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// - - - - - - - - - - - - - - - - - -
|
|
6
|
+
// LAYOUT
|
|
7
|
+
// - - - - - - - - - - - - - - - - - -
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
font-size: 100%;
|
|
11
|
+
font-size: $font-size-base;
|
|
12
|
+
line-height: 1.25em;
|
|
13
|
+
@extend .default-font;
|
|
14
|
+
color: $text-color;
|
|
15
|
+
}
|
|
16
|
+
::selection {
|
|
17
|
+
background: $text-color !important; /* WebKit/Blink Browsers */
|
|
18
|
+
color: $body-bg !important;
|
|
19
|
+
}
|
|
20
|
+
::-moz-selection {
|
|
21
|
+
background: $text-color !important; /* Gecko Browsers */
|
|
22
|
+
color: $body-bg !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// - - - - - - - - - - - - - - - - - -
|
|
27
|
+
// TYPO
|
|
28
|
+
// - - - - - - - - - - - - - - - - - -
|
|
29
|
+
|
|
30
|
+
a,
|
|
31
|
+
a:link,
|
|
32
|
+
a:visited,
|
|
33
|
+
a:hover,
|
|
34
|
+
a:active {
|
|
35
|
+
// color: $link-color;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
font-weight: bold;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a:hover {
|
|
41
|
+
// border-bottom: 2px solid $link-color;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
button a {
|
|
45
|
+
border-bottom: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.p {
|
|
49
|
+
@include font-size( $font-size-base, $font-size-base * 1.25 );
|
|
50
|
+
|
|
51
|
+
@media ( min-width: $tablet ) {
|
|
52
|
+
@include font-size( $font-size-large, $font-size-large * 1.25 );
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.small {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
@include font-size( $font-size-base );
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
em {
|
|
62
|
+
font-style: italic;
|
|
63
|
+
display: inline-block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
strong {
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
display: inline-block;
|
|
69
|
+
}
|
|
70
|
+
.h1 {
|
|
71
|
+
@include font-size( $font-size-h2, $font-size-h2 * 1.25 );
|
|
72
|
+
|
|
73
|
+
@media ( min-width: $tablet ) {
|
|
74
|
+
@include font-size( $font-size-h1, $font-size-h1 * 1.25 );
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.h2 {
|
|
78
|
+
@include font-size( $font-size-h3, $font-size-h3 * 1.25 );
|
|
79
|
+
|
|
80
|
+
@media ( min-width: $tablet ) {
|
|
81
|
+
@include font-size( $font-size-h2, $font-size-h2 * 1.25 );
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.h3 {
|
|
85
|
+
@include font-size( $font-size-h4, $font-size-h4 * 1.25 );
|
|
86
|
+
|
|
87
|
+
@media ( min-width: $tablet ) {
|
|
88
|
+
@include font-size( $font-size-h3, $font-size-h3 * 1.25 );
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// - - - - - - - - - - - - - - - - - -
|
|
2
|
+
// GLOBAL PARAMETERS
|
|
3
|
+
// - - - - - - - - - - - - - - - - - -
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// MEDIA QUERIES
|
|
7
|
+
// -------------
|
|
8
|
+
$tablet: 480px;
|
|
9
|
+
$desktop: 960px;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// FROM BOOTSTRAP
|
|
13
|
+
// --------------
|
|
14
|
+
|
|
15
|
+
//== Colors
|
|
16
|
+
//
|
|
17
|
+
//## Gray and colors for use across Bootstrap.
|
|
18
|
+
|
|
19
|
+
$gray-base: #000 !default;
|
|
20
|
+
$gray-darker: lighten($gray-base, 13.5%) !default; // #222
|
|
21
|
+
$gray-dark: lighten($gray-base, 20%) !default; // #333
|
|
22
|
+
$gray: lighten($gray-base, 33.5%) !default; // #555
|
|
23
|
+
$gray-light: lighten($gray-base, 46.7%) !default; // #777
|
|
24
|
+
$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
|
|
25
|
+
|
|
26
|
+
$color-primary: darken(#428bca, 6.5%) !default; // #337ab7
|
|
27
|
+
$color-success: #5cb85c !default;
|
|
28
|
+
$color-info: #5bc0de !default;
|
|
29
|
+
$color-warning: #f0ad4e !default;
|
|
30
|
+
$color-danger: #d9534f !default;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
//== Scaffolding
|
|
34
|
+
//
|
|
35
|
+
//## Settings for some of the most global styles.
|
|
36
|
+
|
|
37
|
+
//** Background color for `<body>`.
|
|
38
|
+
$body-bg: #FFF !default;
|
|
39
|
+
//** Global text color on `<body>`.
|
|
40
|
+
$text-color: $gray-dark !default;
|
|
41
|
+
|
|
42
|
+
//** Global textual link color.
|
|
43
|
+
$link-color: $color-primary !default;
|
|
44
|
+
//** Link hover color set via `darken()` function.
|
|
45
|
+
$link-hover-color: darken($link-color, 15%) !default;
|
|
46
|
+
//** Link hover decoration.
|
|
47
|
+
$link-hover-decoration: underline !default;
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
//== Typography
|
|
51
|
+
//
|
|
52
|
+
//## Font, line-height, and color for body text, headings, and more.
|
|
53
|
+
|
|
54
|
+
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
|
55
|
+
$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
|
|
56
|
+
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
|
|
57
|
+
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
|
|
58
|
+
$font-family-base: $font-family-sans-serif !default;
|
|
59
|
+
|
|
60
|
+
$font-size-base: 14px !default;
|
|
61
|
+
$font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
|
|
62
|
+
$font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
|
|
63
|
+
|
|
64
|
+
$font-size-h1: floor(($font-size-base * 2.6)) !default; // ~36px
|
|
65
|
+
$font-size-h2: floor(($font-size-base * 2.15)) !default; // ~30px
|
|
66
|
+
$font-size-h3: ceil(($font-size-base * 1.7)) !default; // ~24px
|
|
67
|
+
$font-size-h4: ceil(($font-size-base * 1.25)) !default; // ~18px
|
|
68
|
+
$font-size-h5: $font-size-base !default;
|
|
69
|
+
$font-size-h6: ceil(($font-size-base * 0.85)) !default; // ~12px
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
// MIXINS
|
|
73
|
+
// ------
|
|
74
|
+
@mixin font-size( $pixels, $lineheight: $pixels, $default: $font-size-base ) {
|
|
75
|
+
// NOTE this function works only if you put
|
|
76
|
+
// 'font-size: $font-size-base' in 'body' styles
|
|
77
|
+
font-size: #{$pixels/$default}em;
|
|
78
|
+
line-height: #{$lineheight/$pixels}em;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@function kerning( $kerning ) {
|
|
82
|
+
@return #{ $kerning / 1000 }em;
|
|
83
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
body {
|
|
2
|
+
background-color: #fff;
|
|
3
|
+
color: #333;
|
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
line-height: 18px;
|
|
7
|
+
margin: 33px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
p, ol, ul, td {
|
|
11
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
|
12
|
+
font-size: 13px;
|
|
13
|
+
line-height: 18px;
|
|
14
|
+
margin: 33px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
pre {
|
|
18
|
+
background-color: #eee;
|
|
19
|
+
padding: 10px;
|
|
20
|
+
font-size: 11px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a {
|
|
24
|
+
color: #000;
|
|
25
|
+
|
|
26
|
+
&:visited {
|
|
27
|
+
color: #666;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
color: #fff;
|
|
32
|
+
background-color: #000;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
th {
|
|
37
|
+
padding-bottom: 5px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
td {
|
|
41
|
+
padding-bottom: 7px;
|
|
42
|
+
padding-left: 5px;
|
|
43
|
+
padding-right: 5px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
div {
|
|
47
|
+
&.field, &.actions {
|
|
48
|
+
margin-bottom: 10px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#notice {
|
|
53
|
+
color: green;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.field_with_errors {
|
|
57
|
+
padding: 2px;
|
|
58
|
+
background-color: red;
|
|
59
|
+
display: table;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#error_explanation {
|
|
63
|
+
width: 450px;
|
|
64
|
+
border: 2px solid red;
|
|
65
|
+
padding: 7px;
|
|
66
|
+
padding-bottom: 0;
|
|
67
|
+
margin-bottom: 20px;
|
|
68
|
+
background-color: #f0f0f0;
|
|
69
|
+
|
|
70
|
+
h2 {
|
|
71
|
+
text-align: left;
|
|
72
|
+
font-weight: bold;
|
|
73
|
+
padding: 5px 5px 5px 15px;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
margin: -7px;
|
|
76
|
+
margin-bottom: 0;
|
|
77
|
+
background-color: #c00;
|
|
78
|
+
color: #fff;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
ul li {
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
list-style: square;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
label {
|
|
88
|
+
display: block;
|
|
89
|
+
}
|