simple_form_extension 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_form_extension/version.rb +1 -1
- data/simple_form_extension.gemspec +1 -0
- data/vendor/assets/stylesheets/overrides/_variables.scss +86 -0
- data/vendor/assets/stylesheets/overrides/fuelux.sass +40 -0
- data/vendor/assets/stylesheets/overrides/jasny.bootstrap.sass +41 -0
- data/vendor/assets/stylesheets/overrides/redactor.css.sass +88 -0
- data/vendor/assets/stylesheets/overrides/selectize.sass +39 -0
- metadata +21 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d4523dca61e652afcbbbf575a107fd2d67a46de
|
4
|
+
data.tar.gz: 36eeca76ad1bf4d5da545769a07b8089196c506a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbc5d23bc873583370f19d31ed38acce4483aa230cbd178acb89ec89d905ff8e933ee457dfc2ba5a22c9a9167d27b91b5b09171a25f9d0c6f4366369130b851c
|
7
|
+
data.tar.gz: 5d138020fa28f55d6e362fa23be0277b23dd93264c995085ec2f102c9c28d2ba4bf277aed2ba5b7f269f44e4e61179ead0d8ddaa356bbbbb12be099364401994
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'simple_form'
|
24
24
|
spec.add_dependency 'redactor-rails'
|
25
25
|
spec.add_dependency 'selectize-rails'
|
26
|
+
spec.add_dependency 'compass-rails'
|
26
27
|
|
27
28
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
28
29
|
spec.add_development_dependency 'rake'
|
@@ -0,0 +1,86 @@
|
|
1
|
+
// Grays
|
2
|
+
// -------------------------
|
3
|
+
$gray-darker: lighten(#000, 13.5%) !default; // #222
|
4
|
+
$gray-dark: #999999 !default;
|
5
|
+
$gray: #CCCCCC !default;
|
6
|
+
$gray-light: #EEEEEE !default;
|
7
|
+
$gray-lighter: #D5D5D5 !default;
|
8
|
+
|
9
|
+
|
10
|
+
// Brand colors
|
11
|
+
// -------------------------
|
12
|
+
$brand-primary: #33414e !default;
|
13
|
+
$brand-success: #95b75d !default;
|
14
|
+
$brand-warning: #fea223 !default;
|
15
|
+
$brand-danger: #b64645 !default;
|
16
|
+
$brand-info: #3fbae4 !default;
|
17
|
+
|
18
|
+
|
19
|
+
// Components
|
20
|
+
// -------------------------
|
21
|
+
$border-radius-base: 2px !default;
|
22
|
+
|
23
|
+
$component-active-color: #fff !default;
|
24
|
+
$component-active-bg: $gray-light !default;
|
25
|
+
|
26
|
+
|
27
|
+
// Buttons
|
28
|
+
// -------------------------
|
29
|
+
$btn-default-color: #333 !default;
|
30
|
+
$btn-default-bg: #f5f5f5 !default;
|
31
|
+
$btn-default-border: #ccc !default;
|
32
|
+
|
33
|
+
$btn-primary-color: #fff !default;
|
34
|
+
$btn-primary-bg: $brand-primary !default;
|
35
|
+
$btn-primary-border: #29343f !default;
|
36
|
+
|
37
|
+
$btn-success-color: #fff !default;
|
38
|
+
$btn-success-bg: $brand-success !default;
|
39
|
+
$btn-success-border: #89ad4d !default;
|
40
|
+
|
41
|
+
$btn-warning-color: #fff !default;
|
42
|
+
$btn-warning-bg: $brand-warning !default;
|
43
|
+
$btn-warning-border: #fe970a !default;
|
44
|
+
|
45
|
+
$btn-danger-color: #fff !default;
|
46
|
+
$btn-danger-bg: $brand-danger !default;
|
47
|
+
$btn-danger-border: #a43f3e !default;
|
48
|
+
|
49
|
+
$btn-info-color: #fff !default;
|
50
|
+
$btn-info-bg: $brand-info !default;
|
51
|
+
$btn-info-border: #29b2e1 !default;
|
52
|
+
|
53
|
+
$btn-link-disabled-color: $gray-light !default;
|
54
|
+
|
55
|
+
|
56
|
+
// Forms
|
57
|
+
// -------------------------
|
58
|
+
$input-bg: #F9F9F9 !default;
|
59
|
+
$input-bg-disabled: $gray-light !default;
|
60
|
+
|
61
|
+
$input-color: $gray-darker !default;
|
62
|
+
$input-border: $gray-lighter !default;
|
63
|
+
$input-border-radius: $border-radius-base !default;
|
64
|
+
$input-border-focus: #C1C1C1 !default;
|
65
|
+
|
66
|
+
$input-group-addon-bg: $gray-lighter !default;
|
67
|
+
$input-group-addon-border-color: $input-border !default;
|
68
|
+
|
69
|
+
|
70
|
+
// Dropdowns
|
71
|
+
// -------------------------
|
72
|
+
$dropdown-bg: #fff !default;
|
73
|
+
$dropdown-border: #e5e5e5 !default;
|
74
|
+
$dropdown-fallback-border: #ccc !default;
|
75
|
+
$dropdown-divider-bg: #e5e5e5 !default;
|
76
|
+
|
77
|
+
$dropdown-link-color: $gray-darker !default;
|
78
|
+
$dropdown-link-hover-color: darken($gray-darker, 5%) !default;
|
79
|
+
$dropdown-link-hover-bg: darken(#fff, 5%) !default;
|
80
|
+
|
81
|
+
$dropdown-link-active-color: $component-active-color !default;
|
82
|
+
$dropdown-link-active-bg: $component-active-bg !default;
|
83
|
+
|
84
|
+
$dropdown-link-disabled-color: $gray-light !default;
|
85
|
+
|
86
|
+
$dropdown-header-color: #777 !default;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@import "variables"
|
2
|
+
|
3
|
+
@import "compass/css3/box-shadow"
|
4
|
+
@import "compass/css3/border-radius"
|
5
|
+
|
6
|
+
input[type=number]::-webkit-inner-spin-button,
|
7
|
+
input[type=number]::-webkit-outer-spin-button
|
8
|
+
-webkit-appearance: none
|
9
|
+
margin: 0
|
10
|
+
|
11
|
+
.spinner,
|
12
|
+
.spinner-box-input
|
13
|
+
.spinner-buttons
|
14
|
+
height: 100%
|
15
|
+
.btn
|
16
|
+
position: relative
|
17
|
+
height: 50%
|
18
|
+
padding: 3px 9px
|
19
|
+
line-height: 0px
|
20
|
+
font-size: 10px
|
21
|
+
top: 0px
|
22
|
+
margin-left: -1px !important
|
23
|
+
border-color: $input-border
|
24
|
+
+box-shadow(none)
|
25
|
+
z-index: 2
|
26
|
+
.fa
|
27
|
+
font-size: 1em
|
28
|
+
margin-right: 0
|
29
|
+
line-height: 9px
|
30
|
+
&.disabled
|
31
|
+
cursor: not-allowed
|
32
|
+
&:hover,
|
33
|
+
&:focus
|
34
|
+
+box-shadow(none)
|
35
|
+
.spinner-up
|
36
|
+
+border-top-left-radius(0 !important)
|
37
|
+
+border-top-right-radius($input-border-radius !important)
|
38
|
+
.spinner-down
|
39
|
+
+border-bottom-left-radius(0 !important)
|
40
|
+
padding: 3px 9px 2px 9px
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/* Jasny Bootstrap Fileupload overrides */
|
2
|
+
|
3
|
+
@import "variables"
|
4
|
+
@import "compass/css3/border-radius"
|
5
|
+
|
6
|
+
.fileinput
|
7
|
+
margin-bottom: 0
|
8
|
+
display: block
|
9
|
+
.uneditable-input
|
10
|
+
background-color: $input-bg-disabled
|
11
|
+
|
12
|
+
.fileinput-new.input-group .btn-file
|
13
|
+
.fileinput.input-group .btn-file
|
14
|
+
+border-right-radius($border-radius-base)
|
15
|
+
border-color: $input-border
|
16
|
+
|
17
|
+
.fileinput.input-group .input-group-btn
|
18
|
+
.form-control.file
|
19
|
+
padding: 0 !important
|
20
|
+
position: absolute
|
21
|
+
|
22
|
+
.fileinput
|
23
|
+
.input-group-btn > .btn:hover,
|
24
|
+
.input-group-btn > .btn:focus,
|
25
|
+
.input-group-btn > .btn:active
|
26
|
+
z-index: 0
|
27
|
+
|
28
|
+
.fileinput-preview.thumbnail
|
29
|
+
width: auto
|
30
|
+
height: auto
|
31
|
+
min-width: 80px
|
32
|
+
min-height: 80px
|
33
|
+
max-height: 500px
|
34
|
+
margin-bottom: 0
|
35
|
+
margin-top: 5px
|
36
|
+
background-color: $input-bg
|
37
|
+
|
38
|
+
.empty-thumbnail
|
39
|
+
width: 250px
|
40
|
+
height: 200px
|
41
|
+
background-color: $input-bg
|
@@ -0,0 +1,88 @@
|
|
1
|
+
@import "variables"
|
2
|
+
@import "compass/css3/border-radius"
|
3
|
+
@import "compass/css3/box-shadow"
|
4
|
+
|
5
|
+
.redactor-button-disabled
|
6
|
+
&:hover,
|
7
|
+
&:focus
|
8
|
+
background-color: transparent !important
|
9
|
+
color: #333 !important
|
10
|
+
cursor: disabled
|
11
|
+
|
12
|
+
.redactor-dropdown a
|
13
|
+
color: $dropdown-link-color
|
14
|
+
&:hover,
|
15
|
+
&:focus
|
16
|
+
background-color: $dropdown-link-hover-bg
|
17
|
+
color: $dropdown-link-hover-color !important
|
18
|
+
|
19
|
+
.redactor-box
|
20
|
+
.redactor-toolbar
|
21
|
+
/* Override z-index because we don't whant */
|
22
|
+
/* redactor_toolbar fixed somewhere or on top of everythink ..*/
|
23
|
+
z-index: 1 !important
|
24
|
+
+box-shadow(none)
|
25
|
+
+border-radius($input-border-radius $input-border-radius 0 0)
|
26
|
+
border: 1px solid $input-border
|
27
|
+
li a
|
28
|
+
&:hover,
|
29
|
+
&:focus
|
30
|
+
background-color: $btn-primary-bg
|
31
|
+
color: $btn-primary-color
|
32
|
+
|
33
|
+
.redactor-editor
|
34
|
+
background-color: $input-bg
|
35
|
+
border: 1px solid $input-border
|
36
|
+
border-top-width: 0px
|
37
|
+
+border-radius(0 0 $input-border-radius $input-border-radius)
|
38
|
+
&:focus
|
39
|
+
border-color: $input-border-focus
|
40
|
+
background: #FFF
|
41
|
+
&[disabled], &[readonly]
|
42
|
+
color: #CCC
|
43
|
+
&[disabled]:focus, &[readonly]:focus
|
44
|
+
background: $input-bg-disabled
|
45
|
+
color: #CCC
|
46
|
+
border-color: $gray-lighter
|
47
|
+
|
48
|
+
textarea.form-control
|
49
|
+
background-color: $input-bg
|
50
|
+
color: $input-color
|
51
|
+
border: 1px solid $input-border
|
52
|
+
border-top-width: 0px
|
53
|
+
&:focus
|
54
|
+
background-color: #111
|
55
|
+
color: $gray-lighter
|
56
|
+
|
57
|
+
.redactor-editor
|
58
|
+
div.row
|
59
|
+
margin-left: -15px
|
60
|
+
margin-right: -15px
|
61
|
+
margin-bottom: 0
|
62
|
+
div[class^=col-lg-], div[class^=col-md-], div[class^=col-sm-], div[class^=col-xs-]
|
63
|
+
padding-left: 15px
|
64
|
+
padding-right: 15px
|
65
|
+
border: 1px dashed $gray-light
|
66
|
+
margin-bottom: 0
|
67
|
+
|
68
|
+
#redactor-modal
|
69
|
+
input[type="text"],
|
70
|
+
input[type="password"],
|
71
|
+
input[type="email"],
|
72
|
+
textarea
|
73
|
+
border-color: $input-border
|
74
|
+
background-color: $input-bg
|
75
|
+
color: $input-color
|
76
|
+
+box-shadow(none)
|
77
|
+
&:focus
|
78
|
+
background-color: #fff
|
79
|
+
border-color: $input-border-focus
|
80
|
+
+box-shadow(none)
|
81
|
+
|
82
|
+
footer
|
83
|
+
button.redactor-modal-action-btn
|
84
|
+
background-color: $btn-primary-bg
|
85
|
+
color: $btn-primary-color
|
86
|
+
&:hover,
|
87
|
+
&:focus
|
88
|
+
background-color: darken($btn-primary-bg, 5%)
|
@@ -0,0 +1,39 @@
|
|
1
|
+
@import "variables"
|
2
|
+
@import "compass/css3/border-radius"
|
3
|
+
|
4
|
+
.selectize-dropdown,
|
5
|
+
.selectize-dropdown.form-control
|
6
|
+
+border-radius($border-radius-base)
|
7
|
+
|
8
|
+
.selectize-input
|
9
|
+
border-color: $input-border
|
10
|
+
+border-radius($input-border-radius)
|
11
|
+
&.focus
|
12
|
+
border-color: $input-border-focus
|
13
|
+
&.dropdown-active
|
14
|
+
+border-radius($input-border-radius)
|
15
|
+
|
16
|
+
.selectize-dropdown,
|
17
|
+
.selectize-input,
|
18
|
+
.selectize-input input
|
19
|
+
color: $input-color
|
20
|
+
|
21
|
+
.selectize-input,
|
22
|
+
.selectize-control.single
|
23
|
+
.selectize-input.input-active
|
24
|
+
background: $input-bg
|
25
|
+
|
26
|
+
.selectize-dropdown
|
27
|
+
[data-selectable]
|
28
|
+
background-color: $dropdown-bg
|
29
|
+
color: $dropdown-link-color
|
30
|
+
.active
|
31
|
+
background-color: $dropdown-link-hover-bg
|
32
|
+
color: $dropdown-link-hover-color
|
33
|
+
.selected
|
34
|
+
background-color: $dropdown-link-active-bg
|
35
|
+
color: $dropdown-link-active-color
|
36
|
+
|
37
|
+
.selectize-dropdown-content
|
38
|
+
padding: 0
|
39
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Vasseur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: compass-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +159,11 @@ files:
|
|
145
159
|
- vendor/assets/javascripts/spinbox.js
|
146
160
|
- vendor/assets/stylesheets/jasny-bootstrap.css
|
147
161
|
- vendor/assets/stylesheets/jquery.datetimepicker.css
|
162
|
+
- vendor/assets/stylesheets/overrides/_variables.scss
|
163
|
+
- vendor/assets/stylesheets/overrides/fuelux.sass
|
164
|
+
- vendor/assets/stylesheets/overrides/jasny.bootstrap.sass
|
165
|
+
- vendor/assets/stylesheets/overrides/redactor.css.sass
|
166
|
+
- vendor/assets/stylesheets/overrides/selectize.sass
|
148
167
|
- vendor/assets/stylesheets/simple_form_extension.sass
|
149
168
|
homepage: http://www.glyph.fr
|
150
169
|
licenses:
|