Skip to content

Commit fe8d415

Browse files
author
Mattia Roccoberton
committed
Minor improvements
1 parent b047326 commit fe8d415

2 files changed

Lines changed: 34 additions & 16 deletions

File tree

app/assets/stylesheets/activeadmin_blaze_theme/theme.scss

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ body.active_admin {
4040
box-shadow: initial;
4141
text-shadow: $text-shadow 0 1px 0;
4242
}
43+
.c-input-group .c-button:not(:first-child) {
44+
border-left: 1px solid #ddd;
45+
}
4346

4447
// forms
4548
form {
@@ -77,6 +80,10 @@ body.active_admin {
7780
select[multiple], textarea {
7881
height: auto;
7982
}
83+
select.c-field:not([multiple]), select:not([multiple]) {
84+
background: transparent;
85+
-webkit-appearance: menulist;
86+
}
8087
textarea {
8188
padding: 6px;
8289
}
@@ -184,7 +191,7 @@ body.active_admin {
184191
select,
185192
textarea {
186193
background-color: $bg-inputs;
187-
min-width: 240px;
194+
min-width: 450px;
188195
width: auto;
189196
// width: calc(80% - 22px);
190197
}
@@ -194,27 +201,31 @@ body.active_admin {
194201
label {
195202
line-height: $height-inputs;
196203
}
204+
li.input.hidden {
205+
padding: 0;
206+
}
197207
// .boolean > label { // not working
198208
// @extend .c-field;
199209
// @extend .c-field--choice;
200210
// }
201211
.button {
202212
@extend .button-base;
213+
display: inline-block;
214+
margin-left: 10px;
215+
margin-top: 10px;
216+
&:hover {
217+
background-image: none;
218+
}
203219
&.has_many_add {
204220
@extend .c-button--info;
205-
display: inline-block;
206-
&:hover {
207-
background-image: none;
208-
}
209221
}
210222
&.has_many_remove {
211223
@extend .c-button--error;
212-
display: inline-block;
213-
&:hover {
214-
background-image: none;
215-
}
216224
}
217225
}
226+
// .datepicker > input {
227+
// -webkit-appearance: menulist;
228+
// }
218229
.fragment {
219230
input[type='datetime-local'],
220231
input[type='email'],
@@ -225,6 +236,7 @@ body.active_admin {
225236
input[type='text'],
226237
input[type='url'],
227238
select {
239+
min-width: auto;
228240
width: auto;
229241
}
230242
}
@@ -501,6 +513,10 @@ body.active_admin {
501513
#active_admin_content > #sidebar, #active_admin_content > #main_content_wrapper {
502514
float: none;
503515
}
516+
.panel_contents {
517+
@extend .c-card__item;
518+
padding: 8px 10px 10px 10px;
519+
}
504520
.sidebar_section {
505521
@extend .c-card;
506522
@extend .u-high;
@@ -521,10 +537,6 @@ body.active_admin {
521537
background-color: $bg-inputs;
522538
}
523539
}
524-
.panel_contents {
525-
@extend .c-card__item;
526-
padding: 5px 10px 10px 10px;
527-
}
528540
> h3 {
529541
@extend .c-card__item;
530542
@extend .c-card__item--brand;
@@ -536,9 +548,15 @@ body.active_admin {
536548
padding: 8px 11px;
537549
text-shadow: $text-shadow 0 1px 0;
538550
}
551+
h4 {
552+
margin: 0;
553+
}
539554
input[type='submit'] {
540555
@extend .c-button--info;
541556
}
557+
ul {
558+
margin: 0 0 8px 0;
559+
}
542560
}
543561

544562
// tables
@@ -633,7 +651,7 @@ body.active_admin {
633651
margin: 0;
634652
padding: 25px 20px;
635653
width: calc(100% - 270px);
636-
> .panel {
654+
.panel {
637655
@extend .c-card;
638656
@extend .u-high;
639657
> h3 {
@@ -768,7 +786,7 @@ body.active_admin {
768786
}
769787
.ckeditor_width_fix {
770788
display: inline-block;
771-
min-width: 240px;
789+
min-width: 450px;
772790
width: auto;
773791
// width: calc(80% - 22px);
774792
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ActiveAdminBlazeTheme
2-
VERSION = '0.4.7'
2+
VERSION = '0.4.8'
33
end

0 commit comments

Comments
 (0)