js.module.css

Same filename in this branch
  1. 8.9.x core/modules/system/css/components/js.module.css
Same filename and directory in other branches
  1. 9 core/themes/stable9/css/system/components/js.module.css
  2. 9 core/themes/stable/css/system/components/js.module.css
  3. 9 core/modules/system/css/components/js.module.css
  4. 10 core/themes/stable9/css/system/components/js.module.css
  5. 10 core/modules/system/css/components/js.module.css
  6. 11.x core/themes/stable9/css/system/components/js.module.css
  7. 11.x core/modules/system/css/components/js.module.css

Utility classes to assist with Javascript functionality.

File

core/themes/stable/css/system/components/js.module.css

View source
  1. /**
  2. * @file
  3. * Utility classes to assist with Javascript functionality.
  4. */
  5. /**
  6. * For anything you want to hide on page load when JS is enabled, so
  7. * that you can use the JS to control visibility and avoid flicker.
  8. */
  9. .js .js-hide {
  10. display: none;
  11. }
  12. /**
  13. * For anything you want to show on page load only when JS is enabled.
  14. */
  15. .js-show {
  16. display: none;
  17. }
  18. .js .js-show {
  19. display: block;
  20. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.