Drupal 8不会渲染我的样式表。有什么想法为什么不能渲染?
我尝试清除缓存,但这没有帮助。下面是我的代码:
fluffiness.info.yml
name: fluffiness
type: theme
description: "A cuddly theme that offers extra fluffiness"
core: 8.x
libraries:
-fluffiness/cuddly-slider
base them: classy
regions:
header: Header
content: Content
sidebar_first: 'Sidebar first'
footer: Footer
fluffiness.libraries.yml
cuddly-slider:
version: 1.x
css:
theme:
css/cuddly-slider.css: {}
js:
js/cuddly-slider.js: {}
dependencies:
- core/jquery
themes / custom / fluffiness / page--front.html.twig
{{ attach_library('fluffiness/cuddly-slider') }}
<header role="banner">
{{ page.header }}
</header>
<div class="layout-container">
<main role="main">
<a id="main-s" tabindex="-1"></a>{# link is in html.html.twig #}
<div class="layout-content">
{{ page.content }}
</div>{# /.layout-content #}
</main>
{% if page.footer %}
<footer role="contentinfo">
{{ page.footer }}
</footer>
{% endif %}
</div>
themes / custom / fluffiness / css / cuddly-slider.css
header {
background-color: black;
}