bhm-admin 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/bhm-admin.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bhm-admin}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darcy Laycock"]
@@ -21,116 +21,112 @@ form.formtastic
21
21
  input, textarea, select
22
22
  font-size: 100%
23
23
  legend
24
- color: black
25
- legend.label label
26
- width: 100%
27
- fieldset
28
- display: inline-block
29
- &.buttons
30
- padding-left: 28%
31
- &.buttons li
32
- float: left
33
- padding-right: 0.5em
34
- &:after
35
- content: "."
36
- display: block
37
- height: 0
38
- clear: both
39
- visibility: hidden
40
-
41
- html form.formtastic fieldset
42
- display: block
43
-
44
- * html form.formtastic fieldset
45
- height: 1%
46
-
47
- form.formtastic fieldset ol li
48
- margin-bottom: 1.5em
49
- &:after
50
- content: "."
51
- display: block
52
- height: 0
53
- clear: both
54
- visibility: hidden
55
-
56
- html[xmlns] form.formtastic fieldset ol li
57
- display: block
58
-
59
- * html form.formtastic fieldset ol li
60
- height: 1%
61
-
62
- form.formtastic fieldset ol li
63
- label
64
- display: block
65
- width: 25%
66
- margin-right: 3%
67
- float: left
68
- padding-top: 0.2em
69
- li label
70
- line-height: 100%
71
- padding-top: 0
72
- width: auto
73
- margin-right: 0
74
- input
75
- line-height: 100%
76
- vertical-align: middle
77
- margin-top: -0.1em
78
- fieldset
79
- position: relative
80
- legend
81
- position: absolute
82
- width: 28%
83
- padding-top: 0.1em
84
- span, &.label label
85
- position: absolute
86
- ol
87
- float: left
88
- width: 71%
89
- margin: 0
90
- padding: 0 0 0 28%
91
- li
92
- padding: 0
93
- border: 0
94
- p
95
- &.inline-hints
96
- color: #666666
97
- margin: 0.5em 0 0 28%
98
- &.inline-errors
99
- color: #cc0000
100
- margin: 0.5em 0 0 28%
24
+ white-space: normal
25
+ color: #000
101
26
  ul.errors
102
27
  color: #cc0000
103
- margin: 0.5em 0 0 28%
28
+ margin: 0.5em 0 1.5em 25%
104
29
  list-style: square
105
30
  li
106
31
  padding: 0
107
32
  border: none
108
33
  display: list-item
109
- &.string input, &.password input, &.numeric input, &.text textarea
110
- width: 71%
111
- &.hidden
112
- display: none
113
- &.boolean label
114
- padding-left: 28%
115
- width: auto
116
- input
117
- margin: 0 0.5em 0 0.2em
118
- &.radio fieldset ol, &.check_boxes fieldset ol
119
- margin-bottom: -0.6em
120
- li
121
- margin: 0.1em 0 0.5em 0
34
+ fieldset
35
+ overflow: auto
36
+ &.inputs
37
+ &.buttons
38
+ padding-left: 25%
39
+ ol
40
+ &.buttons li
41
+ float: left
42
+ padding-right: 0.5em
43
+ > ol > li
44
+ padding: 0.5em 0
45
+ margin-top: -0.5em
46
+ margin-bottom: 1em
47
+ overflow: auto
48
+ &.required, &.optional, &.error
122
49
  label
123
- float: none
124
- width: 100%
50
+ display: block
51
+ width: 25%
52
+ float: left
53
+ padding-top: .2em
54
+ > li label
55
+ line-height: 100%
56
+ padding-top: 0
125
57
  input
126
- margin-right: 0.2em
127
- &.date fieldset ol li, &.time fieldset ol li, &.datetime fieldset ol li, &.dob fieldset ol li
128
- float: left
129
- width: auto
130
- margin: 0 0.3em 0 0
131
- label
58
+ line-height: 100%
59
+ vertical-align: middle
60
+ margin-top: -0.1em
61
+ fieldset
62
+ position: relative
63
+ legend
64
+ position: absolute
65
+ width: 95%
66
+ padding-top: 0.1em
67
+ left: 0px
68
+ span, &.label label
69
+ position: absolute
70
+ ol
71
+ float: left
72
+ width: 74%
73
+ margin: 0
74
+ padding: 0 0 0 25%
75
+ li
76
+ padding: 0
77
+ border: 0
78
+ p
79
+ &.inline-hints
80
+ color: #666
81
+ margin: 0.5em 0 0 25%
82
+ &.inline-errors
83
+ color: #cc0000
84
+ margin: 0.5em 0 0 25%
85
+ ul.errors
86
+ color: #cc0000
87
+ margin: 0.5em 0 0 25%
88
+ list-style: square
89
+ li
90
+ padding: 0
91
+ border: none
92
+ display: list-item
93
+ &.string input, &.password input, &.numeric input, &.email input, &.url input, &.phone input, &.search input
94
+ width: 72%
95
+ &.string input[size], &.password input[size], &.numeric input[size], &.email input[size], &.url input[size], &.phone input[size], &.search input[size], &.datetime_picker input[size], &.date_picker input[size]
96
+ width: auto
97
+ max-width: 72%
98
+ &.text textarea
99
+ width: 72%
100
+ &[cols]
101
+ width: auto
102
+ max-width: 72%
103
+ ol li.hidden
132
104
  display: none
133
- input
105
+ > ol > li
106
+ &.boolean label
107
+ padding-left: 25%
108
+ width: auto
109
+ input
110
+ margin: 0 0.5em 0 0.2em
111
+ &.radio fieldset, &.check_boxes fieldset
112
+ overflow: visible
113
+ ol
114
+ margin-bottom: -0.5em
115
+ li
116
+ margin: 0.1em 0 0.5em 0
117
+ overflow: visible
118
+ label
119
+ float: none
120
+ width: 100%
121
+ input
122
+ margin-right: 0.2em
123
+ &.date fieldset ol li, &.time fieldset ol li, &.datetime fieldset ol li
124
+ float: left
125
+ width: auto
126
+ margin: 0 .3em 0 0
127
+ &.date fieldset ol li label, &.time fieldset ol li label, &.datetime fieldset ol li label
128
+ display: none
129
+ &.date fieldset ol li label input, &.time fieldset ol li label input, &.datetime fieldset ol li label input
134
130
  display: inline
135
131
  margin: 0
136
- padding: 0
132
+ padding: 0
data/lib/bhm/admin.rb CHANGED
@@ -3,7 +3,7 @@ require 'active_support'
3
3
  module BHM
4
4
  module Admin
5
5
 
6
- VERSION = "0.3.0".freeze
6
+ VERSION = "0.3.1".freeze
7
7
 
8
8
  # Helpers for use in the admin area.
9
9
  autoload :SidebarHelper, 'bhm/admin/sidebar_helper'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhm-admin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darcy Laycock