loldesign_publisher 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +21 -0
- data/app/assets/images/grid.png +0 -0
- data/app/assets/images/loldesign_publisher/logo.png +0 -0
- data/app/assets/images/loldesign_publisher/logo.svg +81 -0
- data/app/assets/images/loldesign_publisher/nav_active_link.svg +8 -0
- data/app/assets/javascripts/loldesign_publisher/activable.js +51 -0
- data/app/assets/javascripts/loldesign_publisher/libs/datepicker-pt-BR.js +37 -0
- data/app/assets/javascripts/loldesign_publisher/libs/gumby.init.js +47 -0
- data/app/assets/javascripts/loldesign_publisher/libs/gumby.js +258 -0
- data/app/assets/javascripts/loldesign_publisher/libs/gumby.min.js +1 -0
- data/app/assets/javascripts/loldesign_publisher/libs/jquery-1.10.1.min.js +6 -0
- data/app/assets/javascripts/loldesign_publisher/libs/jquery-1.10.1.min.map +1 -0
- data/app/assets/javascripts/loldesign_publisher/libs/jquery-2.0.2.min.js +6 -0
- data/app/assets/javascripts/loldesign_publisher/libs/jquery-2.0.2.min.map +1 -0
- data/app/assets/javascripts/loldesign_publisher/libs/jquery.mask.min.js +7 -0
- data/app/assets/javascripts/loldesign_publisher/libs/jquery.mobile.custom.min.js +3 -0
- data/app/assets/javascripts/loldesign_publisher/libs/modernizr-2.6.2.min.js +4 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.checkbox.js +101 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.fixed.js +240 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.navbar.js +115 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.radiobtn.js +90 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.retina.js +81 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.skiplink.js +157 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.tabs.js +80 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.toggleswitch.js +264 -0
- data/app/assets/javascripts/loldesign_publisher/libs/ui/jquery.validation.js +142 -0
- data/app/assets/javascripts/loldesign_publisher/main.js +23 -0
- data/app/assets/javascripts/loldesign_publisher/plugins.js +4 -0
- data/app/assets/javascripts/loldesign_publisher/publisher.js +65 -0
- data/app/assets/stylesheets/loldesign_publisher/_base.css.scss +62 -0
- data/app/assets/stylesheets/loldesign_publisher/gumby.css +1683 -0
- data/app/assets/stylesheets/loldesign_publisher/layouts/_default.html.css.scss +15 -0
- data/app/assets/stylesheets/loldesign_publisher/layouts/_form.css.scss +101 -0
- data/app/assets/stylesheets/loldesign_publisher/layouts/_header_main.css.scss +20 -0
- data/app/assets/stylesheets/loldesign_publisher/layouts/_nav_main.css.scss +30 -0
- data/app/assets/stylesheets/loldesign_publisher/layouts/_resource_info.css.scss +40 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_add_resource.css.scss +12 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_btn_cancel.css.scss +13 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_btn_remove.css.scss +13 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_btn_save.css.scss +16 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_btn_show.css.scss +12 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_filter_box.css.scss +35 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_messages.css.scss +20 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_pagination.css.scss +65 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_table_page.css.scss +37 -0
- data/app/assets/stylesheets/loldesign_publisher/modules/_title_page.css.scss +54 -0
- data/app/assets/stylesheets/loldesign_publisher/publisher.css +7 -0
- data/app/controllers/loldesign_publisher/activables_controller.rb +26 -0
- data/app/controllers/loldesign_publisher/publisher_controller.rb +4 -0
- data/app/helpers/loldesign_publisher/publisher_helper.rb +101 -0
- data/app/views/layouts/loldesign_publisher/_header_main.html.erb +8 -0
- data/app/views/layouts/loldesign_publisher/_nav_main.html.erb +12 -0
- data/app/views/layouts/loldesign_publisher/modules/_add_resource.html.erb +3 -0
- data/app/views/layouts/loldesign_publisher/modules/_messages.html.erb +5 -0
- data/app/views/layouts/loldesign_publisher/modules/_td_not_found.html.erb +1 -0
- data/app/views/layouts/loldesign_publisher/modules/_title_page.html.erb +9 -0
- data/app/views/layouts/loldesign_publisher/publisher.html.erb +24 -0
- data/config/routes.rb +7 -0
- data/lib/generators/loldesign_publisher/install_generator.rb +26 -0
- data/lib/generators/loldesign_publisher/templates/loldesign_publisher.yml +12 -0
- data/lib/generators/loldesign_publisher/templates/override_publisher.css.scss +5 -0
- data/lib/generators/loldesign_publisher/templates/publisher_rails_app.js +3 -0
- data/lib/generators/loldesign_publisher/views_generator.rb +16 -0
- data/lib/loldesign_publisher.rb +28 -0
- data/lib/loldesign_publisher/engine.rb +28 -0
- data/lib/loldesign_publisher/version.rb +3 -0
- data/lib/tasks/loldesign_publisher_tasks.rake +4 -0
- data/public/fonts/icons/entypo.eot +0 -0
- data/public/fonts/icons/entypo.ttf +0 -0
- data/public/fonts/icons/entypo.woff +0 -0
- data/public/grid.js +68 -0
- data/spec/controllers/loldesign_publisher/activables_controller_spec.rb +21 -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/javascripts/loldesign_publisher/publisher_rails_app.js +3 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/assets/stylesheets/loldesign_publisher/override_publisher.css.scss +5 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/users_controller.rb +10 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/users/_filters_by_from_to.html.erb +8 -0
- data/spec/dummy/app/views/users/_user.html.erb +9 -0
- data/spec/dummy/app/views/users/index.html.erb +26 -0
- data/spec/dummy/app/views/users/new.html.erb +23 -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.ru +4 -0
- data/spec/dummy/config/application.rb +29 -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 +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -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 +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/simple_form.rb +145 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/locales/simple_form.en.yml +26 -0
- data/spec/dummy/config/loldesign_publisher.yml +12 -0
- data/spec/dummy/config/routes.rb +59 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141126120426_create_users.rb +13 -0
- data/spec/dummy/db/schema.rb +26 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/spec/dummy/log/development.log +16 -0
- data/spec/dummy/log/test.log +158 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/user_factory.rb +10 -0
- data/spec/spec_helper.rb +18 -0
- metadata +383 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
$input-border-color: #d1d3d4;
|
4
|
+
$footer-border-color: #808284;
|
5
|
+
|
6
|
+
form{
|
7
|
+
margin-top: 20px;
|
8
|
+
|
9
|
+
&.two-columns{
|
10
|
+
article:nth-child(2){
|
11
|
+
@include grid(7);
|
12
|
+
@include alpha;
|
13
|
+
}
|
14
|
+
article:nth-child(3){
|
15
|
+
@include grid(9);
|
16
|
+
@include push(1);
|
17
|
+
@include omega;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
&.three-columns{
|
21
|
+
article:nth-child(2){
|
22
|
+
@include grid(6);
|
23
|
+
@include alpha;
|
24
|
+
}
|
25
|
+
article:nth-child(3){
|
26
|
+
@include grid(5);
|
27
|
+
@include push(1);
|
28
|
+
}
|
29
|
+
article:nth-child(4){
|
30
|
+
@include push(2);
|
31
|
+
@include grid(4);
|
32
|
+
@include omega;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.input{
|
37
|
+
margin-bottom: 20px;
|
38
|
+
width: 100%;
|
39
|
+
@include clearfix;
|
40
|
+
|
41
|
+
&.boolean{
|
42
|
+
label{
|
43
|
+
font-size: 12px;
|
44
|
+
font-weight: $bold;
|
45
|
+
text-transform: lowercase;
|
46
|
+
}
|
47
|
+
|
48
|
+
input{
|
49
|
+
margin-right: 10px;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
input.string,
|
54
|
+
input.password,
|
55
|
+
textarea.text{
|
56
|
+
width: 100%;
|
57
|
+
border: 1px solid $input-border-color;
|
58
|
+
padding: 5px;
|
59
|
+
font-size: 12px;
|
60
|
+
color: $gray-main;
|
61
|
+
-webkit-border-radius: 5px;
|
62
|
+
-moz-border-radius: 5px;
|
63
|
+
border-radius: 5px;
|
64
|
+
|
65
|
+
&::-webkit-input-placeholder{
|
66
|
+
color: $gray-main;
|
67
|
+
}
|
68
|
+
|
69
|
+
&::-moz-placeholder{
|
70
|
+
color: $gray-main;
|
71
|
+
}
|
72
|
+
|
73
|
+
&.small{
|
74
|
+
@include grid(3);
|
75
|
+
@include alpha;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
span.error {
|
80
|
+
font-size: 12px;
|
81
|
+
font-weight: $normal;
|
82
|
+
color: red;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
footer{
|
87
|
+
overflow: hidden;
|
88
|
+
width: 100%;
|
89
|
+
text-align: center;
|
90
|
+
border-top: 1px solid $footer-border-color;
|
91
|
+
padding-top: 20px;
|
92
|
+
|
93
|
+
.btn{
|
94
|
+
&:first-child{
|
95
|
+
@include alpha;
|
96
|
+
}
|
97
|
+
|
98
|
+
@include push(6);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
$link-color: #6d6e71;
|
4
|
+
$link-active-color: #484045;
|
5
|
+
$link-border-color: #c6c6c6;
|
6
|
+
|
7
|
+
nav.main{
|
8
|
+
@include grid(4);
|
9
|
+
margin-top: 30px;
|
10
|
+
|
11
|
+
ul{
|
12
|
+
margin-top: 30px;
|
13
|
+
}
|
14
|
+
|
15
|
+
a{
|
16
|
+
color: $link-color;
|
17
|
+
font-size: 15px;
|
18
|
+
border-bottom: 1px solid $link-border-color;
|
19
|
+
padding-bottom: 5px;
|
20
|
+
margin-bottom: 5px;
|
21
|
+
display: block;
|
22
|
+
font-weight: $normal;
|
23
|
+
|
24
|
+
&[data-active=true],
|
25
|
+
&:hover{
|
26
|
+
color: $link-active-color;
|
27
|
+
background: image-url('loldesign_publisher/nav_active_link.svg') no-repeat 177px 8px;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
.show-resource{
|
4
|
+
@include clearfix;
|
5
|
+
margin-top: 20px;
|
6
|
+
|
7
|
+
p{
|
8
|
+
font-size: 12px;
|
9
|
+
|
10
|
+
strong{
|
11
|
+
display: block;
|
12
|
+
}
|
13
|
+
|
14
|
+
a{
|
15
|
+
color: $gray-main;
|
16
|
+
text-decoration: underline;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
&.two-columns{
|
21
|
+
article:first-child{
|
22
|
+
@include grid(8);
|
23
|
+
@include alpha;
|
24
|
+
}
|
25
|
+
article:nth-child(2){
|
26
|
+
@include grid(9);
|
27
|
+
@include omega;
|
28
|
+
}
|
29
|
+
|
30
|
+
footer{
|
31
|
+
@include grid(17);
|
32
|
+
@include alpha;
|
33
|
+
|
34
|
+
.btn.cancel{
|
35
|
+
@include push(7);
|
36
|
+
@include alpha;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
.filter-box{
|
4
|
+
@include clearfix;
|
5
|
+
background: lighten($gray-main, 60%);
|
6
|
+
border: 1px solid lighten($gray-main, 40%);
|
7
|
+
margin-top: 20px;
|
8
|
+
|
9
|
+
input[type='text']{
|
10
|
+
@include grid(3);
|
11
|
+
@include alpha;
|
12
|
+
@include push(1);
|
13
|
+
border: 1px solid lighten($gray-main, 20%);
|
14
|
+
font-size: 14px;
|
15
|
+
margin-right: 10px;
|
16
|
+
}
|
17
|
+
|
18
|
+
input[type='submit']{
|
19
|
+
@include grid(2);
|
20
|
+
@include alpha;
|
21
|
+
@include omega;
|
22
|
+
@include push(8);
|
23
|
+
border: none;
|
24
|
+
background: $gray-main;
|
25
|
+
color: #fff;
|
26
|
+
font-size: 13px;
|
27
|
+
cursor: hand;
|
28
|
+
cursor: pointer;
|
29
|
+
}
|
30
|
+
|
31
|
+
form{
|
32
|
+
margin: 20px 0;
|
33
|
+
@include clearfix;
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
.messages{
|
4
|
+
padding: 10px 15px;
|
5
|
+
margin-bottom: 20px;
|
6
|
+
border: 1px solid transparent;
|
7
|
+
border-radius: 4px;
|
8
|
+
|
9
|
+
&.error{
|
10
|
+
color: #a94442;
|
11
|
+
background-color: #f2dede;
|
12
|
+
border-color: #ebccd1;
|
13
|
+
}
|
14
|
+
|
15
|
+
&.notice{
|
16
|
+
color: #3c763d;
|
17
|
+
background-color: #dff0d8;
|
18
|
+
border-color: #d6e9c6;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
//colors
|
4
|
+
$color_silver_chalice_approx: #aaaaaa;
|
5
|
+
$color_alto_approx: #dddddd;
|
6
|
+
$color_science_blue_approx: #0063dc;
|
7
|
+
$midnight_blue: #003366;
|
8
|
+
$white: white;
|
9
|
+
|
10
|
+
//@extend-elements
|
11
|
+
//original selectors
|
12
|
+
//.pagination a:hover, .pagination a:focus
|
13
|
+
%extend_1 {
|
14
|
+
border-color: $gray-main;
|
15
|
+
background: $gray-main;
|
16
|
+
color: $white;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
.pagination {
|
21
|
+
text-align: center;
|
22
|
+
padding: 0.3em;
|
23
|
+
cursor: default;
|
24
|
+
font-size: 12px;
|
25
|
+
margin-bottom: 20px;
|
26
|
+
a {
|
27
|
+
padding: 0.2em 0.5em;
|
28
|
+
border: 1px solid $color_alto_approx;
|
29
|
+
color: $gray-main;
|
30
|
+
text-decoration: none;
|
31
|
+
|
32
|
+
&:hover {
|
33
|
+
@extend %extend_1;
|
34
|
+
}
|
35
|
+
&:focus {
|
36
|
+
@extend %extend_1;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
span {
|
40
|
+
padding: 0.2em 0.5em;
|
41
|
+
}
|
42
|
+
em {
|
43
|
+
padding: 0.2em 0.5em;
|
44
|
+
}
|
45
|
+
.disabled {
|
46
|
+
color: $color_silver_chalice_approx;
|
47
|
+
}
|
48
|
+
.current {
|
49
|
+
font-style: normal;
|
50
|
+
font-weight: bold;
|
51
|
+
color: $gray-main;
|
52
|
+
}
|
53
|
+
.page_info {
|
54
|
+
color: $color_silver_chalice_approx;
|
55
|
+
padding-top: 0.8em;
|
56
|
+
}
|
57
|
+
.previous_page {
|
58
|
+
border-width: 2px;
|
59
|
+
margin-right: 1em;
|
60
|
+
}
|
61
|
+
.next_page {
|
62
|
+
border-width: 2px;
|
63
|
+
margin-left: 1em;
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
@import "loldesign_publisher/base";
|
2
|
+
|
3
|
+
table.table-page{
|
4
|
+
border: 0px;
|
5
|
+
margin-top: 20px;
|
6
|
+
|
7
|
+
thead{
|
8
|
+
background: $gray-main;
|
9
|
+
|
10
|
+
th{
|
11
|
+
font-size: 14px;
|
12
|
+
font-weight: $normal;
|
13
|
+
padding: 5px 10px;
|
14
|
+
vertical-align: middle;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
tbody{
|
18
|
+
td{
|
19
|
+
font-size: 12px;
|
20
|
+
font-weight: $normal;
|
21
|
+
border-bottom: 1px solid #e5e5e5;
|
22
|
+
vertical-align: middle;
|
23
|
+
|
24
|
+
&.not-found{
|
25
|
+
text-align: center;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
a{
|
31
|
+
color: $gray-main;
|
32
|
+
font-size: 16px;
|
33
|
+
i{
|
34
|
+
margin: 0px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|