test_theme.info.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. logo: images/logo2.svg
  18. stylesheets-remove:
  19. - '@system/css/js.module.css'
  20. libraries:
  21. - test_theme/global-styling
  22. libraries-override:
  23. # Replace an entire library.
  24. core/drupal.collapse: test_theme/collapse
  25. # Remove an entire library.
  26. core/drupal.progress: false
  27. # Replace particular library assets.
  28. classy/base:
  29. css:
  30. component:
  31. css/components/button.css: css/my-button.css
  32. css/components/collapse-processed.css: css/my-collapse-processed.css
  33. css/components/container-inline.css: /themes/my_theme/css/my-container-inline.css
  34. css/components/details.css: /themes/my_theme/css/my-details.css
  35. # Remove particular library assets.
  36. classy/dialog:
  37. css:
  38. component:
  39. css/components/dialog.css: false
  40. # It works for JS as well.
  41. core/jquery:
  42. js:
  43. assets/vendor/jquery/jquery.min.js: js/collapse.js
  44. # Use Drupal-relative paths.
  45. core/drupal.dropbutton:
  46. css:
  47. component:
  48. /core/themes/stable/css/core/dropbutton/dropbutton.css: /themes/my_theme/css/dropbutton.css
  49. # Use stream wrappers.
  50. core/drupal.vertical-tabs:
  51. css:
  52. component:
  53. /core/themes/stable/css/core/vertical-tabs.css: public://my_css/vertical-tabs.css
  54. # Use a protocol-relative URI.
  55. core/jquery.ui:
  56. css:
  57. component:
  58. assets/vendor/jquery.ui/themes/base/core.css: //my-server/my_theme/css/jquery_ui.css
  59. # Use an absolute URI.
  60. core/jquery.farbtastic:
  61. css:
  62. component:
  63. assets/vendor/farbtastic/farbtastic.css: http://example.com/my_theme/css/farbtastic.css
  64. regions:
  65. content: Content
  66. left: Left
  67. right: Right