我是一个完全的 Drupal 初学者。 我设置了一个 Drupal 子主题,它已激活并正在运行。 我采用了 Bootstrap 主题。 现在我正在尝试添加我的自定义 CSS。
库.yml
global-styling:
css:
theme:
css/style.css: {}
info.yml
core: 8.x
type: theme
base theme: bootstrap
name: 'Recipes'
description: 'Uses the jsDelivr CDN for all CSS and JavaScript. No source files or compiling is necessary and is recommended for simple sites or beginners.'
package: 'Bootstrap'
regions:
navigation: 'Navigation'
navigation_collapsible: 'Navigation (Collapsible)'
header: 'Top Bar'
highlighted: 'Highlighted'
help: 'Help'
content: 'Content'
sidebar_first: 'Primary'
sidebar_second: 'Secondary'
footer: 'Footer'
page_top: 'Page top'
page_bottom: 'Page bottom'
myregion: 'meine neue Region'
libraries:
- 'recipes/global-styling'
我希望你能帮助我:)
最佳答案
试试这个
库.yml
global-styling:
version: VERSION
css:
base:
css/style.css: {}
info.yml
libraries:
- recipes/global-styling
关于php - Drupal:子主题 CSS 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47971675/