Guest User

Untitled

a guest
Nov 23rd, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. .modal
  2. font-family: inherit
  3. position: fixed
  4. z-index: 10000
  5. &__overlay
  6. position: fixed
  7. top: 0
  8. left: 0
  9. right: 0
  10. bottom: 0
  11. background: rgba(0,0,0,0.6)
  12. display: flex
  13. justify-content: center
  14. align-items: center
  15. &__container
  16. background-color: #fff
  17. padding: 30px
  18. max-width: 500px
  19. max-height: 100vh
  20. border-radius: 4px
  21. overflow-y: auto
  22. box-sizing: border-box
  23. &__header
  24. display: flex
  25. justify-content: space-between
  26. align-items: center
  27. &__title
  28. margin-top: 0
  29. margin-bottom: 0
  30. font-weight: 600
  31. font-size: 1.25rem
  32. line-height: 1.25
  33. color: #00449e
  34. box-sizing: border-box
  35. &__close
  36. background: transparent
  37. border: 0
  38. &__header .modal__close:before
  39. content: "\2715"
  40. &__content
  41. margin-top: 2rem
  42. margin-bottom: 2rem
  43. line-height: 1.5
  44. color: rgba(0,0,0,.8)
  45. &__btn
  46. font-size: .875rem
  47. padding-left: 1rem
  48. padding-right: 1rem
  49. padding-top: .5rem
  50. padding-bottom: .5rem
  51. background-color: #e6e6e6
  52. color: rgba(0,0,0,.8)
  53. border-radius: .25rem
  54. border-style: none
  55. border-width: 0
  56. cursor: pointer
  57. -webkit-appearance: button
  58. text-transform: none
  59. overflow: visible
  60. line-height: 1.15
  61. margin: 0
  62. will-change: transform
  63. -moz-osx-font-smoothing: grayscale
  64. -webkit-backface-visibility: hidden
  65. backface-visibility: hidden
  66. -webkit-transform: translateZ(0)
  67. transform: translateZ(0)
  68. transition: -webkit-transform .25s ease-out
  69. transition: transform .25s ease-out
  70. transition: transform .25s ease-out,-webkit-transform .25s ease-out
  71. &__btn:focus, .modal__btn:hover
  72. -webkit-transform: scale(1.05)
  73. transform: scale(1.05)
  74. &__btn-primary
  75. background-color: #00449e
  76. color: #fff
  77.  
  78. @keyframes mmfadeIn
  79. from
  80. opacity: 0
  81. to
  82. opacity: 1
  83.  
  84. @keyframes mmfadeOut
  85. from
  86. opacity: 1
  87. to
  88. opacity: 0
  89.  
  90. @keyframes mmslideIn
  91. from
  92. transform: translateY(15%)
  93. to
  94. transform: translateY(0)
  95.  
  96. @keyframes mmslideOut
  97. from
  98. transform: translateY(0)
  99. to
  100. transform: translateY(-10%)
  101.  
  102. .micromodal-slide
  103. display: none
  104.  
  105. .micromodal-slide.is-open
  106. display: block
  107.  
  108. .micromodal-slide[aria-hidden="false"] .modal__overlay
  109. animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1)
  110.  
  111. .micromodal-slide[aria-hidden="false"] .modal__container
  112. animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1)
  113.  
  114. .micromodal-slide[aria-hidden="true"] .modal__overlay
  115. animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1)
  116.  
  117. .micromodal-slide[aria-hidden="true"] .modal__container
  118. animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1)
  119.  
  120. .micromodal-slide .modal__container,
  121. .micromodal-slide .modal__overlay
  122. will-change: transform
Add Comment
Please, Sign In to add comment