Unverified Commit 8c358672 authored by lauriii's avatar lauriii
Browse files

Issue #3224958 by mherchel, djsagar, cindytwilliams, lauriii: Olivero should...

Issue #3224958 by mherchel, djsagar, cindytwilliams, lauriii: Olivero should style Views exposed filters as inline (currently are stacked)
parent 838b9033
......@@ -231,3 +231,22 @@ tr .form-item,
flex: 0 1 100%;
min-width: 1px;
}
/**
* Inline forms.
*/
.form--inline > * {
display: inline-block;
margin-top: 0.5625rem;
margin-bottom: 0;
vertical-align: top; /* Ensure proper alignment if description is present. */
}
.form--inline .form-item__label {
margin: 0;
}
.form--inline .form-actions {
margin-top: 1.6875rem;
}
......@@ -176,3 +176,23 @@ tr .form-item,
flex: 0 1 100%;
min-width: 1px;
}
/**
* Inline forms.
*/
.form--inline {
& > * {
display: inline-block;
margin-top: var(--sp0-5);
margin-bottom: 0;
vertical-align: top; /* Ensure proper alignment if description is present. */
}
& .form-item__label {
margin: 0;
}
& .form-actions {
margin-top: var(--sp1-5);
}
}
......@@ -629,3 +629,10 @@ function olivero_preprocess_table(&$variables) {
}
}
}
/**
* Implements hook_form_views_exposed_form_alter().
*/
function olivero_form_views_exposed_form_alter(&$form) {
$form['#attributes']['class'][] = 'form--inline';
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment