样式不适用于新主题Drupal 8

时间:2016-01-29 18:56:43

标签: drupal drupal-theming drupal-8

我正在尝试创建我的主题(Drupal 8.0.2) 所以,在我的drupal文件夹中, drupal-> themes-> custom

我有我的主题文件夹: themex

我有 themex.info.yml

name: themex
type: theme
base theme: classy
description: themex description
core: 8.x
screenshot: screenshot.png
libraries:
  - themex/global-styling
stylesheets-remove:
  - '@classy/css/components/tabs.css'
  - core/assets/vendor/normalize-css/normalize.css
regions:
  header: Header
  content: Content
  sidebar_first: 'Sidebar first'
  footer: Footer

我的 themex.libraries.yml

global-styling:
  version: 1.x
  css:
    theme:
      css/styles.css: {}
  js:
    js/myjavascript.js: {}
  dependencies:
    - core/jquery

font-awesome:
  remote: https://fortawesome.github.io/Font-Awesome/
  version: 4.5.0
  license:
    name: MIT
    url: https://fortawesome.github.io/Font-Awesome/license/
    gpl-compatible: true
  css:
    theme:
      https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css: { type: external, minified: true }

在文件夹 css 内,我有 styles.css

body { 
    background-color: #000000; 
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 50px; 
    }

我安装并将themex设置为默认值。

我也取消选中

汇总CSS文件

汇总JavaScript文件

然后清除所有缓存

但是...... 我的风格没有实现。任何人都知道为什么......? 非常感谢!

0 个答案:

没有答案