_joyride.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. // Foundation by ZURB
  2. // foundation.zurb.com
  3. // Licensed under MIT Open Source
  4. @import 'global';
  5. //
  6. // @variables
  7. //
  8. $include-html-joyride-classes: $include-html-classes !default;
  9. // Controlling default Joyride styles
  10. $joyride-tip-bg: $oil !default;
  11. $joyride-tip-default-width: 300px !default;
  12. $joyride-tip-padding: rem-calc(18 20 24) !default;
  13. $joyride-tip-border: solid 1px $charcoal !default;
  14. $joyride-tip-radius: 4px !default;
  15. $joyride-tip-position-offset: 22px !default;
  16. // Here, we're setting the tip font styles
  17. $joyride-tip-font-color: $white !default;
  18. $joyride-tip-font-size: rem-calc(14) !default;
  19. $joyride-tip-header-weight: $font-weight-bold !default;
  20. // This changes the nub size
  21. $joyride-tip-nub-size: 10px !default;
  22. // This adjusts the styles for the timer when its enabled
  23. $joyride-tip-timer-width: 50px !default;
  24. $joyride-tip-timer-height: 3px !default;
  25. $joyride-tip-timer-color: $steel !default;
  26. // This changes up the styles for the close button
  27. $joyride-tip-close-color: $monsoon !default;
  28. $joyride-tip-close-size: 24px !default;
  29. $joyride-tip-close-weight: $font-weight-normal !default;
  30. // When Joyride is filling the screen, we use this style for the bg
  31. $joyride-screenfill: rgba(0,0,0,0.5) !default;
  32. // We decided not to make a mixin for this because it relies on
  33. // predefined classes to work properly.
  34. @include exports("joyride") {
  35. @if $include-html-joyride-classes {
  36. /* Foundation Joyride */
  37. .joyride-list { display: none; }
  38. /* Default styles for the container */
  39. .joyride-tip-guide {
  40. background: $joyride-tip-bg;
  41. color: $joyride-tip-font-color;
  42. display: none;
  43. font-family: inherit;
  44. font-weight: $font-weight-normal;
  45. position: absolute;
  46. top: 0;
  47. width: 95%;
  48. z-index: 103;
  49. #{$default-float}: 2.5%;
  50. }
  51. .lt-ie9 .joyride-tip-guide {
  52. margin-#{$default-float}: -400px;
  53. max-width: 800px;
  54. #{$default-float}: 50%;
  55. }
  56. .joyride-content-wrapper {
  57. padding: $joyride-tip-padding;
  58. width: 100%;
  59. .button { margin-bottom: 0 !important; }
  60. .joyride-prev-tip { margin-right: 10px; }
  61. }
  62. /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
  63. .joyride-tip-guide {
  64. .joyride-nub {
  65. border: $joyride-tip-nub-size solid $joyride-tip-bg;
  66. display: block;
  67. height: 0;
  68. position: absolute;
  69. width: 0;
  70. #{$default-float}: $joyride-tip-position-offset;
  71. &.top {
  72. border-color: $joyride-tip-bg;
  73. border-top-color: transparent !important;
  74. border-top-style: solid;
  75. border-#{$default-float}-color: transparent !important;
  76. border-#{$opposite-direction}-color: transparent !important;
  77. top: -($joyride-tip-nub-size*2);
  78. }
  79. &.bottom {
  80. border-color: $joyride-tip-bg !important;
  81. border-bottom-color: transparent !important;
  82. border-bottom-style: solid;
  83. border-#{$default-float}-color: transparent !important;
  84. border-#{$opposite-direction}-color: transparent !important;
  85. bottom: -($joyride-tip-nub-size*2);
  86. }
  87. &.right { right: -($joyride-tip-nub-size*2); }
  88. &.left { left: -($joyride-tip-nub-size*2); }
  89. }
  90. }
  91. /* Typography */
  92. .joyride-tip-guide h1,
  93. .joyride-tip-guide h2,
  94. .joyride-tip-guide h3,
  95. .joyride-tip-guide h4,
  96. .joyride-tip-guide h5,
  97. .joyride-tip-guide h6 {
  98. color: $joyride-tip-font-color;
  99. font-weight: $joyride-tip-header-weight;
  100. line-height: 1.25;
  101. margin: 0;
  102. }
  103. .joyride-tip-guide p {
  104. font-size: $joyride-tip-font-size;
  105. line-height: 1.3;
  106. margin: rem-calc(0 0 18 0);
  107. }
  108. .joyride-timer-indicator-wrap {
  109. border: $joyride-tip-border;
  110. bottom: rem-calc(16);
  111. height: $joyride-tip-timer-height;
  112. position: absolute;
  113. width: $joyride-tip-timer-width;
  114. #{$opposite-direction}: rem-calc(17);
  115. }
  116. .joyride-timer-indicator {
  117. background: $joyride-tip-timer-color;
  118. display: block;
  119. height: inherit;
  120. width: 0;
  121. }
  122. .joyride-close-tip {
  123. color: $joyride-tip-close-color !important;
  124. font-size: $joyride-tip-close-size;
  125. font-weight: $joyride-tip-close-weight;
  126. line-height: .5 !important;
  127. position: absolute;
  128. text-decoration: none;
  129. top: 10px;
  130. #{$opposite-direction}: 12px;
  131. &:hover,
  132. &:focus { color: $smoke !important; }
  133. }
  134. .joyride-modal-bg {
  135. background: $joyride-screenfill;
  136. cursor: $cursor-pointer-value;
  137. display: none;
  138. height: 100%;
  139. position: fixed;
  140. top: 0;
  141. width: 100%;
  142. z-index: 100;
  143. #{$default-float}: 0;
  144. }
  145. .joyride-expose-wrapper {
  146. background-color: $white;
  147. border-radius: 3px;
  148. box-shadow: 0 0 15px $white;
  149. position: absolute;
  150. z-index: 102;
  151. }
  152. .joyride-expose-cover {
  153. background: transparent;
  154. border-radius: 3px;
  155. left: 0;
  156. position: absolute;
  157. top: 0;
  158. z-index: 9999;
  159. }
  160. /* Styles for screens that are at least 768px; */
  161. @media #{$small} {
  162. .joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit;
  163. .joyride-nub {
  164. &.bottom {
  165. border-color: $joyride-tip-bg !important;
  166. border-bottom-color: transparent !important;
  167. border-#{$default-float}-color: transparent !important;
  168. border-#{$opposite-direction}-color: transparent !important;
  169. bottom: -($joyride-tip-nub-size*2);
  170. }
  171. &.right {
  172. border-color: $joyride-tip-bg !important;
  173. border-right-color: transparent !important; border-bottom-color: transparent !important;
  174. border-top-color: transparent !important;
  175. left: auto;
  176. right: -($joyride-tip-nub-size*2);
  177. top: $joyride-tip-position-offset;
  178. }
  179. &.left {
  180. border-color: $joyride-tip-bg !important;
  181. border-bottom-color: transparent !important;
  182. border-left-color: transparent !important;
  183. border-top-color: transparent !important;
  184. left: -($joyride-tip-nub-size*2);
  185. right: auto;
  186. top: $joyride-tip-position-offset;
  187. }
  188. }
  189. }
  190. }
  191. }
  192. }