Skip to content

Commit f01f25c

Browse files
author
Mattia Roccoberton
committed
Improved nested styles
1 parent 28650ba commit f01f25c

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A theme for Active Admin using [Blaze CSS](http://blazecss.com/)
44

55
Features:
66

7-
- clean UI
7+
- CSS only theme with clean UI
88
- compact nested forms
99
- [customizable](#customize): colors, sidebar position, compact title bar, scroll on cells
1010
- custom boolean input: [toggle](#toggle)

app/assets/stylesheets/activeadmin_blaze_theme/theme.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $bg-form1: #f4f4f4 !default; // bg 1st level forms
66
$bg-form2: darken($bg-form1, 3%) !default; // bg 2nd level forms (nested)
77
$bg-form3: darken($bg-form1, 6%) !default; // bg 3rd level forms (nested)
88
$bg-form4: darken($bg-form1, 9%) !default; // bg 4th level forms (nested)
9-
$bg-form-sub-headings: #d4d4d4 !default; // bg nested forms title
9+
$bg-form-sub-headings: lighten( $color-brand, 64% ) !default; // bg nested forms title
1010
$bg-header: $color-brand !default; // bg header bar
1111
$bg-inputs: #fff !default; // bg forms inputs
1212
$bg-menu-active: #7b929e !default; // bg menu item current / hover
@@ -273,12 +273,16 @@ body.active_admin {
273273
.has_many_container {
274274
@extend .c-card;
275275
@extend .u-high;
276+
border-left: 2px solid lighten( $color-brand, 20% );
277+
border-radius: 0;
278+
box-shadow: none;
276279
padding: 0;
277280
h3 {
278281
@extend .c-card__item;
279282
// @extend .c-card__item--info;
280283
background: $bg-form-sub-headings;
281284
margin-bottom: 0;
285+
padding-left: 10px;
282286
}
283287
.inputs {
284288
padding: $form-padding;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ActiveAdminBlazeTheme
2-
VERSION = '0.2.8'
2+
VERSION = '0.3.0'
33
end

0 commit comments

Comments
 (0)