Commit 9e1c6801 authored by catch's avatar catch

Issue #1217000 by jyve, aspilicious: Clean up the CSS for Filter module.

parent 9388d922
......@@ -121,7 +121,7 @@ function filter_admin_format_form($form, &$form_state, $format) {
$form['#format'] = $format;
$form['#tree'] = TRUE;
$form['#attached']['js'][] = drupal_get_path('module', 'filter') . '/filter.admin.js';
$form['#attached']['css'][] = drupal_get_path('module', 'filter') . '/filter.css';
$form['#attached']['css'][] = drupal_get_path('module', 'filter') . '/filter.admin.css';
$form['name'] = array(
'#type' => 'textfield',
......
.text-format-wrapper .form-item {
margin-bottom: 0;
}
.filter-wrapper {
border-top: 0;
margin: 0;
padding: 1.5em 0 1.5em;
}
.filter-wrapper .form-item {
float: left;
padding: 0 0 0.5em 1.5em;
}
.filter-wrapper .form-item label {
display: inline;
}
.filter-help {
float: right;
padding: 0 1.5em 0.5em;
}
.filter-help p {
margin: 0;
}
.filter-help a {
background: transparent url(../../misc/help.png) right center no-repeat;
padding: 0 20px;
}
.filter-guidelines {
clear: left;
padding: 0 1.5em;
}
.text-format-wrapper .description {
margin-top: 0.5em;
}
#filter-order tr .form-item {
padding: 0.5em 0 0 3em;
white-space: normal;
}
#filter-order tr .form-type-checkbox .description {
padding: 0 0 0 2.5em;
}
input#edit-filters-filter-html-settings-allowed-html {
width: 100%;
}
.tips {
margin-top: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
font-size: 0.9em;
}
......@@ -839,7 +839,7 @@ function filter_process_format($element) {
// Turn original element into a text format wrapper.
$path = drupal_get_path('module', 'filter');
$element['#attached']['js'][] = $path . '/filter.js';
$element['#attached']['css'][] = $path . '/filter.css';
$element['#attached']['css'][] = $path . '/filter.admin.css';
// Setup child container for the text format widget.
$element['format'] = array(
......
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