rtpl-compass 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +102 -0
  3. data/lib/config.rb +5 -0
  4. data/lib/rtpl-compass.rb +60 -0
  5. data/templates/project/css/dev.css +3 -0
  6. data/templates/project/files/compass_watch.bat +1 -0
  7. data/templates/project/files/readme.txt +36 -0
  8. data/templates/project/ie-old/favicon.ico +0 -0
  9. data/templates/project/ie-old/images/as.jpg +0 -0
  10. data/templates/project/ie-old/images/bg_span_wol.gif +0 -0
  11. data/templates/project/ie-old/images/f.jpg +0 -0
  12. data/templates/project/ie-old/images/gc.jpg +0 -0
  13. data/templates/project/ie-old/images/h.jpg +0 -0
  14. data/templates/project/ie-old/images/ie.jpg +0 -0
  15. data/templates/project/ie-old/images/mf.jpg +0 -0
  16. data/templates/project/ie-old/images/op.jpg +0 -0
  17. data/templates/project/ie-old/images/td1.jpg +0 -0
  18. data/templates/project/ie-old/images/td2.jpg +0 -0
  19. data/templates/project/ie-old/images/td3.jpg +0 -0
  20. data/templates/project/ie-old/index.html +175 -0
  21. data/templates/project/images/fancyClose.png +0 -0
  22. data/templates/project/images/fancyNext.png +0 -0
  23. data/templates/project/images/fancyPrev.png +0 -0
  24. data/templates/project/images/favicon.png +0 -0
  25. data/templates/project/images/loading.gif +0 -0
  26. data/templates/project/images/noimg.jpg +0 -0
  27. data/templates/project/images/screenshot.jpg +0 -0
  28. data/templates/project/index.html +24 -0
  29. data/templates/project/index.php +79 -0
  30. data/templates/project/js/full/example.js +1 -0
  31. data/templates/project/js/full/ph.js +33 -0
  32. data/templates/project/js/full/rform.js +416 -0
  33. data/templates/project/js/full/scripts.js +1 -0
  34. data/templates/project/js/init.js +41 -0
  35. data/templates/project/js/min/head.min.js +9 -0
  36. data/templates/project/js/min/jquery.fancybox.min.js +46 -0
  37. data/templates/project/js/min/ph.min.js +2 -0
  38. data/templates/project/manifest.rb +96 -0
  39. data/templates/project/sass/index.sass +36 -0
  40. data/templates/project/sass/source/_buttons.sass +35 -0
  41. data/templates/project/sass/source/_formstyle.sass +150 -0
  42. data/templates/project/sass/source/_global.sass +62 -0
  43. data/templates/project/sass/source/_reset.sass +93 -0
  44. data/templates/project/sass/source/_typography.sass +111 -0
  45. data/templates/project/sass/source/bl/_content.sass +1 -0
  46. data/templates/project/sass/source/bl/_footer.sass +1 -0
  47. data/templates/project/sass/source/bl/_header.sass +1 -0
  48. data/templates/project/sass/source/lib/_default.sass +226 -0
  49. data/templates/project/sass/source/lib/_mixins.sass +15 -0
  50. data/templates/project/sass/source/lib/mixins/_animations.sass +85 -0
  51. data/templates/project/sass/source/lib/mixins/_background.sass +41 -0
  52. data/templates/project/sass/source/lib/mixins/_base.sass +158 -0
  53. data/templates/project/sass/source/lib/mixins/_browsers.sass +54 -0
  54. data/templates/project/sass/source/lib/mixins/_fonts.sass +84 -0
  55. data/templates/project/sass/source/lib/mixins/_forms.sass +16 -0
  56. data/templates/project/sass/source/lib/mixins/_gridsystem.sass +66 -0
  57. data/templates/project/sass/source/lib/mixins/_media.sass +209 -0
  58. data/templates/project/sass/source/lib/mixins/_positions.sass +42 -0
  59. data/templates/project/sass/source/lib/mixins/_sprites.sass +65 -0
  60. data/templates/project/sass/source/lib/mixins/_width.sass +27 -0
  61. data/templates/project/sass/source/plugins/_jquery.fancybox.sass +197 -0
  62. data/templates/project/sass/source/plugins/_rforms.sass +258 -0
  63. metadata +105 -0
@@ -0,0 +1,66 @@
1
+ // Based on 960 Grid System - http://960.gs/
2
+
3
+ // Default variables:
4
+ // $numberOfColumns = 12 (Number of columns)
5
+ // $gutterWidth = 20px (Gutter width)
6
+ // $fullWidth = 960px (Full width)
7
+ // $fluid = false (Activate fluid version)
8
+ // $fluidMargin = 4% (Margin of container in fluid version)
9
+
10
+ // ---
11
+ // 960 Grid System: 12 Column Grid
12
+ // +gridsystem
13
+ // ---
14
+ // 960 Grid System: 16 Column Grid
15
+ // +gridsystem(16)
16
+ // ---
17
+ // Grid System: Fluid Version
18
+ // +gridsystem(12, 2%, 100%, true)
19
+ // ---
20
+ // Variable Grid System
21
+ // +gridsystem(8, 40, 960)
22
+
23
+ =gridsystem($numberOfColumns: 12, $gutterWidth: 20px, $fullWidth: 960px, $fluid: false, $fluidMargin: 4%)
24
+ $gutterWidth: lessPoint($gutterWidth)
25
+ $fullWidth: lessPoint($fullWidth)
26
+ $width_for_columns: $fullWidth - $numberOfColumns*$gutterWidth
27
+ $column_width: $width_for_columns/$numberOfColumns
28
+ $gutterWidthHalf: $gutterWidth/2
29
+
30
+ .container_#{$numberOfColumns}
31
+ @if $fluid
32
+ width: 100% - $fluidMargin*2
33
+ margin-left: $fluidMargin
34
+ margin-right: $fluidMargin
35
+ @else
36
+ +center($fullWidth)
37
+
38
+ .grid
39
+ position: relative
40
+ float: left
41
+ margin-left: $gutterWidthHalf
42
+ margin-right: $gutterWidthHalf
43
+
44
+ .grid_#{$numberOfColumns}
45
+ float: none
46
+ clear: both
47
+
48
+ // Grid >> Children (Alpha ~ First, Omega ~ Last)
49
+ .alpha
50
+ margin-left: 0
51
+
52
+ .omega
53
+ margin-right: 0
54
+
55
+ // Grids
56
+ @for $i from 1 through $numberOfColumns
57
+ $grid_width: $column_width*$i + $gutterWidth*$i - $gutterWidth
58
+ .container_#{$numberOfColumns}
59
+ .grid_#{$i}
60
+ width: $grid_width
61
+ +bf
62
+ content: 'grid_#{$i}'
63
+ +h
64
+ cursor: pointer
65
+ +bf
66
+ content: '#{$grid_width}'
@@ -0,0 +1,209 @@
1
+ // Resolutions
2
+ $FHD: 1920px
3
+ $WXGA-plus: 1680px
4
+ $HD: 1366px
5
+ $WXGA: 1280px
6
+ $XGALandscape: 1024px
7
+ $XGAPortrait: 768px
8
+ $VGA: 640px
9
+ $HVGA: 480px
10
+ $QVGA: 320px
11
+
12
+ // Rafal Bromirski mixins rules (http://paranoida.com/)
13
+ // ---
14
+ // @ hdpi(ratio) // devices with hidpi displays (default ratio: 1.3)
15
+ // ---
16
+ // @ iphone3 // only iPhone (2, 3G, 3GS) landscape & portrait
17
+ // @ iphone3-landscape // only iPhone (2, 3G, 3GS) only landscape
18
+ // @ iphone3-portrait // only iPhone (2, 3G, 3GS) only portrait
19
+ // ---
20
+ // @ iphone4 // only iPhone (4, 4S) landscape & portrait
21
+ // @ iphone4-landscape // only iPhone (4, 4S) only landscape
22
+ // @ iphone4-portrait // only iPhone (4, 4S) only portrait
23
+ // ---
24
+ // @ iphone5 // only iPhone (5) landscape & portrait
25
+ // @ iphone5-landscape // only iPhone (5) only landscape
26
+ // @ iphone5-portrait // only iPhone (5) only portrait
27
+ // ---
28
+ // @ ipad // only iPad (1, 2, Mini) landscape & portrait
29
+ // @ ipad-landscape // only iPad (1, 2, Mini) only landscape
30
+ // @ ipad-portrait // only iPad (1, 2, Mini) only portrait
31
+ // ---
32
+ // @ ipad-retina // only iPad (3, 4) landscape & portrait
33
+ // @ ipad-retina-landscape // only iPad (3, 4) only landscape
34
+ // @ ipad-retina-portrait // only iPad (3, 4) only portrait
35
+ // ---
36
+
37
+ // ---------------------------------------------------------------------------------------------------------------------
38
+ // --- hdpi ------------------------------------------------------------------------------------------------------------
39
+ // ---------------------------------------------------------------------------------------------------------------------
40
+
41
+ // Based on bourbon hidpi-media-queries file (https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_hidpi-media-query.scss)
42
+ // HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
43
+
44
+ =hdpi($ratio: 1.3)
45
+ @media only screen and (-webkit-min-device-pixel-ratio: $ratio), only screen and (min--moz-device-pixel-ratio: $ratio), only screen and (-o-min-device-pixel-ratio: #{$ratio}/1), only screen and (min-resolution: #{round($ratio*96)}dpi), only screen and (min-resolution: #{$ratio}dppx)
46
+ @content
47
+
48
+ // ---------------------------------------------------------------------------------------------------------------------
49
+ // --- iphone ----------------------------------------------------------------------------------------------------------
50
+ // ---------------------------------------------------------------------------------------------------------------------
51
+
52
+ =iphone
53
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
54
+ @content
55
+
56
+ =iphone3
57
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
58
+ and (-webkit-device-pixel-ratio: 1)
59
+ @content
60
+
61
+ =iphone3-portrait
62
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
63
+ and (-webkit-device-pixel-ratio: 1) and (orientation:portrait)
64
+ @content
65
+
66
+ =iphone3-landscape
67
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
68
+ and (-webkit-device-pixel-ratio: 1) and (orientation:landscape)
69
+ @content
70
+
71
+ // ---------------------------------------------------------------------------------------------------------------------
72
+ // --- iphone-retina ---------------------------------------------------------------------------------------------------
73
+ // ---------------------------------------------------------------------------------------------------------------------
74
+
75
+ =iphone4
76
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
77
+ and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3)
78
+ @content
79
+
80
+ =iphone4-portrait
81
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
82
+ and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) and (orientation:portrait)
83
+ @content
84
+
85
+ =iphone4-landscape
86
+ @media only screen and (min-device-width: 320px) and (max-device-width: 480px)
87
+ and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 2/3) and (orientation:landscape)
88
+ @content
89
+
90
+ // ---------------------------------------------------------------------------------------------------------------------
91
+ // --- iphone-5 --------------------------------------------------------------------------------------------------------
92
+ // ---------------------------------------------------------------------------------------------------------------------
93
+
94
+ =iphone5
95
+ @media only screen and (min-device-width: 320px) and (max-device-width: 568px)
96
+ and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71)
97
+ @content
98
+
99
+ =iphone5-portrait
100
+ @media only screen and (min-device-width: 320px) and (max-device-width: 568px)
101
+ and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71) and (orientation:portrait)
102
+ @content
103
+
104
+ =iphone5-landscape
105
+ @media only screen and (min-device-width: 320px) and (max-device-width: 568px)
106
+ and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40/71) and (orientation:landscape)
107
+ @content
108
+
109
+ // ---------------------------------------------------------------------------------------------------------------------
110
+ // --- ipad + ipad mini ------------------------------------------------------------------------------------------------
111
+ // ---------------------------------------------------------------------------------------------------------------------
112
+
113
+ =ipad
114
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px)
115
+ and (-webkit-device-pixel-ratio: 1)
116
+ @content
117
+
118
+ =ipad-portrait
119
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px)
120
+ and (-webkit-device-pixel-ratio: 1) and (orientation:portrait)
121
+ @content
122
+
123
+ =ipad-landscape
124
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px)
125
+ and (-webkit-device-pixel-ratio: 1) and (orientation:landscape)
126
+ @content
127
+
128
+ // ---------------------------------------------------------------------------------------------------------------------
129
+ // --- ipad-retina -----------------------------------------------------------------------------------------------------
130
+ // ---------------------------------------------------------------------------------------------------------------------
131
+
132
+ =ipad-retina
133
+ @media screen and (min-device-width: 768px) and (max-device-width: 1024px)
134
+ and (-webkit-device-pixel-ratio: 2)
135
+ @content
136
+
137
+ =ipad-retina-portrait
138
+ @media screen and (min-device-width: 768px) and (max-device-width: 1024px)
139
+ and (-webkit-device-pixel-ratio: 2) and (orientation:portrait)
140
+ @content
141
+
142
+ =ipad-retina-landscape
143
+ @media screen and (min-device-width: 768px) and (max-device-width: 1024px)
144
+ and (-webkit-device-pixel-ratio: 2) and (orientation:landscape)
145
+ @content
146
+
147
+ // Retina
148
+ =retina
149
+ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)
150
+ @content
151
+
152
+ // Screen
153
+ =mq($res-min, $res-max)
154
+ @media screen and ( min-width: if(unitless($res-min), $res-min*$units, $res-min) ) and ( max-width: if(unitless($res-max), $res-max*$units, $res-max) )
155
+ @content
156
+
157
+ =mq-max($res)
158
+ @media screen and ( max-width: if(unitless($res), $res*$units, $res) )
159
+ @content
160
+
161
+ =mq-min($res)
162
+ @media screen and ( min-width: if(unitless($res), $res*$units, $res) )
163
+ @content
164
+
165
+ // Library screens
166
+
167
+ =mqhd
168
+ @media only screen and (min-width: $HD)
169
+ @content
170
+
171
+ // Only desktops & tablets landscape
172
+ =mq1366and1024
173
+ @media only screen and (min-width: $XGALandscape + 1) and (max-width: $HD)
174
+ @content
175
+
176
+ // >= 1024px
177
+ =mq1024
178
+ @media only screen and (max-width: $XGALandscape)
179
+ @content
180
+
181
+ // Only tablets portrait
182
+ =mq1024and768
183
+ @media only screen and (min-width: $XGAPortrait + 1) and (max-width: $XGALandscape)
184
+ @content
185
+
186
+ // >= 768px
187
+ =mq768
188
+ @media only screen and (max-width: $XGAPortrait)
189
+ @content
190
+
191
+ // Phones landscape
192
+ =mq768and480
193
+ @media only screen and (min-width: $HVGA + 1) and (max-width: $XGAPortrait)
194
+ @content
195
+
196
+ // >= 640px
197
+ =mq640
198
+ @media only screen and (max-width: $VGA)
199
+ @content
200
+
201
+ // >= 480px
202
+ =mq480
203
+ @media only screen and (max-width: $HVGA)
204
+ @content
205
+
206
+ // Small phones (>=320px)
207
+ =mq320
208
+ @media only screen and (max-width: $QVGA)
209
+ @content
@@ -0,0 +1,42 @@
1
+ // ** Align icons
2
+ =alignIcon($top, $depth: true)
3
+ $top: lessPoint($top)
4
+ +pos("r", $top, false, false, false, false, $depth)
5
+
6
+ =pos($pos: "a", $top: false, $right: false, $bottom: false, $left: false, $zIndex: false, $depth: true)
7
+ @if $pos == "a"
8
+ $pos: "absolute"
9
+ @if $pos == "r"
10
+ $pos: "relative"
11
+ @if $pos == "f"
12
+ $pos: "fixed"
13
+ @if $depth
14
+ @if $pos == "absolute"
15
+ @extend %absolute
16
+ @else if $pos == "relative"
17
+ @extend %relative
18
+ @else if $pos == "fixed"
19
+ @extend %fixed
20
+ @else
21
+ position: $pos
22
+ @if $top
23
+ top: lessPoint($top)
24
+ @if $right
25
+ right: lessPoint($right)
26
+ @if $bottom
27
+ bottom: lessPoint($bottom)
28
+ @if $left
29
+ left: lessPoint($left)
30
+ @if $pos == "absolute" && $pos == "fixed"
31
+ @if $zIndex
32
+ z-index: $zIndex
33
+ @else
34
+ z-index: 1
35
+ @else
36
+ @if $zIndex
37
+ z-index: $zIndex
38
+
39
+ // ** Pseudo
40
+ =psAbsPos($top: false, $right: false, $bottom: false, $left: false, $zIndex: false)
41
+ +pos(absolute, $top, $right, $bottom, $left, $zIndex)
42
+ content: ''
@@ -0,0 +1,65 @@
1
+ // Determines if you want to include magic selectors in your sprites
2
+ $disable-magic-sprite-selectors:true
3
+
4
+ // sized sprites
5
+ =image-size($path)
6
+ width: image-width($path)
7
+ height: image-height($path)
8
+
9
+ //shortcut
10
+ =s($sprite, $map: $icons, $class: "icons")
11
+ @extend %#{$class}
12
+ +image-size(sprite-file($map, $sprite))
13
+ background-position: sprite-position($map, $sprite)
14
+
15
+ //only position of sprite, to remove flicker effect in chrome
16
+ =sp($sprite, $map: $icons, $class: "icons")
17
+ @extend %#{$class}
18
+ background-position: sprite-position($map, $sprite)
19
+
20
+ //icons centered on width
21
+ =centerWidthIcons($name, $map: $icons)
22
+ $width: image-width(sprite-file($map, $name))
23
+ margin-left: -($width/2)
24
+
25
+ //icons centered on height
26
+ =centerHeightIcons($name, $map: $icons)
27
+ $height: image-height(sprite-file($map, $name))
28
+ margin-top: -($height/2)
29
+
30
+ =sah($sprite, $map: $icons)
31
+ +s($sprite, $map)
32
+ +centerHeightIcons($sprite, $map)
33
+
34
+ =saw($sprite, $map: $icons)
35
+ +s($sprite, $map)
36
+ +centerWidthIcons($sprite, $map)
37
+
38
+ //icons centered function
39
+ =iconsPos($name, $distance, $alignmentHeight: true, $size: "right")
40
+ +s($name, $map: $icons)
41
+ margin-#{$size}: $distance
42
+ @if $alignmentHeight
43
+ +centerHeightIcons($name)
44
+ else
45
+ +centerWidthIcons($name)
46
+
47
+ // SVG
48
+ // insert svg
49
+ =svg($name, $width, $height, $folder: $svg-folder)
50
+ $width: lessPoint($width)
51
+ $height: lessPoint($height)
52
+ +dib(middle)
53
+ width: $width
54
+ height: $height
55
+ background: url('../images/#{$folder}/#{$name}.svg') no-repeat 0 0
56
+ +background-size($width $height)
57
+
58
+ // insert svg with fallback
59
+ =svgPng($name, $map: $icons, $folderSvg: $svg-folder)
60
+ $path: sprite-file($map, $name)
61
+ $width: image-width($path)
62
+ $height: image-height($path)
63
+ +svg($name, $width, $height, $folderSvg)
64
+ html.no-svg &
65
+ +s($name, $map)
@@ -0,0 +1,27 @@
1
+ // ** Responsive Web Design *width*--
2
+ @function rwd($elWidth, $parentWidth: $standard)
3
+ $elWidth: lessPoint($elWidth)
4
+ $parentWidth: lessPoint($parentWidth)
5
+ @return $elWidth * 100% / $parentWidth
6
+
7
+ =rwd($elWidth, $parentWidth: $standard)
8
+ width: rwd($elWidth, $parentWidth)
9
+
10
+ =center($Static: $standard, $Max: false, $Min: false)
11
+ @if ($Static)
12
+ width: lessPoint($Static)
13
+ @if ($Max)
14
+ max-width: lessPoint($Max)
15
+ @if ($Min)
16
+ min-width: lessPoint($Min)
17
+ margin: auto
18
+
19
+ // Proportion units
20
+ =propBl($width, $proportion: 1, $depth: true)
21
+ @if $depth
22
+ @extend %relative
23
+ @else
24
+ position: relative
25
+ overflow: hidden
26
+ width: $width
27
+ padding-bottom: $width/$proportion
@@ -0,0 +1,197 @@
1
+ $fancyboxPading: 15px
2
+
3
+ $fancyboxSkinBg: #f9f9f9
4
+ $fancyboxSkinFontColor: #444
5
+
6
+ $fancyboxLoadingSize: 44px
7
+ $fancyboxLoadingPos: $fancyboxLoadingSize/2
8
+
9
+ $fancyboxNavWidth: 40%
10
+ $fancyboxNavSpanWidtn: image-width(sprite-file($icons, fancyPrev))
11
+ $fancyboxNavSpanHeight: image-height(sprite-file($icons, fancyPrev))
12
+
13
+ $fancyboxOverlayBg: #000
14
+ $fancyboxOverlayA: .75
15
+
16
+ .fancybox-wrap,
17
+ .fancybox-skin,
18
+ .fancybox-outer,
19
+ .fancybox-inner,
20
+ .fancybox-image,
21
+ .fancybox-wrap iframe,
22
+ .fancybox-wrap object,
23
+ .fancybox-nav,
24
+ .fancybox-nav span,
25
+ .fancybox-tmp
26
+ +reset-box-model
27
+ vertical-align: top
28
+
29
+ .fancybox-wrap
30
+ +pos(absolute, 0, false, false, 0, 8020)
31
+ +focus
32
+ outline: none
33
+
34
+ .fancybox-skin
35
+ @extend %relative
36
+ background: $fancyboxSkinBg
37
+ border-radius: 4px
38
+ color: $fancyboxSkinFontColor
39
+ text-shadow: none
40
+
41
+ .fancybox-opened
42
+ z-index: 8030
43
+
44
+ .fancybox-skin
45
+ box-shadow: 0 10px 25px rgba(0, 0, 0, .5)
46
+
47
+ .fancybox-outer,
48
+ .fancybox-inner
49
+ @extend %relative
50
+
51
+ .fancybox-inner
52
+ overflow: hidden
53
+
54
+ .fancybox-type-iframe &
55
+ -webkit-overflow-scrolling: touch
56
+
57
+ .fancybox-error
58
+ padding: $fancyboxPading
59
+ margin: 0
60
+
61
+ color: $baseFontColor
62
+ font: italic bold $baseFontSize+unquote('/')+"normal" $baseFontFamily
63
+ font-size: rem($baseFontSize)
64
+ white-space: nowrap
65
+
66
+ .fancybox-image,
67
+ .fancybox-iframe
68
+ @extend %block, .full-size
69
+
70
+ .fancybox-image
71
+ max-width: 100%
72
+ max-height: 100%
73
+
74
+ #fancybox-loading
75
+ @extend %cur-pointer, .loading
76
+ +pos(fixed, 50%, false, false, 50%, 8060)
77
+ opacity: .8
78
+ width: $fancyboxLoadingSize
79
+ height: $fancyboxLoadingSize
80
+ margin: -$fancyboxLoadingPos 0 0 -$fancyboxLoadingPos
81
+ border-radius: 5px
82
+
83
+ .fancybox-close
84
+ @extend %cur-pointer, %no-select
85
+ +pos(absolute, -18px, -18px, false, false, 8040)
86
+ +s(fancyClose)
87
+ +h
88
+ opacity: .9
89
+
90
+ .fancybox-nav
91
+ @extend %cur-pointer
92
+ +pos(absolute, 0, false, false, false, 8040)
93
+ width: $fancyboxNavWidth
94
+ height: 100%
95
+ background: transparent
96
+ -webkit-tap-highlight-color: rgba(0,0,0,0)
97
+ text-decoration: none
98
+
99
+ +h
100
+ span
101
+ visibility: visible
102
+
103
+ span
104
+ @extend %cur-pointer
105
+ +pos(absolute, 50%, false, false, false, 8040)
106
+ visibility: hidden
107
+ width: $fancyboxNavSpanWidtn
108
+ height: $fancyboxNavSpanHeight
109
+ margin-top: -($fancyboxNavSpanWidtn/2)
110
+ +h
111
+ opacity: .9
112
+
113
+ .fancybox-prev
114
+ left: 0
115
+
116
+ span
117
+ left: 10px
118
+ +sp(fancyPrev)
119
+
120
+ .fancybox-next
121
+ right: 0
122
+
123
+ span
124
+ right: 10px
125
+ +sp(fancyNext)
126
+
127
+ .fancybox-tmp
128
+ +pos(absolute, -99999px, false, false, -99999px, false)
129
+ max-width: 99999px
130
+ max-height: 99999px
131
+ overflow: visible !important
132
+
133
+ /* Overlay helper */
134
+ .fancybox-lock
135
+ overflow: visible !important
136
+ width: auto
137
+
138
+ body
139
+ overflow: hidden !important
140
+
141
+ .fancybox-overlay
142
+ overflow: auto
143
+ overflow-y: scroll
144
+
145
+ .fancybox-lock-test
146
+ overflow-y: hidden !important
147
+
148
+ .fancybox-overlay
149
+ +pos(absolute, 0, false, false, 0, 8010)
150
+ overflow: hidden
151
+ display: none
152
+ +rgbaBg($fancyboxOverlayBg, $fancyboxOverlayA)
153
+
154
+ .fancybox-overlay-fixed
155
+ +pos(fixed, false, 0, 0, false, 8000)
156
+
157
+ /* Title helper */
158
+ .fancybox-title
159
+ @extend %relative
160
+ z-index: 8050
161
+ visibility: hidden
162
+ +shFont($baseFontSize, $baseFontFamily, "normal", false, 700, italic)
163
+ text-shadow: none
164
+
165
+ .fancybox-opened &
166
+ visibility: visible
167
+
168
+ .fancybox-title-float-wrap
169
+ @extend .tac
170
+ +pos(absolute, false, 50%, 0, false, 8050)
171
+ margin-bottom: -35px
172
+
173
+ .child
174
+ display: inline-block
175
+ padding: 2px 20px
176
+ margin-right: -100%
177
+ +rgbaBg(#000, .8)
178
+ border-radius: 15px
179
+ color: #FFF
180
+ font-weight: bold
181
+ text-shadow: 0 1px 2px #222
182
+ line-height: 24px
183
+ white-space: nowrap
184
+
185
+ .fancybox-title-outside-wrap
186
+ @extend %relative
187
+ margin-top: 10px
188
+ color: #fff
189
+
190
+ .fancybox-title-inside-wrap
191
+ padding-top: 10px
192
+
193
+ .fancybox-title-over-wrap
194
+ +pos(absolute, false, false, 0, 0, false)
195
+ padding: 10px
196
+ color: #fff
197
+ +rgbaBg(#000, .8)