Skip to content

Commit 63fd378

Browse files
committed
Fix Field::Select hidden field, style validation errors
1 parent 81bf63f commit 63fd378

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

  • app/assets/stylesheets/administrate-materialize-theme
  • lib/administrate-materialize-theme

app/assets/stylesheets/administrate-materialize-theme/theme.scss

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ th.cell-label {
100100
vertical-align: super;
101101
}
102102

103+
.field-unit--belongs-to input.select-dropdown, .field-unit--has-many input.select-dropdown {
104+
display: none;
105+
}
106+
103107
.field-unit--nested {
104108
@extend .card;
105109

@@ -110,10 +114,6 @@ th.cell-label {
110114
min-height: 10rem;
111115
}
112116

113-
.select-wrapper input.select-dropdown {
114-
display: none;
115-
}
116-
117117
.timepicker {
118118
.btn {
119119
@extend .btn-flat;
@@ -129,6 +129,33 @@ th.cell-label {
129129
}
130130
}
131131

132+
#error_explanation {
133+
@extend .card;
134+
135+
margin-bottom: 3rem;
136+
137+
h2 {
138+
@extend h6;
139+
@extend .center-align;
140+
141+
background: lighten($primary-color, 33%);
142+
margin: 0;
143+
padding: 1rem 0 0.6rem 0;
144+
}
145+
146+
ul {
147+
@extend .collection;
148+
149+
margin-top: 0;
150+
}
151+
152+
li {
153+
@extend .collection-item;
154+
155+
color: $error-color;
156+
}
157+
}
158+
132159
@media #{$small-and-down} {
133160
.field-unit {
134161
display: block;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module AdministrateMaterializeTheme
4-
VERSION = '0.1.0'
4+
VERSION = '0.1.1'
55
end

0 commit comments

Comments
 (0)