better_styles 0.0.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +33 -0
  4. data/Rakefile +34 -0
  5. data/app/helpers/styles_helper.rb +33 -0
  6. data/assets/fonts/betterfonts/betterwork-icons.eot +0 -0
  7. data/assets/fonts/betterfonts/betterwork-icons.svg +368 -0
  8. data/assets/fonts/betterfonts/betterwork-icons.ttf +0 -0
  9. data/assets/fonts/betterfonts/betterwork-icons.woff +0 -0
  10. data/assets/fonts/betterfonts/icomoon.eot +0 -0
  11. data/assets/fonts/betterfonts/icomoon.svg +461 -0
  12. data/assets/fonts/betterfonts/icomoon.ttf +0 -0
  13. data/assets/fonts/betterfonts/icomoon.woff +0 -0
  14. data/assets/fonts/betterfonts/magicons-regular-webfont.eot +0 -0
  15. data/assets/fonts/betterfonts/magicons-regular-webfont.svg +461 -0
  16. data/assets/fonts/betterfonts/magicons-regular-webfont.ttf +0 -0
  17. data/assets/fonts/betterfonts/magicons-regular-webfont.woff +0 -0
  18. data/assets/fonts/betterfonts/newmagicons-regular-webfont.eot +0 -0
  19. data/assets/fonts/betterfonts/newmagicons-regular-webfont.svg +199 -0
  20. data/assets/fonts/betterfonts/newmagicons-regular-webfont.ttf +0 -0
  21. data/assets/fonts/betterfonts/newmagicons-regular-webfont.woff +0 -0
  22. data/assets/fonts/betterfonts/orderlifticons-webfont.eot +0 -0
  23. data/assets/fonts/betterfonts/orderlifticons-webfont.svg +172 -0
  24. data/assets/fonts/betterfonts/orderlifticons-webfont.ttf +0 -0
  25. data/assets/fonts/betterfonts/orderlifticons-webfont.woff +0 -0
  26. data/assets/images/better/arrows/arrow-round1-a.png +0 -0
  27. data/assets/images/better/arrows/arrow-round1-b.png +0 -0
  28. data/assets/images/better/arrows/arrow-round2-a.png +0 -0
  29. data/assets/images/better/arrows/arrow-round2-b.png +0 -0
  30. data/assets/images/better/arrows/arrow1-a.png +0 -0
  31. data/assets/images/better/arrows/arrow1-b.png +0 -0
  32. data/assets/images/better/arrows/arrow1.png +0 -0
  33. data/assets/images/better/arrows/arrow2-1.png +0 -0
  34. data/assets/images/better/arrows/arrow2-2.png +0 -0
  35. data/assets/images/better/arrows/arrow2-a.png +0 -0
  36. data/assets/images/better/arrows/arrow2-b.png +0 -0
  37. data/assets/images/better/arrows/arrow3-a.png +0 -0
  38. data/assets/images/better/arrows/arrow3-b.png +0 -0
  39. data/assets/images/better/arrows/arrow4-a.png +0 -0
  40. data/assets/images/better/arrows/arrow4-b.png +0 -0
  41. data/assets/images/better/arrows/arrow5-a.png +0 -0
  42. data/assets/images/better/arrows/arrow5-b.png +0 -0
  43. data/assets/images/better/arrows/arrow6-a.png +0 -0
  44. data/assets/images/better/arrows/arrow6-b.png +0 -0
  45. data/assets/images/better/helper/blank_10.png +0 -0
  46. data/assets/images/better/helper/crossed.png +0 -0
  47. data/assets/images/better/helper/white_10.png +0 -0
  48. data/assets/javascripts/better_styles.js.coffee +4 -0
  49. data/assets/javascripts/betterjs/forms/check_switch.js.coffee +25 -0
  50. data/assets/javascripts/betterjs/helper.js.coffee +74 -0
  51. data/assets/javascripts/betterjs/navigations/aside_link.js.coffee +9 -0
  52. data/assets/javascripts/betterjs/navigations/nav_list.js.coffee +19 -0
  53. data/assets/javascripts/betterjs/rails_ext/rails-ujs.js +479 -0
  54. data/assets/javascripts/betterjs/render_eco.js.coffee +9 -0
  55. data/assets/javascripts/betterjs/templates/fixed_aside_to_header.js.coffee +6 -0
  56. data/assets/javascripts/betterjs/templates/icon_aside.js.coffee +12 -0
  57. data/assets/javascripts/betterjs/templates/scroll_to_fix_aside.js +32 -0
  58. data/assets/javascripts/betterjs/twbs_ext/affix_2_1_0.js +103 -0
  59. data/assets/javascripts/betterjs/twbs_ext/affix_3_3_7.js +162 -0
  60. data/assets/javascripts/betterjs/twbs_ext/affix_ext.js +131 -0
  61. data/assets/stylesheets/better/content/_box.scss +46 -0
  62. data/assets/stylesheets/better/content/_buttons.scss +22 -0
  63. data/assets/stylesheets/better/content/_check_switch.scss +78 -0
  64. data/assets/stylesheets/better/content/_divider.scss +65 -0
  65. data/assets/stylesheets/better/content/_helpers.scss +85 -0
  66. data/assets/stylesheets/better/content/_pix.scss +70 -0
  67. data/assets/stylesheets/better/content/_typography.scss +44 -0
  68. data/assets/stylesheets/better/icons/bettericons.scss +419 -0
  69. data/assets/stylesheets/better/icons/icomoon.scss +1392 -0
  70. data/assets/stylesheets/better/icons/magicons.scss +705 -0
  71. data/assets/stylesheets/better/icons/orderlifticons.scss +300 -0
  72. data/assets/stylesheets/better/layout/_corset.scss +57 -0
  73. data/assets/stylesheets/better/layout/_fullpage_table.scss +185 -0
  74. data/assets/stylesheets/better/layout/_positioning.scss +62 -0
  75. data/assets/stylesheets/better/layout/_section.scss +220 -0
  76. data/assets/stylesheets/better/lib/_helpers.scss +67 -0
  77. data/assets/stylesheets/better/lib/_media_querries.scss +43 -0
  78. data/assets/stylesheets/better/lib/_nav.scss +31 -0
  79. data/assets/stylesheets/better/lib/_shadows.scss +247 -0
  80. data/assets/stylesheets/better/lib/_text.scss +66 -0
  81. data/assets/stylesheets/better/navigations/_aside_lnk.scss +100 -0
  82. data/assets/stylesheets/better/navigations/_nav_list.scss +177 -0
  83. data/assets/stylesheets/better/templates/_fixed_aside_to_header.scss +89 -0
  84. data/assets/stylesheets/better/templates/_icon_aside.scss +404 -0
  85. data/assets/stylesheets/better/templates/_scroll_to_fix_aside.scss +104 -0
  86. data/assets/stylesheets/better/variables/_color.scss +87 -0
  87. data/assets/stylesheets/better/variables/_typography.scss +59 -0
  88. data/assets/stylesheets/better/variables/_vars.scss +57 -0
  89. data/assets/stylesheets/better_styles.scss +44 -0
  90. data/assets/stylesheets/better_styles_min.scss +43 -0
  91. data/lib/better_styles.rb +64 -0
  92. data/lib/better_styles/engine.rb +25 -0
  93. data/lib/better_styles/version.rb +3 -0
  94. data/lib/tasks/better_styles_tasks.rake +4 -0
  95. metadata +181 -0
@@ -0,0 +1,62 @@
1
+ $pageHeightMobile: calc( 100vh - 100px );
2
+ $pageHeight: calc( 100vh - 120px );
3
+
4
+ %full-height {
5
+ height: $pageHeightMobile;
6
+ @include responsiveStep-sm { height: $pageHeight; }
7
+ }
8
+ %full-min-height {
9
+ min-height: $pageHeightMobile;
10
+ @include responsiveStep-sm { min-height: $pageHeight; }
11
+ }
12
+
13
+
14
+
15
+ .full-height.mobile {
16
+ // height: calc( 100vh - 120px );
17
+ @extend %full-height;
18
+ }
19
+ .min-full-height { @extend %full-min-height; }
20
+
21
+
22
+ .flex {
23
+ display: flex; position: relative;
24
+ height: 100%;
25
+
26
+ flex-direction: column;
27
+
28
+ &.center_vert {
29
+ justify-content: space-around;
30
+ }
31
+ }
32
+
33
+ .absolut-fitted {
34
+ position: absolute;
35
+ top: 0; right: 0; bottom: 0; left: 0;
36
+ }
37
+
38
+
39
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
40
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
41
+ @media (max-width: 768px) {
42
+
43
+ .hidden-mobile { display: none; }
44
+ .mobile_only { display: block; }
45
+ .desktop_only { display: none; }
46
+
47
+ }
48
+ @media (min-width: 768px) {
49
+
50
+ .mobile_only { display: none; }
51
+ .desktop_only { display: block; }
52
+
53
+ .right-md { text-align: right; }
54
+
55
+ .full-height { height: $pageHeight; }
56
+ .huge-height { height: calc( 100vh - 160px ); }
57
+
58
+ .row.full-height > *, .row.huge-height > *, .row.min-full-height > * {
59
+ height: inherit;
60
+ }
61
+
62
+ }
@@ -0,0 +1,220 @@
1
+ .section {
2
+ display: block; position: relative;
3
+ margin: 0;
4
+ padding: $section-padding 0;
5
+ // background: $white;
6
+ // text-align: center;
7
+ text-align: inherit;
8
+ &.center { text-align: center; }
9
+ &.left { text-align: left; }
10
+ &.right { text-align: right; }
11
+
12
+ &.z, &.zindex, &.z-index { z-index: 1; }
13
+
14
+
15
+ &.image {
16
+ &.fixed { background-attachment: fixed; /* position: static; */ z-index: 88; }
17
+ background-color: transparent;
18
+ background-position: center center;
19
+ background-repeat: no-repeat;
20
+ background-size: cover;
21
+ background-image: url('http://lorempixel.com/g/1200/500/nature/');
22
+ }
23
+
24
+
25
+
26
+
27
+ //
28
+ // Header Section
29
+ //
30
+ &.head {
31
+ z-index: 2;
32
+ background: $section-head-background;
33
+ padding: $section-head-padding 0;
34
+ h1, h2, .h1, .h2 {
35
+ margin: 0; padding: 0;
36
+ line-height: $section-head-line-height;
37
+ font-size: $section-head-font-size;
38
+ color: $brand-color;
39
+ text-align: left;
40
+ small { color: $section-head-small-color; }
41
+ }
42
+ }
43
+
44
+
45
+ //
46
+ // Sections with shine
47
+ //
48
+ &.shine-top {
49
+ z-index: 1;
50
+ overflow: hidden;
51
+ &:before {
52
+ display: block; position: absolute; content: ""; z-index: 11;
53
+ margin: 0; padding: 0;
54
+ bottom: 100%; left: 10%; right: 10%; height: 100px;
55
+ border-radius: 500px / 20px;
56
+ box-shadow: 0 5px 20px 0 rgba(0,0,0,.23) ;
57
+ }
58
+ }
59
+ &.shine-bottom {
60
+ z-index: 1;
61
+ overflow: hidden;
62
+ &:after {
63
+ display: block; position: absolute; content: ""; z-index: 11;
64
+ margin: 0; padding: 0;
65
+ top: 100%; left: 10%; right: 10%; height: 100px;
66
+ border-radius: 500px / 20px ;
67
+ box-shadow: 0 -5px 20px 0 rgba(0,0,0,.23) ;
68
+ }
69
+ }
70
+
71
+
72
+ //
73
+ // Border Stylez
74
+ //
75
+ &.hard-top {
76
+ border-top: solid 1px $main-border-color;
77
+ @include box-shadow( inset 0 1px 1px 0 rgba(255,255,255,.75) );
78
+ }
79
+ &.hard-bottom {
80
+ border-bottom: solid 1px rgba(255,255,255,.75);
81
+ @include box-shadow( inset 0 -1px 1px 0 $main-border-color );
82
+ }
83
+ &.hard-top.hard-bottom {
84
+ @include box-shadow( inset 0 1px 1px 0 rgba(255,255,255,.75), inset 0 -1px 1px 0 $main-border-color );
85
+ }
86
+
87
+ &.dotted-top {
88
+ border-top: dotted 2px $gray-light;
89
+ @include box-shadow( inset 0 1px 1px 0 rgba(255,255,255,.75) );
90
+ }
91
+ &.dotted-bottom {
92
+ border-bottom: dotted 2px $gray-light;
93
+ @include box-shadow( 0 1px 1px 0 rgba(255,255,255,.75) );
94
+ }
95
+ &.dotted-top, &.dotted-bottom {
96
+ @include box-shadow( inset 0 1px 1px 0 rgba(255,255,255,.75), 0 1px 1px 0 rgba(255,255,255,.75) );
97
+ }
98
+
99
+ //
100
+ // Section Sizes
101
+ //
102
+ &.section-xs, &.sctn-xs, &.compact { padding-top: $section-xs-padding; padding-bottom: $section-xs-padding; }
103
+ &.section-sm, &.sctn-sm, &.flatted, &.tight { padding-top: $section-sm-padding; padding-bottom: $section-sm-padding; }
104
+
105
+ &.section-lg, &.sctn-lg, &.fat { padding-top: $section-lg-padding; padding-bottom: $section-lg-padding; }
106
+ &.section-xl, &.sctn-xl, &.fatter { padding-top: $section-xl-padding; padding-bottom: $section-xl-padding; }
107
+ &.section-xxl, &.sctn-xxl { padding-top: $section-xxl-padding; padding-bottom: $section-xxl-padding; }
108
+
109
+ &.flat { padding-top: 0; padding-bottom: 0; }
110
+ &.flat-top { padding-top: 0; }
111
+ &.flat-bottom { padding-bottom: 0; }
112
+
113
+
114
+ //
115
+ // Section Colors
116
+ //
117
+ background: $section-background;
118
+
119
+ &.dark {
120
+ background: $section-dark-background;
121
+ }
122
+ &.black {
123
+ background: #333;
124
+ color: #fff;
125
+ }
126
+ &.bright {
127
+ background: $section-bright-background;
128
+ }
129
+ &.soft {
130
+ background: $section-soft-background;
131
+ }
132
+ &.blank { background: transparent; }
133
+
134
+ @each $clrName, $clrValue in $brandColorz {
135
+ &.#{ $clrName } { background: $clrValue; }
136
+ }
137
+
138
+ //
139
+ // Speech Section
140
+ //
141
+ &.speech {
142
+ &:after {
143
+ display: block; position: absolute; content: "";
144
+ margin: 0; padding: 0;
145
+ width: 0; height: 0;
146
+ border: solid 10px transparent;
147
+ border-right: solid 10px $section-background;
148
+ border-bottom: solid 10px $section-background;
149
+ bottom: -8px;
150
+ left: 50%;
151
+ margin-left: -8px;
152
+ @include rotation( 45 );
153
+ z-index: 99;
154
+ }
155
+ &.dark:after {
156
+ border-right: solid 10px $section-dark-background;
157
+ border-bottom: solid 10px $section-dark-background;
158
+ }
159
+ &.bright:after {
160
+ border-right: solid 10px $section-bright-background;
161
+ border-bottom: solid 10px $section-bright-background;
162
+ }
163
+ &.soft:after {
164
+ border-right: solid 10px $section-soft-background;
165
+ border-bottom: solid 10px $section-soft-background;
166
+ }
167
+ }
168
+
169
+
170
+ //
171
+ // Rotated Sections
172
+ //
173
+ &.rotated {
174
+ z-index: 99;
175
+ &:after, &:before {
176
+ display: none; position: absolute; content: "";
177
+ margin: 0; padding: 0;
178
+ height: $section-padding * 1.4;
179
+ left: -10%; right: -10%;
180
+ z-index: -1;
181
+ background: inherit;
182
+ }
183
+ &:before { top: -1 * $section-padding / 2; }
184
+ &:after { bottom: -1 * $section-padding / 2; }
185
+
186
+ &.top-left, &.top-right, &.both-left, &.both-right {
187
+ &:before { display: block; }
188
+ }
189
+ &.bottom-left, &.bottom-right, &.both-left, &.both-right {
190
+ &:after { display: block; }
191
+ }
192
+
193
+
194
+ &.top-left, &.both-left {
195
+ &:before { @include rotation( 2 ); }
196
+ }
197
+ &.top-right, &.both-right {
198
+ &:before { @include rotation( -2 ); }
199
+ }
200
+ &.bottom-left, &.both-left {
201
+ &:after { @include rotation( 2 ); }
202
+ }
203
+ &.bottom-right, &.both-right {
204
+ &:after { @include rotation( -2 ); }
205
+ }
206
+
207
+
208
+
209
+ // &.top-right:before { @include rotation( -2 ); }
210
+ // &.bottom-right:after { @include rotation( -2 ); }
211
+
212
+ }
213
+
214
+ }
215
+
216
+
217
+
218
+
219
+
220
+
@@ -0,0 +1,67 @@
1
+ @mixin squareSize( $size ) {
2
+ width: #{ $size }px;
3
+ height: #{ $size }px;
4
+ }
5
+
6
+ @mixin square-size( $size ) {
7
+ width: $size;
8
+ height: $size;
9
+ }
10
+
11
+ @mixin horizontal-padding( $pad: 5px ) {
12
+ padding-left: $pad; padding-right: $pad;
13
+ }
14
+ @mixin vertical-padding( $pad: 5px ) {
15
+ padding-top: $pad; padding-bottom: $pad;
16
+ }
17
+
18
+ @mixin horizontal-margin( $pad: 5px ) {
19
+ margin-left: $pad; margin-right: $pad;
20
+ }
21
+ @mixin vertical-margin( $pad: 5px ) {
22
+ margin-top: $pad; margin-bottom: $pad;
23
+ }
24
+
25
+ @mixin hpadding( $pad: 5px ){ @include horizontal-padding( $pad); }
26
+ @mixin h-padding( $pad: 5px ){ @include horizontal-padding( $pad); }
27
+ @mixin vpadding( $pad: 5px ){ @include vertical-padding( $pad); }
28
+ @mixin v-padding( $pad: 5px ){ @include vertical-padding( $pad); }
29
+
30
+ @mixin hmargin( $pad: 5px ){ @include horizontal-margin( $pad ); }
31
+ @mixin h-margin( $pad: 5px ){ @include horizontal-margin( $pad ); }
32
+ @mixin vmargin( $pad: 5px ){ @include vertical-margin( $pad ); }
33
+ @mixin v-margin( $pad: 5px ){ @include vertical-margin( $pad ); }
34
+
35
+
36
+ @mixin rotation( $rotate ) {
37
+ transform: rotate(#{ $rotate }deg);
38
+ }
39
+
40
+
41
+
42
+ @mixin elipse( $first, $second ) {
43
+ border-radius: #{ $first }px / #{ $second }px;
44
+ }
45
+ @mixin elipsis( $first, $second ) {
46
+ border-radius: #{percentage($first)} / #{percentage($second)} ;
47
+ }
48
+
49
+
50
+ @mixin absoluteCentered( $size: 0 ){
51
+ position: absolute;
52
+ top: $size; bottom: $size;
53
+ left: $size; right: $size;
54
+ }
55
+
56
+
57
+ @mixin gpu_render {
58
+ // old style (bourbon)
59
+ // transform: translateZ( 0 ) ;
60
+ // twbs
61
+ // @include translate3d(0, 0, 0);
62
+ // bourbon
63
+ // there is a chrome bug with that ... http://codepen.io/herzflimmern/blog/chrome-bug-with-fixed-background-and-translate3d
64
+ transform:translate3d(0,0,0);
65
+ // transform: translate(0,0) ;
66
+ }
67
+
@@ -0,0 +1,43 @@
1
+ // before sm
2
+ @mixin responsiveStep-xs {
3
+ @include media-breakpoint-up(xs) { @content; }
4
+ }
5
+ @mixin responsiveStep-sm {
6
+ @include media-breakpoint-up(sm) { @content; }
7
+ }
8
+ @mixin responsiveStep-md {
9
+ @include media-breakpoint-up(md) { @content; }
10
+ }
11
+ @mixin responsiveStep-lg {
12
+ @include media-breakpoint-up(lg) { @content; }
13
+ }
14
+ @mixin responsiveStep-xl {
15
+ @media only screen and (min-width: 1600px) {
16
+ @content;
17
+ }
18
+ }
19
+ @mixin responsiveStep-xxl {
20
+ @media only screen and (min-width: 2000px) {
21
+ @content;
22
+ }
23
+ }
24
+
25
+
26
+
27
+ @mixin responsiveStep-xs-only {
28
+ @include media-breakpoint-only(xs) { @content; }
29
+ }
30
+ @mixin responsiveStep-sm-only {
31
+ @include media-breakpoint-only(sm) { @content; }
32
+ }
33
+ @mixin responsiveStep-md-only {
34
+ @include media-breakpoint-only(md) { @content; }
35
+ }
36
+ @mixin responsiveStep-lg-only {
37
+ @include media-breakpoint-only(lg) { @content; }
38
+ }
39
+ @mixin responsiveStep-xl-only {
40
+ @media only screen and (min-width: 1600px) and (max-width: 1999px) {
41
+ @content;
42
+ }
43
+ }
@@ -0,0 +1,31 @@
1
+
2
+
3
+ @mixin asideScrollBar {
4
+
5
+ overflow-y: auto !important;
6
+ // scrollbar-face-color: #000000;
7
+ // scrollbar-shadow-color: #2D2C4D;
8
+ // scrollbar-highlight-color:#7D7E94;
9
+ // scrollbar-3dlight-color: #7D7E94;
10
+ // scrollbar-darkshadow-color: #2D2C4D;
11
+ // scrollbar-track-color: #7D7E94;
12
+ // scrollbar-arrow-color: #C1C1D1;
13
+
14
+ &::-webkit-scrollbar { width: 3px; height: 3px;}
15
+ &::-webkit-scrollbar-button { background-color: rgba(0,0,0,.13); }
16
+ &::-webkit-scrollbar-track { background-color: rgba(0,0,0,.13); }
17
+ &::-webkit-scrollbar-track-piece { background-color: rgba(255,255,255,.42);}
18
+ &::-webkit-scrollbar-thumb { border-radius: 5px; background: #000; }
19
+ &::-webkit-scrollbar-corner { background-color: rgba(0,0,0,.13);}
20
+ &::-webkit-resizer { background-color: rgba(255,255,255,.42); }
21
+
22
+
23
+ &::scrollbar { width: 3px; height: 3px;}
24
+ &::scrollbar-button { background-color: rgba(0,0,0,.13); }
25
+ &::scrollbar-track { background-color: rgba(0,0,0,.13); }
26
+ &::scrollbar-track-piece { background-color: rgba(255,255,255,.42);}
27
+ &::scrollbar-thumb { border-radius: 5px; background: #000; }
28
+ &::scrollbar-corner { background-color: rgba(0,0,0,.13);}
29
+ &::resizer { background-color: rgba(255,255,255,.42); }
30
+
31
+ }
@@ -0,0 +1,247 @@
1
+ @mixin make_shadows($horizontal, $vertical, $blur, $size, $color, $times) {
2
+ $shdw: '';
3
+ $seprat: "";
4
+ @while $times > 0 {
5
+ @if $times > 1 {
6
+ $seprat: ", ";
7
+ } @else {
8
+ $seprat: "";
9
+ }
10
+ $shdw: $shdw + "#{$horizontal} #{$vertical} #{$blur} #{$size} #{$color}#{$seprat}";
11
+ $times: $times - 1;
12
+ }
13
+ // @debug $shdw;
14
+ box-shadow: #{$shdw} ;
15
+ }
16
+
17
+
18
+
19
+
20
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
21
+ // // // B O X - S H A D O W S
22
+ // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
23
+
24
+
25
+ @mixin raised_shadow( $color, $times: 3, $horizontal: 0, $vertical: 10px, $blur: 10px, $size: -10px ) {
26
+ // position: relative;
27
+ // display: block;
28
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
29
+ }
30
+
31
+ @mixin pseudo_raised_shadow($color,$times:3,$gap:10px,$radius:3px,$horizontal:0,$vertical:3px,$blur:7px,$size:0){
32
+ // position: relative;
33
+ // display: block;
34
+ // z-index: 3;
35
+ &:before {
36
+ content: ""; display: block; position: absolute; width:auto;
37
+ top: 0;
38
+ right: #{$gap};
39
+ left: #{$gap};
40
+ bottom: 0;
41
+ border: solid 1px #ccc;
42
+ border-radius: #{$radius};
43
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
44
+ z-index: -2;
45
+ }
46
+ }
47
+
48
+ @mixin lifted_shadow( $color, $times: 3, $horizontal: 0, $vertical: 15px, $blur: 10px, $size: 0 ) {
49
+ // position: relative;
50
+ // display: block;
51
+ &:before, &:after {
52
+ content: ""; display: block; position: absolute;
53
+ bottom:15px;
54
+ width:50%;
55
+ height:20%;
56
+ z-index: -2;
57
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
58
+ }
59
+ &:before {
60
+ left:10px;
61
+ @include rotation(-3);
62
+ }
63
+ &:after {
64
+ right:10px;
65
+ @include rotation(3);
66
+ }
67
+ }
68
+
69
+ @mixin perspective_shadow( $color, $times: 3, $degre: 30, $blur: 10px ) {
70
+ // position: relative;
71
+ // display: block;
72
+ &:before, &:after {
73
+ content: ""; display: block; position: absolute;
74
+ background: transparent;
75
+ left: 80px;
76
+ bottom:5px;
77
+ right:20px;
78
+ height:35%;
79
+ z-index: -2;
80
+ @include make_shadows(-80px, 0, $blur, 0, $color, $times);
81
+ transform:skew(#{$degre}deg);
82
+ transform-origin:0 100%;
83
+ }
84
+ }
85
+
86
+ @mixin vertical_curves( $color, $times: 3, $horizontal: 0, $vertical: 0, $blur: 15px, $size: 0 ) {
87
+ // position: relative;
88
+ // display: block;
89
+ &:before {
90
+ content: ""; display: block; position: absolute;
91
+ top: 10px; bottom: 10px;
92
+ left: 0; right: 0;
93
+ z-index: -2;
94
+ @include elipse( 10, 100 );
95
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
96
+ }
97
+ }
98
+
99
+ @mixin horizontal_curves( $color, $times: 3, $horizontal: 0, $vertical: 0, $blur: 15px, $size: 0 ) {
100
+ // position: relative;
101
+ // display: block;
102
+ &:before {
103
+ content: ""; display: block; position: absolute;
104
+ top: 0; bottom: 0;
105
+ left: 10px; right: 10px;
106
+ z-index: -2;
107
+ @include elipse( 100, 10 );
108
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
109
+ }
110
+ }
111
+
112
+ @mixin vertical_shine( $color, $times: 1, $width: 3px, $blur: 10px, $size: 0 ) {
113
+ // position: relative;
114
+ // display: block;
115
+ overflow: hidden;
116
+ &:before, &:after {
117
+ content: ""; display: block; position: absolute; z-index: 55;
118
+ }
119
+ &:before {
120
+ top:5px; bottom: 5px;
121
+ width: 100px; left: -100px;
122
+ @include elipse( 50, 100 );
123
+ @include make_shadows($width, 0, $blur, $size, $color, $times);
124
+ }
125
+ &:after {
126
+ top:5px; bottom: 5px;
127
+ width: 100px; right: -100px;
128
+ @include elipse( 50, 100 );
129
+ @include make_shadows(-$width, 0, $blur, $size, $color, $times);
130
+ }
131
+ }
132
+
133
+ @mixin horizontal_shine( $color, $times: 1, $width: 3px, $blur: 10px, $size: 0 ) {
134
+ // position: relative;
135
+ // display: block;
136
+ overflow: hidden;
137
+ &:before, &:after {
138
+ content: ""; display: block; position: absolute; z-index: 55;
139
+ }
140
+ &:before {
141
+ left:5px; right: 5px;
142
+ height: 100px; top: -100px;
143
+ @include elipse( 100, 50 );
144
+ @include make_shadows(0, $width, $blur, $size, $color, $times);
145
+ }
146
+ &:after {
147
+ left:5px; right: 5px;
148
+ height: 100px; bottom: -100px;
149
+ @include elipse( 100, 50 );
150
+ @include make_shadows(0, -$width, $blur, $size, $color, $times);
151
+ }
152
+ }
153
+
154
+ @mixin single_curve( $color, $times: 3, $position: left, $width: 5px, $blur: 5px, $size: 0, $corner: 100 ) {
155
+ $that: "";
156
+ $horizontal: 0;
157
+ $vertical: 0;
158
+ // position: relative;
159
+ // display: block;
160
+ &:before {
161
+ content:""; position:absolute; z-index: -2;
162
+ @if $position == top {
163
+ left: 5px; right: 5px;
164
+ top: 0; bottom: 5px;
165
+ $horizontal: 0; $vertical: -#{$width};
166
+ // @include elipse( #{$corner}, #{round($corner / 2)} );
167
+ @include elipsis( $corner, round($corner / 10) );
168
+ } @else if $position == bottom {
169
+ left: 5px; right: 5px;
170
+ top: 5px; bottom: 0;
171
+ $horizontal: 0; $vertical: #{$width};
172
+ // @include elipse( #{$corner}, #{round($corner / 2)} );
173
+ @include elipsis( $corner, round($corner / 10) );
174
+ } @else if $position == right {
175
+ left: 5px; right: 0;
176
+ top: 5px; bottom: 5px;
177
+ $horizontal: #{$width}; $vertical: 0;
178
+ // @include elipse( #{round($corner / 2)}, #{$corner} );
179
+ @include elipsis( round($corner / 10), $corner );
180
+ } @else {
181
+ left: 0; right: 5px;
182
+ top: 5px; bottom: 5px;
183
+ $horizontal: -#{$width}; $vertical: 0;
184
+ // @include elipsis( round($corner / 2), $corner );
185
+ @include elipsis( round($corner / 10), $corner );
186
+ }
187
+ background: transparent;
188
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
189
+ }
190
+ }
191
+
192
+
193
+ @mixin single_shine( $color, $times: 3, $position: right, $width: 5px, $blur: 5px, $size: 0, $corner: 100 ) {
194
+ $that: "";
195
+ $horizontal: 0;
196
+ $vertical: 0;
197
+ // position: relative;
198
+ // display: block;
199
+ overflow:hidden;
200
+ &:before {
201
+ content:""; position:absolute; z-index: 3;
202
+
203
+ @if $position == top {
204
+ left: 5px; right: 5px;
205
+ height: 100px;
206
+ top: -100px;
207
+ $horizontal: 0; $vertical: #{$width};
208
+ @include elipse( #{$corner}, #{round($corner / 2)} );
209
+ } @else if $position == bottom {
210
+ left: 5px; right: 5px;
211
+ height: 100px;
212
+ bottom: -100px;
213
+ $horizontal: 0; $vertical: -#{$width};
214
+ @include elipse( #{$corner}, #{round($corner / 2)} );
215
+ } @else if $position == right {
216
+ top:5px; bottom: 5px;
217
+ width: 100px;
218
+ right: -100px;
219
+ $horizontal: -#{$width}; $vertical: 0;
220
+ @include elipsis( ($corner / 2), $corner );
221
+ } @else {
222
+ top:5px; bottom: 5px;
223
+ width: 100px;
224
+ left: -100px;
225
+ $horizontal: #{$width}; $vertical: 0;
226
+ @include elipsis( ($corner / 2), $corner );
227
+ }
228
+ background: transparent;
229
+ @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
230
+ }
231
+ }
232
+
233
+
234
+
235
+ @mixin paper_shadow( $color, $times: 3 ) {
236
+ // position: relative;
237
+ // display: block;
238
+ &:before {
239
+ content:""; position:absolute; z-index: -2;
240
+ // @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
241
+ top: 0; bottom:10px;
242
+ left: 0; right: 0;
243
+
244
+ @include make_shadows(0, 0, 5px, 3px, $color, $times);
245
+ border-radius: 10px 10px 10px 10px / 10px 10px 300px 300px ;
246
+ }
247
+ }