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.

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