Skip to content

Commit b4c7949

Browse files
author
Mattia Roccoberton
committed
Added squared style
1 parent 9f9ad71 commit b4c7949

3 files changed

Lines changed: 36 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Features:
66

77
- CSS only theme with clean UI
88
- compact nested forms
9-
- [customizable](#customize): colors, sidebar position, scroll on cells
9+
- [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
1010
- custom controls / components: [toggle](#toggle), [Sidebar menu](#sidebar-menu), [Accordion](#accordion), [Readonly field](#readonly-field)
1111
- Blaze CSS [widgets](#blaze-widgets)
1212

@@ -66,6 +66,14 @@ $text-shadow: #000 !default;
6666
}
6767
```
6868

69+
- Squared style (no rounded borders):
70+
71+
```css
72+
#active_admin_content, .active_admin #title_bar {
73+
@extend .no_rounded;
74+
}
75+
```
76+
6977
- More options:
7078

7179
```css

app/assets/stylesheets/activeadmin_blaze_theme/theme.scss

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ body.active_admin {
9090
textarea {
9191
padding: 6px;
9292
}
93-
.selectize-input {
94-
line-height: $height-inputs;
95-
padding-left: 8px;
96-
}
9793
abbr {
9894
padding-left: 3px;
9995
}
@@ -888,6 +884,24 @@ body.active_admin {
888884
margin-bottom: 4px;
889885
}
890886

887+
// special components
888+
.filter_form .select-one-inputs {
889+
display: flex;
890+
>input[type="text"], >select {
891+
width: 49%;
892+
}
893+
>input[type="text"] {
894+
margin: 0 1% 0 0;
895+
}
896+
select {
897+
margin: 0 0 0 1%;
898+
}
899+
}
900+
.selectize.input > .selectize-control > .selectize-input {
901+
padding-left: 4px;
902+
padding-top: 3px;
903+
}
904+
891905
// optional customizations
892906
.compact_titlebar {
893907
white-space: initial;
@@ -917,4 +931,12 @@ body.active_admin {
917931
width: auto;
918932
// width: calc(80% - 22px);
919933
}
934+
.no_rounded {
935+
* {
936+
border-radius: 0;
937+
}
938+
.action_items span.action_item > a {
939+
border-radius: 0;
940+
}
941+
}
920942
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ActiveAdminBlazeTheme
2-
VERSION = '0.5.8'
2+
VERSION = '0.5.9'
33
end

0 commit comments

Comments
 (0)