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.

239 lines
4.1 KiB

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