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.

300 lines
4.8 KiB

9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Popup
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 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. /* Fixes content being squished when inline (moz only) */
  20. min-width: -webkit-min-content;
  21. min-width: -moz-min-content;
  22. min-width: min-content;
  23. z-index: 1900;
  24. border: 1px solid #cccccc;
  25. max-width: 250px;
  26. background-color: #ffffff;
  27. padding: 0.833em 1em;
  28. font-weight: normal;
  29. font-style: normal;
  30. color: rgba(0, 0, 0, 0.87);
  31. border-radius: 0.2857rem;
  32. box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  33. }
  34. .ui.popup > .header {
  35. padding: 0em;
  36. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  37. font-size: 1.125em;
  38. line-height: 1.2;
  39. font-weight: bold;
  40. }
  41. .ui.popup > .header + .content {
  42. padding-top: 0.5em;
  43. }
  44. .ui.popup:before {
  45. position: absolute;
  46. content: '';
  47. width: 0.75em;
  48. height: 0.75em;
  49. background: #ffffff;
  50. -webkit-transform: rotate(45deg);
  51. -ms-transform: rotate(45deg);
  52. transform: rotate(45deg);
  53. z-index: 2;
  54. box-shadow: 1px 1px 0px 0px #b3b3b3;
  55. }
  56. /*******************************
  57. Types
  58. *******************************/
  59. /*--------------
  60. Spacing
  61. ---------------*/
  62. .ui.popup {
  63. margin: 0em;
  64. }
  65. .ui.popup.bottom {
  66. margin: 0.75em 0em 0em;
  67. }
  68. .ui.popup.top {
  69. margin: 0em 0em 0.75em;
  70. }
  71. .ui.popup.left.center {
  72. margin: 0em 0.75em 0em 0em;
  73. }
  74. .ui.popup.right.center {
  75. margin: 0em 0em 0em 0.75em;
  76. }
  77. /*--------------
  78. Pointer
  79. ---------------*/
  80. /*--- Below ---*/
  81. .ui.bottom.center.popup:before {
  82. margin-left: -0.325em;
  83. top: -0.325em;
  84. left: 50%;
  85. right: auto;
  86. bottom: auto;
  87. box-shadow: -1px -1px 0px 0px #b3b3b3;
  88. }
  89. .ui.bottom.left.popup {
  90. margin-left: 0em;
  91. }
  92. .ui.bottom.left.popup:before {
  93. top: -0.325em;
  94. left: 1em;
  95. right: auto;
  96. bottom: auto;
  97. margin-left: 0em;
  98. box-shadow: -1px -1px 0px 0px #b3b3b3;
  99. }
  100. .ui.bottom.right.popup {
  101. margin-right: 0em;
  102. }
  103. .ui.bottom.right.popup:before {
  104. top: -0.325em;
  105. right: 1em;
  106. bottom: auto;
  107. left: auto;
  108. margin-left: 0em;
  109. box-shadow: -1px -1px 0px 0px #b3b3b3;
  110. }
  111. /*--- Above ---*/
  112. .ui.top.center.popup:before {
  113. top: auto;
  114. right: auto;
  115. bottom: -0.325em;
  116. left: 50%;
  117. margin-left: -0.325em;
  118. }
  119. .ui.top.left.popup {
  120. margin-left: 0em;
  121. }
  122. .ui.top.left.popup:before {
  123. bottom: -0.325em;
  124. left: 1em;
  125. top: auto;
  126. right: auto;
  127. margin-left: 0em;
  128. }
  129. .ui.top.right.popup {
  130. margin-right: 0em;
  131. }
  132. .ui.top.right.popup:before {
  133. bottom: -0.325em;
  134. right: 1em;
  135. top: auto;
  136. left: auto;
  137. margin-left: 0em;
  138. }
  139. /*--- Left Center ---*/
  140. .ui.left.center.popup:before {
  141. top: 50%;
  142. right: -0.325em;
  143. bottom: auto;
  144. left: auto;
  145. margin-top: -0.325em;
  146. box-shadow: 1px -1px 0px 0px #b3b3b3;
  147. }
  148. /*--- Right Center ---*/
  149. .ui.right.center.popup:before {
  150. top: 50%;
  151. left: -0.325em;
  152. bottom: auto;
  153. right: auto;
  154. margin-top: -0.325em;
  155. box-shadow: -1px 1px 0px 0px #b3b3b3;
  156. }
  157. /*******************************
  158. Coupling
  159. *******************************/
  160. /* Immediate Nested Grid */
  161. .ui.popup > .ui.grid:not(.padded) {
  162. width: calc(100% + 1.75rem);
  163. margin: -0.7rem -0.875rem;
  164. }
  165. /*******************************
  166. States
  167. *******************************/
  168. .ui.loading.popup {
  169. display: block;
  170. visibility: hidden;
  171. z-index: -1;
  172. }
  173. .ui.animating.popup,
  174. .ui.visible.popup {
  175. display: block;
  176. }
  177. /*******************************
  178. Variations
  179. *******************************/
  180. /*--------------
  181. Basic
  182. ---------------*/
  183. .ui.basic.popup:before {
  184. display: none;
  185. }
  186. /*--------------
  187. Wide
  188. ---------------*/
  189. .ui.wide.popup {
  190. max-width: 350px;
  191. }
  192. .ui[class*="very wide"].popup {
  193. max-width: 550px;
  194. }
  195. /*--------------
  196. Fluid
  197. ---------------*/
  198. .ui.fluid.popup {
  199. width: 100%;
  200. max-width: none;
  201. }
  202. /*--------------
  203. Colors
  204. ---------------*/
  205. /* Inverted colors */
  206. .ui.inverted.popup {
  207. background: #1b1c1d;
  208. color: #ffffff;
  209. border: none;
  210. box-shadow: none;
  211. }
  212. .ui.inverted.popup .header {
  213. background-color: none;
  214. color: #ffffff;
  215. }
  216. .ui.inverted.popup:before {
  217. background-color: #1b1c1d;
  218. box-shadow: none !important;
  219. }
  220. /*--------------
  221. Flowing
  222. ---------------*/
  223. .ui.flowing.popup {
  224. max-width: none;
  225. }
  226. /*--------------
  227. Sizes
  228. ---------------*/
  229. .ui.mini.popup {
  230. font-size: 0.71428571rem;
  231. }
  232. .ui.tiny.popup {
  233. font-size: 0.85714286rem;
  234. }
  235. .ui.small.popup {
  236. font-size: 0.92857143rem;
  237. }
  238. .ui.popup {
  239. font-size: 1rem;
  240. }
  241. .ui.large.popup {
  242. font-size: 1.14285714rem;
  243. }
  244. .ui.huge.popup {
  245. font-size: 1.42857143rem;
  246. }
  247. /*******************************
  248. Theme Overrides
  249. *******************************/
  250. /*******************************
  251. User Overrides
  252. *******************************/