off-canvas.details.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * @file
  3. * Visual styling for summary and details in the off-canvas dialog.
  4. */
  5. #drupal-off-canvas details {
  6. display: block;
  7. }
  8. #drupal-off-canvas details,
  9. #drupal-off-canvas summary {
  10. font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  11. }
  12. #drupal-off-canvas details,
  13. #drupal-off-canvas summary,
  14. #drupal-off-canvas .ui-dialog-content {
  15. color: #ddd;
  16. background: #474747;
  17. }
  18. #drupal-off-canvas summary a {
  19. padding-top: 0;
  20. padding-bottom: 0;
  21. color: #ddd;
  22. }
  23. #drupal-off-canvas summary a:hover,
  24. #drupal-off-canvas summary a:focus {
  25. color: #fff;
  26. }
  27. #drupal-off-canvas details,
  28. #drupal-off-canvas summary,
  29. #drupal-off-canvas .details-wrapper {
  30. /* Cancel out the padding of the parent. */
  31. margin: 0 -20px;
  32. padding: 0 20px;
  33. border-width: 0;
  34. }
  35. #drupal-off-canvas summary {
  36. padding: 10px 20px;
  37. transition: all 0.5s ease;
  38. text-shadow: none;
  39. font-size: 14px;
  40. }
  41. #drupal-off-canvas summary:hover,
  42. #drupal-off-canvas summary:focus {
  43. background-color: #222;
  44. }
  45. #drupal-off-canvas details[open] {
  46. padding-bottom: 10px;
  47. }
  48. #drupal-off-canvas details[open] > summary {
  49. color: #eee;
  50. background-color: #333;
  51. }
  52. #drupal-off-canvas details[open] > summary:hover {
  53. color: #fff;
  54. background-color: #222;
  55. }
  56. #drupal-off-canvas details .placeholder {
  57. color: inherit;
  58. background: transparent;
  59. font: inherit;
  60. font-style: italic;
  61. }