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,134 @@
1
+ /* HEADER NAVBAR */
2
+ $header-no: 2;
3
+
4
+ .header-#{$header-no}{
5
+
6
+ position: relative;;
7
+
8
+ margin-bottom: 0px;
9
+
10
+ .item{
11
+
12
+ $block-height: 130px;
13
+
14
+ padding-top: $block-height;
15
+ padding-bottom: $block-height;
16
+ height: 610px;
17
+ background: 50% 50% no-repeat;
18
+ color: $white;
19
+ -webkit-background-size: cover;
20
+ -moz-background-size: cover;
21
+ -o-background-size: cover;
22
+ background-size: cover;
23
+ background-position: 50% 50%;
24
+
25
+ background: radial-gradient(circle at 60% 30%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
26
+ -webkit-background-size: cover;
27
+ -moz-background-size: cover;
28
+ -o-background-size: cover;
29
+ background-size: cover;
30
+ background-position: 50%;
31
+ display: table;
32
+
33
+ .jumbotron{
34
+ margin: 0px;
35
+ padding-top: 90px;
36
+ padding-bottom: 90px;
37
+ vertical-align: middle;
38
+ background-color: transparent;
39
+
40
+ h1{
41
+ font-weight: 300;
42
+ @include media-breakpoint-up(md) {
43
+ font-size: 3.5em;
44
+ }
45
+ @include media-breakpoint-down(md) {
46
+ font-size: 3.0em;
47
+ }
48
+ @include media-breakpoint-down(sm) {
49
+ font-size: 2.6em;
50
+ }
51
+ }
52
+ p {
53
+ font-family: $font-family-sans-serif;
54
+ font-weight: 300;
55
+ font-size: 24px;
56
+
57
+ @include media-breakpoint-up(md) {
58
+ font-size: 2.0em;
59
+ }
60
+ @include media-breakpoint-down(md) {
61
+ font-size: 1.6em;
62
+ }
63
+ @include media-breakpoint-down(sm) {
64
+ font-size: 1.4em;
65
+ }
66
+ }
67
+
68
+ @include media-breakpoint-down(sm) {
69
+ text-align:center;
70
+ }
71
+ }
72
+
73
+
74
+ @include media-breakpoint-down(md) {
75
+ height: 500px;
76
+ }
77
+ @include media-breakpoint-down(xs) {
78
+ height: 400px;
79
+ padding: 20px;
80
+ }
81
+ }
82
+
83
+ .slick-dots{
84
+ bottom: 20px;
85
+ li{
86
+ width: 8px;
87
+ .slick-active {
88
+ button:before{
89
+ opacity: 1.0;
90
+ }
91
+ }
92
+ & button:before{
93
+ color: #FFFFFF;
94
+ font-size: 25px;
95
+ opacity: .5;
96
+ }
97
+ }
98
+ }
99
+
100
+
101
+ .slick-dots li.slick-active button:before {
102
+ color: #FFFFFF;
103
+ opacity: 1.0;
104
+ }
105
+
106
+ .slick_next, .slick_prev{
107
+ z-index: 9999;
108
+ font-size: 45px;
109
+ position: absolute;
110
+ top: 50%;
111
+ display: block;
112
+ width: 20px;
113
+ height: 20px;
114
+ margin-top: -10px;
115
+ padding: 0;
116
+ cursor: pointer;
117
+ color: #FFFFFF;
118
+ border: none;
119
+ outline: none;
120
+
121
+ @include media-breakpoint-down(md) {
122
+ display: none !important;
123
+ }
124
+
125
+ }
126
+ .slick_next{
127
+ right: 25px;
128
+ }
129
+
130
+ .slick_prev{
131
+ left: 25px;
132
+ }
133
+
134
+ }
@@ -0,0 +1,12 @@
1
+ /////////////////
2
+ // BK Imgs
3
+ ////////////////
4
+
5
+ @mixin background-img-cover($img-url, $height: inherit) {
6
+ background-image:url($img-url);
7
+ -webkit-background-size: cover;
8
+ -moz-background-size: cover;
9
+ -o-background-size: cover;
10
+ background-size: cover;
11
+ height: $height;
12
+ }
@@ -0,0 +1,108 @@
1
+ //
2
+ // Extracted from Bootstrap 4 _breackpoints.scss
3
+ //
4
+ // Breakpoint viewport sizes and media queries.
5
+ //
6
+ // Breakpoints are defined as a map of (name: minimum width), order from small to large:
7
+ //
8
+ // (xs: 0, sm: 34rem, md: 45rem)
9
+ //
10
+ // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
11
+
12
+ // Name of the next breakpoint, or null for the last breakpoint.
13
+ //
14
+ // >> breakpoint-next(sm)
15
+ // md
16
+ // >> breakpoint-next(sm, $breakpoints: (xs: 0, sm: 34rem, md: 45rem))
17
+ // md
18
+ // >> breakpoint-next(sm, $breakpoint-names: (xs sm md))
19
+ // md
20
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
21
+ $n: index($breakpoint-names, $name);
22
+ @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
23
+ }
24
+
25
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
26
+ //
27
+ // >> breakpoint-min(sm, (xs: 0, sm: 34rem, md: 45rem))
28
+ // 34rem
29
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
30
+ $min: map-get($breakpoints, $name);
31
+ @return if($min != 0, $min, null);
32
+ }
33
+
34
+ // Maximum breakpoint width. Null for the largest (last) breakpoint.
35
+ // The maximum value is calculated as the minimum of the next one less 0.1.
36
+ //
37
+ // >> breakpoint-max(sm, (xs: 0, sm: 34rem, md: 45rem))
38
+ // 44.9rem
39
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
40
+ $next: breakpoint-next($name, $breakpoints);
41
+ @return if($next, breakpoint-min($next, $breakpoints) - 1, null);
42
+ }
43
+
44
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
45
+ // Makes the @content apply to the given breakpoint and wider.
46
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
47
+ $min: breakpoint-min($name, $breakpoints);
48
+ @if $min {
49
+ @media (min-width: $min) {
50
+ @content;
51
+ }
52
+ } @else {
53
+ @content;
54
+ }
55
+ }
56
+
57
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
58
+ // Makes the @content apply to the given breakpoint and narrower.
59
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
60
+ $max: breakpoint-max($name, $breakpoints);
61
+ @if $max {
62
+ @media (max-width: $max) {
63
+ @content;
64
+ }
65
+ } @else {
66
+ @content;
67
+ }
68
+ }
69
+
70
+ // Media between the breakpoint's minimum and maximum widths.
71
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
72
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
73
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
74
+ @include media-breakpoint-up($name, $breakpoints) {
75
+ @include media-breakpoint-down($name, $breakpoints) {
76
+ @content;
77
+ }
78
+ }
79
+ }
80
+
81
+ // Media that spans multiple breakpoint widths.
82
+ // Makes the @content apply between the min and max breakpoints
83
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
84
+ @include media-breakpoint-up($lower, $breakpoints) {
85
+ @include media-breakpoint-down($upper, $breakpoints) {
86
+ @content;
87
+ }
88
+ }
89
+ }
90
+
91
+ // @mixin responsive-slctr ($slctr, $default, $sld, $sd, $st, $sm){
92
+ // @include media-breakpoint-up(lg) {
93
+ // #{$slctr}: $sld;
94
+ // }
95
+ // @include desktop {
96
+ // #{$slctr}: $sd;
97
+ // }
98
+ // @include media-breakpoint-down(md) {
99
+ // #{$slctr}: $st;
100
+ // }
101
+ // @include media-breakpoint-down(sm) {
102
+ // #{$slctr}: $sm;
103
+ // }
104
+ // @include default {
105
+ // #{$slctr}: $default;
106
+ // }
107
+ // #{$slctr}: $default;
108
+ // }
@@ -0,0 +1,28 @@
1
+ /////////////////
2
+ // BUTTONS GENERATOR
3
+ ////////////////
4
+
5
+ @mixin generate-btn($colorsList) {
6
+ @each $color in $colorList {
7
+ .btn.btn-#{nth($color,1)} {
8
+ color: #FFFFFF;
9
+ background-color: nth($color,2);
10
+ border-color: nth($color,2);
11
+ &:hover{
12
+ color: #FFFFFF;
13
+ background-color: darken( nth($color,2), 10% );
14
+ }
15
+ }
16
+ .btn.btn-outline.btn-#{nth($color,1)}{
17
+ color: nth($color,2);
18
+ &:hover{
19
+ @if nth($color,1) != 'white'{
20
+ color: #FFFFFF;
21
+ } @else {
22
+ color: #333333;
23
+ }
24
+ background-color: nth($color,2);
25
+ }
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,128 @@
1
+ ////////////////////////
2
+ // ANIMATIONS IN CC3
3
+ ////////////////////////
4
+
5
+ // Basics
6
+ // linear | ease | ease-in | ease-out | ease-in-out
7
+ @mixin animation-timing-function ($animation) {
8
+ -webkit-animation-timing-function: $animation;
9
+ -moz-animation-timing-function: $animation;
10
+ -o-animation-timing-function: $animation;
11
+ -ms-animation-timing-function: $animation;
12
+ animation-timing-function: $animation;
13
+ }
14
+ // name
15
+ @mixin animation-name ($animation-name) {
16
+ -webkit-animation-name: $animation-name;
17
+ -moz-animation-name: $animation-name;
18
+ -o-animation-name: $animation-name;
19
+ -ms-animation-name: $animation-name;
20
+ animation-name: $animation-name;
21
+ }
22
+ // 1 | 2 | .. | infinite
23
+ @mixin animation-iterations ($iterations: 1) {
24
+ -webkit-animation-iteration-count: $iterations;
25
+ -moz-animation-iteration-count: $iterations;
26
+ -o-animation-iteration-count: $iterations;
27
+ -ms-animation-iteration-count: $iterations;
28
+ animation-iteration-count: $iterations;
29
+ }
30
+
31
+ // none | forwards | backwards | both
32
+ @mixin animation-fill-mode ($mode) {
33
+ -webkit-animation-fill-mode: $mode;
34
+ -moz-animation-fill-mode: $mode;
35
+ -o-animation-fill-mode: $mode;
36
+ -ms-animation-fill-mode: $mode;
37
+ animation-fill-mode: $mode;
38
+ }
39
+ // seconds
40
+ @mixin animation-duration ($animation-duration) {
41
+ -webkit-animation-duration: $animation-duration;
42
+ -moz-animation-duration: $animation-duration;
43
+ -o-animation-duration: $animation-duration;
44
+ -ms-animation-duration: $animation-duration;
45
+ animation-duration: $animation-duration;
46
+ }
47
+
48
+ //////////////////
49
+ // FADE IN
50
+ //////////////////
51
+ @-webkit-keyframes fade-in { from { opacity:0; } to { opacity:1;} }
52
+ @-moz-keyframes fade-in { from { opacity:0; } to { opacity:1; } }
53
+ @keyframes fade-in { from { opacity:0; } to { opacity:1; } }
54
+
55
+ @mixin fade-in ($animation-duration, $animation: ease-in, $mode: forwards) {
56
+ opacity:0;
57
+ @include animation-name(fade-in);
58
+ @include animation-timing-function($animation);
59
+ @include animation-iterations;
60
+ @include animation-fill-mode($mode);
61
+ @include animation-duration($animation-duration);
62
+ }
63
+
64
+ ////////////////////
65
+ // BOUNCE IN
66
+ ////////////////////
67
+ @-webkit-keyframes bounce-in {
68
+ 0% { -webkit-transform: scale(.3); opacity: 0; }
69
+ 40% { -webkit-transform: scale(1); opacity: 1; }
70
+ 60% { -webkit-transform: scale(.95);}
71
+ 100% { -webkit-transform: scale(1); }
72
+ }
73
+
74
+ @-moz-keyframes bounce-in {
75
+ 0% { -moz-transform: scale(.3); opacity: 0; }
76
+ 40% { -moz-transform: scale(1); opacity: 1; }
77
+ 60% { -moz-transform: scale(.95);}
78
+ 100% { -moz-transform: scale(1); }
79
+ }
80
+
81
+ @-ms-keyframes bounce-in {
82
+ 0% { -ms-transform: scale(.3); opacity: 0; }
83
+ 40% { -ms-transform: scale(1); opacity: 1; }
84
+ 60% { -ms-transform: scale(.95);}
85
+ 100% { -ms-transform: scale(1); }
86
+ }
87
+
88
+ @-o-keyframes bounce-in {
89
+ 0% { -o-transform: scale(.3); opacity: 0; }
90
+ 40% { -o-transform: scale(1); opacity: 1; }
91
+ 60% { -o-transform: scale(.95); }
92
+ 100% { -o-transform: scale(1); }
93
+ }
94
+
95
+ @keyframes bounce-in {
96
+ 0% { transform: scale(.3); opacity: 0; }
97
+ 40% { transform: scale(1); opacity: 1; }
98
+ 60% { transform: scale(.95); }
99
+ 100% { transform: scale(1); }
100
+ }
101
+
102
+ @mixin bounce-in ($animation-duration, $animation: linear) {
103
+ @include animation-name(bounce-in);
104
+ @include animation-duration($animation-duration);
105
+ }
106
+
107
+
108
+ ////////////////////////
109
+ // TRANSITIONS IN CC3
110
+ ////////////////////////
111
+ @mixin transition-duration ($duration) {
112
+ -webkit-transition-duration: $duration;
113
+ -moz-transition-duration: $duration;
114
+ -o-transition-duration: $duration;
115
+ -ms-transition-duration: $duration;
116
+ transition-duration: $duration;
117
+ }
118
+
119
+ ////////////////////////
120
+ // TRANFROM IN CC3
121
+ ////////////////////////
122
+ @mixin transform ($x,$y) {
123
+ -webkit-transform: translate($x,$y);
124
+ -moz-transform: translate($x,$y);
125
+ -o-transform: translate($x,$y);
126
+ -ms-transform: translate($x,$y);
127
+ transform: translate($x,$y);
128
+ }
@@ -0,0 +1,52 @@
1
+ /* CONTENT */
2
+ .people-1{
3
+ padding: 30px 0px 20px;
4
+ .header{
5
+ margin-bottom: 35px;
6
+ h1,h2,h3{
7
+ font-weight: 400;
8
+ }
9
+ p{
10
+ font-weight: 300;
11
+ font-size: 20px;
12
+ }
13
+ }
14
+ .person {
15
+ margin: 15px 0px 0px;
16
+ .picture {
17
+ width: 90px;
18
+ float: left;
19
+ img {
20
+ border-radius: 50%;
21
+ height:75px;
22
+ width: 75px;
23
+ }
24
+ }
25
+ .information {
26
+ width: auto;
27
+ overflow: hidden;
28
+ font-size: 14px;
29
+ }
30
+ .name {
31
+ // font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
32
+ font-size: 20px;
33
+ color: inherit;
34
+ margin: 0px 0px 9px;
35
+ }
36
+ .divider {
37
+ width: 70px;
38
+ height: 1px;
39
+ margin: 0px 0px 10px;
40
+ background-color: #CCCCCC;
41
+ }
42
+ p{
43
+ margin-bottom: 0px;
44
+ }
45
+ em {
46
+ color: #4f5962;
47
+ }
48
+ i{
49
+ font-size: 15px;
50
+ }
51
+ }
52
+ }