rails_admin_material 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3869267cd0f38e761d9d38d7074d7cf8f6a444b1
4
- data.tar.gz: d10a993b3f12dec5ab0f044d452e1fcc3c955298
3
+ metadata.gz: 2e09b1828f62bfa121cf3e0cf7a4646da3c58dec
4
+ data.tar.gz: d9cfe8e5a139f5be873af7334f7fb7cf70bf5ced
5
5
  SHA512:
6
- metadata.gz: 72ce6bd50f4432b665640694aeb0c02f53b005c15b62c23a575080c0a05aadc0cb60048b39be9274e56ed9ffd73a4d390c3db4dabacdf6dc9db98a0c82a1eae5
7
- data.tar.gz: 71dbe879f9f738c844b58413c01b1009a8342a17dfe8abedd9344cf43600457eefd565a10e8b77c14a727b71de3d1f04529304477df28dc54b81e8a3380448cd
6
+ metadata.gz: 7aa3b70e2727415cd4adf0f5c999721c50d39a6aa5025a28c044fc05cb57e034495a10d2f60a0d28f9f36bb6eba00f96f35d7fb7afc06d79b9b0cc55ed12ce80
7
+ data.tar.gz: aabbe66c86180678949ec0b5df33e4eeab1f5e51b834fb7aaef52dedec5bcf9370cbe7bf746ed0ac3c76cf9eebec42848bed7f48cb032e1161f89858e78802ee
data/README.md CHANGED
@@ -10,6 +10,8 @@ Features:
10
10
 
11
11
  - hide/show sidebar button
12
12
 
13
+ Demo: [heroku app](http://rails-admin-material.herokuapp.com/admin/)
14
+
13
15
  ## Installation
14
16
 
15
17
  - Add the gem to Gemfile (and execute *bundle*): `gem 'rails_admin_material'`
@@ -50,6 +52,8 @@ rake assets:clean
50
52
  rake assets:precompile
51
53
  ```
52
54
 
55
+ - Sass errors? Try updating sass-rails (or sassc-rails): `bundle update sass-rails`
56
+
53
57
  ## Notes
54
58
 
55
59
  - Based on [Material Design for Bootstrap](http://fezvrasta.github.io/bootstrap-material-design/)
@@ -1,3 +1,3 @@
1
1
  module RailsAdminMaterial
2
- VERSION = "0.1.8"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -9,6 +9,9 @@ body {
9
9
  .bootstrap-datetimepicker-widget {
10
10
  z-index: 999;
11
11
  }
12
+ .fieldset dd.well {
13
+ box-shadow: 0 $generic-space $generic-space*2 0 rgba(0, 0, 0, 0.2), 0 $generic-space $generic-space*2 0 rgba(0, 0, 0, 0.19);
14
+ }
12
15
  .panel {
13
16
  border: 1px solid $fg-shadow;
14
17
  .panel-title {
@@ -73,11 +76,43 @@ body.rails_admin .sidebar-nav {
73
76
  }
74
77
  // inline filter form
75
78
  #filters_box {
76
- > .form-search:first-child {
77
- margin-top: $generic-space;;
78
- }
79
79
  > .form-search {
80
- margin-bottom: $generic-space;;
80
+ margin-bottom: $generic-space;
81
+ .form-group {
82
+ margin-top: 0;
83
+ padding-bottom: 0;
84
+ input {
85
+ background-color: #fff;
86
+ background-image: none;
87
+ border: 1px solid #ccc;
88
+ border-radius: 3px;
89
+ font-size: 12px;
90
+ height: $generic-space*6;
91
+ line-height: 1.5;
92
+ margin: 0;
93
+ padding: $generic-space $generic-space*2;
94
+ &:focus {
95
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ccc;
96
+ border-color: #ccc;
97
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ccc;
98
+ outline: 0;
99
+ }
100
+ }
101
+ select {
102
+ background-image: none;
103
+ font-size: 12px;
104
+ height: $generic-space*6;
105
+ margin: 0;
106
+ padding: $generic-space $generic-space*2;
107
+ }
108
+ }
109
+ .form-label {
110
+ display: inline-block;
111
+ line-height: $generic-space*6;
112
+ margin: 0;
113
+ min-width: 80px;
114
+ padding: 0;
115
+ }
81
116
  }
82
117
  .label > a {
83
118
  color: #fff;
@@ -94,6 +129,19 @@ body.rails_admin .sidebar-nav {
94
129
  vertical-align: -webkit-baseline-middle;
95
130
  }
96
131
  }
132
+ // horizontal forms
133
+ body.rails_admin .form-horizontal .controls {
134
+ > input, > textarea {
135
+ width: 100%;
136
+ }
137
+ &.has-error {
138
+ > input, > textarea {
139
+ border-color: #ccc;
140
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ccc;
141
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ccc;
142
+ }
143
+ }
144
+ }
97
145
  // compact forms
98
146
  .form-group {
99
147
  margin-top: $generic-space * 2;
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-05 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails_admin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.1
13
27
  description: A Material Design theme for rails_admin
14
28
  email:
15
29
  - mat@blocknot.es