Skip to content

Commit ea06530

Browse files
committed
Minor style improvements
- Form errors: changed bar color, inline errors - Main content: full height - Pagination: minor changes - Search box: minor fix
1 parent 6f9cb88 commit ea06530

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ th.cell-label {
2020

2121
.main-content {
2222
border-radius: 0;
23+
min-height: calc(100vh - #{$navbar-height});
2324
padding-bottom: 0;
2425
}
2526

2627
.main-content__body {
2728
overflow-x: scroll;
28-
padding-bottom: $navbar-height;
29+
padding-bottom: 0;
2930
}
3031

3132
.main-content__header {

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,23 @@
5252
@extend h6;
5353
@extend .center-align;
5454

55-
background: lighten($primary-color, 33%);
55+
background: lighten($error-color, 20%);
5656
margin: 0;
5757
padding: 1rem 0 0.6rem 0;
5858
}
5959

60-
ul {
61-
@extend .collection;
62-
63-
margin-top: 0;
64-
}
65-
6660
li {
6761
@extend .collection-item;
6862

6963
color: $error-color;
64+
display: inline-block;
65+
}
66+
67+
ul {
68+
@extend .collection;
69+
70+
margin-top: 0;
71+
text-align: center;
7072
}
7173
}
7274

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ a.action-edit, a[data-method="delete"] {
33
}
44

55
nav.pagination {
6-
margin-top: 3rem;
6+
margin-top: 2rem;
77
}
88

99
.btn-clear-filters {
@@ -12,13 +12,12 @@ nav.pagination {
1212
}
1313

1414
#search {
15-
padding: 0.5rem 2.5rem 0 2.5rem;
15+
padding: 0 2.5rem;
1616
width: calc(100% - 5rem);
1717
}
1818

1919
@media #{$small-and-down} {
2020
#search {
2121
height: 2rem;
22-
padding-top: 0;
2322
}
2423
}

0 commit comments

Comments
 (0)