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.

217 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. margin: -0.8em -1.2em 0.8em;
  38. background-color: rgba(0, 0, 0, 0.05);
  39. padding: 0.8em 1.2em;
  40. line-height: 1;
  41. font-weight: bold;
  42. color: rgba(0, 0, 0, 0.8);
  43. -webkit-border-radius: 0.2em 0.2em 0em 0em;
  44. -moz-border-radius: 0.2em 0.2em 0em 0em;
  45. border-radius: 0.2em 0.2em 0em 0em;
  46. }
  47. /* Default Interactions */
  48. .ui.popup .ui.button,
  49. .ui.popup form.ui input .ui.popup form.ui textarea {
  50. width: 100%;
  51. -webkit-box-sizing: border-box;
  52. -moz-box-sizing: border-box;
  53. -ms-box-sizing: border-box;
  54. box-sizing: border-box;
  55. }
  56. /*--------------
  57. Spacing
  58. ---------------*/
  59. .ui.popup {
  60. margin: 0em;
  61. }
  62. .ui.popup.bottom {
  63. margin: 0.75em 0em 0em;
  64. }
  65. .ui.popup.top {
  66. margin: 0em 0em 0.75em;
  67. }
  68. .ui.popup.left.center {
  69. margin: 0em 0.75em 0em 0em;
  70. }
  71. .ui.popup.right.center {
  72. margin: 0em 0em 0em 0.75em;
  73. }
  74. .ui.popup.center {
  75. margin-left: -1.25em;
  76. }
  77. /*--------------
  78. Pointer
  79. ---------------*/
  80. .ui.popup:before {
  81. position: absolute;
  82. content: "";
  83. width: 0.75em;
  84. height: 0.75rem;
  85. background-image: none;
  86. background-color: #FFFFFF;
  87. -webkit-transform: rotate(45deg);
  88. -moz-transform: rotate(45deg);
  89. transform: rotate(45deg);
  90. z-index: 2;
  91. -webkit-box-sizing: border-box;
  92. -moz-box-sizing: border-box;
  93. -ms-box-sizing: border-box;
  94. box-sizing: border-box;
  95. -webkit-box-shadow: 1px 1px 1px #DCDDDE;
  96. -moz-box-shadow: 1px 1px 1px #DCDDDE;
  97. box-shadow: 1px 1px 1px #DCDDDE;
  98. }
  99. /*--- Below ---*/
  100. .ui.bottom.center.popup:before {
  101. margin-left: -0.4em;
  102. top: -0.4em;
  103. left: 50%;
  104. right: auto;
  105. bottom: auto;
  106. -webkit-box-shadow: -1px -1px 1px #dcddde;
  107. -moz-box-shadow: -1px -1px 1px #dcddde;
  108. box-shadow: -1px -1px 1px #dcddde;
  109. }
  110. .ui.bottom.left.popup:before {
  111. top: -0.4em;
  112. left: 1em;
  113. right: auto;
  114. bottom: auto;
  115. margin-left: 0em;
  116. -webkit-box-shadow: -1px -1px 1px #dcddde;
  117. -moz-box-shadow: -1px -1px 1px #dcddde;
  118. box-shadow: -1px -1px 1px #dcddde;
  119. }
  120. .ui.bottom.right.popup:before {
  121. top: -0.4em;
  122. right: 1em;
  123. bottom: auto;
  124. left: auto;
  125. margin-left: 0em;
  126. -webkit-box-shadow: -1px -1px 1px #dcddde;
  127. -moz-box-shadow: -1px -1px 1px #dcddde;
  128. box-shadow: -1px -1px 1px #dcddde;
  129. }
  130. /*--- Above ---*/
  131. .ui.top.center.popup:before {
  132. top: auto;
  133. right: auto;
  134. bottom: -0.4em;
  135. left: 50%;
  136. margin-left: -0.4em;
  137. }
  138. .ui.top.left.popup:before {
  139. bottom: -0.4em;
  140. left: 1em;
  141. top: auto;
  142. right: auto;
  143. margin-left: 0em;
  144. }
  145. .ui.top.right.popup:before {
  146. bottom: -0.4em;
  147. right: 1em;
  148. top: auto;
  149. left: auto;
  150. margin-left: 0em;
  151. }
  152. /*--- Left ---*/
  153. .ui.left.center.popup:before {
  154. top: 50%;
  155. right: -0.35em;
  156. bottom: auto;
  157. left: auto;
  158. margin-top: -0.4em;
  159. -moz-box-shadow: 1px -1px 1px #dcddde;
  160. -webkit-box-shadow: 1px -1px 1px #dcddde;
  161. box-shadow: 1px -1px 1px #dcddde;
  162. }
  163. /*--- Right ---*/
  164. .ui.right.center.popup:before {
  165. top: 50%;
  166. left: -0.35em;
  167. bottom: auto;
  168. right: auto;
  169. margin-top: -0.4em;
  170. -moz-box-shadow: -1px 1px 1px #dcddde;
  171. -webkit-box-shadow: -1px 1px 1px #dcddde;
  172. box-shadow: -1px 1px 1px #dcddde;
  173. }
  174. /*******************************
  175. States
  176. *******************************/
  177. .ui.popup.loading {
  178. display: block;
  179. visibility: hidden;
  180. }
  181. .ui.popup.active {
  182. display: block;
  183. }
  184. /*******************************
  185. Variations
  186. *******************************/
  187. /*--------------
  188. Size
  189. ---------------*/
  190. .ui.small.popup {
  191. font-size: 0.75rem;
  192. }
  193. .ui.large.popup {
  194. font-size: 1rem;
  195. }
  196. /*--------------
  197. Colors
  198. ---------------*/
  199. /* Black */
  200. .ui.inverted.popup {
  201. background-color: #333333;
  202. border: none;
  203. color: #FFFFFF;
  204. -webkit-box-shadow: none;
  205. -moz-box-shadow: none;
  206. box-shadow: none;
  207. }
  208. .ui.inverted.popup .header {
  209. background-color: rgba(0, 0, 0, 0.2);
  210. color: #FFFFFF;
  211. }
  212. .ui.inverted.popup:before {
  213. background-color: #333333;
  214. -webkit-box-shadow: none;
  215. -moz-box-shadow: none;
  216. box-shadow: none;
  217. }