Stworzyłem własny motyw Drupal 8:
mytheme.info.yml:
name: My Theme
description: 'Drupal 8 Theme'
type: theme
base theme: bartik
core: '8.x'
mytheme.libraries.yml
global-styling:
version: 1.x
css:
theme:
css/layout.css: {}
css/style.css: {}
css/colors.css: {}
css/print.css: { media: print }
Używam „Seven” jako motywu administratora.
Kiedy edytuję stronę (/ node / x / edit) używa się siedmiu motywów.
Teraz muszę dodać trochę CSS do formularza edycji. W jaki sposób mogę to zrobić? style.css jest ładowany tylko na stronach frontonu. Strony edycji używają siedmiu motywów, a mój motyw CSS jest ignorowany.
Jak mogę dodać trochę CSS do stron administracyjnych lub edytować formularze w Drupal 8?