diff --git a/core/modules/views/css/views.exposed_form-rtl.css b/core/modules/views/css/views.exposed_form-rtl.css new file mode 100644 index 0000000..a63c7a0 --- /dev/null +++ b/core/modules/views/css/views.exposed_form-rtl.css @@ -0,0 +1,17 @@ +/** + * @file + * Right-to-Left styling for Views exposed forms. + */ +.views-exposed-form label { + float: right; +} + +.views-exposed-form .form-item { + clear: right; +} + +.views-exposed-form .views-exposed-widgets { + float: right; + margin-left: 1em; + margin-right: 0; +} diff --git a/core/modules/views/css/views.exposed_form.css b/core/modules/views/css/views.exposed_form.css new file mode 100644 index 0000000..544c471 --- /dev/null +++ b/core/modules/views/css/views.exposed_form.css @@ -0,0 +1,20 @@ +/** + * @file + * Styling for Views exposed forms. + */ +.views-exposed-form label { + float: left; /* LTR */ + font-weight: normal; + width: 10em; +} + +.views-exposed-form .form-item { + margin: 0 0 0.1em 0; + padding: 0; + clear: left; /* LTR */ +} + +.views-exposed-form .views-exposed-widgets { + float: left; /* LTR */ + margin-right: 1em; /* LTR */ +} diff --git a/core/modules/views/css/views.module.css b/core/modules/views/css/views.module.css index 7ca2f49..a29083c 100644 --- a/core/modules/views/css/views.module.css +++ b/core/modules/views/css/views.module.css @@ -1,13 +1,3 @@ -.views-exposed-form .views-exposed-widget { - display: inline-block; -} - -.views-exposed-form .form-item, -.views-exposed-form .form-submit { - margin-top: 0; - margin-bottom: 0; -} - /* table style column align */ .views-align-left { text-align: left; diff --git a/core/modules/views/templates/views-exposed-form.html.twig b/core/modules/views/templates/views-exposed-form.html.twig index 239b67d..24724c4 100644 --- a/core/modules/views/templates/views-exposed-form.html.twig +++ b/core/modules/views/templates/views-exposed-form.html.twig @@ -4,21 +4,7 @@ * Default theme implementation of a views exposed form. * * Available variables: - * - widgets: A list of exposed form widgets. Each widget contains: - * - label: The sanitized label of the widget. - * - id: The ID of the widget, if available. - * - operator: The select element for the operator widget. - * - description: The sanitized description of the widget. - * - widget: The widget itself. - * - index: the widget's row index. * - form: A render element representing the form. - * - sort_by: An optional select element to sort the view by fields. - * - sort_order: An optional select element with ascending or - * descending order options. - * - items_per_page: An optional select element for the available items per - * page. - * - offset: An optional textfield to define the offset of the view. - * - reset_button: An optional button to reset the exposed filter applied. * * @see template_preprocess() * @see template_preprocess_views_exposed_form() @@ -33,55 +19,10 @@ #} {{ q }} {% endif %} -