Version 1
[yaffs-website] / web / core / modules / system / tests / themes / test_theme / test_theme.info.yml
1 # Normally, themes may list CSS files like this, and if they exist in the theme
2 # folder, then they get added to the page. If they have the same file name as a
3 # module CSS file, then the theme's version overrides the module's version, so
4 # that the module's version is not added to the page. Additionally, a theme may
5 # have an entry like this one, without having the corresponding CSS file in the
6 # theme's folder, and in this case, it just stops the module's version from
7 # being loaded, and does not replace it with an alternate version. We have this
8 # here in order for a test to ensure that this correctly prevents the module
9 # version from being loaded, and that errors aren't caused by the lack of this
10 # file within the theme folder.
11 name: '<strong>Test theme</strong>'
12 type: theme
13 description: 'Theme for testing the theme system'
14 version: VERSION
15 base theme: classy
16 core: 8.x
17 stylesheets-remove:
18   - '@system/css/js.module.css'
19 libraries:
20   - test_theme/global-styling
21 libraries-override:
22   # Replace an entire library.
23   core/drupal.collapse: test_theme/collapse
24   # Remove an entire library.
25   core/drupal.progress: false
26   # Replace particular library assets.
27   classy/base:
28     css:
29       component:
30         css/components/button.css: css/my-button.css
31         css/components/collapse-processed.css: css/my-collapse-processed.css
32         css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
33         css/components/details.css: /themes/my_theme/css/my-details.css
34   # Remove particular library assets.
35   classy/dialog:
36     css:
37       component:
38         css/components/dialog.css: false
39   # It works for JS as well.
40   core/jquery:
41     js:
42       assets/vendor/jquery/jquery.min.js: js/collapse.js
43   # Use Drupal-relative paths.
44   core/drupal.dropbutton:
45     css:
46       component:
47         /core/themes/stable/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
48   # Use stream wrappers.
49   core/drupal.vertical-tabs:
50     css:
51       component:
52         /core/themes/stable/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
53   # Use a protocol-relative URI.
54   core/jquery.ui:
55     css:
56       component:
57         assets/vendor/jquery.ui/themes/base/core.css: //my-server/my_theme/css/jquery_ui.css
58   # Use an absolute URI.
59   core/jquery.farbtastic:
60     css:
61       component:
62         assets/vendor/farbtastic/farbtastic.css: http://example.com/my_theme/css/farbtastic.css
63
64 regions:
65   content: Content
66   left: Left
67   right: Right