You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

238 lines
4.5 KiB

  1. /*
  2. * # Semantic Popup
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Popup
  14. *******************************/
  15. .ui.popup {
  16. display: none;
  17. position: absolute;
  18. top: 0px;
  19. right: 0px;
  20. z-index: 900;
  21. border: 1px solid #DCDDDE;
  22. max-width: 250px;
  23. background-color: #FFFFFF;
  24. padding: 0.8em 1.2em;
  25. font-size: 0.875rem;
  26. font-weight: normal;
  27. font-style: normal;
  28. color: rgba(0, 0, 0, 0.7);
  29. -webkit-border-radius: 0.2em;
  30. -moz-border-radius: 0.2em;
  31. border-radius: 0.2em;
  32. -webkit-box-shadow: 0px 1px 1px #DCDDDE;
  33. -moz-box-shadow: 0px 1px 1px #DCDDDE;
  34. box-shadow: 0px 1px 1px #DCDDDE;
  35. }
  36. .ui.popup .header {
  37. padding: 0em 0em 0.5em;
  38. font-size: 1.125em;
  39. line-height: 1.2;
  40. font-weight: bold;
  41. }
  42. .ui.popup:before {
  43. position: absolute;
  44. content: "";
  45. width: 0.75em;
  46. height: 0.75rem;
  47. background-image: none;
  48. background-color: #FFFFFF;
  49. -webkit-transform: rotate(45deg);
  50. -moz-transform: rotate(45deg);
  51. transform: rotate(45deg);
  52. z-index: 2;
  53. -webkit-box-sizing: border-box;
  54. -moz-box-sizing: border-box;
  55. -ms-box-sizing: border-box;
  56. box-sizing: border-box;
  57. -webkit-box-shadow: 1px 1px 1px #DCDDDE;
  58. -moz-box-shadow: 1px 1px 1px #DCDDDE;
  59. box-shadow: 1px 1px 1px #DCDDDE;
  60. }
  61. .ui.popup .ui.button {
  62. width: 100%;
  63. }
  64. /*******************************
  65. Types
  66. *******************************/
  67. /*--------------
  68. Spacing
  69. ---------------*/
  70. .ui.popup {
  71. margin: 0em;
  72. }
  73. .ui.popup.bottom {
  74. margin: 0.75em 0em 0em;
  75. }
  76. .ui.popup.top {
  77. margin: 0em 0em 0.75em;
  78. }
  79. .ui.popup.left.center {
  80. margin: 0em 0.75em 0em 0em;
  81. }
  82. .ui.popup.right.center {
  83. margin: 0em 0em 0em 0.75em;
  84. }
  85. .ui.popup.center {
  86. margin-left: -1.25em;
  87. }
  88. /*--------------
  89. Pointer
  90. ---------------*/
  91. /*--- Below ---*/
  92. .ui.bottom.center.popup:before {
  93. margin-left: -0.4em;
  94. top: -0.4em;
  95. left: 50%;
  96. right: auto;
  97. bottom: auto;
  98. -webkit-box-shadow: -1px -1px 1px #dcddde;
  99. -moz-box-shadow: -1px -1px 1px #dcddde;
  100. box-shadow: -1px -1px 1px #dcddde;
  101. }
  102. .ui.bottom.left.popup:before {
  103. top: -0.4em;
  104. left: 1em;
  105. right: auto;
  106. bottom: auto;
  107. margin-left: 0em;
  108. -webkit-box-shadow: -1px -1px 1px #dcddde;
  109. -moz-box-shadow: -1px -1px 1px #dcddde;
  110. box-shadow: -1px -1px 1px #dcddde;
  111. }
  112. .ui.bottom.right.popup:before {
  113. top: -0.4em;
  114. right: 1em;
  115. bottom: auto;
  116. left: auto;
  117. margin-left: 0em;
  118. -webkit-box-shadow: -1px -1px 1px #dcddde;
  119. -moz-box-shadow: -1px -1px 1px #dcddde;
  120. box-shadow: -1px -1px 1px #dcddde;
  121. }
  122. /*--- Above ---*/
  123. .ui.top.center.popup:before {
  124. top: auto;
  125. right: auto;
  126. bottom: -0.4em;
  127. left: 50%;
  128. margin-left: -0.4em;
  129. }
  130. .ui.top.left.popup:before {
  131. bottom: -0.4em;
  132. left: 1em;
  133. top: auto;
  134. right: auto;
  135. margin-left: 0em;
  136. }
  137. .ui.top.right.popup:before {
  138. bottom: -0.4em;
  139. right: 1em;
  140. top: auto;
  141. left: auto;
  142. margin-left: 0em;
  143. }
  144. /*--- Left ---*/
  145. .ui.left.center.popup:before {
  146. top: 50%;
  147. right: -0.35em;
  148. bottom: auto;
  149. left: auto;
  150. margin-top: -0.4em;
  151. -moz-box-shadow: 1px -1px 1px #dcddde;
  152. -webkit-box-shadow: 1px -1px 1px #dcddde;
  153. box-shadow: 1px -1px 1px #dcddde;
  154. }
  155. /*--- Right ---*/
  156. .ui.right.center.popup:before {
  157. top: 50%;
  158. left: -0.35em;
  159. bottom: auto;
  160. right: auto;
  161. margin-top: -0.4em;
  162. -moz-box-shadow: -1px 1px 1px #dcddde;
  163. -webkit-box-shadow: -1px 1px 1px #dcddde;
  164. box-shadow: -1px 1px 1px #dcddde;
  165. }
  166. /*******************************
  167. States
  168. *******************************/
  169. .ui.loading.popup {
  170. display: block;
  171. visibility: hidden;
  172. }
  173. .ui.active.popup {
  174. display: block;
  175. }
  176. /*******************************
  177. Variations
  178. *******************************/
  179. /*--------------
  180. Size
  181. ---------------*/
  182. .ui.small.popup {
  183. font-size: 0.75rem;
  184. }
  185. .ui.large.popup {
  186. font-size: 1rem;
  187. }
  188. /*--------------
  189. Colors
  190. ---------------*/
  191. /* Inverted colors */
  192. .ui.inverted.popup {
  193. background-color: #333333;
  194. border: none;
  195. color: #FFFFFF;
  196. -webkit-box-shadow: none;
  197. -moz-box-shadow: none;
  198. box-shadow: none;
  199. }
  200. .ui.inverted.popup .header {
  201. background-color: rgba(0, 0, 0, 0.2);
  202. color: #FFFFFF;
  203. }
  204. .ui.inverted.popup:before {
  205. background-color: #333333;
  206. -webkit-box-shadow: none;
  207. -moz-box-shadow: none;
  208. box-shadow: none;
  209. }