tour.module.css

Styling for tour module.

File

core/modules/tour/css/tour.module.css

View source
  1. /**
  2. * @file
  3. * Styling for tour module.
  4. */
  5. /* Tab appearance. */
  6. .toolbar .toolbar-bar .tour-toolbar-tab.toolbar-tab {
  7. float: right; /* LTR */
  8. }
  9. [dir="rtl"] .toolbar .toolbar-bar .tour-toolbar-tab.toolbar-tab {
  10. float: left;
  11. }
  12. /* Style the tour progress indicator. */
  13. .tour-progress {
  14. position: absolute;
  15. right: 20px; /* LTR */
  16. bottom: 20px;
  17. }
  18. [dir="rtl"] .tour-progress {
  19. right: auto;
  20. left: 20px;
  21. }
  22. /**
  23. * The following are largely Shepherd's default styles, with a few modifications
  24. * to facilitate a graceful transition from Joyride, the library used prior to
  25. * Shepherd.
  26. */
  27. .shepherd-footer {
  28. display: flex;
  29. justify-content: flex-start;
  30. padding: 0 20px 20px;
  31. }
  32. .shepherd-footer .shepherd-button:last-child {
  33. margin-right: 0;
  34. }
  35. .shepherd-cancel-icon {
  36. position: absolute;
  37. top: 20px;
  38. right: 20px;
  39. margin: 0;
  40. padding: 0;
  41. cursor: pointer;
  42. border: none;
  43. background: transparent;
  44. line-height: 1em;
  45. }
  46. .shepherd-title {
  47. margin: 0;
  48. padding: 0;
  49. }
  50. .shepherd-header {
  51. position: relative;
  52. margin-bottom: 10px;
  53. padding: 20px 50px 0 20px;
  54. }
  55. .shepherd-text {
  56. padding: 0 20px;
  57. }
  58. .shepherd-text p {
  59. margin: 0 0 1.4em;
  60. }
  61. .shepherd-element {
  62. z-index: 110;
  63. width: 300px;
  64. background: #fff;
  65. }
  66. @media only screen and (max-width: 767px) {
  67. .shepherd-element {
  68. left: 2.5%;
  69. width: 85%;
  70. }
  71. }
  72. .shepherd-enabled.shepherd-element {
  73. opacity: 1;
  74. }
  75. .shepherd-element[data-popper-reference-hidden]:not(.shepherd-centered) {
  76. opacity: 0;
  77. }
  78. .shepherd-element,
  79. .shepherd-element *,
  80. .shepherd-element :after,
  81. .shepherd-element :before {
  82. box-sizing: border-box;
  83. }
  84. .shepherd-arrow,
  85. .shepherd-arrow:before {
  86. position: absolute;
  87. width: 16px;
  88. height: 16px;
  89. }
  90. .shepherd-arrow:before {
  91. content: "";
  92. transform: rotate(45deg);
  93. background: #fff;
  94. }
  95. .shepherd-element[data-popper-placement^=top] > .shepherd-arrow {
  96. bottom: -8px;
  97. }
  98. .shepherd-element[data-popper-placement^=bottom] > .shepherd-arrow {
  99. top: -8px;
  100. }
  101. .shepherd-element[data-popper-placement^=left] > .shepherd-arrow {
  102. right: -8px;
  103. }
  104. .shepherd-element[data-popper-placement^=right] > .shepherd-arrow {
  105. left: -8px;
  106. }
  107. .shepherd-target-click-disabled.shepherd-enabled.shepherd-target,
  108. .shepherd-target-click-disabled.shepherd-enabled.shepherd-target * {
  109. pointer-events: none;
  110. }
  111. .shepherd-modal-overlay-container {
  112. position: fixed;
  113. z-index: 105;
  114. top: 0;
  115. left: 0;
  116. overflow: hidden;
  117. width: 100vw;
  118. height: 0;
  119. pointer-events: none;
  120. opacity: 0;
  121. fill-rule: evenodd;
  122. }
  123. .shepherd-modal-overlay-container.shepherd-modal-is-visible {
  124. height: 100vh;
  125. opacity: 0.5;
  126. }
  127. .shepherd-modal-overlay-container.shepherd-modal-is-visible path {
  128. pointer-events: all;
  129. }

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