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.

211 lines
4.2 KiB

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