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.

348 lines
6.2 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
9 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
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
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.285714rem;
  32. box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.1), 0px 0px 10px 0px rgba(34, 36, 38, 0.05);
  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. /* Extending from Top */
  66. .ui.top.popup {
  67. margin: 0em 0em 0.75em;
  68. }
  69. .ui.top.left.popup {
  70. -webkit-transform-origin: left bottom;
  71. -ms-transform-origin: left bottom;
  72. transform-origin: left bottom;
  73. }
  74. .ui.top.center.popup {
  75. -webkit-transform-origin: center bottom;
  76. -ms-transform-origin: center bottom;
  77. transform-origin: center bottom;
  78. }
  79. .ui.top.right.popup {
  80. -webkit-transform-origin: right bottom;
  81. -ms-transform-origin: right bottom;
  82. transform-origin: right bottom;
  83. }
  84. /* Extending from Vertical Center */
  85. .ui.left.center.popup {
  86. margin: 0em 0.75em 0em 0em;
  87. -webkit-transform-origin: right 50%;
  88. -ms-transform-origin: right 50%;
  89. transform-origin: right 50%;
  90. }
  91. .ui.right.center.popup {
  92. margin: 0em 0em 0em 0.75em;
  93. -webkit-transform-origin: left 50%;
  94. -ms-transform-origin: left 50%;
  95. transform-origin: left 50%;
  96. }
  97. /* Extending from Bottom */
  98. .ui.bottom.popup {
  99. margin: 0.75em 0em 0em;
  100. }
  101. .ui.bottom.left.popup {
  102. -webkit-transform-origin: left top;
  103. -ms-transform-origin: left top;
  104. transform-origin: left top;
  105. }
  106. .ui.bottom.center.popup {
  107. -webkit-transform-origin: center top;
  108. -ms-transform-origin: center top;
  109. transform-origin: center top;
  110. }
  111. .ui.bottom.right.popup {
  112. -webkit-transform-origin: right top;
  113. -ms-transform-origin: right top;
  114. transform-origin: right top;
  115. }
  116. /*--------------
  117. Pointer
  118. ---------------*/
  119. /*--- Below ---*/
  120. .ui.bottom.center.popup:before {
  121. margin-left: -0.325em;
  122. top: -0.325em;
  123. left: 50%;
  124. right: auto;
  125. bottom: auto;
  126. box-shadow: -1px -1px 0px 0px #b3b3b3;
  127. }
  128. .ui.bottom.left.popup {
  129. margin-left: 0em;
  130. }
  131. .ui.bottom.left.popup:before {
  132. top: -0.325em;
  133. left: 1em;
  134. right: auto;
  135. bottom: auto;
  136. margin-left: 0em;
  137. box-shadow: -1px -1px 0px 0px #b3b3b3;
  138. }
  139. .ui.bottom.right.popup {
  140. margin-right: 0em;
  141. }
  142. .ui.bottom.right.popup:before {
  143. top: -0.325em;
  144. right: 1em;
  145. bottom: auto;
  146. left: auto;
  147. margin-left: 0em;
  148. box-shadow: -1px -1px 0px 0px #b3b3b3;
  149. }
  150. /*--- Above ---*/
  151. .ui.top.center.popup:before {
  152. top: auto;
  153. right: auto;
  154. bottom: -0.325em;
  155. left: 50%;
  156. margin-left: -0.325em;
  157. }
  158. .ui.top.left.popup {
  159. margin-left: 0em;
  160. }
  161. .ui.top.left.popup:before {
  162. bottom: -0.325em;
  163. left: 1em;
  164. top: auto;
  165. right: auto;
  166. margin-left: 0em;
  167. }
  168. .ui.top.right.popup {
  169. margin-right: 0em;
  170. }
  171. .ui.top.right.popup:before {
  172. bottom: -0.325em;
  173. right: 1em;
  174. top: auto;
  175. left: auto;
  176. margin-left: 0em;
  177. }
  178. /*--- Left Center ---*/
  179. .ui.left.center.popup:before {
  180. top: 50%;
  181. right: -0.325em;
  182. bottom: auto;
  183. left: auto;
  184. margin-top: -0.325em;
  185. box-shadow: 1px -1px 0px 0px #b3b3b3;
  186. }
  187. /*--- Right Center ---*/
  188. .ui.right.center.popup:before {
  189. top: 50%;
  190. left: -0.325em;
  191. bottom: auto;
  192. right: auto;
  193. margin-top: -0.325em;
  194. box-shadow: -1px 1px 0px 0px #b3b3b3;
  195. }
  196. /*******************************
  197. Coupling
  198. *******************************/
  199. /* Immediate Nested Grid */
  200. .ui.popup > .ui.grid:not(.padded) {
  201. width: calc(100% + 1.75rem);
  202. margin: -0.7rem -0.875rem;
  203. }
  204. /*******************************
  205. States
  206. *******************************/
  207. .ui.loading.popup {
  208. display: block;
  209. visibility: hidden;
  210. z-index: -1;
  211. }
  212. .ui.animating.popup,
  213. .ui.visible.popup {
  214. display: block;
  215. }
  216. .ui.visible.popup {
  217. -webkit-transform: translateZ(0px);
  218. transform: translateZ(0px);
  219. -webkit-backface-visibility: hidden;
  220. backface-visibility: hidden;
  221. }
  222. /*******************************
  223. Variations
  224. *******************************/
  225. /*--------------
  226. Basic
  227. ---------------*/
  228. .ui.basic.popup:before {
  229. display: none;
  230. }
  231. /*--------------
  232. Wide
  233. ---------------*/
  234. .ui.wide.popup {
  235. max-width: 350px;
  236. }
  237. .ui[class*="very wide"].popup {
  238. max-width: 550px;
  239. }
  240. /*--------------
  241. Fluid
  242. ---------------*/
  243. .ui.fluid.popup {
  244. width: 100%;
  245. max-width: none;
  246. }
  247. /*--------------
  248. Colors
  249. ---------------*/
  250. /* Inverted colors */
  251. .ui.inverted.popup {
  252. background: #1b1c1d;
  253. color: #ffffff;
  254. border: none;
  255. box-shadow: none;
  256. }
  257. .ui.inverted.popup .header {
  258. background-color: none;
  259. color: #ffffff;
  260. }
  261. .ui.inverted.popup:before {
  262. background-color: #1b1c1d;
  263. box-shadow: none !important;
  264. }
  265. /*--------------
  266. Flowing
  267. ---------------*/
  268. .ui.flowing.popup {
  269. max-width: none;
  270. }
  271. /*--------------
  272. Sizes
  273. ---------------*/
  274. .ui.mini.popup {
  275. font-size: 0.71428571rem;
  276. }
  277. .ui.tiny.popup {
  278. font-size: 0.85714286rem;
  279. }
  280. .ui.small.popup {
  281. font-size: 0.92857143rem;
  282. }
  283. .ui.popup {
  284. font-size: 1rem;
  285. }
  286. .ui.large.popup {
  287. font-size: 1.14285714rem;
  288. }
  289. .ui.huge.popup {
  290. font-size: 1.42857143rem;
  291. }
  292. /*******************************
  293. Theme Overrides
  294. *******************************/
  295. /*******************************
  296. User Overrides
  297. *******************************/