better_styles 0.0.0.338 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +4 -9
  3. data/lib/better_styles/engine.rb +1 -1
  4. data/lib/better_styles/version.rb +1 -1
  5. metadata +148 -100
  6. data/app/helpers/better_styles/support_helper.rb +0 -33
  7. data/assets/fonts/betterfonts/betterwork-icons.eot +0 -0
  8. data/assets/fonts/betterfonts/betterwork-icons.svg +0 -368
  9. data/assets/fonts/betterfonts/betterwork-icons.ttf +0 -0
  10. data/assets/fonts/betterfonts/betterwork-icons.woff +0 -0
  11. data/assets/fonts/betterfonts/icomoon.eot +0 -0
  12. data/assets/fonts/betterfonts/icomoon.svg +0 -461
  13. data/assets/fonts/betterfonts/icomoon.ttf +0 -0
  14. data/assets/fonts/betterfonts/icomoon.woff +0 -0
  15. data/assets/fonts/betterfonts/magicons-regular-webfont.eot +0 -0
  16. data/assets/fonts/betterfonts/magicons-regular-webfont.svg +0 -461
  17. data/assets/fonts/betterfonts/magicons-regular-webfont.ttf +0 -0
  18. data/assets/fonts/betterfonts/magicons-regular-webfont.woff +0 -0
  19. data/assets/fonts/betterfonts/newmagicons-regular-webfont.eot +0 -0
  20. data/assets/fonts/betterfonts/newmagicons-regular-webfont.svg +0 -199
  21. data/assets/fonts/betterfonts/newmagicons-regular-webfont.ttf +0 -0
  22. data/assets/fonts/betterfonts/newmagicons-regular-webfont.woff +0 -0
  23. data/assets/fonts/betterfonts/orderlifticons-webfont.eot +0 -0
  24. data/assets/fonts/betterfonts/orderlifticons-webfont.svg +0 -172
  25. data/assets/fonts/betterfonts/orderlifticons-webfont.ttf +0 -0
  26. data/assets/fonts/betterfonts/orderlifticons-webfont.woff +0 -0
  27. data/assets/images/better/arrows/arrow-round1-a.png +0 -0
  28. data/assets/images/better/arrows/arrow-round1-b.png +0 -0
  29. data/assets/images/better/arrows/arrow-round2-a.png +0 -0
  30. data/assets/images/better/arrows/arrow-round2-b.png +0 -0
  31. data/assets/images/better/arrows/arrow1-a.png +0 -0
  32. data/assets/images/better/arrows/arrow1-b.png +0 -0
  33. data/assets/images/better/arrows/arrow1.png +0 -0
  34. data/assets/images/better/arrows/arrow2-1.png +0 -0
  35. data/assets/images/better/arrows/arrow2-2.png +0 -0
  36. data/assets/images/better/arrows/arrow2-a.png +0 -0
  37. data/assets/images/better/arrows/arrow2-b.png +0 -0
  38. data/assets/images/better/arrows/arrow3-a.png +0 -0
  39. data/assets/images/better/arrows/arrow3-b.png +0 -0
  40. data/assets/images/better/arrows/arrow4-a.png +0 -0
  41. data/assets/images/better/arrows/arrow4-b.png +0 -0
  42. data/assets/images/better/arrows/arrow5-a.png +0 -0
  43. data/assets/images/better/arrows/arrow5-b.png +0 -0
  44. data/assets/images/better/arrows/arrow6-a.png +0 -0
  45. data/assets/images/better/arrows/arrow6-b.png +0 -0
  46. data/assets/images/better/helper/blank_10.png +0 -0
  47. data/assets/images/better/helper/crossed.png +0 -0
  48. data/assets/images/better/helper/white_10.png +0 -0
  49. data/assets/javascripts/better_styles.js.coffee +0 -4
  50. data/assets/javascripts/betterjs/forms/check_switch.js.coffee +0 -25
  51. data/assets/javascripts/betterjs/helper.js.coffee +0 -74
  52. data/assets/javascripts/betterjs/navigations/aside_link.js.coffee +0 -9
  53. data/assets/javascripts/betterjs/navigations/nav_list.js.coffee +0 -19
  54. data/assets/javascripts/betterjs/rails_ext/rails-ujs.js +0 -479
  55. data/assets/javascripts/betterjs/render_eco.js.coffee +0 -9
  56. data/assets/javascripts/betterjs/templates/fixed_aside_to_header.js.coffee +0 -6
  57. data/assets/javascripts/betterjs/templates/icon_aside.js.coffee +0 -12
  58. data/assets/javascripts/betterjs/templates/scroll_to_fix_aside.js +0 -32
  59. data/assets/javascripts/betterjs/twbs_ext/affix_2_1_0.js +0 -103
  60. data/assets/javascripts/betterjs/twbs_ext/affix_3_3_7.js +0 -162
  61. data/assets/javascripts/betterjs/twbs_ext/affix_ext.js +0 -131
  62. data/assets/stylesheets/better/content/_box.scss +0 -46
  63. data/assets/stylesheets/better/content/_buttons.scss +0 -22
  64. data/assets/stylesheets/better/content/_check_switch.scss +0 -78
  65. data/assets/stylesheets/better/content/_divider.scss +0 -65
  66. data/assets/stylesheets/better/content/_helpers.scss +0 -85
  67. data/assets/stylesheets/better/content/_pix.scss +0 -70
  68. data/assets/stylesheets/better/content/_typography.scss +0 -44
  69. data/assets/stylesheets/better/icons/bettericons.scss +0 -419
  70. data/assets/stylesheets/better/icons/icomoon.scss +0 -1392
  71. data/assets/stylesheets/better/icons/magicons.scss +0 -705
  72. data/assets/stylesheets/better/icons/orderlifticons.scss +0 -300
  73. data/assets/stylesheets/better/layout/_corset.scss +0 -57
  74. data/assets/stylesheets/better/layout/_fullpage_table.scss +0 -185
  75. data/assets/stylesheets/better/layout/_positioning.scss +0 -62
  76. data/assets/stylesheets/better/layout/_section.scss +0 -220
  77. data/assets/stylesheets/better/lib/_helpers.scss +0 -67
  78. data/assets/stylesheets/better/lib/_media_querries.scss +0 -46
  79. data/assets/stylesheets/better/lib/_nav.scss +0 -31
  80. data/assets/stylesheets/better/lib/_shadows.scss +0 -247
  81. data/assets/stylesheets/better/lib/_text.scss +0 -66
  82. data/assets/stylesheets/better/navigations/_aside_lnk.scss +0 -100
  83. data/assets/stylesheets/better/navigations/_nav_list.scss +0 -177
  84. data/assets/stylesheets/better/templates/_fixed_aside_to_header.scss +0 -89
  85. data/assets/stylesheets/better/templates/_icon_aside.scss +0 -404
  86. data/assets/stylesheets/better/templates/_scroll_to_fix_aside.scss +0 -104
  87. data/assets/stylesheets/better/variables/_color.scss +0 -121
  88. data/assets/stylesheets/better/variables/_typography.scss +0 -60
  89. data/assets/stylesheets/better/variables/_vars.scss +0 -57
  90. data/assets/stylesheets/better_styles.scss +0 -44
  91. data/assets/stylesheets/better_styles_min.scss +0 -43
@@ -1,220 +0,0 @@
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
- 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
- box-shadow: inset 0 -1px 1px 0 $main-border-color;
82
- }
83
- &.hard-top.hard-bottom {
84
- 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
- box-shadow: inset 0 1px 1px 0 rgba(255,255,255,.75);
90
- }
91
- &.dotted-bottom {
92
- border-bottom: dotted 2px $gray-light;
93
- box-shadow: 0 1px 1px 0 rgba(255,255,255,.75);
94
- }
95
- &.dotted-top, &.dotted-bottom {
96
- 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
-
@@ -1,67 +0,0 @@
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
-
@@ -1,46 +0,0 @@
1
- $responsive-steps: (
2
- xs: 0,
3
- sm: 576px,
4
- md: 768px,
5
- lg: 992px,
6
- xl: 1200px,
7
- xxl: 2000px
8
- ) !default;
9
-
10
-
11
- @mixin responsiveStep-xs {
12
- @media only screen and (min-width: map-get($responsive-steps, xs)) { @content; }
13
- }
14
- @mixin responsiveStep-sm {
15
- @media only screen and (min-width: map-get($responsive-steps, sm)) { @content; }
16
- }
17
- @mixin responsiveStep-md {
18
- @media only screen and (min-width: map-get($responsive-steps, md)) { @content; }
19
- }
20
- @mixin responsiveStep-lg {
21
- @media only screen and (min-width: map-get($responsive-steps, lg)) { @content; }
22
- }
23
- @mixin responsiveStep-xl {
24
- @media only screen and (min-width: map-get($responsive-steps, xl)) { @content; }
25
- }
26
- @mixin responsiveStep-xxl {
27
- @media only screen and (min-width: map-get($responsive-steps, xxl)) { @content; }
28
- }
29
-
30
-
31
-
32
- @mixin responsiveStep-xs-only {
33
- @media only screen and (max-width: map-get($responsive-steps, xs)) { @content; }
34
- }
35
- @mixin responsiveStep-sm-only {
36
- @media only screen and (min-width: map-get($responsive-steps, sm)) and (max-width: map-get($responsive-steps, md) - 1) { @content; }
37
- }
38
- @mixin responsiveStep-md-only {
39
- @media only screen and (min-width: map-get($responsive-steps, md)) and (max-width: map-get($responsive-steps, lg) - 1) { @content; }
40
- }
41
- @mixin responsiveStep-lg-only {
42
- @media only screen and (min-width: map-get($responsive-steps, lg)) and (max-width: map-get($responsive-steps, xl) - 1) { @content; }
43
- }
44
- @mixin responsiveStep-xl-only {
45
- @media only screen and (min-width: map-get($responsive-steps, xl)) and (max-width: map-get($responsive-steps, xxl) - 1) { @content; }
46
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,247 +0,0 @@
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
- }
@@ -1,66 +0,0 @@
1
- // no line break in texts, when to long for box show "..."
2
- @mixin noWrap {
3
- white-space: nowrap;
4
- overflow: hidden;
5
- text-overflow: ellipsis;
6
- }
7
-
8
- @mixin no_wrap { @include noWrap; }
9
- @mixin no-wrap { @include noWrap; }
10
- @mixin no_word_break { @include noWrap; }
11
- @mixin no-word-break { @include noWrap; }
12
-
13
-
14
-
15
- // user formated text .. like pre tag
16
- @mixin preText {
17
- white-space: -moz-pre-wrap !important;
18
- white-space: -pre-wrap;
19
- white-space: -o-pre-wrap;
20
- white-space: pre-wrap;
21
- word-wrap: break-word;
22
- }
23
-
24
- @mixin pre_text { @include preText; }
25
- @mixin pre-text { @include preText; }
26
- @mixin user_input { @include preText; }
27
- @mixin user-input { @include preText; }
28
-
29
-
30
-
31
- // make icons and fonts thinner in webkit (white icons on dark background)
32
- @mixin antialiasedText {
33
- text-shadow: 0 0 0 rgba(0,0,0,.01);
34
- -webkit-font-smoothing: antialiased;
35
- text-rendering: optimizelegibility;
36
- }
37
-
38
- @mixin antialiased_text { @include antialiasedText; }
39
- @mixin antialiased-text { @include antialiasedText; }
40
-
41
-
42
-
43
- // make it smooth and app-like on mobile (best in body!)
44
- @mixin mobileAppImprovements {
45
- -webkit-font-smoothing: antialiased;
46
- -webkit-touch-callout: none;
47
- -webkit-user-select: none;
48
- ::-webkit-scrollbar { display: none; }
49
- -webkit-tap-highlight-color: rgba(0,0,0,0);
50
- }
51
-
52
- @mixin mobile_app_improvements { @include mobileAppImprovements; }
53
- @mixin mobile-app-improvements { @include mobileAppImprovements; }
54
-
55
-
56
-
57
- // add rules for all text elements
58
- @mixin textTags {
59
- h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, p, span, a {
60
- @content;
61
- }
62
- }
63
-
64
- @mixin text_tags { @include textTags { @content; } }
65
- @mixin text-tags { @include textTags { @content; } }
66
-