ext-component-tour.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @import '../../bootstrap-extended/include'; // Bootstrap includes
  2. @import '../../components/include'; // Components includes
  3. .shepherd-element {
  4. border-radius: $border-radius;
  5. width: 350px;
  6. &[data-popper-placement='bottom'] {
  7. margin-top: 1rem !important;
  8. .shepherd-arrow:before {
  9. background-color: $primary !important;
  10. }
  11. }
  12. &[data-popper-placement='top'] {
  13. margin-bottom: 1rem !important;
  14. }
  15. &[data-popper-placement='left'] {
  16. margin-right: 1rem !important;
  17. }
  18. &[data-popper-placement='right'] {
  19. margin-left: 1rem !important;
  20. }
  21. .shepherd-content {
  22. border-radius: $border-radius;
  23. // header
  24. .shepherd-header {
  25. background-color: $primary;
  26. padding: 0.38rem 1.2rem;
  27. border-radius: $border-radius $border-radius 0 0;
  28. .shepherd-title {
  29. color: $white;
  30. font-weight: 500;
  31. font-size: 1.1rem;
  32. }
  33. .shepherd-cancel-icon {
  34. color: $white;
  35. font-size: 1.7rem;
  36. &:focus {
  37. outline: none;
  38. }
  39. }
  40. }
  41. // body or text
  42. .shepherd-text {
  43. color: $body-color;
  44. padding: 0.8rem 1.2rem;
  45. }
  46. // footer
  47. .shepherd-footer {
  48. padding: 0 1.2rem 1rem;
  49. justify-content: space-between;
  50. .shepherd-button {
  51. padding: 0.5rem 1.3rem;
  52. }
  53. }
  54. }
  55. @include media-breakpoint-down(xs) {
  56. width: 300px;
  57. }
  58. }
  59. // Dark layout
  60. .dark-layout {
  61. .shepherd-element {
  62. background-color: $theme-dark-card-bg;
  63. &:not([data-popper-placement='bottom']) {
  64. .shepherd-arrow:before {
  65. background-color: $theme-dark-card-bg;
  66. }
  67. }
  68. .shepherd-content {
  69. .shepherd-text {
  70. color: $theme-dark-body-color;
  71. }
  72. }
  73. }
  74. }