diff --git a/core/includes/common.inc b/core/includes/common.inc index a8ad43a..708bbc9 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -3647,7 +3647,7 @@ function drupal_aggregate_js(&$js_groups) { * @code * $build['#attached'] = array( * 'library' => array(array('taxonomy', 'taxonomy')), - * 'css' => array(drupal_get_path('module', 'taxonomy') . '/taxonomy.css'), + * 'css' => array(drupal_get_path('module', 'taxonomy') . '/css/taxonomy.module.css'), * ); * @endcode * diff --git a/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc index 70347c2..b9a513c 100644 --- a/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -95,10 +95,10 @@ function _drupal_maintenance_theme() { // These are usually added from system_init() -except maintenance.css. // When the database is inactive it's not called so we add it here. $path = drupal_get_path('module', 'system'); - drupal_add_css($path . '/system.base.css'); - drupal_add_css($path . '/system.admin.css'); - drupal_add_css($path . '/system.theme.css'); - drupal_add_css($path . '/system.maintenance.css'); + drupal_add_css($path . '/css/system.module.css'); + drupal_add_css($path . '/css/system.theme.css'); + drupal_add_css($path . '/css/system.admin.css'); + drupal_add_css($path . '/css/system.maintenance.css'); } /** diff --git a/core/misc/dropbutton/dropbutton.base-rtl.css b/core/misc/dropbutton/dropbutton-rtl.css similarity index 100% rename from core/misc/dropbutton/dropbutton.base-rtl.css rename to core/misc/dropbutton/dropbutton-rtl.css diff --git a/core/misc/dropbutton/dropbutton.base.css b/core/misc/dropbutton/dropbutton.css similarity index 100% rename from core/misc/dropbutton/dropbutton.base.css rename to core/misc/dropbutton/dropbutton.css diff --git a/core/modules/block/block.admin.inc b/core/modules/block/block.admin.inc index 10927bd..953e462 100644 --- a/core/modules/block/block.admin.inc +++ b/core/modules/block/block.admin.inc @@ -16,7 +16,7 @@ function block_admin_demo($theme = NULL) { return array( '#attached' => array( - 'css' => array(drupal_get_path('module', 'block') . '/block.admin.css'), + 'css' => array(drupal_get_path('module', 'block') . '/css/block.admin.css'), ), ); } @@ -86,4 +86,3 @@ function block_admin_edit(Block $entity) { return entity_get_form($entity); } - diff --git a/core/modules/block/block.admin.css b/core/modules/block/css/block.admin.css similarity index 100% rename from core/modules/block/block.admin.css rename to core/modules/block/css/block.admin.css diff --git a/core/modules/block/lib/Drupal/block/BlockListController.php b/core/modules/block/lib/Drupal/block/BlockListController.php index f940b06..9b8be71 100644 --- a/core/modules/block/lib/Drupal/block/BlockListController.php +++ b/core/modules/block/lib/Drupal/block/BlockListController.php @@ -106,7 +106,7 @@ public function getFormID() { */ public function buildForm(array $form, array &$form_state) { $entities = $this->load(); - $form['#attached']['css'][] = drupal_get_path('module', 'block') . '/block.admin.css'; + $form['#attached']['css'][] = drupal_get_path('module', 'block') . '/css/block.admin.css'; $form['#attached']['library'][] = array('system', 'drupal.tableheader'); $form['#attached']['library'][] = array('block', 'drupal.block'); diff --git a/core/modules/book/book.module b/core/modules/book/book.module index 61e3701..e5aeafb 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -322,7 +322,7 @@ function book_form_node_form_alter(&$form, &$form_state, $form_id) { '#submit' => array('book_pick_book_nojs_submit'), '#weight' => 20, '#attached' => array( - 'css' => array(drupal_get_path('module', 'book') . '/book.admin.css'), + 'css' => array(drupal_get_path('module', 'book') . '/css/book.admin.css'), ), ); } @@ -986,7 +986,7 @@ function template_preprocess_book_all_books_block(&$variables) { * Properties used: bid, link_title, depth, plid, mlid. */ function template_preprocess_book_navigation(&$variables) { - drupal_add_css(drupal_get_path('module', 'book') . '/book.theme.css'); + drupal_add_css(drupal_get_path('module', 'book') . '/css/book.theme.css'); $book_link = $variables['book_link']; // Provide extra variables for themers. Not needed by default. diff --git a/core/modules/book/book.admin.css b/core/modules/book/css/book.admin.css similarity index 100% rename from core/modules/book/book.admin.css rename to core/modules/book/css/book.admin.css diff --git a/core/modules/book/book.theme-rtl.css b/core/modules/book/css/book.theme-rtl.css similarity index 100% rename from core/modules/book/book.theme-rtl.css rename to core/modules/book/css/book.theme-rtl.css diff --git a/core/modules/book/book.theme.css b/core/modules/book/css/book.theme.css similarity index 100% rename from core/modules/book/book.theme.css rename to core/modules/book/css/book.theme.css diff --git a/core/modules/color/color.module b/core/modules/color/color.module index 2203133..6942c6f 100644 --- a/core/modules/color/color.module +++ b/core/modules/color/color.module @@ -194,7 +194,7 @@ function color_scheme_form($complete_form, &$form_state, $theme) { ), // Add custom CSS. 'css' => array( - $base . '/color.admin.css' => array(), + $base . '/css/color.admin.css' => array(), ), // Add custom JavaScript. 'js' => array( diff --git a/core/modules/color/color.admin-rtl.css b/core/modules/color/css/color.admin-rtl.css similarity index 92% rename from core/modules/color/color.admin-rtl.css rename to core/modules/color/css/color.admin-rtl.css index d5bfbe8..f8dbbd5 100644 --- a/core/modules/color/color.admin-rtl.css +++ b/core/modules/color/css/color.admin-rtl.css @@ -31,7 +31,7 @@ #palette .down, #palette .up, #palette .both { - background: url(images/hook-rtl.png) no-repeat 0 0; + background: url(../images/hook-rtl.png) no-repeat 0 0; } #palette .up { background-position: 0 -27px; diff --git a/core/modules/color/color.admin.css b/core/modules/color/css/color.admin.css similarity index 91% rename from core/modules/color/color.admin.css rename to core/modules/color/css/color.admin.css index e9aee91..98e9cc2 100644 --- a/core/modules/color/color.admin.css +++ b/core/modules/color/css/color.admin.css @@ -45,7 +45,7 @@ #palette .down, #palette .up, #palette .both { - background: url(images/hook.png) no-repeat 100% 0; /* LTR */ + background: url(../images/hook.png) no-repeat 100% 0; /* LTR */ } #palette .up { background-position: 100% -27px; /* LTR */ @@ -61,7 +61,7 @@ left: -10px; /* LTR */ width: 20px; height: 25px; - background: url(images/lock.png) no-repeat 50% 2px; + background: url(../images/lock.png) no-repeat 50% 2px; cursor: pointer; } #palette .unlocked { diff --git a/core/modules/comment/comment.theme-rtl.css b/core/modules/comment/css/comment.theme-rtl.css similarity index 100% rename from core/modules/comment/comment.theme-rtl.css rename to core/modules/comment/css/comment.theme-rtl.css diff --git a/core/modules/comment/comment.theme.css b/core/modules/comment/css/comment.theme.css similarity index 100% rename from core/modules/comment/comment.theme.css rename to core/modules/comment/css/comment.theme.css diff --git a/core/modules/comment/lib/Drupal/comment/CommentRenderController.php b/core/modules/comment/lib/Drupal/comment/CommentRenderController.php index dab8dc4..c6b21f0 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentRenderController.php +++ b/core/modules/comment/lib/Drupal/comment/CommentRenderController.php @@ -86,7 +86,7 @@ protected function alterBuild(array &$build, EntityInterface $comment, EntityDis // Add indentation div or close open divs as needed. if ($is_threaded) { - $build['#attached']['css'][] = drupal_get_path('module', 'comment') . '/comment.theme.css'; + $build['#attached']['css'][] = drupal_get_path('module', 'comment') . '/css/comment.theme.css'; $prefix .= $comment->divs <= 0 ? str_repeat('', abs($comment->divs)) : "\n" . '
'; } diff --git a/core/modules/config/lib/Drupal/config/Controller/ConfigController.php b/core/modules/config/lib/Drupal/config/Controller/ConfigController.php index 477268c..9511a1e 100644 --- a/core/modules/config/lib/Drupal/config/Controller/ConfigController.php +++ b/core/modules/config/lib/Drupal/config/Controller/ConfigController.php @@ -63,7 +63,7 @@ public function __construct(StorageInterface $target_storage, StorageInterface $ */ public function diff($config_file) { // Add the CSS for the inline diff. - $output['#attached']['css'][] = drupal_get_path('module', 'system') . '/system.diff.css'; + $output['#attached']['css'][] = drupal_get_path('module', 'system') . '/css/system.diff.css'; $diff = config_diff($this->targetStorage, $this->sourceStorage, $config_file); $formatter = new \DrupalDiffFormatter(); diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module index 019efed..32f3870 100644 --- a/core/modules/contextual/contextual.module +++ b/core/modules/contextual/contextual.module @@ -112,8 +112,8 @@ function contextual_library_info() { $path . '/contextual.js' => array('group' => JS_LIBRARY, 'weight' => -2), ), 'css' => array( - $path . '/contextual.base.css' => array(), - $path . '/contextual.theme.css' => array(), + $path . '/css/contextual.module.css' => array(), + $path . '/css/contextual.theme.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -133,7 +133,7 @@ function contextual_library_info() { $path . '/contextual.toolbar.js' => array('group' => JS_LIBRARY, 'weight' => -1), ), 'css' => array( - $path . '/contextual.toolbar.css' => array(), + $path . '/css/contextual.toolbar.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/contextual/contextual.base.css b/core/modules/contextual/css/contextual.module.css similarity index 100% rename from core/modules/contextual/contextual.base.css rename to core/modules/contextual/css/contextual.module.css diff --git a/core/modules/contextual/contextual.theme-rtl.css b/core/modules/contextual/css/contextual.theme-rtl.css similarity index 100% rename from core/modules/contextual/contextual.theme-rtl.css rename to core/modules/contextual/css/contextual.theme-rtl.css diff --git a/core/modules/contextual/contextual.theme.css b/core/modules/contextual/css/contextual.theme.css similarity index 98% rename from core/modules/contextual/contextual.theme.css rename to core/modules/contextual/css/contextual.theme.css index fef8240..7a34421 100644 --- a/core/modules/contextual/contextual.theme.css +++ b/core/modules/contextual/css/contextual.theme.css @@ -27,7 +27,7 @@ .contextual .trigger { background-attachment: scroll; background-color: #fff; - background-image: url("../../misc/edit.png"); + background-image: url(../../../misc/edit.png); background-position: center center; background-repeat: no-repeat; background-size: 16px 16px; diff --git a/core/modules/contextual/contextual.toolbar-rtl.css b/core/modules/contextual/css/contextual.toolbar-rtl.css similarity index 100% rename from core/modules/contextual/contextual.toolbar-rtl.css rename to core/modules/contextual/css/contextual.toolbar-rtl.css diff --git a/core/modules/contextual/contextual.toolbar.css b/core/modules/contextual/css/contextual.toolbar.css similarity index 90% rename from core/modules/contextual/contextual.toolbar.css rename to core/modules/contextual/css/contextual.toolbar.css index 189a07f..69fc317 100644 --- a/core/modules/contextual/contextual.toolbar.css +++ b/core/modules/contextual/css/contextual.toolbar.css @@ -5,11 +5,11 @@ /* Tab icon. */ .icon-edit:before { - background-image: url("../../misc/edit.png"); + background-image: url(../../../misc/edit.png); } .icon-edit:active:before, .active.icon-edit:before { - background-image: url("../../misc/edit-active.png"); + background-image: url(../../../misc/edit-active.png); } /* Tab appearance. */ diff --git a/core/modules/dblog/dblog-rtl.css b/core/modules/dblog/css/dblog.module-rtl.css similarity index 100% rename from core/modules/dblog/dblog-rtl.css rename to core/modules/dblog/css/dblog.module-rtl.css diff --git a/core/modules/dblog/dblog.css b/core/modules/dblog/css/dblog.module.css similarity index 87% rename from core/modules/dblog/dblog.css rename to core/modules/dblog/css/dblog.module.css index 5494553..5732388 100644 --- a/core/modules/dblog/dblog.css +++ b/core/modules/dblog/css/dblog.module.css @@ -37,11 +37,11 @@ width: 16px; } .admin-dblog .dblog-warning .icon { - background-image: url(../../misc/message-16-warning.png); + background-image: url(../../../misc/message-16-warning.png); } .admin-dblog .dblog-error .icon, .admin-dblog .dblog-critical .icon, .admin-dblog .dblog-alert .icon, .admin-dblog .dblog-emergency .icon { - background-image: url(../../misc/message-16-error.png); + background-image: url(../../../misc/message-16-error.png); } diff --git a/core/modules/dblog/dblog.module b/core/modules/dblog/dblog.module index 63e2b8f..202cfcf 100644 --- a/core/modules/dblog/dblog.module +++ b/core/modules/dblog/dblog.module @@ -88,7 +88,7 @@ function dblog_menu() { */ function dblog_page_build(&$page) { if (arg(0) == 'admin' && arg(1) == 'reports') { - $page['#attached']['css'][] = drupal_get_path('module', 'dblog') . '/dblog.css'; + $page['#attached']['css'][] = drupal_get_path('module', 'dblog') . '/css/dblog.module.css'; } } diff --git a/core/modules/edit/css/edit.css b/core/modules/edit/css/edit.module.css similarity index 100% rename from core/modules/edit/css/edit.css rename to core/modules/edit/css/edit.module.css diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module index c29672e..4353ddf 100644 --- a/core/modules/edit/edit.module +++ b/core/modules/edit/edit.module @@ -90,7 +90,7 @@ function edit_library_info() { $path . '/js/theme.js' => $options, ), 'css' => array( - $path . '/css/edit.css' => array(), + $path . '/css/edit.module.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/entity_reference/css/entity_reference-rtl.admin.css b/core/modules/entity_reference/css/entity_reference.admin-rtl.css similarity index 100% rename from core/modules/entity_reference/css/entity_reference-rtl.admin.css rename to core/modules/entity_reference/css/entity_reference.admin-rtl.css diff --git a/core/modules/field/theme/field-rtl.css b/core/modules/field/css/field.module-rtl.css similarity index 100% rename from core/modules/field/theme/field-rtl.css rename to core/modules/field/css/field.module-rtl.css diff --git a/core/modules/field/theme/field.css b/core/modules/field/css/field.module.css similarity index 100% rename from core/modules/field/theme/field.css rename to core/modules/field/css/field.module.css diff --git a/core/modules/field/field.module b/core/modules/field/field.module index 5b762b5..ec196e9 100644 --- a/core/modules/field/field.module +++ b/core/modules/field/field.module @@ -982,7 +982,7 @@ function field_extract_bundle($entity_type, $bundle) { */ function field_page_build(&$page) { $path = drupal_get_path('module', 'field'); - $page['#attached']['css'][$path . '/theme/field.css'] = array('every_page' => TRUE); + $page['#attached']['css'][$path . '/css/field.module.css'] = array('every_page' => TRUE); } /** @@ -1034,7 +1034,7 @@ function template_preprocess_field(&$variables, $hook) { 'field-label-' . $element['#label_display'], ); // Add a "clearfix" class to the wrapper since we float the label and the - // field items in field.css if the label is inline. + // field items in field.module.css if the label is inline. if ($element['#label_display'] == 'inline') { $variables['attributes']['class'][] = 'clearfix'; } diff --git a/core/modules/field_ui/field_ui.admin-rtl.css b/core/modules/field_ui/css/field_ui.admin-rtl.css similarity index 100% rename from core/modules/field_ui/field_ui.admin-rtl.css rename to core/modules/field_ui/css/field_ui.admin-rtl.css diff --git a/core/modules/field_ui/field_ui.admin.css b/core/modules/field_ui/css/field_ui.admin.css similarity index 100% rename from core/modules/field_ui/field_ui.admin.css rename to core/modules/field_ui/css/field_ui.admin.css diff --git a/core/modules/field_ui/field_ui.module b/core/modules/field_ui/field_ui.module index 51115b8..f3bb151 100644 --- a/core/modules/field_ui/field_ui.module +++ b/core/modules/field_ui/field_ui.module @@ -338,7 +338,7 @@ function field_ui_library_info() { drupal_get_path('module', 'field_ui') . '/field_ui.js' => array(), ), 'css' => array( - drupal_get_path('module', 'field_ui') . '/field_ui.admin.css' => array(), + drupal_get_path('module', 'field_ui') . '/css/field_ui.admin.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/file/file.admin.css b/core/modules/file/css/file.admin.css similarity index 100% rename from core/modules/file/file.admin.css rename to core/modules/file/css/file.admin.css diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 09ad82d..65b15e5 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -1651,7 +1651,7 @@ function file_library_info() { drupal_get_path('module', 'file') . '/file.js' => array(), ), 'css' => array( - drupal_get_path('module', 'file') . '/file.admin.css' + drupal_get_path('module', 'file') . '/css/file.admin.css' ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/filter/filter.admin-rtl.css b/core/modules/filter/css/filter.admin-rtl.css similarity index 100% rename from core/modules/filter/filter.admin-rtl.css rename to core/modules/filter/css/filter.admin-rtl.css diff --git a/core/modules/filter/filter.admin.css b/core/modules/filter/css/filter.admin.css similarity index 89% rename from core/modules/filter/filter.admin.css rename to core/modules/filter/css/filter.admin.css index 8c144cf..ac21686 100644 --- a/core/modules/filter/filter.admin.css +++ b/core/modules/filter/css/filter.admin.css @@ -31,7 +31,7 @@ margin: 0; } .filter-help a { - background: transparent url(../../misc/help.png) right center no-repeat; /* LTR */ + background: transparent url(../../../misc/help.png) right center no-repeat; /* LTR */ padding: 0 20px 0 0; /* LTR */ } diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index 857a33b..cf0eaef 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -1439,7 +1439,7 @@ function filter_library_info() { drupal_get_path('module', 'filter') . '/filter.admin.js' => array(), ), 'css' => array( - drupal_get_path('module', 'filter') . '/filter.admin.css' + drupal_get_path('module', 'filter') . '/css/filter.admin.css' ), 'dependencies' => array( array('system', 'jquery'), @@ -1455,7 +1455,7 @@ function filter_library_info() { drupal_get_path('module', 'filter') . '/filter.js' => array(), ), 'css' => array( - drupal_get_path('module', 'filter') . '/filter.admin.css' + drupal_get_path('module', 'filter') . '/css/filter.admin.css' ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/forum/forum-rtl.css b/core/modules/forum/css/forum.module-rtl.css similarity index 100% rename from core/modules/forum/forum-rtl.css rename to core/modules/forum/css/forum.module-rtl.css diff --git a/core/modules/forum/forum.css b/core/modules/forum/css/forum.module.css similarity index 93% rename from core/modules/forum/forum.css rename to core/modules/forum/css/forum.module.css index 5ac5e75..0c4f8fc 100644 --- a/core/modules/forum/forum.css +++ b/core/modules/forum/css/forum.module.css @@ -16,7 +16,7 @@ white-space: nowrap; } #forum .icon{ - background-image: url(../../misc/forum-icons.png); + background-image: url(../../../misc/forum-icons.png); background-repeat: no-repeat; float: left; /* LTR */ height: 24px; diff --git a/core/modules/forum/forum.pages.inc b/core/modules/forum/forum.pages.inc index 422d92e..67b7f21 100644 --- a/core/modules/forum/forum.pages.inc +++ b/core/modules/forum/forum.pages.inc @@ -73,6 +73,6 @@ function forum_page($forum_term = NULL) { '#sortby' => $sort_by, '#forums_per_page' => $forum_per_page, ); - $build['#attached']['css'][] = drupal_get_path('module', 'forum') . '/forum.css'; + $build['#attached']['css'][] = drupal_get_path('module', 'forum') . '/css/forum.module.css'; return $build; } diff --git a/core/modules/help/help-rtl.css b/core/modules/help/css/help.module-rtl.css similarity index 100% rename from core/modules/help/help-rtl.css rename to core/modules/help/css/help.module-rtl.css diff --git a/core/modules/help/help.css b/core/modules/help/css/help.module.css similarity index 100% rename from core/modules/help/help.css rename to core/modules/help/css/help.module.css diff --git a/core/modules/help/lib/Drupal/help/Controller/HelpController.php b/core/modules/help/lib/Drupal/help/Controller/HelpController.php index 2038b8d..bfe95f6 100644 --- a/core/modules/help/lib/Drupal/help/Controller/HelpController.php +++ b/core/modules/help/lib/Drupal/help/Controller/HelpController.php @@ -48,7 +48,7 @@ public static function create(ContainerInterface $container) { public function helpMain() { $output = array( '#attached' => array( - 'css' => array(drupal_get_path('module', 'help') . '/help.css'), + 'css' => array(drupal_get_path('module', 'help') . '/css/help.module.css'), ), '#markup' => '

' . t('Help topics') . '

' . t('Help is available on the following items:') . '

' . $this->helpLinksAsList(), ); diff --git a/core/modules/help/lib/Drupal/help/Tests/HelpTest.php b/core/modules/help/lib/Drupal/help/Tests/HelpTest.php index 54b955f..5a40fa0 100644 --- a/core/modules/help/lib/Drupal/help/Tests/HelpTest.php +++ b/core/modules/help/lib/Drupal/help/Tests/HelpTest.php @@ -67,7 +67,7 @@ public function testHelp() { // Check for css on admin/help. $this->drupalLogin($this->adminUser); $this->drupalGet('admin/help'); - $this->assertRaw(drupal_get_path('module', 'help') . '/help.css', 'The help.css file is present in the HTML.'); + $this->assertRaw(drupal_get_path('module', 'help') . '/css/help.module.css', 'The help.module.css file is present in the HTML.'); // Verify that introductory help text exists, goes for 100% module coverage. $this->assertRaw(t('For more information, refer to the specific topics listed in the next section or to the online Drupal handbooks.', array('@drupal' => 'http://drupal.org/documentation')), 'Help intro text correctly appears.'); diff --git a/core/modules/image/image.admin.css b/core/modules/image/css/image.admin.css similarity index 100% rename from core/modules/image/image.admin.css rename to core/modules/image/css/image.admin.css diff --git a/core/modules/image/image.theme-rtl.css b/core/modules/image/css/image.theme-rtl.css similarity index 100% rename from core/modules/image/image.theme-rtl.css rename to core/modules/image/css/image.theme-rtl.css diff --git a/core/modules/image/image.theme.css b/core/modules/image/css/image.theme.css similarity index 100% rename from core/modules/image/image.theme.css rename to core/modules/image/css/image.theme.css diff --git a/core/modules/image/image.admin.inc b/core/modules/image/image.admin.inc index 9ed3aa9..59cc1c6 100644 --- a/core/modules/image/image.admin.inc +++ b/core/modules/image/image.admin.inc @@ -15,7 +15,7 @@ function image_style_list() { $page['image_style_list'] = array( '#markup' => theme('image_style_list', array('styles' => $styles)), '#attached' => array( - 'css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array()), + 'css' => array(drupal_get_path('module', 'image') . '/css/image.admin.css' => array()), ), ); @@ -39,7 +39,7 @@ function image_style_form($form, &$form_state, $style) { $form_state['image_style'] = $style; $form['#tree'] = TRUE; - $form['#attached']['css'][drupal_get_path('module', 'image') . '/image.admin.css'] = array(); + $form['#attached']['css'][drupal_get_path('module', 'image') . '/css/image.admin.css'] = array(); // Show the thumbnail preview. $form['preview'] = array( @@ -297,7 +297,7 @@ function image_effect_form($form, &$form_state, $style, $effect) { } drupal_set_title($title, PASS_THROUGH); - $form['#attached']['css'][drupal_get_path('module', 'image') . '/image.admin.css'] = array(); + $form['#attached']['css'][drupal_get_path('module', 'image') . '/css/image.admin.css'] = array(); $form['ieid'] = array( '#type' => 'value', diff --git a/core/modules/image/image.field.inc b/core/modules/image/image.field.inc index eed43df..705bcf3 100644 --- a/core/modules/image/image.field.inc +++ b/core/modules/image/image.field.inc @@ -316,7 +316,7 @@ function image_field_widget_process($element, &$form_state, $form) { $item['fids'] = $element['fids']['#value']; $element['#theme'] = 'image_widget'; - $element['#attached']['css'][] = drupal_get_path('module', 'image') . '/image.theme.css'; + $element['#attached']['css'][] = drupal_get_path('module', 'image') . '/css/image.theme.css'; // Add the image preview. if (!empty($element['#files']) && $element['#preview_image_style']) { diff --git a/core/modules/language/language.admin.css b/core/modules/language/css/language.admin.css similarity index 100% rename from core/modules/language/language.admin.css rename to core/modules/language/css/language.admin.css diff --git a/core/modules/language/language.admin.inc b/core/modules/language/language.admin.inc index 33eaa6b..68986f6 100644 --- a/core/modules/language/language.admin.inc +++ b/core/modules/language/language.admin.inc @@ -805,7 +805,7 @@ function language_content_settings_form(array $form, array $form_state, array $s $form = array( '#labels' => $labels, '#attached' => array( - 'css' => array($path . '/language.admin.css'), + 'css' => array($path . '/css/language.admin.css'), ), ); diff --git a/core/modules/layout/layout.admin.css b/core/modules/layout/css/layout.admin.css similarity index 100% rename from core/modules/layout/layout.admin.css rename to core/modules/layout/css/layout.admin.css diff --git a/core/modules/layout/layout.admin.inc b/core/modules/layout/layout.admin.inc index 797c4c7..fac4370 100644 --- a/core/modules/layout/layout.admin.inc +++ b/core/modules/layout/layout.admin.inc @@ -30,6 +30,6 @@ function layout_page_view($key) { '#type' => 'markup', '#markup' => $instance->renderLayout(TRUE, $regions), ); - $build['#attached']['css'][] = drupal_get_path('module', 'layout') . '/layout.admin.css'; + $build['#attached']['css'][] = drupal_get_path('module', 'layout') . '/css/layout.admin.css'; return $build; } diff --git a/core/modules/locale/locale.admin-rtl.css b/core/modules/locale/css/locale.admin-rtl.css similarity index 100% rename from core/modules/locale/locale.admin-rtl.css rename to core/modules/locale/css/locale.admin-rtl.css diff --git a/core/modules/locale/locale.admin.css b/core/modules/locale/css/locale.admin.css similarity index 94% rename from core/modules/locale/locale.admin.css rename to core/modules/locale/css/locale.admin.css index 03ce7bd..d7bd328 100644 --- a/core/modules/locale/locale.admin.css +++ b/core/modules/locale/css/locale.admin.css @@ -66,12 +66,12 @@ vertical-align: top; } #locale-translation-status-form .expand .inner { - background: transparent url(../../misc/menu-collapsed.png) left .6em no-repeat; + background: transparent url(../../../misc/menu-collapsed.png) left .6em no-repeat; margin-left: -12px; padding-left: 12px; } #locale-translation-status-form .expanded .expand .inner { - background: transparent url(../../misc/menu-expanded.png) left .6em no-repeat; + background: transparent url(../../../misc/menu-expanded.png) left .6em no-repeat; } #locale-translation-status-form label { diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index 9ba7b71..5a3a012 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -164,7 +164,7 @@ function locale_translate_filter_form($form, &$form_state) { $filter_values = locale_translate_filter_values(); $form['#attached']['css'] = array( - drupal_get_path('module', 'locale') . '/locale.admin.css', + drupal_get_path('module', 'locale') . '/css/locale.admin.css', ); $form['filters'] = array( @@ -261,7 +261,7 @@ function locale_translate_edit_form($form, &$form_state) { $path = drupal_get_path('module', 'locale'); $form['#attached']['css'] = array( - $path . '/locale.admin.css', + $path . '/css/locale.admin.css', ); $form['#attached']['library'][] = array('locale', 'drupal.locale.admin'); @@ -584,7 +584,7 @@ function locale_translation_status_form($form, &$form_state) { ); $form['#attached']['library'][] = array('locale', 'drupal.locale.admin'); - $form['#attached']['css'] = array(drupal_get_path('module', 'locale') . '/locale.admin.css'); + $form['#attached']['css'] = array(drupal_get_path('module', 'locale') . '/css/locale.admin.css'); $form['actions'] = array('#type' => 'actions'); if ($languages_update) { diff --git a/core/modules/menu/menu.admin.css b/core/modules/menu/css/menu.admin.css similarity index 100% rename from core/modules/menu/menu.admin.css rename to core/modules/menu/css/menu.admin.css diff --git a/core/modules/menu/lib/Drupal/menu/MenuListController.php b/core/modules/menu/lib/Drupal/menu/MenuListController.php index e557d92..1ed2200 100644 --- a/core/modules/menu/lib/Drupal/menu/MenuListController.php +++ b/core/modules/menu/lib/Drupal/menu/MenuListController.php @@ -71,7 +71,7 @@ public function getOperations(EntityInterface $entity) { */ public function render() { $build = parent::render(); - $build['#attached']['css'][] = drupal_get_path('module', 'menu') . '/menu.admin.css'; + $build['#attached']['css'][] = drupal_get_path('module', 'menu') . '/css/menu.admin.css'; return $build; } diff --git a/core/modules/menu/menu.admin.inc b/core/modules/menu/menu.admin.inc index 4150b99..f08ddbd 100644 --- a/core/modules/menu/menu.admin.inc +++ b/core/modules/menu/menu.admin.inc @@ -71,7 +71,7 @@ function menu_overview_form($form, &$form_state) { $form['#theme'] = 'menu_overview_form'; $form_state += array('menu_overview_form_parents' => array()); - $form['#attached']['css'] = array(drupal_get_path('module', 'menu') . '/menu.admin.css'); + $form['#attached']['css'] = array(drupal_get_path('module', 'menu') . '/css/menu.admin.css'); $links = array(); $query = Drupal::entityQuery('menu_link') diff --git a/core/modules/node/node.admin.css b/core/modules/node/css/node.admin.css similarity index 100% rename from core/modules/node/node.admin.css rename to core/modules/node/css/node.admin.css diff --git a/core/modules/node/node.edit.admin.css b/core/modules/node/css/node.module.css similarity index 100% rename from core/modules/node/node.edit.admin.css rename to core/modules/node/css/node.module.css diff --git a/core/modules/node/node.pages.inc b/core/modules/node/node.pages.inc index f2391be..d8f8d7c 100644 --- a/core/modules/node/node.pages.inc +++ b/core/modules/node/node.pages.inc @@ -300,7 +300,7 @@ function node_revision_overview($node) { '#rows' => $rows, '#header' => $header, '#attached' => array ( - 'css' => array(drupal_get_path('module', 'node') . '/node.admin.css'), + 'css' => array(drupal_get_path('module', 'node') . '/css/node.admin.css'), ), ); diff --git a/core/modules/overlay/overlay-child-rtl.css b/core/modules/overlay/css/overlay-child-rtl.css similarity index 100% rename from core/modules/overlay/overlay-child-rtl.css rename to core/modules/overlay/css/overlay-child-rtl.css diff --git a/core/modules/overlay/overlay-child.css b/core/modules/overlay/css/overlay-child.css similarity index 97% rename from core/modules/overlay/overlay-child.css rename to core/modules/overlay/css/overlay-child.css index 48ced7f..4610749 100644 --- a/core/modules/overlay/overlay-child.css +++ b/core/modules/overlay/css/overlay-child.css @@ -63,7 +63,7 @@ } #overlay-close, #overlay-close:hover { - background: #ffffff url(images/close.png) no-repeat; + background: #ffffff url(../images/close.png) no-repeat; border-radius: 0 12px 12px 0; /* LTR */ display: block; height: 26px; diff --git a/core/modules/overlay/overlay-parent.css b/core/modules/overlay/css/overlay-parent.css similarity index 94% rename from core/modules/overlay/overlay-parent.css rename to core/modules/overlay/css/overlay-parent.css index 9459a7a..0447f53 100644 --- a/core/modules/overlay/overlay-parent.css +++ b/core/modules/overlay/css/overlay-parent.css @@ -23,7 +23,7 @@ html.overlay-open body { .overlay-modal-background { /* Using a transparent png renders faster than using opacity */ - background: transparent url(images/background.png) repeat; + background: transparent url(../images/background.png) repeat; } .overlay-element { diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module index d34f175..ce4092b 100644 --- a/core/modules/overlay/overlay.module +++ b/core/modules/overlay/overlay.module @@ -140,7 +140,7 @@ function overlay_library_info() { $module_path . '/overlay-parent.js' => array(), ), 'css' => array( - $module_path . '/overlay-parent.css' => array(), + $module_path . '/css/overlay-parent.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), @@ -162,7 +162,7 @@ function overlay_library_info() { $module_path . '/overlay-child.js' => array(), ), 'css' => array( - $module_path . '/overlay-child.css' => array(), + $module_path . '/css/overlay-child.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/shortcut/shortcut.base-rtl.css b/core/modules/shortcut/css/shortcut.module-rtl.css similarity index 100% rename from core/modules/shortcut/shortcut.base-rtl.css rename to core/modules/shortcut/css/shortcut.module-rtl.css diff --git a/core/modules/shortcut/shortcut.base.css b/core/modules/shortcut/css/shortcut.module.css similarity index 100% rename from core/modules/shortcut/shortcut.base.css rename to core/modules/shortcut/css/shortcut.module.css diff --git a/core/modules/shortcut/shortcut.theme-rtl.css b/core/modules/shortcut/css/shortcut.theme-rtl.css similarity index 100% rename from core/modules/shortcut/shortcut.theme-rtl.css rename to core/modules/shortcut/css/shortcut.theme-rtl.css diff --git a/core/modules/shortcut/shortcut.theme.css b/core/modules/shortcut/css/shortcut.theme.css similarity index 83% rename from core/modules/shortcut/shortcut.theme.css rename to core/modules/shortcut/css/shortcut.theme.css index 04f7c9f..a9525a7 100644 --- a/core/modules/shortcut/shortcut.theme.css +++ b/core/modules/shortcut/css/shortcut.theme.css @@ -7,11 +7,11 @@ * Toolbar. */ .icon-shortcut:before { - background-image: url("images/shortcut.png"); + background-image: url(../images/shortcut.png); } .icon-shortcut:active:before, .icon-shortcut.active:before { - background-image: url("images/shortcut-active.png"); + background-image: url(../images/shortcut-active.png); } .toolbar .tray.horizontal.shortcuts .menu { float: left; @@ -31,7 +31,7 @@ * Add/remove links. */ .add-or-remove-shortcuts .icon { - background: transparent url(shortcut.png) no-repeat; + background: transparent url(../images/shortcut-add.png) no-repeat; height: 12px; margin-left: 8px; /* LTR */ overflow: hidden; diff --git a/core/modules/shortcut/shortcut.png b/core/modules/shortcut/images/shortcut-add.png similarity index 100% rename from core/modules/shortcut/shortcut.png rename to core/modules/shortcut/images/shortcut-add.png diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module index db284c5..8de14a0 100644 --- a/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -524,8 +524,8 @@ function shortcut_preprocess_page(&$variables) { $variables['title_suffix']['add_or_remove_shortcut'] = array( '#attached' => array( 'css' => array( - drupal_get_path('module', 'shortcut') . '/shortcut.base.css', - drupal_get_path('module', 'shortcut') . '/shortcut.theme.css', + drupal_get_path('module', 'shortcut') . '/css/shortcut.module.css', + drupal_get_path('module', 'shortcut') . '/css/shortcut.theme.css', ), ), '#prefix' => '