red_base 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +339 -0
- data/README.rdoc +40 -0
- data/Rakefile +42 -0
- data/app/assets/fonts/DroidNaskh-Bold.ttf +0 -0
- data/app/assets/fonts/DroidNaskh-Regular.ttf +0 -0
- data/app/assets/fonts/OpenSans-Bold.ttf +0 -0
- data/app/assets/fonts/OpenSans-BoldItalic.ttf +0 -0
- data/app/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
- data/app/assets/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- data/app/assets/fonts/OpenSans-Italic.ttf +0 -0
- data/app/assets/fonts/OpenSans-Light.ttf +0 -0
- data/app/assets/fonts/OpenSans-LightItalic.ttf +0 -0
- data/app/assets/fonts/OpenSans-Regular.ttf +0 -0
- data/app/assets/fonts/OpenSans-Semibold.ttf +0 -0
- data/app/assets/fonts/OpenSans-SemiboldItalic.ttf +0 -0
- data/app/assets/javascripts/red_base/application.js +20 -0
- data/app/assets/javascripts/red_base/dashboard/angular.js +9 -0
- data/app/assets/javascripts/red_base/dashboard/app.js +65 -0
- data/app/assets/javascripts/red_base/dashboard/application.js.erb +24 -0
- data/app/assets/javascripts/red_base/dashboard/functions.js.erb +91 -0
- data/app/assets/javascripts/red_base/dashboard/init.js +38 -0
- data/app/assets/javascripts/red_base/dashboard/init.js~ +0 -0
- data/app/assets/javascripts/red_base/dashboard/lib/angular-animate.js +1226 -0
- data/app/assets/javascripts/red_base/dashboard/lib/angular-gettext.js +202 -0
- data/app/assets/javascripts/red_base/dashboard/lib/angular-resource.js +578 -0
- data/app/assets/javascripts/red_base/dashboard/lib/angular-route.js +880 -0
- data/app/assets/javascripts/red_base/dashboard/lib/angular.js +20031 -0
- data/app/assets/javascripts/red_base/dashboard/lib/lodash.underscore.js +4893 -0
- data/app/assets/javascripts/red_base/dashboard/lib/restangular.js +1066 -0
- data/app/assets/javascripts/red_base/dashboard/locale/translations.js +5 -0
- data/app/assets/javascripts/red_base/dashboard/modules/anim.js +32 -0
- data/app/assets/javascripts/red_base/dashboard/modules/api.js +32 -0
- data/app/assets/javascripts/red_base/dashboard/modules/auth/auth.js +34 -0
- data/app/assets/javascripts/red_base/dashboard/modules/auth/group.js +174 -0
- data/app/assets/javascripts/red_base/dashboard/modules/auth/user.js +122 -0
- data/app/assets/javascripts/red_base/dashboard/modules/list-view.js +293 -0
- data/app/assets/javascripts/red_base/dashboard/modules/logs.js +41 -0
- data/app/assets/javascripts/red_base/dashboard/modules/modules.js +50 -0
- data/app/assets/javascripts/red_base/dashboard/modules/nav.js.erb +92 -0
- data/app/assets/javascripts/red_base/dashboard/templates/application.handlebars.erb +42 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/groups/details.handlebars.erb +15 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/groups/index.handlebars.erb +7 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/groups/new.handlebars.erb +39 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/index.handlebars.erb +31 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/users/details.handlebars.erb +15 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/users/index.handlebars.erb +11 -0
- data/app/assets/javascripts/red_base/dashboard/templates/auth/users/new.handlebars.erb +33 -0
- data/app/assets/javascripts/red_base/dashboard/templates/components/list-view.handlebars.erb +59 -0
- data/app/assets/javascripts/red_base/dashboard/templates/components/model-form.handlebars.erb +3 -0
- data/app/assets/javascripts/red_base/dashboard/templates/modules.handlebars.erb +15 -0
- data/app/assets/javascripts/red_base/dashboard/templates/navigation.handlebars.erb +43 -0
- data/app/assets/javascripts/red_base/dashboard/templates/widgets.handlebars +23 -0
- data/app/assets/javascripts/red_base/dashboard/variables.js.erb +17 -0
- data/app/assets/javascripts/red_base/groups.js +2 -0
- data/app/assets/javascripts/red_base/home.js +2 -0
- data/app/assets/javascripts/red_base/i18n.js +13 -0
- data/app/assets/javascripts/red_base/locale/en.json +27 -0
- data/app/assets/javascripts/red_base/locale/fa.json +27 -0
- data/app/assets/javascripts/red_base/users.js +2 -0
- data/app/assets/stylesheets/red_base/base.css.scss +402 -0
- data/app/assets/stylesheets/red_base/dashboard/dashboard.css.scss +169 -0
- data/app/assets/stylesheets/red_base/dashboard/ltr/application.css +21 -0
- data/app/assets/stylesheets/red_base/dashboard/ltr/base.css.scss.erb +28 -0
- data/app/assets/stylesheets/red_base/dashboard/ltr/base.css.scss~ +15 -0
- data/app/assets/stylesheets/red_base/dashboard/ltr/buttons.css.scss.erb +48 -0
- data/app/assets/stylesheets/red_base/dashboard/ltr/direction.css.scss +38 -0
- data/app/assets/stylesheets/red_base/dashboard/ltr/foundation_and_overrides.css.scss +1014 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/application.css +21 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/base.css.scss.erb +31 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/base.css.scss~ +1 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/base.css_flymake.scss +25 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/buttons.css.scss.erb +45 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/direction.css.scss +37 -0
- data/app/assets/stylesheets/red_base/dashboard/rtl/foundation_and_overrides.css.scss +1014 -0
- data/app/assets/stylesheets/red_base/dashboard/sidebar.css.scss +93 -0
- data/app/assets/stylesheets/red_base/devise.css.scss +34 -0
- data/app/assets/stylesheets/red_base/groups.css +4 -0
- data/app/assets/stylesheets/red_base/home.css.scss +14 -0
- data/app/assets/stylesheets/red_base/ltr/application.css +20 -0
- data/app/assets/stylesheets/red_base/ltr/buttons.css.scss.erb +48 -0
- data/app/assets/stylesheets/red_base/ltr/foundation_and_overrides.scss.erb +1012 -0
- data/app/assets/stylesheets/red_base/mixins.css.scss +15 -0
- data/app/assets/stylesheets/red_base/mixins.css.scss~ +7 -0
- data/app/assets/stylesheets/red_base/rtl/application.css +20 -0
- data/app/assets/stylesheets/red_base/rtl/buttons.css.scss.erb +48 -0
- data/app/assets/stylesheets/red_base/rtl/foundation_and_overrides.scss.erb +1012 -0
- data/app/assets/stylesheets/red_base/users.css +4 -0
- data/app/assets/stylesheets/red_base/variables.css.scss +100 -0
- data/app/controllers/red_base/api/v1/groups_controller.rb +65 -0
- data/app/controllers/red_base/api/v1/logs_controller.rb +12 -0
- data/app/controllers/red_base/api/v1/permissions_controller.rb +17 -0
- data/app/controllers/red_base/api/v1/users_controller.rb +54 -0
- data/app/controllers/red_base/api_controller.rb +51 -0
- data/app/controllers/red_base/application_controller.rb +34 -0
- data/app/controllers/red_base/dashboard_controller.rb +40 -0
- data/app/controllers/red_base/home_controller.rb +19 -0
- data/app/controllers/red_base/omniauth/callbacks_controller.rb +43 -0
- data/app/controllers/red_base/users/omniauth_callbacks_controller.rb~ +2 -0
- data/app/helpers/red_base/application_helper.rb +4 -0
- data/app/helpers/red_base/dashboard_helper.rb +5 -0
- data/app/helpers/red_base/groups_helper.rb +4 -0
- data/app/helpers/red_base/home_helper.rb +4 -0
- data/app/helpers/red_base/users_helper.rb +4 -0
- data/app/models/ability.rb +39 -0
- data/app/models/red_base/group.rb +27 -0
- data/app/models/red_base/permission.rb +15 -0
- data/app/models/red_base/user.rb +77 -0
- data/app/views/angularjs_templates/auth/groups/details.html +21 -0
- data/app/views/angularjs_templates/auth/groups/index.html +5 -0
- data/app/views/angularjs_templates/auth/groups/new.html +40 -0
- data/app/views/angularjs_templates/auth/index.html +30 -0
- data/app/views/angularjs_templates/auth/users/details.html +28 -0
- data/app/views/angularjs_templates/auth/users/index.html +6 -0
- data/app/views/angularjs_templates/auth/users/new.html +45 -0
- data/app/views/angularjs_templates/index.html +8 -0
- data/app/views/angularjs_templates/list-view/index.html +66 -0
- data/app/views/angularjs_templates/locale/fa.po +25 -0
- data/app/views/angularjs_templates/locale/templates.pot +24 -0
- data/app/views/angularjs_templates/logs/index.html +6 -0
- data/app/views/angularjs_templates/modules.html +17 -0
- data/app/views/angularjs_templates/nav.html.erb +38 -0
- data/app/views/angularjs_templates/nav.html.erb~ +43 -0
- data/app/views/devise/confirmations/new.html.erb +34 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +44 -0
- data/app/views/devise/passwords/new.html.erb +32 -0
- data/app/views/devise/registrations/edit.html.erb +29 -0
- data/app/views/devise/registrations/new.html.erb +91 -0
- data/app/views/devise/sessions/new.html.erb +98 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +30 -0
- data/app/views/layouts/red_base/application.html.erb +90 -0
- data/app/views/layouts/red_base/dashboard.html.erb +21 -0
- data/app/views/red_base/api/v1/groups/create.json.jbuilder +4 -0
- data/app/views/red_base/api/v1/groups/destroy.html.erb +2 -0
- data/app/views/red_base/api/v1/groups/destroy.json.jbuilder +1 -0
- data/app/views/red_base/api/v1/groups/edit.html.erb +2 -0
- data/app/views/red_base/api/v1/groups/index.html.erb +2 -0
- data/app/views/red_base/api/v1/groups/index.json.jbuilder +6 -0
- data/app/views/red_base/api/v1/groups/new.html.erb +2 -0
- data/app/views/red_base/api/v1/groups/show.html.erb +2 -0
- data/app/views/red_base/api/v1/groups/show.json.jbuilder +5 -0
- data/app/views/red_base/api/v1/groups/update.json.jbuilder +4 -0
- data/app/views/red_base/api/v1/logs/index.json.jbuilder +1 -0
- data/app/views/red_base/api/v1/permissions/index.json.jbuilder +1 -0
- data/app/views/red_base/api/v1/users/create.html.erb +2 -0
- data/app/views/red_base/api/v1/users/create.json.jbuilder +1 -0
- data/app/views/red_base/api/v1/users/destroy.json.jbuilder +1 -0
- data/app/views/red_base/api/v1/users/distroy.html.erb +2 -0
- data/app/views/red_base/api/v1/users/edit.html.erb +2 -0
- data/app/views/red_base/api/v1/users/index.html.erb +2 -0
- data/app/views/red_base/api/v1/users/index.json.jbuilder +4 -0
- data/app/views/red_base/api/v1/users/show.html.erb +2 -0
- data/app/views/red_base/api/v1/users/show.json.jbuilder +2 -0
- data/app/views/red_base/api/v1/users/update.json.jbuilder +1 -0
- data/app/views/red_base/dashboard/index.html.erb +37 -0
- data/app/views/red_base/home/index.html.erb +119 -0
- data/config/initializers/devise.rb +28 -0
- data/config/locales/devise.en.yml +59 -0
- data/config/locales/devise.fa.yml +56 -0
- data/config/locales/fa/LC_MESSAGES/red_base.mo +0 -0
- data/config/locales/fa/messages.mo +0 -0
- data/config/locales/fa/red_base.po +181 -0
- data/config/locales/red_base.pot +181 -0
- data/config/routes.rb +33 -0
- data/db/migrate/20131013091000_devise_create_red_base_users.rb +64 -0
- data/db/migrate/20131020124701_create_red_base_groups.rb +9 -0
- data/db/migrate/20131021170923_create_red_base_permissions.rb +10 -0
- data/db/migrate/20131123120422_add_permissions_groups_table.rb +8 -0
- data/db/seeds.rb +15 -0
- data/lib/devise_patch.rb~ +5 -0
- data/lib/generators/red_base/USAGE +8 -0
- data/lib/generators/red_base/angularjs_resource_generator.rb +74 -0
- data/lib/generators/red_base/install_all_generator.rb +38 -0
- data/lib/generators/red_base/install_generator.rb +42 -0
- data/lib/generators/red_base/install_specs_generator.rb +48 -0
- data/lib/generators/red_base/js_scaffold_generator.rb +232 -0
- data/lib/generators/red_base/templates/README +41 -0
- data/lib/generators/red_base/templates/README~ +4 -0
- data/lib/generators/red_base/templates/SPECS +13 -0
- data/lib/generators/red_base/templates/angularjs/details.html.erb +20 -0
- data/lib/generators/red_base/templates/angularjs/details.html.erb~ +0 -0
- data/lib/generators/red_base/templates/angularjs/index.html.erb +59 -0
- data/lib/generators/red_base/templates/angularjs/module.js.erb +259 -0
- data/lib/generators/red_base/templates/angularjs/new.html.erb +43 -0
- data/lib/generators/red_base/templates/api/controller.rb.erb +54 -0
- data/lib/generators/red_base/templates/api/controller.rb.erb~ +37 -0
- data/lib/generators/red_base/templates/devise.rb +251 -0
- data/lib/generators/red_base/templates/devise.rb~ +238 -0
- data/lib/generators/red_base/templates/fast_gettext.rb +4 -0
- data/lib/generators/red_base/templates/features/api.feature +92 -0
- data/lib/generators/red_base/templates/features/api.step.rb +7 -0
- data/lib/generators/red_base/templates/features/step_definitions/email_steps.rb +206 -0
- data/lib/generators/red_base/templates/features/support/email_spec.rb +1 -0
- data/lib/generators/red_base/templates/features/support/env.rb +79 -0
- data/lib/generators/red_base/templates/formtastic.rb +76 -0
- data/lib/generators/red_base/templates/js_scaffold.README +25 -0
- data/lib/generators/red_base/templates/red_base.rb +14 -0
- data/lib/generators/red_base/templates/red_base.rb~ +251 -0
- data/lib/generators/red_base/templates/seeds.rb +1 -0
- data/lib/generators/red_base/templates/spec/factories/groups.rb +5 -0
- data/lib/generators/red_base/templates/spec/factories/users.rb +10 -0
- data/lib/generators/red_base/templates/spec/spec_helper.rb +69 -0
- data/lib/generators/red_base/templates/spec/support/devise.rb +3 -0
- data/lib/generators/red_base/templates/views/create.json.jbuilder.erb +2 -0
- data/lib/generators/red_base/templates/views/destroy.json.jbuilder.erb +1 -0
- data/lib/generators/red_base/templates/views/index.json.jbuilder.erb +10 -0
- data/lib/generators/red_base/templates/views/index.json.jbuilder.erb~ +0 -0
- data/lib/generators/red_base/templates/views/show.json.jbuilder.erb +6 -0
- data/lib/generators/red_base/templates/views/update.json.jbuilder.erb +6 -0
- data/lib/generators/red_base/views_generator.rb +41 -0
- data/lib/red_base/active_record.rb +78 -0
- data/lib/red_base/active_record.rb~ +0 -0
- data/lib/red_base/api/groups_api.rb +41 -0
- data/lib/red_base/api/permissions_api.rb +24 -0
- data/lib/red_base/api/root.rb +15 -0
- data/lib/red_base/api/users_api.rb +20 -0
- data/lib/red_base/api.rb +61 -0
- data/lib/red_base/cucumber/auth.rb +45 -0
- data/lib/red_base/cucumber/exceptions.rb +40 -0
- data/lib/red_base/cucumber/interaction.rb +43 -0
- data/lib/red_base/cucumber/query.rb +28 -0
- data/lib/red_base/cucumber/urls.rb +76 -0
- data/lib/red_base/cucumber.rb +25 -0
- data/lib/red_base/dashboard/controller.rb +42 -0
- data/lib/red_base/dashboard/module.rb +45 -0
- data/lib/red_base/dashboard/module.rb~ +25 -0
- data/lib/red_base/dashboard.rb +60 -0
- data/lib/red_base/dashboard.rb~ +18 -0
- data/lib/red_base/engine.rb +132 -0
- data/lib/red_base/exceptions.rb +26 -0
- data/lib/red_base/i18n.rb +35 -0
- data/lib/red_base/initialize.rb +7 -0
- data/lib/red_base/omniauth/callbacks.rb +58 -0
- data/lib/red_base/omniauth/callbakcs.rb~ +7 -0
- data/lib/red_base/omniauth.rb +24 -0
- data/lib/red_base/omniauth.rb~ +1 -0
- data/lib/red_base/plugins.rb +44 -0
- data/lib/red_base/version.rb +22 -0
- data/lib/red_base.rb +30 -0
- data/lib/tasks/grunt/Gruntfile.js +25 -0
- data/lib/tasks/red_base_tasks.rake +23 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +52 -0
- metadata +661 -0
@@ -0,0 +1,402 @@
|
|
1
|
+
//@import 'foundation_and_overrides';
|
2
|
+
//@import "foundation";
|
3
|
+
//@import "foundation/components/global";
|
4
|
+
//@import "foundation/components/alert-boxes";
|
5
|
+
@import "red_base/variables";
|
6
|
+
@import "red_base/mixins";
|
7
|
+
|
8
|
+
table{
|
9
|
+
th{
|
10
|
+
text-align:center !important;
|
11
|
+
}
|
12
|
+
width:90%;
|
13
|
+
margin-left:auto ;
|
14
|
+
margin-right:auto ;
|
15
|
+
}
|
16
|
+
|
17
|
+
.warning{
|
18
|
+
text-shadow:1px 2px 2px 1px black;
|
19
|
+
}
|
20
|
+
|
21
|
+
.error{
|
22
|
+
text-shadow:1px 2px 2px 1px black;
|
23
|
+
}
|
24
|
+
|
25
|
+
.vertical {
|
26
|
+
list-style: none;
|
27
|
+
li {
|
28
|
+
display: inline;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.inline{
|
33
|
+
display:inline;
|
34
|
+
}
|
35
|
+
|
36
|
+
.justify{
|
37
|
+
text-align:justify;
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
.header {
|
42
|
+
Background: $headerbg;
|
43
|
+
height: $headerHeight;
|
44
|
+
}
|
45
|
+
|
46
|
+
footer {
|
47
|
+
Background: $darkbg;
|
48
|
+
width:100%;
|
49
|
+
min-height:60px;
|
50
|
+
position:relative;
|
51
|
+
margin: 0 auto;
|
52
|
+
color:$lightgray;
|
53
|
+
|
54
|
+
div{
|
55
|
+
padding:20px 60px;
|
56
|
+
font-size:14px;
|
57
|
+
a{
|
58
|
+
color:$lightgray;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
fieldset {
|
64
|
+
border-radius: $border-radius;
|
65
|
+
background: #fff;
|
66
|
+
|
67
|
+
legend {
|
68
|
+
color: $darkgray;
|
69
|
+
padding: 10px 10px 20px 10px;
|
70
|
+
background: none;
|
71
|
+
}
|
72
|
+
.row {
|
73
|
+
padding-bottom: 20px;
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
.form {
|
80
|
+
line-height:25px;
|
81
|
+
img {
|
82
|
+
padding :5px;
|
83
|
+
}
|
84
|
+
.submit{
|
85
|
+
text-align:center;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
$table-list-line-height: 40px;
|
91
|
+
/*
|
92
|
+
<.table-list>
|
93
|
+
.buttons
|
94
|
+
.details
|
95
|
+
*/
|
96
|
+
.table-list{
|
97
|
+
ul:not(.button-group){
|
98
|
+
border-top:2px solid $lightergray;
|
99
|
+
border-bottom: 5px solid $hover-box;
|
100
|
+
list-style: none;
|
101
|
+
border-radius: $border-radius;
|
102
|
+
overflow: hidden;
|
103
|
+
|
104
|
+
li:not(.btn) {
|
105
|
+
min-height: $table-list-line-height;
|
106
|
+
line-height: $table-list-line-height;
|
107
|
+
border-left: solid 1px $lightergray;
|
108
|
+
border-right: solid 1px $lightergray;
|
109
|
+
border-bottom: solid 1px $lightergray;
|
110
|
+
background-color: $verylightgray;
|
111
|
+
opacity: 0.8;
|
112
|
+
padding-left: 20px;
|
113
|
+
padding-right: 20px;
|
114
|
+
color: lighten(black, 20%);
|
115
|
+
overflow: hidden;
|
116
|
+
|
117
|
+
// TODO: Create a mixin for user-select;
|
118
|
+
-webkit-user-select: none;
|
119
|
+
-moz-user-select: none;
|
120
|
+
-khtml-user-select: none;
|
121
|
+
-ms-user-select: none;
|
122
|
+
-o-user-select: none;
|
123
|
+
&.selected {
|
124
|
+
background: $selected-bg;
|
125
|
+
}
|
126
|
+
&:hover.selected{
|
127
|
+
background: darken($selected-bg, 5%);
|
128
|
+
}
|
129
|
+
.show_details {
|
130
|
+
display: block;
|
131
|
+
@include transition(display 300ms linear 0ms);
|
132
|
+
}
|
133
|
+
.hide_details {
|
134
|
+
display: hide;
|
135
|
+
@include transition(display 300ms linear 0ms);
|
136
|
+
}
|
137
|
+
.title {
|
138
|
+
display: inline;
|
139
|
+
position: absolute;
|
140
|
+
width: 75%;
|
141
|
+
height: $table-list-line-height;
|
142
|
+
|
143
|
+
}
|
144
|
+
.buttons {
|
145
|
+
margin-top: -$table-list-line-height;
|
146
|
+
opacity: 0;
|
147
|
+
|
148
|
+
@include transition(opacity 300ms linear 0ms);
|
149
|
+
}
|
150
|
+
i {
|
151
|
+
font-size: 1.2em;
|
152
|
+
width: 1em;
|
153
|
+
height: 1em;
|
154
|
+
text-align: center;
|
155
|
+
}
|
156
|
+
a{
|
157
|
+
color: $darkgray;
|
158
|
+
}
|
159
|
+
span.btn > a {
|
160
|
+
color: white;
|
161
|
+
}
|
162
|
+
&.table-header {
|
163
|
+
background: white;
|
164
|
+
padding-top: 5px;
|
165
|
+
opacity: 1;
|
166
|
+
}
|
167
|
+
.overload{
|
168
|
+
display:none;
|
169
|
+
height:300px;
|
170
|
+
}
|
171
|
+
&:first-child{
|
172
|
+
border-top:solid 1px #E6E6E6;
|
173
|
+
}
|
174
|
+
&:hover {
|
175
|
+
//opacity: 1;
|
176
|
+
background: white;
|
177
|
+
overflow: hidden;
|
178
|
+
|
179
|
+
& > .buttons {
|
180
|
+
opacity: 1;
|
181
|
+
@include transition("opacity 300ms linear 0ms");
|
182
|
+
}
|
183
|
+
}
|
184
|
+
div:not(.pagination) {
|
185
|
+
padding-right:10px;
|
186
|
+
padding-left:10px;
|
187
|
+
}
|
188
|
+
&.table-summery {
|
189
|
+
opacity: 1;
|
190
|
+
background: white;
|
191
|
+
.small-text {
|
192
|
+
font-size: 0.8em;
|
193
|
+
padding: 0 10px;
|
194
|
+
}
|
195
|
+
|
196
|
+
.pagination {
|
197
|
+
display: inline-block;
|
198
|
+
font-size: 1em;
|
199
|
+
padding-top: $table-list-line-height / 6;
|
200
|
+
input {
|
201
|
+
text-align: center;
|
202
|
+
display: inline;
|
203
|
+
width: 1.6em;
|
204
|
+
padding: 0 0.1em;
|
205
|
+
margin: 0;
|
206
|
+
font-size: 1.1em;
|
207
|
+
height: 1.2em;
|
208
|
+
background: lighten($lightergray, 5%);
|
209
|
+
border: 1px solid $lightergray;
|
210
|
+
}
|
211
|
+
.label {
|
212
|
+
text-align: center;
|
213
|
+
position: relative;
|
214
|
+
font-size: 0.7em;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
}
|
219
|
+
.details{
|
220
|
+
font-size:0.9em;
|
221
|
+
margin: 0 1em;
|
222
|
+
padding:1em 0;
|
223
|
+
.button-group{
|
224
|
+
background-color:$lightergray;
|
225
|
+
border-radius: 1em 1em 0 0;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
.table {
|
233
|
+
background: white;
|
234
|
+
border-radius: $border-radius;
|
235
|
+
-webkit-font-smoothing: antialiased;
|
236
|
+
width: auto;
|
237
|
+
overflow: auto;
|
238
|
+
display: block;
|
239
|
+
th {
|
240
|
+
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
.clearmargin {
|
245
|
+
margin-left: 0 !important;
|
246
|
+
margin-right: 0 !important;
|
247
|
+
}
|
248
|
+
|
249
|
+
.clearpadding {
|
250
|
+
padding-left: 0 !important;
|
251
|
+
padding-right: 0 !important;
|
252
|
+
}
|
253
|
+
|
254
|
+
.pointer {
|
255
|
+
cursor: pointer;
|
256
|
+
}
|
257
|
+
|
258
|
+
.delete-icon {
|
259
|
+
color: $alizarin;
|
260
|
+
}
|
261
|
+
|
262
|
+
#flash {
|
263
|
+
padding: 10px 5px;
|
264
|
+
border-radius: $border-radius;
|
265
|
+
margin: 10px auto;
|
266
|
+
display: none;
|
267
|
+
cursor: pointer;
|
268
|
+
&.error {
|
269
|
+
background: $alizarin;
|
270
|
+
border: 1px solid darken($alizarin, 5%);
|
271
|
+
color: white;
|
272
|
+
}
|
273
|
+
&.warning {
|
274
|
+
background: $sun_flower;
|
275
|
+
border: 1px solid darken($sun_flower, 5%);
|
276
|
+
color: white;
|
277
|
+
|
278
|
+
}
|
279
|
+
&.success {
|
280
|
+
background: $emerald;
|
281
|
+
border: 1px solid darken($emerald, 5%);
|
282
|
+
color: white;
|
283
|
+
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
.search-bar{
|
289
|
+
margin-top: 10px;
|
290
|
+
input[type="search"]{
|
291
|
+
border-top-left-radius:5px;
|
292
|
+
border-bottom-left-radius:5px !important;
|
293
|
+
}
|
294
|
+
|
295
|
+
button[type="submit"]{
|
296
|
+
border-top-right-radius:5px !important;
|
297
|
+
border-bottom-right-radius:5px;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
|
302
|
+
#mainloader {
|
303
|
+
.text {
|
304
|
+
margin: 20% auto;
|
305
|
+
width:40%;
|
306
|
+
text-align: center;
|
307
|
+
color: #4f4f4f;
|
308
|
+
h5 { color: #4f4f4f;}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
|
313
|
+
.red {
|
314
|
+
background-color: $alizarin;
|
315
|
+
color: white;
|
316
|
+
}
|
317
|
+
|
318
|
+
.green {
|
319
|
+
background-color: $emerald;
|
320
|
+
color: white;
|
321
|
+
|
322
|
+
}
|
323
|
+
|
324
|
+
.yellow {
|
325
|
+
background-color: $sun_flower;
|
326
|
+
color: white;
|
327
|
+
}
|
328
|
+
|
329
|
+
.blue {
|
330
|
+
background-color: $peter_river;
|
331
|
+
color: white;
|
332
|
+
}
|
333
|
+
.lightgray {
|
334
|
+
background-color: $lightgray;
|
335
|
+
}
|
336
|
+
.lightergray {
|
337
|
+
background-color: $lightergray;
|
338
|
+
}
|
339
|
+
.rounded {
|
340
|
+
border-radius: $border-radius;
|
341
|
+
}
|
342
|
+
|
343
|
+
.text-4x {
|
344
|
+
font-size: 4em;
|
345
|
+
}
|
346
|
+
.text-2x {
|
347
|
+
font-size: 2em;
|
348
|
+
}
|
349
|
+
|
350
|
+
.elabel {
|
351
|
+
font-weight: 500;
|
352
|
+
text-align: center;
|
353
|
+
text-decoration: none;
|
354
|
+
line-height: 1;
|
355
|
+
white-space: nowrap;
|
356
|
+
display: inline-block;
|
357
|
+
position: relative;
|
358
|
+
padding: 0.1875em 0.625em 0.25em;
|
359
|
+
font-size: 0.75em;
|
360
|
+
}
|
361
|
+
|
362
|
+
.debug_dump {
|
363
|
+
margin: 10px auto;
|
364
|
+
width: 80%;
|
365
|
+
padding: 15px;
|
366
|
+
background: #efefef;
|
367
|
+
border: 1px #dfdfdf solid;
|
368
|
+
|
369
|
+
}
|
370
|
+
|
371
|
+
input {
|
372
|
+
&.has-error {
|
373
|
+
border: 1px solid $alizarin;
|
374
|
+
&:focus {border: 1px solid $alizarin;}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
.progressbar {
|
379
|
+
width: 100%;
|
380
|
+
height: 3px;
|
381
|
+
background: #eee;
|
382
|
+
border: 1px solid #e0e0e0;
|
383
|
+
text-align: center;
|
384
|
+
font-size: 12px;
|
385
|
+
color: $darkgray;
|
386
|
+
|
387
|
+
.filler {
|
388
|
+
position: absolute;
|
389
|
+
top: 0px;
|
390
|
+
float: left;
|
391
|
+
left: 0;
|
392
|
+
height: 100%;
|
393
|
+
}
|
394
|
+
|
395
|
+
}
|
396
|
+
|
397
|
+
.progressbar-container {
|
398
|
+
padding-top: 20px;
|
399
|
+
}
|
400
|
+
.text-error {
|
401
|
+
color: $alizarin;
|
402
|
+
}
|
@@ -0,0 +1,169 @@
|
|
1
|
+
@import "red_base/variables";
|
2
|
+
@import "red_base/mixins";
|
3
|
+
|
4
|
+
.row {
|
5
|
+
width: 100% !important;
|
6
|
+
max-width: 100%;
|
7
|
+
}
|
8
|
+
body {
|
9
|
+
background: $dashboard-background;
|
10
|
+
}
|
11
|
+
|
12
|
+
.full {
|
13
|
+
width: 100% !important;
|
14
|
+
max-width: 100% !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
header {
|
18
|
+
background: white;
|
19
|
+
border-bottom: 1px solid $orange;
|
20
|
+
position: fixed;
|
21
|
+
z-index: 1000;
|
22
|
+
height: $header-height;
|
23
|
+
width: 100%;
|
24
|
+
ul {
|
25
|
+
list-style: none;
|
26
|
+
|
27
|
+
li {
|
28
|
+
display: inline;
|
29
|
+
h1 {
|
30
|
+
font-size: 1.5em;
|
31
|
+
display: inline-block;
|
32
|
+
font-weight: 300;
|
33
|
+
color: $darkgray;
|
34
|
+
}
|
35
|
+
.search {
|
36
|
+
display: inline-block;
|
37
|
+
padding: 0 10px;
|
38
|
+
input {
|
39
|
+
display: inline-block;
|
40
|
+
border-radius: 4px;
|
41
|
+
border-color: $lightergray;
|
42
|
+
box-shadow: none;
|
43
|
+
padding: 0 0.5em;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
nav {
|
50
|
+
ul {
|
51
|
+
li {
|
52
|
+
display: inline-block;
|
53
|
+
padding: (($header-height / 4) - 3px) 20px 0 ;
|
54
|
+
height: $header-height;
|
55
|
+
margin: 0 5px;
|
56
|
+
|
57
|
+
&:hover {
|
58
|
+
border-bottom: 5px solid $alizarin;
|
59
|
+
}
|
60
|
+
span {
|
61
|
+
vertical-align: middle;
|
62
|
+
color: $darkgray;
|
63
|
+
cursor:pointer;
|
64
|
+
font-size: 1.2em;
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.subnav {
|
72
|
+
background: $alizarin;
|
73
|
+
position: fixed;
|
74
|
+
top: $header-height;
|
75
|
+
padding: 10px 20px;
|
76
|
+
border-radius: 0 0 5px 5px;
|
77
|
+
min-width: 100px;
|
78
|
+
color: white;
|
79
|
+
ul li {
|
80
|
+
padding: 4px 10px;
|
81
|
+
a {
|
82
|
+
color: lighten($lightergray, 5%);
|
83
|
+
text-shadow: 0 1px 1px $darkgray;
|
84
|
+
&:hover {
|
85
|
+
color: white;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
ul{
|
94
|
+
margin-bottom:0px !important;
|
95
|
+
margin-bottom:0;
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
.dashboard-content {
|
100
|
+
.content {
|
101
|
+
padding: 0 20px;
|
102
|
+
}
|
103
|
+
h1, h2, h3, h4, h5 {
|
104
|
+
color: $darkergray;
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
.widget {
|
111
|
+
-webkit-box-shadow: 0px 1px 1px rgba(48, 50, 50, 0.2);
|
112
|
+
-moz-box-shadow: 0px 1px 1px rgba(48, 50, 50, 0.2);
|
113
|
+
box-shadow: 0px 1px 1px rgba(48, 50, 50, 0.2);
|
114
|
+
@include box-shadow (0px 1px 1px rgba(48, 50, 50, 0.2));
|
115
|
+
min-height:6em;
|
116
|
+
//margin: 5px;
|
117
|
+
padding: 10px;
|
118
|
+
border-radius: 3px;
|
119
|
+
border-bottom:solid 10px #FFFFFF;
|
120
|
+
.text-center {
|
121
|
+
vertical-align: middle;
|
122
|
+
min-height:100%;
|
123
|
+
padding-top:2em;
|
124
|
+
.icon {
|
125
|
+
display: block;
|
126
|
+
}
|
127
|
+
|
128
|
+
}
|
129
|
+
&.whitewidget {
|
130
|
+
background: white;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
fieldset {
|
135
|
+
label {
|
136
|
+
padding: 0px 0px 5px 0px;
|
137
|
+
}
|
138
|
+
.permissions {
|
139
|
+
margin: 0 10px;
|
140
|
+
|
141
|
+
.field {
|
142
|
+
height: 16em;
|
143
|
+
border: 1px solid $lightergray;
|
144
|
+
color: $darkgray;
|
145
|
+
|
146
|
+
padding: 5px 10px;
|
147
|
+
overflow-y: auto;
|
148
|
+
ul {
|
149
|
+
list-style: none;
|
150
|
+
li {
|
151
|
+
cursor: pointer;
|
152
|
+
i.green-text {
|
153
|
+
color: $emerald;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
.dashboard-body {
|
162
|
+
padding-top: $header-height + 20px;
|
163
|
+
}
|
164
|
+
|
165
|
+
.buttons-header {
|
166
|
+
span {
|
167
|
+
margin: 5px 5px 5px;
|
168
|
+
}
|
169
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require red_base/dashboard/ltr/foundation_and_overrides
|
12
|
+
*= require ./direction
|
13
|
+
*= require red_base/variables
|
14
|
+
*= require font-awesome
|
15
|
+
*= require red_base/base
|
16
|
+
*= require ./base
|
17
|
+
*= require ./buttons
|
18
|
+
*= require_self
|
19
|
+
*= require red_base/dashboard/dashboard
|
20
|
+
*= require red_base/dashboard/sidebar
|
21
|
+
*/
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@import "red_base/variables";
|
2
|
+
@import "red_base/dashboard/ltr/foundation_and_overrides";
|
3
|
+
|
4
|
+
@font-face {
|
5
|
+
font-family: 'Open Sans';
|
6
|
+
src: url(<%= asset_path("OpenSans-Regular.ttf") %>) format('truetype'); /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */
|
7
|
+
}
|
8
|
+
|
9
|
+
* {
|
10
|
+
font-family: 'Open Sans', serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
input[type="integer"] {
|
14
|
+
@include form-element;
|
15
|
+
}
|
16
|
+
select {
|
17
|
+
@include form-element;
|
18
|
+
}
|
19
|
+
select[multiple] {
|
20
|
+
min-height: 10em;
|
21
|
+
}
|
22
|
+
|
23
|
+
textarea {
|
24
|
+
height: 10em !important;
|
25
|
+
}
|
26
|
+
.subnav {
|
27
|
+
right: 10px;
|
28
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@import "red_base/variables";
|
2
|
+
@import "red_base/dashboard/rtl/foundation_and_overrides";
|
3
|
+
|
4
|
+
input[type="integer"] {
|
5
|
+
@include form-element;
|
6
|
+
}
|
7
|
+
|
8
|
+
select {
|
9
|
+
@include form-element;
|
10
|
+
min-height: 10em;
|
11
|
+
}
|
12
|
+
|
13
|
+
textarea {
|
14
|
+
height: 10em !important;
|
15
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
@import "red_base/variables";
|
2
|
+
//@import "foundation";
|
3
|
+
//@import "foundation/components/global";
|
4
|
+
//@import "foundation/components/buttons";
|
5
|
+
@import "red_base/dashboard/ltr/foundation_and_overrides";
|
6
|
+
|
7
|
+
.btn {
|
8
|
+
@include button-base;
|
9
|
+
@include single-transition;
|
10
|
+
|
11
|
+
&.green {
|
12
|
+
@include button-style($emerald, $border-radius, false);
|
13
|
+
color: white;
|
14
|
+
}
|
15
|
+
|
16
|
+
&.blue {
|
17
|
+
@include button-style($peter_river, $border-radius, false);
|
18
|
+
color: white;
|
19
|
+
}
|
20
|
+
|
21
|
+
&.red {
|
22
|
+
@include button-style($alizarin, $border-radius, false);
|
23
|
+
color: white;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.yellow {
|
27
|
+
@include button-style($sun_flower, $border-radius, false);
|
28
|
+
}
|
29
|
+
&.lightgray {
|
30
|
+
@include button-style($lightgray, $border-radius, false);
|
31
|
+
}
|
32
|
+
&.lightergray {
|
33
|
+
@include button-style($lightergray, $border-radius, false);
|
34
|
+
}
|
35
|
+
|
36
|
+
}
|
37
|
+
|
38
|
+
.tiny {
|
39
|
+
@include button-size($button-tny, false, false);
|
40
|
+
}
|
41
|
+
|
42
|
+
.small {
|
43
|
+
@include button-size($button-sml, false, false);
|
44
|
+
}
|
45
|
+
|
46
|
+
.medium {
|
47
|
+
@include button-size($button-med, false, false);
|
48
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@import "red_base/dashboard/ltr/foundation_and_overrides";
|
2
|
+
@import "red_base/variables";
|
3
|
+
|
4
|
+
.float-right {
|
5
|
+
float: right !important;
|
6
|
+
}
|
7
|
+
.float-left {
|
8
|
+
float: left !important;
|
9
|
+
}
|
10
|
+
|
11
|
+
.text-right {
|
12
|
+
text-align: right !important;
|
13
|
+
}
|
14
|
+
.text-left {
|
15
|
+
text-align: left !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
.append {
|
19
|
+
@include prefix-postfix-base;
|
20
|
+
@include postfix;
|
21
|
+
@include grid-column($columns:3,$float:right);
|
22
|
+
border-radius: 0 $border-radius $border-radius 0 !important;
|
23
|
+
|
24
|
+
text-align: center;
|
25
|
+
i {
|
26
|
+
color: gray;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
input[type="search"].append, input[type="text"].append {
|
31
|
+
text-align: left;
|
32
|
+
@include grid-column($columns:9);
|
33
|
+
border-radius: $border-radius 0 0 $border-radius !important;
|
34
|
+
border-color: lightgray;
|
35
|
+
&:focus {
|
36
|
+
border-color: lightgray;
|
37
|
+
}
|
38
|
+
}
|