formtastic-plus-flatui 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Andreas Knöpfle
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ formtastic-plus-flatui
2
+ ======================
3
+ Have following scss imports with this:
4
+
5
+ '@import "bootstrap-without-forms";'
6
+ '@import "formtastic-plus-bootstrap";'
7
+ '@import "font-awesome";'
8
+ '@import "flat-ui";'
9
+ '@import "formtastic-plus-flatui";'
10
+
11
+ == Contributing to formtastic-plus-flatui
12
+
13
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
14
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
15
+ * Fork the project.
16
+ * Start a feature/bugfix branch.
17
+ * Commit and push until you are happy with your contribution.
18
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
19
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
20
+
21
+ == Copyright
22
+
23
+ Copyright (c) 2013 Andreas Knöpfle. See LICENSE.txt for
24
+ further details.
25
+
@@ -0,0 +1,55 @@
1
+ @import 'flat-ui/config';
2
+ @import 'flat-ui/mixins';
3
+ @import 'bootstrap/mixins';
4
+
5
+ .formtastic > fieldset > ol > li.boolean > label ,
6
+ .formtastic > fieldset > ol > li.check_boxes > fieldset.choices > ol.choices-group > li.choice {
7
+ @include user-select(none);
8
+
9
+ input {
10
+ outline: none !important;
11
+ margin-right: 15px !important;
12
+
13
+ }
14
+
15
+ input:before {
16
+ font-family: 'Flat-UI-Icons-16';
17
+ font-family: FontAwesome;
18
+ font-weight: normal;
19
+ font-style: normal;
20
+ font-size: 1.5em;
21
+ text-decoration: inherit;
22
+ -webkit-font-smoothing: antialiased;
23
+ content: "\F0C8";
24
+ color: #FFFFFF;
25
+
26
+ }
27
+
28
+ input:after {
29
+ font-family: 'Flat-UI-Icons-16';
30
+ font-family: FontAwesome;
31
+ font-weight: normal;
32
+ font-style: normal;
33
+ font-size: 1.5em;
34
+ text-decoration: inherit;
35
+ -webkit-font-smoothing: antialiased;
36
+ content: "\F0C8";
37
+ color: $firm;
38
+ position:relative;
39
+ left:-16px;
40
+ }
41
+
42
+
43
+ input:checked:after {
44
+ content: "\F14A";
45
+ }
46
+ // Disabled state
47
+ input:disabled:after {
48
+ color: scale-color($gray, $lightness: 62%);
49
+ cursor: default;
50
+
51
+ }
52
+
53
+
54
+ }
55
+
@@ -0,0 +1,29 @@
1
+ @import 'flat-ui/config';
2
+ @import 'flat-ui/mixins';
3
+
4
+ form.formtastic > fieldset.inputs > ol > li.string.input > input[type="text"],
5
+ form.formtastic > fieldset.inputs > ol > li.password.input > input[type="password"],
6
+ form.formtastic > fieldset.inputs > ol > li.text.input > textarea,
7
+ form.formtastic > fieldset.inputs > ol > li.number.input > input[type="number"], {
8
+
9
+ border: 2px solid scale-color($base, $lightness: 85%);
10
+ color: $base ;
11
+ font-family: $base-font-family ;
12
+ font-size: $base-font-size ;
13
+ padding: 8px 0 9px 10px ;
14
+ text-indent: 1px;
15
+ @include border-radius(6px);
16
+ @include box-shadow(none);
17
+ @include placeholder-color(desaturate(scale-color($base, $lightness: 60%), 15%));
18
+
19
+ &:focus{
20
+ border-color: $firm ;
21
+ @include box-shadow(none);
22
+ }
23
+
24
+ li.error & {
25
+ border-color: $danger ;
26
+ color: $danger ;
27
+ }
28
+
29
+ }
@@ -0,0 +1,59 @@
1
+ @import 'flat-ui/config';
2
+ @import 'flat-ui/mixins';
3
+ @import 'bootstrap/mixins';
4
+
5
+ .formtastic > fieldset > ol > li.radio > fieldset.choices > ol.choices-group > li.choice > label {
6
+
7
+
8
+ @include user-select(none);
9
+
10
+ input {
11
+ outline: none !important;
12
+ margin-right: 15px !important;
13
+
14
+ }
15
+
16
+ input:before {
17
+ font-family: 'Flat-UI-Icons-16';
18
+ font-family: FontAwesome;
19
+ font-weight: normal;
20
+ font-style: normal;
21
+ font-size: 1.5em;
22
+ text-decoration: inherit;
23
+ -webkit-font-smoothing: antialiased;
24
+ content: "\F111";
25
+ color: #FFFFFF;
26
+
27
+ }
28
+
29
+ input:after {
30
+ font-family: 'Flat-UI-Icons-16';
31
+ font-family: FontAwesome;
32
+ font-weight: normal;
33
+ font-style: normal;
34
+ font-size: 1.5em;
35
+ text-decoration: inherit;
36
+ -webkit-font-smoothing: antialiased;
37
+ content: "\F10C";
38
+ color: $firm;
39
+ position:relative;
40
+ left:-16px;
41
+ }
42
+
43
+
44
+ input:checked:after {
45
+ content: "\F058";
46
+ }
47
+ // Disabled state
48
+ input:disabled:after {
49
+ color: scale-color($gray, $lightness: 62%);
50
+ cursor: default;
51
+
52
+ }
53
+
54
+
55
+ }
56
+
57
+
58
+
59
+
@@ -0,0 +1,24 @@
1
+
2
+
3
+ form.formtastic > fieldset.inputs > ol > li.input.select > select ,
4
+ form.formtastic > fieldset.inputs > ol > li.input.time_zone > select,
5
+ form.formtastic > fieldset.inputs > ol > li.input.date_select > fieldset.fragments > ol.fragments-group > li.fragment > select ,
6
+ form.formtastic > fieldset.inputs > ol > li.input.datetime_select > fieldset.fragments > ol.fragments-group > li.fragment > select,
7
+ form.formtastic > fieldset.inputs > ol > li.input.time_select > fieldset.fragments > ol.fragments-group > li.fragment > select {
8
+ background: $firm ;
9
+ color: $inverse;
10
+ @include border-radius(6px);
11
+ text-decoration: none;
12
+ white-space: nowrap;
13
+ border: 0px;
14
+ option {
15
+ background: $firm ;
16
+ color: $inverse;
17
+ }
18
+
19
+ li.error & {
20
+ border-color: $danger ;
21
+ color: $danger ;
22
+ }
23
+
24
+ }
@@ -0,0 +1,42 @@
1
+
2
+
3
+ @import 'flat-ui/icon-font';
4
+ @import 'flat-ui/icon-font-24';
5
+
6
+ // Loading config with variables (changing them leads to changing a color scheme)
7
+ @import 'flat-ui/config';
8
+
9
+ // Utility mixins for greater good
10
+ @import 'flat-ui/mixins';
11
+
12
+ // Modules
13
+ @import 'flat-ui/modules/type';
14
+ @import 'flat-ui/modules/btn';
15
+ @import 'flat-ui/modules/demo';
16
+ @import 'flat-ui/modules/navbar';
17
+
18
+ @import 'flat-ui/modules/toggle';
19
+ @import 'flat-ui/modules/tagsinput';
20
+ @import 'flat-ui/modules/progress';
21
+ @import 'flat-ui/modules/ui-slider';
22
+ @import 'flat-ui/modules/pager';
23
+ @import 'flat-ui/modules/pagination';
24
+ @import 'flat-ui/modules/share';
25
+ @import 'flat-ui/modules/tooltip';
26
+ @import 'flat-ui/modules/palette';
27
+ @import 'flat-ui/modules/tile';
28
+ @import 'flat-ui/modules/todo';
29
+ @import 'flat-ui/modules/footer';
30
+ @import 'flat-ui/modules/video';
31
+ @import 'flat-ui/modules/login';
32
+
33
+ // Spaces
34
+ @import 'flat-ui/spaces';
35
+
36
+ @import 'formtastic-plus-flatui/checkbox';
37
+
38
+ @import 'formtastic-plus-flatui/radio';
39
+
40
+ @import 'formtastic-plus-flatui/input';
41
+
42
+ @import 'formtastic-plus-flatui/select';
@@ -0,0 +1,6 @@
1
+ require "bootstrap-sass"
2
+
3
+ module FormtasticPlusFlatui
4
+ class Engine < Rails::Engine
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: formtastic-plus-flatui
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andreas Knöpfle
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.1.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bootstrap-sass
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '2.3'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.3'
62
+ - !ruby/object:Gem::Dependency
63
+ name: formtastic
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '2.2'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '2.2'
78
+ - !ruby/object:Gem::Dependency
79
+ name: font-awesome-rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: formtastic-plus-bootstrap
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ description: Integration of flat-ui with formtastic with the help of font-awesome,
111
+ bootstrap and formtastic-plus-bootstrap.
112
+ email: andi@fairnopoly.de
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - lib/assets/stylesheets/formtastic-plus-flatui/select.scss
118
+ - lib/assets/stylesheets/formtastic-plus-flatui/input.scss
119
+ - lib/assets/stylesheets/formtastic-plus-flatui/checkbox.scss
120
+ - lib/assets/stylesheets/formtastic-plus-flatui/radio.scss
121
+ - lib/assets/stylesheets/formtastic-plus-flatui.scss
122
+ - lib/formtastic-plus-flatui.rb
123
+ - README.md
124
+ - LICENSE.txt
125
+ homepage: https://github.com/fairnopoly/formtastic-plus-flatui
126
+ licenses: []
127
+ post_install_message:
128
+ rdoc_options: []
129
+ require_paths:
130
+ - lib
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ! '>='
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ requirements: []
144
+ rubyforge_project:
145
+ rubygems_version: 1.8.25
146
+ signing_key:
147
+ specification_version: 3
148
+ summary: formtastic meets bootstrap and flat-ui with font-awesome
149
+ test_files: []