slabs-rails 1.0.0

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.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +32 -0
  5. data/assets/images/ajax-loader.gif +0 -0
  6. data/assets/images/arrow1-blue.png +0 -0
  7. data/assets/images/arrow1.png +0 -0
  8. data/assets/images/arrow2-blue.png +0 -0
  9. data/assets/images/arrow2.png +0 -0
  10. data/assets/images/arrow3-blue.png +0 -0
  11. data/assets/images/arrow3.png +0 -0
  12. data/assets/images/arrow4-blue.png +0 -0
  13. data/assets/images/arrow4.png +0 -0
  14. data/assets/images/btn-play.png +0 -0
  15. data/assets/images/circle1-blue.png +0 -0
  16. data/assets/images/circle1.png +0 -0
  17. data/assets/images/circle2-blue.png +0 -0
  18. data/assets/images/circle2.png +0 -0
  19. data/assets/images/circle3-blue.png +0 -0
  20. data/assets/images/circle3.png +0 -0
  21. data/assets/images/circle4-blue.png +0 -0
  22. data/assets/images/circle4.png +0 -0
  23. data/assets/javascripts/slabs-sprockets.js +4 -0
  24. data/assets/javascripts/slabs.js +3401 -0
  25. data/assets/javascripts/slabs.min.js +7 -0
  26. data/assets/javascripts/slabs/ekko-lightbox.js +446 -0
  27. data/assets/javascripts/slabs/slabs.headers.js +51 -0
  28. data/assets/javascripts/slabs/slabs.js +4 -0
  29. data/assets/javascripts/slabs/slick.js +2892 -0
  30. data/assets/stylesheets/_slabs-mincer.scss +18 -0
  31. data/assets/stylesheets/_slabs-sprockets.scss +5 -0
  32. data/assets/stylesheets/_slabs.scss +40 -0
  33. data/assets/stylesheets/slabs/_backgrounds.scss +5 -0
  34. data/assets/stylesheets/slabs/_buttons.scss +25 -0
  35. data/assets/stylesheets/slabs/_mixins.scss +7 -0
  36. data/assets/stylesheets/slabs/_sweet_hacks.scss +19 -0
  37. data/assets/stylesheets/slabs/_typo.scss +27 -0
  38. data/assets/stylesheets/slabs/_variables.scss +114 -0
  39. data/assets/stylesheets/slabs/_wells.scss +9 -0
  40. data/assets/stylesheets/slabs/commons/_headers.scss +37 -0
  41. data/assets/stylesheets/slabs/commons/ekko-lightbox.scss +127 -0
  42. data/assets/stylesheets/slabs/commons/slick.scss +312 -0
  43. data/assets/stylesheets/slabs/contents/_content-1.scss +45 -0
  44. data/assets/stylesheets/slabs/contents/_content-10.scss +18 -0
  45. data/assets/stylesheets/slabs/contents/_content-11.scss +18 -0
  46. data/assets/stylesheets/slabs/contents/_content-12.scss +42 -0
  47. data/assets/stylesheets/slabs/contents/_content-13.scss +64 -0
  48. data/assets/stylesheets/slabs/contents/_content-2.scss +11 -0
  49. data/assets/stylesheets/slabs/contents/_content-3.scss +23 -0
  50. data/assets/stylesheets/slabs/contents/_content-4.scss +54 -0
  51. data/assets/stylesheets/slabs/contents/_content-5.scss +27 -0
  52. data/assets/stylesheets/slabs/contents/_content-6.scss +63 -0
  53. data/assets/stylesheets/slabs/contents/_content-7.scss +71 -0
  54. data/assets/stylesheets/slabs/contents/_content-8.scss +22 -0
  55. data/assets/stylesheets/slabs/contents/_content-9.scss +46 -0
  56. data/assets/stylesheets/slabs/footers/_footer-1.scss +60 -0
  57. data/assets/stylesheets/slabs/footers/_footer-2.scss +29 -0
  58. data/assets/stylesheets/slabs/headers/_header-1.scss +97 -0
  59. data/assets/stylesheets/slabs/headers/_header-2.scss +134 -0
  60. data/assets/stylesheets/slabs/mixins/_backgrounds.scss +12 -0
  61. data/assets/stylesheets/slabs/mixins/_breakpoints.scss +108 -0
  62. data/assets/stylesheets/slabs/mixins/_buttons.scss +28 -0
  63. data/assets/stylesheets/slabs/mixins/_transitions.scss +128 -0
  64. data/assets/stylesheets/slabs/people/_people-1.scss +52 -0
  65. data/assets/stylesheets/slabs/people/_people-2.scss +51 -0
  66. data/lib/slabs-rails.rb +51 -0
  67. data/lib/slabs-rails/engine.rb +11 -0
  68. data/slabs-rails.gemspec +20 -0
  69. metadata +139 -0
@@ -0,0 +1,18 @@
1
+ // Mincer asset helper functions
2
+ // Reference - https://github.com/twbs/bootstrap-sass
3
+ //
4
+ // This must be imported into a .css.ejs.scss file.
5
+ // Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation.
6
+
7
+
8
+ @function slabs-font-path($path) {
9
+ // do something like following
10
+ // from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>"
11
+ // from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>"
12
+ // or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>"
13
+ @return "<%- asset_path('#{$path}'.replace(/[#?].*$/, '')) + '#{$path}'.replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>";
14
+ }
15
+
16
+ @function slabs-image-path($file) {
17
+ @return "<%- asset_path('#{$file}') %>";
18
+ }
@@ -0,0 +1,5 @@
1
+ // Reference - https://github.com/twbs/bootstrap-sass
2
+
3
+ @function slabs-image-path($path) {
4
+ @return image-path($path);
5
+ }
@@ -0,0 +1,40 @@
1
+ // Variables & Mixins
2
+ @import "slabs/variables";
3
+ @import "slabs/mixins";
4
+
5
+ @import "slabs/backgrounds";
6
+ @import "slabs/buttons";
7
+ @import "slabs/wells";
8
+ @import "slabs/sweet_hacks";
9
+ @import "slabs/typo";
10
+
11
+ /* Commons */
12
+ @import "slabs/commons/headers";
13
+ @import "slabs/commons/slick";
14
+ @import "slabs/commons/ekko-lightbox";
15
+
16
+ /* Header Slabs */
17
+ @import "slabs/headers/header-1";
18
+ @import "slabs/headers/header-2";
19
+
20
+ /* Content Slabs */
21
+ @import "slabs/contents/content-1";
22
+ @import "slabs/contents/content-2";
23
+ @import "slabs/contents/content-3";
24
+ @import "slabs/contents/content-4";
25
+ @import "slabs/contents/content-5";
26
+ @import "slabs/contents/content-6";
27
+ @import "slabs/contents/content-7";
28
+ @import "slabs/contents/content-8";
29
+ @import "slabs/contents/content-9";
30
+ @import "slabs/contents/content-10";
31
+ @import "slabs/contents/content-11";
32
+ @import "slabs/contents/content-12";
33
+ @import "slabs/contents/content-13";
34
+
35
+ /* Footer Slabs */
36
+ @import "slabs/footers/footer-1";
37
+ @import "slabs/footers/footer-2";
38
+
39
+ /* People slabs */
40
+ @import "slabs/people/people-1";
@@ -0,0 +1,5 @@
1
+ @each $color in $colorList{
2
+ .bkg-#{nth($color,1)} {
3
+ background-color: nth($color,2);
4
+ }
5
+ }
@@ -0,0 +1,25 @@
1
+ @include generate-btn($socialColorList);
2
+ @include generate-btn($colorList);
3
+
4
+ .btn.btn-outline{
5
+ background-color: rgba(0, 0, 0, 0);
6
+ }
7
+
8
+ .btn.btn-rounded{
9
+ border-radius: 15px;
10
+ }
11
+
12
+ .btn.btn-xlg{
13
+ padding:8px 15px;
14
+ font-size:1.6em;
15
+ }
16
+
17
+ .btn.btn-xxlg{
18
+ padding:10px 35px;
19
+ font-size:1.8em;
20
+ }
21
+
22
+ .btn.btn-xxxlg{
23
+ padding:10px 50px;
24
+ font-size:2em;
25
+ }
@@ -0,0 +1,7 @@
1
+ //////////////
2
+ // MIXINS
3
+ //////////////
4
+
5
+ @import "mixins/backgrounds";
6
+ @import "mixins/buttons";
7
+ @import "mixins/breakpoints";
@@ -0,0 +1,19 @@
1
+ ////////////////////////
2
+ // SWEET HACKS
3
+ ////////////////////////
4
+
5
+ .vcenter {
6
+ display: inline-block;
7
+ vertical-align: middle;
8
+ float: none;
9
+ margin-right:-4px;
10
+ }
11
+
12
+ .vertical-center{
13
+ display: table;
14
+ width:100%;
15
+ & > div {
16
+ display: table-cell;
17
+ vertical-align: middle;
18
+ }
19
+ }
@@ -0,0 +1,27 @@
1
+ ////////////////////////
2
+ // TYPOGRAPHY
3
+ ////////////////////////
4
+
5
+ h1, h2, h3, h4, h5, h6,
6
+ .h1, .h2, .h3, .h4, .h5, .h6 {
7
+ font-family: $headings-font-family;
8
+ font-weight: $headings-font-weight;
9
+ }
10
+
11
+ ////////////////////////
12
+ // OTHERS
13
+ ////////////////////////
14
+
15
+ @each $color in $colorList{
16
+ .text-#{nth($color,1)} {
17
+ color: nth($color,2);
18
+ }
19
+ }
20
+
21
+ .text-upcase{
22
+ text-transform:uppercase;
23
+ }
24
+
25
+ .text-downcase{
26
+ text-transform:lowercase;
27
+ }
@@ -0,0 +1,114 @@
1
+ ////////////////////////
2
+ // Colors
3
+ ////////////////////////
4
+
5
+ // Basic colors
6
+ $white: #FFFFFF;
7
+ $black: #333333;
8
+ $dark: #2a2a2a;
9
+ $green: #65c31f;
10
+ $red: #c7254e;
11
+ $yellow: #ffc821;
12
+
13
+ $blue: #428bca;
14
+ $blue-magic: #1FA3F4;
15
+ $blue-dark: #4679BD;
16
+
17
+ $gray-ultra-lighter: #f9f9f9;;
18
+ $gray-lighter: #F6F6F6;
19
+ $gray-light: #E4E4E4;
20
+ $gray: #CCCCCC;
21
+ $gray-lm: #999999;
22
+ $gray-med: #606060;
23
+ $gray-dark: #323232;
24
+
25
+ // Flat UI colors
26
+ $turquoise: #1ABC9C;
27
+ $green-sea: #16A085;
28
+ $emerald: #2ECC71;
29
+ $nephritis: #27AE60;
30
+ $peter-river: #3498DB;
31
+ $belize-hole: #2980B9;
32
+ $amethyst: #9B59B6;
33
+ $wisteria: #8E44AD;
34
+ $wet-asphalt: #34495E;
35
+ $midnight-blue: #2C3E50;
36
+ $sun-flower: #F1C40F;
37
+ $orange: #F39C12;
38
+ $carrot: #E67E22;
39
+ $pumpkin: #D35400;
40
+ $alizarin: #E74C3C;
41
+ $pomegranate: #C0392B;
42
+ $clouds: #ECF0F1;
43
+ $silver: #BDC3C7;
44
+ $concrete: #95A5A6;
45
+ $asbestos: #7F8C8D;
46
+
47
+ // Social colors
48
+ $fb-color: #3b5998;
49
+ $twitter-color: #55acee;
50
+ $gplus-color: #d34836;
51
+ $linkedin-color: #0073B1;
52
+
53
+ // List of colors
54
+ $colorList:(
55
+ "white" $white,
56
+ "black" $black,
57
+ "dark" $dark,
58
+ "turquoise" $turquoise,
59
+ "green-sea" $green-sea,
60
+ "emerald" $emerald,
61
+ "nephritis" $nephritis,
62
+ "peter-river" $peter-river,
63
+ "belize-hole" $belize-hole,
64
+ "amethyst" $amethyst,
65
+ "wisteria" $wisteria,
66
+ "wet-asphalt" $wet-asphalt,
67
+ "midnight-blue" $midnight-blue,
68
+ "sun-flower" $sun-flower,
69
+ "orange" $orange,
70
+ "carrot" $carrot,
71
+ "pumpkin" $pumpkin,
72
+ "alizarin" $alizarin,
73
+ "pomegranate" $pomegranate,
74
+ "clouds" $clouds,
75
+ "silver" $silver,
76
+ "concrete" $concrete,
77
+ "asbestos" $asbestos
78
+ );
79
+
80
+ $socialColorList:(
81
+ "facbeook" $fb-color,
82
+ "twitter" $twitter-color,
83
+ "google-plux" $gplus-color,
84
+ "linkedin" $linkedin-color
85
+ );
86
+
87
+
88
+ ////////////////////////
89
+ // Grid breakpoints
90
+ ////////////////////////
91
+ // Define the minimum and maximum dimensions at which your layout will change,
92
+ // adapting to different screen sizes, for use in media queries.
93
+
94
+ $grid-breakpoints: (
95
+ // Extra small screen / phone
96
+ xs: 0,
97
+ // Small screen / phone
98
+ sm: 480px,
99
+ // Medium screen / tablet
100
+ md: 767px,
101
+ // Large screen / desktop
102
+ lg: 991px,
103
+ // Extra large screen / wide desktop
104
+ xl: 1200px
105
+ ) !default;
106
+
107
+ ////////////////////////
108
+ // TYPOGRAPHY
109
+ ////////////////////////
110
+
111
+ $font-family-sans-serif: "Roboto","Helvetica Neue", Helvetica, Arial, sans-serif;
112
+
113
+ $headings-font-family: $font-family-sans-serif;
114
+ $headings-font-weight: 500;
@@ -0,0 +1,9 @@
1
+ .well {
2
+ &.well-default {
3
+ background-color: #FFFFFF;
4
+ }
5
+ & > .divider {
6
+ margin: 10px -20px;
7
+ border-top: 1px solid #e4e4e4;
8
+ }
9
+ }
@@ -0,0 +1,37 @@
1
+ .navbar.navbar-transparent {
2
+ background: rgb(68, 68, 68); //IE
3
+ background: rgba(0, 0, 0, 0.0); //NON-IE
4
+ border-color: rgb(68, 68, 68); //IE
5
+ border-color: rgba(0, 0, 0, 0.0); //NON-IE
6
+ -webkit-transition: all 0.6s ease-out;
7
+ -moz-transition: all 0.6s ease-out;
8
+ -o-transition: all 0.6s ease-out;
9
+ -ms-transition: all 0.6s ease-out;
10
+ transition: all 0.6s ease-out;
11
+
12
+ .navbar-nav>li>a {
13
+ color: #337ab7;
14
+ }
15
+
16
+ &.scrolled{
17
+ background-color: $white;
18
+ .navbar-nav>li>a {
19
+ color: #337ab7;
20
+ }
21
+ }
22
+
23
+ }
24
+
25
+ .navbar-inverse.navbar-transparent {
26
+
27
+ &.scrolled{
28
+ background-color: $black;
29
+ .navbar-nav>li>a {
30
+ color: #9d9d9d;
31
+ &:hover{
32
+ color: #FFFFFF;
33
+ }
34
+ }
35
+ }
36
+
37
+ }
@@ -0,0 +1,127 @@
1
+ /*!
2
+ * Lightbox for Bootstrap 3 by @ashleydw
3
+ * https://github.com/ashleydw/lightbox
4
+ *
5
+ * License: https://github.com/ashleydw/lightbox/blob/master/LICENSE
6
+ */
7
+
8
+ .ekko-lightbox-container {
9
+ position: relative;
10
+ }
11
+
12
+ .ekko-lightbox-nav-overlay {
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ z-index: 100;
17
+ width: 100%;
18
+ height: 100%;
19
+ }
20
+
21
+ .ekko-lightbox-nav-overlay a {
22
+ z-index: 100;
23
+ display: block;
24
+ width: 49%;
25
+ height: 100%;
26
+ font-size: 30px;
27
+ color: #fff;
28
+ text-shadow: 2px 2px 4px #000;
29
+ opacity: 0;
30
+ filter: dropshadow(color=#000000, offx=2, offy=2);
31
+ -webkit-transition: opacity 0.5s;
32
+ -moz-transition: opacity 0.5s;
33
+ -o-transition: opacity 0.5s;
34
+ transition: opacity 0.5s;
35
+ }
36
+
37
+ .ekko-lightbox-nav-overlay a:empty {
38
+ width: 49%;
39
+ }
40
+
41
+ .ekko-lightbox a:hover {
42
+ text-decoration: none;
43
+ opacity: 1;
44
+ }
45
+
46
+ .ekko-lightbox .glyphicon-chevron-left {
47
+ left: 0;
48
+ float: left;
49
+ padding-left: 15px;
50
+ text-align: left;
51
+ }
52
+
53
+ .ekko-lightbox .glyphicon-chevron-right {
54
+ right: 0;
55
+ float: right;
56
+ padding-right: 15px;
57
+ text-align: right;
58
+ }
59
+
60
+ .ekko-lightbox .modal-footer {
61
+ text-align: left;
62
+ }
63
+
64
+ // Dark theme
65
+ .modal-backdrop.in {
66
+ -webkit-opacity: 0.95;
67
+ -moz-opacity: 0.95;
68
+ opacity: 0.95;
69
+ background-color: #333333;
70
+ }
71
+ .ekko-lightbox .modal-content {
72
+ -webkit-box-shadow: none;
73
+ -moz-box-shadow: none;
74
+ box-shadow: none;
75
+ -webkit-border-radius: 0;
76
+ -moz-border-radius: 0;
77
+ border-radius: 0;
78
+ border: none;
79
+ background-color: transparent;
80
+ }
81
+
82
+ .ekko-lightbox .close{
83
+ font-size: 30px;
84
+ }
85
+
86
+ .ekko-lightbox .modal-header {
87
+ border: 0;
88
+ padding-left: 0;
89
+ padding-right: 0;
90
+ }
91
+ .ekko-lightbox .modal-header .close {
92
+ -webkit-opacity: 0.5;
93
+ -moz-opacity: 0.5;
94
+ opacity: 0.5;
95
+ color: #fff;
96
+ text-shadow: 0;
97
+ font-weight: 100;
98
+ margin-top: 5px;
99
+ }
100
+ .ekko-lightbox .modal-header .close:hover {
101
+ -webkit-opacity: 1;
102
+ -moz-opacity: 1;
103
+ opacity: 1;
104
+ }
105
+ .ekko-lightbox .modal-header h4.modal-title {
106
+ font-weight: 100;
107
+ color: #fff;
108
+ padding: 0;
109
+ }
110
+ .ekko-lightbox .modal-body {
111
+ padding: 0;
112
+ }
113
+ .ekko-lightbox .modal-footer {
114
+ -webkit-opacity: 0.9;
115
+ -moz-opacity: 0.9;
116
+ opacity: 0.9;
117
+ border: 0;
118
+ color: #fff;
119
+ font-weight: 100;
120
+ padding: 0;
121
+ }
122
+ .ekko-lightbox-nav-overlay a {
123
+ -webkit-opacity: 0.9;
124
+ -moz-opacity: 0.9;
125
+ opacity: 0.9;
126
+ text-shadow: none;
127
+ }