tour.theme.pcss.css

Styles for Tour theme.

File

core/themes/claro/css/theme/tour.theme.pcss.css

View source
  1. /**
  2. * @file
  3. * Styles for Tour theme.
  4. */
  5. @import "../base/variables.pcss.css";
  6. /* Default styles for the container */
  7. .shepherd-element {
  8. color: #fff;
  9. border-radius: 5px;
  10. background-color: #000;
  11. background-color: rgba(0, 0, 0, 0.8);
  12. }
  13. .shepherd-element:focus {
  14. outline: 2px dotted transparent;
  15. box-shadow: 0 0 0 2px var(--color-white), 0 0 0 5px var(--color-focus);
  16. }
  17. /* Mobile */
  18. @media only screen and (max-width: 767px) {
  19. .shepherd-element {
  20. border-radius: 0;
  21. }
  22. }
  23. .shepherd-arrow:before {
  24. background: none;
  25. }
  26. /* Add a little css triangle pip, older browser just miss out on the fanciness of it. */
  27. .shepherd-arrow {
  28. border: solid 14px rgba(0, 0, 0, 0.8);
  29. }
  30. .shepherd-element[data-popper-placement^=top] > .shepherd-arrow {
  31. bottom: -28px;
  32. border-right-color: transparent;
  33. border-bottom-color: transparent;
  34. border-left-color: transparent;
  35. }
  36. .shepherd-element[data-popper-placement^=bottom] > .shepherd-arrow {
  37. top: -28px;
  38. border-top-color: transparent;
  39. border-right-color: transparent;
  40. border-left-color: transparent;
  41. }
  42. .shepherd-element[data-popper-placement^=left] > .shepherd-arrow {
  43. right: -28px;
  44. border-top-color: transparent;
  45. border-right-color: transparent; /* LTR */
  46. border-bottom-color: transparent;
  47. }
  48. .shepherd-element[data-popper-placement^=right] > .shepherd-arrow {
  49. left: -28px;
  50. border-top-color: transparent;
  51. border-bottom-color: transparent;
  52. border-left-color: transparent; /* LTR */
  53. }
  54. .shepherd-text p {
  55. line-height: 1.385em;
  56. }
  57. .shepherd-text a {
  58. color: var(--color-sunglow);
  59. }
  60. .shepherd-cancel-icon {
  61. color: #fff;
  62. font-size: 1.4em;
  63. font-weight: bold;
  64. line-height: 1;
  65. }
  66. .shepherd-cancel-icon:hover,
  67. .shepherd-cancel-icon:focus {
  68. color: rgba(255, 255, 255, 0.9);
  69. }
  70. .shepherd-button {
  71. margin: 0;
  72. }
  73. .shepherd-content *:focus {
  74. outline: 2px dotted transparent;
  75. box-shadow: 0 0 0 2px var(--color-white), 0 0 0 5px var(--color-focus);
  76. }

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