Commit 79abddbe authored by webchick's avatar webchick

Issue #2085673 by Wim Leers: Remove all remaining '-rtl.css' references.

parent c4dd26c0
......@@ -1526,14 +1526,7 @@ function drupal_add_html_head_link($attributes, $header = FALSE) {
* example, system-menus.css rather than simply menus.css. Themes can
* override module-supplied CSS files based on their filenames, and this
* prefixing helps prevent confusing name collisions for theme developers.
* See drupal_get_css() where the overrides are performed. Also, if the
* direction of the current language is right-to-left (Hebrew, Arabic,
* etc.), the function will also look for an RTL CSS file and append it to
* the list. The name of this file should have an '-rtl.css' suffix. For
* example, a CSS file called 'mymodule-name.css' will have a
* 'mymodule-name-rtl.css' file added to the list, if exists in the same
* directory. This CSS file should contain overrides for properties which
* should be reversed or otherwise different in a right-to-left display.
* See drupal_get_css() where the overrides are performed.
* - 'inline': A string of CSS that should be placed in the given scope. Note
* that it is better practice to use 'file' stylesheets, rather than
* 'inline', as the CSS would then be aggregated and cached.
......@@ -1699,10 +1692,6 @@ function drupal_add_css($data = NULL, $options = NULL) {
* modules/system/system-menus.css. This allows themes to override complete
* CSS files, rather than specific selectors, when necessary.
*
* If the original CSS file is being overridden by a theme, the theme is
* responsible for supplying an accompanying RTL CSS file to replace the
* module's.
*
* @param $css
* (optional) An array of CSS files. If no array is provided, the default
* stylesheets array is used instead.
......
......@@ -25,9 +25,6 @@
{{ head }}
<base href="{{ base_url }}" />
<link type="text/css" rel="stylesheet" href="misc/print.css" />
{% if language_rtl %}
<link type="text/css" rel="stylesheet" href="misc/print-rtl.css" />
{% endif %}
</head>
<body>
{#
......
......@@ -369,15 +369,10 @@ function color_scheme_form_submit($form, &$form_state) {
// Rewrite theme stylesheets.
$css = array();
foreach ($info['css'] as $stylesheet) {
// Build a temporary array with LTR and RTL files.
// Build a temporary array with CSS files.
$files = array();
if (file_exists($paths['source'] . $stylesheet)) {
$files[] = $stylesheet;
$rtl_file = str_replace('.css', '-rtl.css', $stylesheet);
if (file_exists($paths['source'] . $rtl_file)) {
$files[] = $rtl_file;
}
}
foreach ($files as $file) {
......
......@@ -9,7 +9,6 @@ stylesheets:
- style.css
stylesheets-override:
- vertical-tabs.css
- vertical-tabs-rtl.css
- jquery.ui.theme.css
settings:
# @todo D8: Remove once themes have to be installed.
......
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