Source: ui.hero.styl

  1. @import "variables"
  2. /**
  3. * The hero image and carousels.
  4. * @component .hero
  5. * @example <div class="ui hero">
  6. * <!-- content -->
  7. * </div>
  8. */
  9. .hero
  10. &--inner
  11. container-max()
  12. clear-left()
  13. position relative
  14. @media (min-width: screen-sm)
  15. min-height 200px
  16. .multiple
  17. margin 0
  18. padding 0
  19. list-style-type none
  20. .single
  21. position relative
  22. &--presentation
  23. position absolute
  24. top 50%
  25. left 40px
  26. width "calc(100% - %s)" % 80px
  27. transform translateY(-50%)
  28. h1, h2
  29. hlmt-rounded()
  30. font-size 3rem
  31. color #fff
  32. text-shadow -1px -1px 5px rgba(0, 0, 0, 0.5), -1px 1px 5px rgba(0, 0, 0, 0.5), 1px -1px 5px rgba(0, 0, 0, 0.5), 1px 1px 5px rgba(0, 0, 0, 0.5)
  33. @media (min-width: screen-sm)
  34. font-size 6rem
  35. /**
  36. * Allow banner to be displayed as a carousel.
  37. * @type {variation}
  38. * @name .as-carousel
  39. * @memberOf .hero
  40. * @example <div class="ui hero as-carousel">
  41. * <!-- content -->
  42. * </div>
  43. */
  44. &.as-carousel
  45. .multiple
  46. display none
  47. .owl-controls
  48. position absolute
  49. left 5px
  50. bottom 5px
  51. @media (min-width: screen-sm)
  52. left 17px
  53. bottom 17px
  54. .owl-page
  55. &.active
  56. background-image url('./images/leaf-empty.png')
  57. margin 3px
  58. height 12px
  59. width 12px
  60. @media (min-width: screen-sm)
  61. height 26px
  62. width 26px
  63. display inline-block
  64. background-size 100%
  65. background-image url('./images/icon-leaf.png')
  66. background-repeat no-repeat
  67. background-position center center