rtpl-compass 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +102 -0
- data/lib/config.rb +5 -0
- data/lib/rtpl-compass.rb +60 -0
- data/templates/project/css/dev.css +3 -0
- data/templates/project/files/compass_watch.bat +1 -0
- data/templates/project/files/readme.txt +36 -0
- data/templates/project/ie-old/favicon.ico +0 -0
- data/templates/project/ie-old/images/as.jpg +0 -0
- data/templates/project/ie-old/images/bg_span_wol.gif +0 -0
- data/templates/project/ie-old/images/f.jpg +0 -0
- data/templates/project/ie-old/images/gc.jpg +0 -0
- data/templates/project/ie-old/images/h.jpg +0 -0
- data/templates/project/ie-old/images/ie.jpg +0 -0
- data/templates/project/ie-old/images/mf.jpg +0 -0
- data/templates/project/ie-old/images/op.jpg +0 -0
- data/templates/project/ie-old/images/td1.jpg +0 -0
- data/templates/project/ie-old/images/td2.jpg +0 -0
- data/templates/project/ie-old/images/td3.jpg +0 -0
- data/templates/project/ie-old/index.html +175 -0
- data/templates/project/images/fancyClose.png +0 -0
- data/templates/project/images/fancyNext.png +0 -0
- data/templates/project/images/fancyPrev.png +0 -0
- data/templates/project/images/favicon.png +0 -0
- data/templates/project/images/loading.gif +0 -0
- data/templates/project/images/noimg.jpg +0 -0
- data/templates/project/images/screenshot.jpg +0 -0
- data/templates/project/index.html +24 -0
- data/templates/project/index.php +79 -0
- data/templates/project/js/full/example.js +1 -0
- data/templates/project/js/full/ph.js +33 -0
- data/templates/project/js/full/rform.js +416 -0
- data/templates/project/js/full/scripts.js +1 -0
- data/templates/project/js/init.js +41 -0
- data/templates/project/js/min/head.min.js +9 -0
- data/templates/project/js/min/jquery.fancybox.min.js +46 -0
- data/templates/project/js/min/ph.min.js +2 -0
- data/templates/project/manifest.rb +96 -0
- data/templates/project/sass/index.sass +36 -0
- data/templates/project/sass/source/_buttons.sass +35 -0
- data/templates/project/sass/source/_formstyle.sass +150 -0
- data/templates/project/sass/source/_global.sass +62 -0
- data/templates/project/sass/source/_reset.sass +93 -0
- data/templates/project/sass/source/_typography.sass +111 -0
- data/templates/project/sass/source/bl/_content.sass +1 -0
- data/templates/project/sass/source/bl/_footer.sass +1 -0
- data/templates/project/sass/source/bl/_header.sass +1 -0
- data/templates/project/sass/source/lib/_default.sass +226 -0
- data/templates/project/sass/source/lib/_mixins.sass +15 -0
- data/templates/project/sass/source/lib/mixins/_animations.sass +85 -0
- data/templates/project/sass/source/lib/mixins/_background.sass +41 -0
- data/templates/project/sass/source/lib/mixins/_base.sass +158 -0
- data/templates/project/sass/source/lib/mixins/_browsers.sass +54 -0
- data/templates/project/sass/source/lib/mixins/_fonts.sass +84 -0
- data/templates/project/sass/source/lib/mixins/_forms.sass +16 -0
- data/templates/project/sass/source/lib/mixins/_gridsystem.sass +66 -0
- data/templates/project/sass/source/lib/mixins/_media.sass +209 -0
- data/templates/project/sass/source/lib/mixins/_positions.sass +42 -0
- data/templates/project/sass/source/lib/mixins/_sprites.sass +65 -0
- data/templates/project/sass/source/lib/mixins/_width.sass +27 -0
- data/templates/project/sass/source/plugins/_jquery.fancybox.sass +197 -0
- data/templates/project/sass/source/plugins/_rforms.sass +258 -0
- metadata +105 -0
@@ -0,0 +1,258 @@
|
|
1
|
+
// Global settings
|
2
|
+
|
3
|
+
=hasDisabled
|
4
|
+
&.has-disabled
|
5
|
+
@extend %cur-not-allowed, %no-select
|
6
|
+
opacity: .5
|
7
|
+
@content
|
8
|
+
|
9
|
+
// Value
|
10
|
+
$fieldHasValueBg: #ecf9ff
|
11
|
+
$fieldHasValueBorder: #3eb6e9
|
12
|
+
$fieldHasValueColor: #000
|
13
|
+
|
14
|
+
// Field JS
|
15
|
+
$FieldJS: false
|
16
|
+
|
17
|
+
// Select JS
|
18
|
+
$SelectJS: true
|
19
|
+
$SelectJSUserScroll: false
|
20
|
+
$slctArrowWidth: 10px
|
21
|
+
$slctArrowHeight: 10px
|
22
|
+
$slctArrowColor: #bdc3c7
|
23
|
+
$slctArrowPosRight: 10px
|
24
|
+
$slctArrowContainer: $fieldHelperContainer
|
25
|
+
$maxHeightPoint: 3
|
26
|
+
$slctdropBg: #FFF
|
27
|
+
$slctdropItemColor: #444
|
28
|
+
$slctdropItemBgHover: $fieldHasValueBg
|
29
|
+
|
30
|
+
// Radio JS
|
31
|
+
$RadioJS: true
|
32
|
+
$radioIconVal: radio
|
33
|
+
$radioDefaultIcon: #{$radioIconVal}_inactive
|
34
|
+
$radioActiveIcon: #{$radioIconVal}_active
|
35
|
+
$radioPadding: 30px
|
36
|
+
$radioMargin: 0 10px
|
37
|
+
|
38
|
+
// Checkboxes JS
|
39
|
+
$CheckboxesJS: true
|
40
|
+
$checkIconVal: check
|
41
|
+
$checkDefaultIcon: #{$checkIconVal}_inactive
|
42
|
+
$checkActiveIcon: #{$checkIconVal}_active
|
43
|
+
$checkPadding: 30px
|
44
|
+
|
45
|
+
// Files JS
|
46
|
+
$FilesJS: false
|
47
|
+
$fileloadFieldWidth: 73%
|
48
|
+
$fileloadBtnWidth: 25%
|
49
|
+
|
50
|
+
// Textarea JS
|
51
|
+
$TextareaJS: false
|
52
|
+
$TextareaJSHeigth: 255px
|
53
|
+
|
54
|
+
.field-fake
|
55
|
+
@extend %relative, %ellipsis
|
56
|
+
padding-top: 0
|
57
|
+
padding-bottom: 0
|
58
|
+
line-height: $fieldDefaultHeight
|
59
|
+
|
60
|
+
.rform-field-box
|
61
|
+
@extend .field-box
|
62
|
+
|
63
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
64
|
+
// --- Field JS -------------------------------------------------------------------------------------------------------
|
65
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
66
|
+
|
67
|
+
@if $FieldJS
|
68
|
+
.field
|
69
|
+
// Action
|
70
|
+
.has-value &
|
71
|
+
border-color: $fieldHasValueBorder
|
72
|
+
background: $fieldHasValueBg
|
73
|
+
color: $fieldHasValueColor
|
74
|
+
|
75
|
+
.has-active &
|
76
|
+
border-color: $fieldHasActiveBorder
|
77
|
+
background: $fieldHasActiveBg
|
78
|
+
color: $fieldHasActiveColor
|
79
|
+
|
80
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
81
|
+
// --- Select JS -------------------------------------------------------------------------------------------------------
|
82
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
83
|
+
|
84
|
+
@if $SelectJS
|
85
|
+
.rform-select-box
|
86
|
+
width: $fieldDefaultWidth
|
87
|
+
.field-hidden
|
88
|
+
opacity: 0
|
89
|
+
.rform-field-slct
|
90
|
+
@extend .full-width
|
91
|
+
|
92
|
+
.rform-field-slct
|
93
|
+
@extend %cur-pointer
|
94
|
+
padding-right: $slctArrowContainer
|
95
|
+
color: $fieldDefaultPlaceholderColor
|
96
|
+
+af
|
97
|
+
+arrow("bottom", $slctArrowWidth, $slctArrowHeight, $slctArrowColor, true, false)
|
98
|
+
right: $slctArrowPosRight
|
99
|
+
top: 50%
|
100
|
+
margin-top: -($slctArrowHeight/2)
|
101
|
+
|
102
|
+
// Action
|
103
|
+
.has-value &
|
104
|
+
+af
|
105
|
+
border-top-color: $fieldHasValueBorder
|
106
|
+
|
107
|
+
.has-active &
|
108
|
+
+af
|
109
|
+
+triangle($slctArrowWidth, $slctArrowHeight, $fieldHasActiveBorder, "top")
|
110
|
+
|
111
|
+
.has-disabled &
|
112
|
+
+af
|
113
|
+
border-top-color: $fieldHasDisabledColor
|
114
|
+
|
115
|
+
@if $fieldHasErrorStyle
|
116
|
+
.has-error &
|
117
|
+
+af
|
118
|
+
border-top-color: $fieldHasErrorColor
|
119
|
+
|
120
|
+
.has-error.has-active &
|
121
|
+
+af
|
122
|
+
border-bottom-color: $fieldHasErrorColor
|
123
|
+
|
124
|
+
.rform-slctdrop
|
125
|
+
@extend %none, .full-width
|
126
|
+
+pos("a", 100%, false, false, 0, 500)
|
127
|
+
max-height: $fieldDefaultHeight*$maxHeightPoint
|
128
|
+
background-color: $slctdropBg
|
129
|
+
border: 1px solid #bdc3c7
|
130
|
+
border-radius: 5px
|
131
|
+
+shFont($fieldDefaultFontSize, $fieldDefaultFontFamily, false)
|
132
|
+
|
133
|
+
.rform-slctdrop-item
|
134
|
+
@extend %cur-pointer, %block
|
135
|
+
padding: 0 10px
|
136
|
+
color: $slctdropItemColor
|
137
|
+
line-height: $fieldDefaultHeight
|
138
|
+
|
139
|
+
+h
|
140
|
+
background-color: $slctdropItemBgHover
|
141
|
+
|
142
|
+
+first
|
143
|
+
border-radius: 5px 5px 0 0
|
144
|
+
|
145
|
+
+last
|
146
|
+
border-radius: 0 0 5px 5px
|
147
|
+
|
148
|
+
.rform-select-box-with-icons
|
149
|
+
.rform-slctdrop-item-inner
|
150
|
+
@extend .has-ps-left-icon
|
151
|
+
padding-left: 20px
|
152
|
+
|
153
|
+
&.rform-slctdrop-item-inner-empty
|
154
|
+
padding-left: 0
|
155
|
+
|
156
|
+
@if $SelectJSUserScroll
|
157
|
+
.mCS-rform-slctdrop.mCSB_scrollTools
|
158
|
+
margin: 5px 0
|
159
|
+
.mCSB_draggerRail
|
160
|
+
background: none
|
161
|
+
|
162
|
+
.mCSB_dragger
|
163
|
+
+h
|
164
|
+
.mCSB_dragger_bar
|
165
|
+
+rgbaBg(#0253A5, .7)
|
166
|
+
&.mCSB_dragger_onDrag
|
167
|
+
.mCSB_dragger_bar
|
168
|
+
+rgbaBg(#0253A5, .7)
|
169
|
+
.mCSB_dragger_bar
|
170
|
+
background-color: #0253A5
|
171
|
+
|
172
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
173
|
+
// --- Radio JS --------------------------------------------------------------------------------------------------------
|
174
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
175
|
+
|
176
|
+
@if $RadioJS
|
177
|
+
.rform-radio-box
|
178
|
+
@extend %no-select
|
179
|
+
line-height: $fieldDefaultHeight
|
180
|
+
|
181
|
+
+hasDisabled
|
182
|
+
.rform-radio
|
183
|
+
@extend %cur-not-allowed
|
184
|
+
|
185
|
+
.rform-radio
|
186
|
+
@extend %cur-pointer
|
187
|
+
padding-left: $radioPadding
|
188
|
+
margin: $radioMargin
|
189
|
+
|
190
|
+
+bf
|
191
|
+
+s($radioDefaultIcon)
|
192
|
+
+centerHeightIcons($radioDefaultIcon)
|
193
|
+
|
194
|
+
&.has-active
|
195
|
+
+bf
|
196
|
+
+sp($radioActiveIcon)
|
197
|
+
|
198
|
+
// .rform-radio-text
|
199
|
+
|
200
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
201
|
+
// --- Checkboxes JS ---------------------------------------------------------------------------------------------------
|
202
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
203
|
+
|
204
|
+
@if $CheckboxesJS
|
205
|
+
.rform-check-box
|
206
|
+
@extend %cur-pointer, %no-select, .has-ps-left-icon
|
207
|
+
padding-left: $checkPadding
|
208
|
+
line-height: $fieldDefaultHeight
|
209
|
+
+bf
|
210
|
+
+s($checkDefaultIcon)
|
211
|
+
+centerHeightIcons($checkDefaultIcon)
|
212
|
+
|
213
|
+
&.has-active
|
214
|
+
+bf
|
215
|
+
+sp($checkActiveIcon)
|
216
|
+
|
217
|
+
+hasDisabled
|
218
|
+
|
219
|
+
// .rform-check-text
|
220
|
+
|
221
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
222
|
+
// --- Files JS --------------------------------------------------------------------------------------------------------
|
223
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
224
|
+
|
225
|
+
@if $FilesJS
|
226
|
+
.rform-file-box
|
227
|
+
@extend %relative, %no-select
|
228
|
+
width: $fieldDefaultWidth
|
229
|
+
&.only-button
|
230
|
+
width: auto
|
231
|
+
.rform-file-btn
|
232
|
+
width: auto
|
233
|
+
&.full
|
234
|
+
@extend .full-width
|
235
|
+
|
236
|
+
.rform-field-file
|
237
|
+
width: $fileloadFieldWidth
|
238
|
+
|
239
|
+
.rform-file-btn
|
240
|
+
width: $fileloadBtnWidth
|
241
|
+
|
242
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
243
|
+
// --- Textarea JS --------------------------------------------------------------------------------------------------------
|
244
|
+
// ---------------------------------------------------------------------------------------------------------------------
|
245
|
+
|
246
|
+
@if $TextareaJS
|
247
|
+
.rform-area-box
|
248
|
+
@extend %relative, %no-select
|
249
|
+
|
250
|
+
.rform-area
|
251
|
+
height: $TextareaJSHeigth
|
252
|
+
overflow: auto
|
253
|
+
|
254
|
+
+focus
|
255
|
+
outline: none
|
256
|
+
|
257
|
+
&.has-inactive
|
258
|
+
color: $fieldDefaultPlaceholderColor
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rtpl-compass
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sergii Rudchyk
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A compass template (Sass syntax) implementation of Sergii Rudchyk's
|
14
|
+
email:
|
15
|
+
- sergii.rudchyk@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- README.md
|
21
|
+
- lib/config.rb
|
22
|
+
- lib/rtpl-compass.rb
|
23
|
+
- templates/project/css/dev.css
|
24
|
+
- templates/project/files/compass_watch.bat
|
25
|
+
- templates/project/files/readme.txt
|
26
|
+
- templates/project/ie-old/favicon.ico
|
27
|
+
- templates/project/ie-old/images/as.jpg
|
28
|
+
- templates/project/ie-old/images/bg_span_wol.gif
|
29
|
+
- templates/project/ie-old/images/f.jpg
|
30
|
+
- templates/project/ie-old/images/gc.jpg
|
31
|
+
- templates/project/ie-old/images/h.jpg
|
32
|
+
- templates/project/ie-old/images/ie.jpg
|
33
|
+
- templates/project/ie-old/images/mf.jpg
|
34
|
+
- templates/project/ie-old/images/op.jpg
|
35
|
+
- templates/project/ie-old/images/td1.jpg
|
36
|
+
- templates/project/ie-old/images/td2.jpg
|
37
|
+
- templates/project/ie-old/images/td3.jpg
|
38
|
+
- templates/project/ie-old/index.html
|
39
|
+
- templates/project/images/fancyClose.png
|
40
|
+
- templates/project/images/fancyNext.png
|
41
|
+
- templates/project/images/fancyPrev.png
|
42
|
+
- templates/project/images/favicon.png
|
43
|
+
- templates/project/images/loading.gif
|
44
|
+
- templates/project/images/noimg.jpg
|
45
|
+
- templates/project/images/screenshot.jpg
|
46
|
+
- templates/project/index.html
|
47
|
+
- templates/project/index.php
|
48
|
+
- templates/project/js/full/example.js
|
49
|
+
- templates/project/js/full/ph.js
|
50
|
+
- templates/project/js/full/rform.js
|
51
|
+
- templates/project/js/full/scripts.js
|
52
|
+
- templates/project/js/init.js
|
53
|
+
- templates/project/js/min/head.min.js
|
54
|
+
- templates/project/js/min/jquery.fancybox.min.js
|
55
|
+
- templates/project/js/min/ph.min.js
|
56
|
+
- templates/project/manifest.rb
|
57
|
+
- templates/project/sass/index.sass
|
58
|
+
- templates/project/sass/source/_buttons.sass
|
59
|
+
- templates/project/sass/source/_formstyle.sass
|
60
|
+
- templates/project/sass/source/_global.sass
|
61
|
+
- templates/project/sass/source/_reset.sass
|
62
|
+
- templates/project/sass/source/_typography.sass
|
63
|
+
- templates/project/sass/source/bl/_content.sass
|
64
|
+
- templates/project/sass/source/bl/_footer.sass
|
65
|
+
- templates/project/sass/source/bl/_header.sass
|
66
|
+
- templates/project/sass/source/lib/_default.sass
|
67
|
+
- templates/project/sass/source/lib/_mixins.sass
|
68
|
+
- templates/project/sass/source/lib/mixins/_animations.sass
|
69
|
+
- templates/project/sass/source/lib/mixins/_background.sass
|
70
|
+
- templates/project/sass/source/lib/mixins/_base.sass
|
71
|
+
- templates/project/sass/source/lib/mixins/_browsers.sass
|
72
|
+
- templates/project/sass/source/lib/mixins/_fonts.sass
|
73
|
+
- templates/project/sass/source/lib/mixins/_forms.sass
|
74
|
+
- templates/project/sass/source/lib/mixins/_gridsystem.sass
|
75
|
+
- templates/project/sass/source/lib/mixins/_media.sass
|
76
|
+
- templates/project/sass/source/lib/mixins/_positions.sass
|
77
|
+
- templates/project/sass/source/lib/mixins/_sprites.sass
|
78
|
+
- templates/project/sass/source/lib/mixins/_width.sass
|
79
|
+
- templates/project/sass/source/plugins/_jquery.fancybox.sass
|
80
|
+
- templates/project/sass/source/plugins/_rforms.sass
|
81
|
+
homepage: ''
|
82
|
+
licenses:
|
83
|
+
- MIT
|
84
|
+
metadata: {}
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 2.4.5
|
99
|
+
requirements: []
|
100
|
+
rubyforge_project: rtpl-compass
|
101
|
+
rubygems_version: 2.4.6
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: Sergii Rudchyk's compass template
|
105
|
+
test_files: []
|