leather2 3.5.3
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/Rakefile +34 -0
- data/app/assets/images/leather/hero24.jpg +0 -0
- data/app/assets/javascripts/leather.js +13 -0
- data/app/assets/javascripts/leather/navbar_transparent.coffee +4 -0
- data/app/assets/javascripts/leather/off_canvas.coffee +16 -0
- data/app/assets/stylesheets/docs.scss +3 -0
- data/app/assets/stylesheets/leather.scss +19 -0
- data/app/assets/stylesheets/leather/_buttons.scss +31 -0
- data/app/assets/stylesheets/leather/_devise.scss +72 -0
- data/app/assets/stylesheets/leather/_grid.scss +19 -0
- data/app/assets/stylesheets/leather/_list_groups.scss +33 -0
- data/app/assets/stylesheets/leather/_nav_menus.scss +125 -0
- data/app/assets/stylesheets/leather/_navbar_transparent.scss +23 -0
- data/app/assets/stylesheets/leather/_off_canvas.scss +109 -0
- data/app/assets/stylesheets/leather/_scroll_panels.scss +85 -0
- data/app/assets/stylesheets/leather/_toggle_columns.scss +23 -0
- data/app/assets/stylesheets/leather/_typography.scss +12 -0
- data/app/assets/stylesheets/leather/_utilities.scss +54 -0
- data/app/assets/stylesheets/leather/_variables.scss +8 -0
- data/app/assets/stylesheets/leather/components/_cta.scss +13 -0
- data/app/assets/stylesheets/leather/components/_features.scss +87 -0
- data/app/assets/stylesheets/leather/components/_flex_boxes.scss +37 -0
- data/app/assets/stylesheets/leather/components/_image_block.scss +55 -0
- data/app/controllers/leather/application_controller.rb +13 -0
- data/app/controllers/leather/layouts_controller.rb +15 -0
- data/app/helpers/leather/application_helper.rb +28 -0
- data/app/views/leather/application/_table.html.haml +23 -0
- data/app/views/leather/application/components.html.haml +173 -0
- data/app/views/leather/application/ui_kit.html.haml +405 -0
- data/app/views/leather/bootstrap_components/_dropdown_nav_item.html.haml +7 -0
- data/app/views/leather/bootstrap_components/_modal.html.haml +4 -0
- data/app/views/leather/bootstrap_components/_modal_body.html.haml +2 -0
- data/app/views/leather/bootstrap_components/_modal_footer.html.haml +2 -0
- data/app/views/leather/bootstrap_components/_modal_header.html.haml +5 -0
- data/app/views/leather/bootstrap_components/_nav_item.html.haml +2 -0
- data/app/views/leather/bootstrap_components/_nav_list.html.haml +2 -0
- data/app/views/leather/bootstrap_components/_navbar.html.haml +58 -0
- data/app/views/leather/layouts/_links.html.haml +8 -0
- data/app/views/leather/layouts/_navigation.html.haml +0 -0
- data/app/views/leather/layouts/admin.html.haml +20 -0
- data/app/views/leather/layouts/three_column.html.haml +47 -0
- data/app/views/leather/layouts/two_column.html.haml +34 -0
- data/config/routes.rb +7 -0
- data/lib/generators/leather/install/install_generator.rb +29 -0
- data/lib/leather.rb +12 -0
- data/lib/leather/action_controller_extension.rb +39 -0
- data/lib/leather/engine.rb +9 -0
- data/lib/leather/leather_helpers.rb +58 -0
- data/lib/leather/railtie.rb +12 -0
- data/lib/leather/version.rb +3 -0
- data/lib/tasks/leather_tasks.rake +4 -0
- data/templates/_navigation.html.haml +14 -0
- data/templates/bootstrap_variables.css.scss +848 -0
- data/templates/high_voltage.rb +4 -0
- data/templates/views/devise/passwords/edit.html.erb +28 -0
- data/templates/views/devise/passwords/new.html.erb +22 -0
- data/templates/views/devise/registrations/new.html.erb +32 -0
- data/templates/views/devise/sessions/new.html.erb +32 -0
- data/templates/views/devise/shared/_links.html.erb +23 -0
- data/templates/views/devise/shared/_welcome.html.erb +4 -0
- data/templates/views/pages/home.html.haml +2 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +17 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/bootstrap_variables.css.scss +848 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +6 -0
- data/test/dummy/app/views/application/_navigation.html.haml +14 -0
- data/test/dummy/app/views/devise/passwords/edit.html.erb +28 -0
- data/test/dummy/app/views/devise/passwords/new.html.erb +22 -0
- data/test/dummy/app/views/devise/registrations/new.html.erb +32 -0
- data/test/dummy/app/views/devise/sessions/new.html.erb +32 -0
- data/test/dummy/app/views/devise/shared/_links.html.erb +23 -0
- data/test/dummy/app/views/devise/shared/_welcome.html.erb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/pages/home.html.haml +2 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +82 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/devise.rb +259 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/high_voltage.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +60 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140814162425_devise_create_users.rb +42 -0
- data/test/dummy/db/schema.rb +34 -0
- data/test/dummy/log/development.log +85136 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/models/user_test.rb +7 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/leather_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +348 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
.scroll-panel {
|
2
|
+
position: absolute;
|
3
|
+
top: 0;
|
4
|
+
right: 0;
|
5
|
+
bottom: 0;
|
6
|
+
left: 0;
|
7
|
+
|
8
|
+
.scroll-panel-header {
|
9
|
+
position: absolute;
|
10
|
+
top: 0;
|
11
|
+
width: 100%;
|
12
|
+
height: $scroll-panel-header-height;
|
13
|
+
padding: 10px 20px;
|
14
|
+
background: #FFF;
|
15
|
+
border-bottom: 1px solid #F1F1F1;
|
16
|
+
|
17
|
+
.scroll-panel-title {
|
18
|
+
margin-top: 0;
|
19
|
+
margin-bottom: 0;
|
20
|
+
font-size: 18px;
|
21
|
+
line-height: 30px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.btn.pull-left ~ .scroll-panel-title {
|
25
|
+
margin-left: 15px;
|
26
|
+
float: left;
|
27
|
+
}
|
28
|
+
|
29
|
+
@media (max-width: $screen-xs-max) {
|
30
|
+
.btn.pull-left.visible-xs ~ .scroll-panel-title {
|
31
|
+
margin-left: 15px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
@media (max-width: $screen-sm-max) {
|
36
|
+
.btn.pull-left.visible-xs.visible-sm ~ .scroll-panel-title {
|
37
|
+
margin-left: 15px;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@media (min-width: $screen-sm-min) {
|
42
|
+
.btn.pull-left.visible-xs ~ .scroll-panel-title {
|
43
|
+
margin-left: 0;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@media (min-width: $screen-md-min) {
|
48
|
+
.btn.pull-left.visible-xs.visible-sm ~ .scroll-panel-title {
|
49
|
+
margin-left: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.scroll-panel-body {
|
55
|
+
position: absolute;
|
56
|
+
top: 0;
|
57
|
+
right: 0;
|
58
|
+
bottom: 0;
|
59
|
+
left: 0;
|
60
|
+
padding: 20px;
|
61
|
+
overflow-y: auto;
|
62
|
+
-webkit-overflow-scrolling: touch;
|
63
|
+
}
|
64
|
+
|
65
|
+
.scroll-panel-header ~ .scroll-panel-body {
|
66
|
+
top: $scroll-panel-header-height;
|
67
|
+
}
|
68
|
+
|
69
|
+
.scroll-panel-header.visible-xs ~ .scroll-panel-body,
|
70
|
+
.scroll-panel-header.visible-sm ~ .scroll-panel-body {
|
71
|
+
top: 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
@media (max-width: $screen-xs-max) {
|
75
|
+
.scroll-panel-header.visible-xs ~ .scroll-panel-body {
|
76
|
+
top: $scroll-panel-header-height;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
@media (max-width: $screen-sm-max) {
|
81
|
+
.scroll-panel-header.visible-sm ~ .scroll-panel-body {
|
82
|
+
top: $scroll-panel-header-height;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#left {
|
2
|
+
width: 40%;
|
3
|
+
position: absolute;
|
4
|
+
top: 0;
|
5
|
+
left: 0;
|
6
|
+
bottom: 0;
|
7
|
+
}
|
8
|
+
|
9
|
+
#right {
|
10
|
+
width: 60%;
|
11
|
+
position: absolute;
|
12
|
+
top: 0;
|
13
|
+
left: 40%;
|
14
|
+
bottom: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
@media (max-width: $screen-xs-max) {
|
18
|
+
.full-width-xs {
|
19
|
+
width: 100% !important;
|
20
|
+
left: 0 !important;
|
21
|
+
right: 0 !important;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
.abs-cover {
|
2
|
+
position: absolute;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
width: 100%;
|
6
|
+
height: 100%;
|
7
|
+
background-size: cover !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
.vertical-center {
|
11
|
+
position: relative;
|
12
|
+
top: 50%;
|
13
|
+
-webkit-transform: translateY(-50%);
|
14
|
+
-ms-transform: translateY(-50%);
|
15
|
+
transform: translateY(-50%);
|
16
|
+
}
|
17
|
+
|
18
|
+
.bg-white { background:#FFF; }
|
19
|
+
.bg-gray-light { background: $gray-light; }
|
20
|
+
.bg-gray-lighter { background: $gray-lighter; }
|
21
|
+
.bg-gray-lightest { background: $navbar-default-bg; }
|
22
|
+
.bg-gray-radial-light {
|
23
|
+
background: #eeeeee;
|
24
|
+
background: -moz-radial-gradient(center, ellipse cover, #eeeeee 0%, #dddddd 100%) !important;
|
25
|
+
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #eeeeee), color-stop(100%, #dddddd)) !important;
|
26
|
+
background: -webkit-radial-gradient(center, ellipse cover, #eeeeee 0%, #dddddd 100%) !important;
|
27
|
+
background: -o-radial-gradient(center, ellipse cover, #eeeeee 0%, #dddddd 100%) !important;
|
28
|
+
background: -ms-radial-gradient(center, ellipse cover, #eeeeee 0%, #dddddd 100%) !important;
|
29
|
+
background: radial-gradient(ellipse at center, #eeeeee 0%, #dddddd 100%) !important;
|
30
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dddddd', GradientType=1);
|
31
|
+
}
|
32
|
+
.bg-gray-radial-dark {
|
33
|
+
background: #333333;
|
34
|
+
background: -moz-radial-gradient(center, ellipse cover, #3b3b3b 0%, #222222 100%) !important;
|
35
|
+
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #3b3b3b), color-stop(100%, #222222)) !important;
|
36
|
+
background: -webkit-radial-gradient(center, ellipse cover, #3b3b3b 0%, #222222 100%) !important;
|
37
|
+
background: -o-radial-gradient(center, ellipse cover, #3b3b3b 0%, #222222 100%) !important;
|
38
|
+
background: -ms-radial-gradient(center, ellipse cover, #3b3b3b 0%, #222222 100%) !important;
|
39
|
+
background: radial-gradient(ellipse at center, #3b3b3b 0%, #222222 100%) !important;
|
40
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3b3b3b', endColorstr='#222222', GradientType=1) !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.no-margin { margin: 0; }
|
44
|
+
.no-padding { padding: 0; }
|
45
|
+
.no-overflow { overflow: hidden; }
|
46
|
+
.no-radius {
|
47
|
+
@include border-top-radius(0);
|
48
|
+
@include border-bottom-radius(0);
|
49
|
+
}
|
50
|
+
|
51
|
+
.absolute { position: absolute; }
|
52
|
+
.relative { position: relative; }
|
53
|
+
.block { display: block; }
|
54
|
+
.inline-block { display: inline-block; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
$devise-bg-gradient-start: #5D76A5 !default;
|
2
|
+
$devise-bg-gradient-end: #425472 !default;
|
3
|
+
$devise-box-border-color: #006699 !default;
|
4
|
+
|
5
|
+
$navbar-fixed-width: 300px !default;
|
6
|
+
$navbar-fixed-collapsed-width: 75px !default;
|
7
|
+
$scroll-panel-header-height: $navbar-height !default;
|
8
|
+
$navbar-tranparent-link-color: #FFFFFF !default;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
@mixin feature-block-variant($color, $bg) {
|
2
|
+
background: lighten($bg, 7%);
|
3
|
+
border-right: 1px solid lighten($bg, 10%);
|
4
|
+
color: $color;
|
5
|
+
|
6
|
+
&:first-child {
|
7
|
+
background: $bg;
|
8
|
+
}
|
9
|
+
|
10
|
+
&:last-child {
|
11
|
+
background: lighten($bg, 12%);
|
12
|
+
}
|
13
|
+
|
14
|
+
&:hover, &:focus {
|
15
|
+
color: $color;
|
16
|
+
}
|
17
|
+
|
18
|
+
.detail-line:before {
|
19
|
+
border-color: $color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.features {
|
24
|
+
padding-bottom: 40px;
|
25
|
+
|
26
|
+
.feature {
|
27
|
+
margin-bottom: 40px;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.detail-line {
|
32
|
+
margin: 0 0 24px 0;
|
33
|
+
|
34
|
+
&:before {
|
35
|
+
content: "";
|
36
|
+
width: 30px;
|
37
|
+
border-bottom: 1px solid #333;
|
38
|
+
margin-bottom: 24px;
|
39
|
+
display: block;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.feature-block {
|
44
|
+
padding: 60px 30px;
|
45
|
+
transition: all 0.6s ease;
|
46
|
+
-webkit-transition: all 0.6s ease;
|
47
|
+
-moz-transition: all 0.6s ease;
|
48
|
+
|
49
|
+
p {
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
.detail-line:before {
|
54
|
+
display: inline-block;
|
55
|
+
margin: 10px 0 0 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
&:hover {
|
59
|
+
p {
|
60
|
+
display: block;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
&:hover, &:focus {
|
65
|
+
text-decoration: none;
|
66
|
+
}
|
67
|
+
|
68
|
+
&.feature-block-primary {
|
69
|
+
@include feature-block-variant($btn-primary-color, $btn-primary-bg);
|
70
|
+
}
|
71
|
+
|
72
|
+
&.feature-block-info {
|
73
|
+
@include feature-block-variant($btn-info-color, $btn-info-bg);
|
74
|
+
}
|
75
|
+
|
76
|
+
&.feature-block-success {
|
77
|
+
@include feature-block-variant($btn-success-color, $btn-success-bg);
|
78
|
+
}
|
79
|
+
|
80
|
+
&.feature-block-warning {
|
81
|
+
@include feature-block-variant($btn-warning-color, $btn-warning-bg);
|
82
|
+
}
|
83
|
+
|
84
|
+
&.feature-block-danger {
|
85
|
+
@include feature-block-variant($btn-danger-color, $btn-danger-bg);
|
86
|
+
}
|
87
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.flex-grid {
|
2
|
+
.flex-row {
|
3
|
+
display: flex;
|
4
|
+
|
5
|
+
.flex-cell {
|
6
|
+
flex: 1;
|
7
|
+
}
|
8
|
+
|
9
|
+
.flex-cell-wide {
|
10
|
+
flex: 0 0 percentage(2/3);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
&.flex-grid-bordered {
|
15
|
+
.flex-row {
|
16
|
+
border-bottom: 1px solid #ccc;
|
17
|
+
|
18
|
+
&:last-child {
|
19
|
+
border-bottom: none;
|
20
|
+
}
|
21
|
+
|
22
|
+
.flex-cell {
|
23
|
+
border-left: 1px solid #ccc;
|
24
|
+
|
25
|
+
&:first-child {
|
26
|
+
border-left: none;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&.flex-grid-padded {
|
33
|
+
.flex-cell {
|
34
|
+
padding: 20px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.image-block {
|
2
|
+
padding: 0;
|
3
|
+
|
4
|
+
.image-block-copy {
|
5
|
+
padding: 80px 0;
|
6
|
+
min-height: 400px;
|
7
|
+
|
8
|
+
p {
|
9
|
+
margin: 30px 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.image {
|
14
|
+
position: absolute;
|
15
|
+
top: 0;
|
16
|
+
height: 100%;
|
17
|
+
}
|
18
|
+
|
19
|
+
.image-right {
|
20
|
+
right: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
.image-left {
|
24
|
+
left: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
&.image-block-bottom {
|
28
|
+
.image {
|
29
|
+
bottom: 0;
|
30
|
+
top: 80px;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
@media(max-width: $screen-xs-max) {
|
36
|
+
.image-block {
|
37
|
+
|
38
|
+
.image-block-copy {
|
39
|
+
padding: 40px 0;
|
40
|
+
min-height: 300px;
|
41
|
+
}
|
42
|
+
|
43
|
+
.image {
|
44
|
+
position: relative;
|
45
|
+
height: 300px;
|
46
|
+
width: 100%;
|
47
|
+
}
|
48
|
+
|
49
|
+
&.image-block-bottom {
|
50
|
+
.image {
|
51
|
+
top: 0;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Leather
|
2
|
+
module ApplicationHelper
|
3
|
+
def method_missing method, *args, &block
|
4
|
+
puts "LOOKING FOR ROUTES #{method}"
|
5
|
+
if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
|
6
|
+
if main_app.respond_to?(method)
|
7
|
+
main_app.send(method, *args)
|
8
|
+
else
|
9
|
+
super
|
10
|
+
end
|
11
|
+
else
|
12
|
+
super
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def respond_to?(method)
|
17
|
+
if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
|
18
|
+
if main_app.respond_to?(method)
|
19
|
+
true
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
else
|
24
|
+
super
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|