php - Drupal:子主题 CSS 不起作用

标签 php css drupal yaml

我是一个完全的 Drupal 初学者。 我设置了一个 Drupal 子主题,它已激活并正在运行。 我采用了 Bootstrap 主题。 现在我正在尝试添加我的自定义 CSS。

这是我的树:
enter image description here

库.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/

相关文章:

php - 将不可读字符转换为 Unicode 字符

PHP 从查询字符串中检索键,对于每个键 : create URL removing that key from query string

javascript - 通过XHR获取json数据以动态智能渲染dhtmlxgrid无限循环

javascript - 像素化跨浏览器图像缩放

css - Firefox 中带有网格选项问题的 Drupal View

Drupal: View :如何对字段进行分组

php - 使用在线 PHP 文件设置对 DB 的本地调用 - 连接问题

css - 为什么 slider 会挡住菜单?

javascript - 使用 css 创建具有跨行的表状结构

php - 第 551 行的 fatal error : Maximum execution time of 30 seconds exceeded in c:\wamp\www\drupal2\includes\common. inc