Verified Commit 3913d9cf authored by Michael Strelan's avatar Michael Strelan
Browse files

task: #3621981 Remove admin-custom.css

By: quietone
By: hoxton
By: daffie
By: godotislate
(cherry picked from commit 1ed8ef5d)
parent 1af3e987
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -405,13 +405,6 @@ escape_admin:
  dependencies:
    - core/once

# Custom CSS

admin_custom_css:
  css:
    theme:
      public://admin-custom.css: { preprocess: false, minified: false, weight: 50 }

# Libs

scroll_sync:
+0 −19
Original line number Diff line number Diff line
@@ -42,20 +42,6 @@ public static function trustedCallbacks(): array {
    ];
  }

  /**
   * Implements hook_css_alter().
   *
   * Set admin CSS on top of all other CSS files.
   */
  #[Hook('css_alter')]
  public function cssAlter(array &$css): void {
    // The admin-custom.css file should be loaded just after admin.css file.
    $custom_css = 'public://admin-custom.css';
    if (isset($css[$custom_css])) {
      $css[$custom_css]['group'] = 201;
    }
  }

  /**
   * Implements hook_element_info_alter().
   */
@@ -160,11 +146,6 @@ public function pageAttachmentsAlter(array &$page): void {
    // Attach sticky library.
    $page['#attached']['library'][] = 'default_admin/sticky';

    // Custom CSS file.
    if (file_exists('public://admin-custom.css')) {
      $page['#attached']['library'][] = 'default_admin/admin_custom_css';
    }

    $settings = Settings::getInstance();
    // Expose theme settings to JS.
    $default_admin_settings = [