8000 add the possibility to override forms SCSS variables · activeadmin/activeadmin@05d7474 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05d7474

Browse files
committed
add the possibility to override forms SCSS variables
1 parent c969508 commit 05d7474

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

app/assets/stylesheets/active_admin/_forms.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ form {
250250

251251
// -------------------------------------- Sidebar Forms
252252

253-
$sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
254-
255253
.sidebar_section {
256254

257255
label {
@@ -274,13 +272,6 @@ $sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
274272

275273
// -------------------------------------- Filter Forms
276274

277-
$filter-field-seperator-width: 12px;
278-
279-
$side-by-side-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
280-
$side-by-side-filter-select-width: ($sidebar-inner-content-width * 0.5) - $filter-field-seperator-width;
281-
282-
$date-range-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($filter-field-seperator-width * 0.5);
283-
284275
form.filter_form {
285276
.filter_form_field {
286277
margin-bottom: 10px;

app/assets/stylesheets/active_admin/mixins/_variables.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ $text-input-horizontal-padding: 10px !default;
4040
$text-input-total-padding: $text-input-horizontal-padding * 2 + $border-width * 2;
4141

4242
$blank-slate-border: 1px dashed #DADADA !default;
43+
44+
// Sidebar Forms
45+
$sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
46+
47+
// Filter Forms
48+
$filter-field-seperator-width: 12px !default;
49+
$side-by-side-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
50+
$side-by-side-filter-select-width: ($sidebar-inner-content-width * 0.5) - $filter-field-seperator-width;
51+
$date-range-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($filter-field-seperator-width * 0.5);

0 commit comments

Comments
 (0)
0