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.

370 lines
6.5 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - 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 #DDDDDD;
  25. line-height: 1.4285em;
  26. max-width: 250px;
  27. background: #FFFFFF;
  28. padding: 0.53846154em 0.84615385em;
  29. font-weight: normal;
  30. font-style: normal;
  31. color: rgba(0, 0, 0, 0.87);
  32. border-radius: 0.2307em;
  33. box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);
  34. }
  35. .ui.popup > .header {
  36. padding: 0em;
  37. font-family: 'Arial', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  38. font-size: 1.125em;
  39. line-height: 1.2;
  40. font-weight: bold;
  41. }
  42. .ui.popup > .header + .content {
  43. padding-top: 0.5em;
  44. }
  45. .ui.popup:before {
  46. position: absolute;
  47. content: '';
  48. width: 0.75em;
  49. height: 0.75em;
  50. background: #FFFFFF;
  51. -webkit-transform: rotate(45deg);
  52. transform: rotate(45deg);
  53. z-index: 2;
  54. box-shadow: 1px 1px 0px 0px #c4c4c4;
  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. transform-origin: left bottom;
  72. }
  73. .ui.top.center.popup {
  74. -webkit-transform-origin: center bottom;
  75. transform-origin: center bottom;
  76. }
  77. .ui.top.right.popup {
  78. -webkit-transform-origin: right bottom;
  79. transform-origin: right bottom;
  80. }
  81. /* Extending from Vertical Center */
  82. .ui.left.center.popup {
  83. margin: 0em 0.75em 0em 0em;
  84. -webkit-transform-origin: right 50%;
  85. transform-origin: right 50%;
  86. }
  87. .ui.right.center.popup {
  88. margin: 0em 0em 0em 0.75em;
  89. -webkit-transform-origin: left 50%;
  90. transform-origin: left 50%;
  91. }
  92. /* Extending from Bottom */
  93. .ui.bottom.popup {
  94. margin: 0.75em 0em 0em;
  95. }
  96. .ui.bottom.left.popup {
  97. -webkit-transform-origin: left top;
  98. transform-origin: left top;
  99. }
  100. .ui.bottom.center.popup {
  101. -webkit-transform-origin: center top;
  102. transform-origin: center top;
  103. }
  104. .ui.bottom.right.popup {
  105. -webkit-transform-origin: right top;
  106. transform-origin: right top;
  107. }
  108. /*--------------
  109. Pointer
  110. ---------------*/
  111. /*--- Below ---*/
  112. .ui.bottom.center.popup:before {
  113. margin-left: -0.325em;
  114. top: -0.325em;
  115. left: 50%;
  116. right: auto;
  117. bottom: auto;
  118. box-shadow: -1px -1px 0px 0px #c4c4c4;
  119. }
  120. .ui.bottom.left.popup {
  121. margin-left: 0em;
  122. }
  123. /*rtl:rename*/
  124. .ui.bottom.left.popup:before {
  125. top: -0.325em;
  126. left: 1em;
  127. right: auto;
  128. bottom: auto;
  129. margin-left: 0em;
  130. box-shadow: -1px -1px 0px 0px #c4c4c4;
  131. }
  132. .ui.bottom.right.popup {
  133. margin-right: 0em;
  134. }
  135. /*rtl:rename*/
  136. .ui.bottom.right.popup:before {
  137. top: -0.325em;
  138. right: 1em;
  139. bottom: auto;
  140. left: auto;
  141. margin-left: 0em;
  142. box-shadow: -1px -1px 0px 0px #c4c4c4;
  143. }
  144. /*--- Above ---*/
  145. .ui.top.center.popup:before {
  146. top: auto;
  147. right: auto;
  148. bottom: -0.325em;
  149. left: 50%;
  150. margin-left: -0.325em;
  151. }
  152. .ui.top.left.popup {
  153. margin-left: 0em;
  154. }
  155. /*rtl:rename*/
  156. .ui.top.left.popup:before {
  157. bottom: -0.325em;
  158. left: 1em;
  159. top: auto;
  160. right: auto;
  161. margin-left: 0em;
  162. }
  163. .ui.top.right.popup {
  164. margin-right: 0em;
  165. }
  166. /*rtl:rename*/
  167. .ui.top.right.popup:before {
  168. bottom: -0.325em;
  169. right: 1em;
  170. top: auto;
  171. left: auto;
  172. margin-left: 0em;
  173. }
  174. /*--- Left Center ---*/
  175. /*rtl:rename*/
  176. .ui.left.center.popup:before {
  177. top: 50%;
  178. right: -0.325em;
  179. bottom: auto;
  180. left: auto;
  181. margin-top: -0.325em;
  182. box-shadow: 1px -1px 0px 0px #c4c4c4;
  183. }
  184. /*--- Right Center ---*/
  185. /*rtl:rename*/
  186. .ui.right.center.popup:before {
  187. top: 50%;
  188. left: -0.325em;
  189. bottom: auto;
  190. right: auto;
  191. margin-top: -0.325em;
  192. box-shadow: -1px 1px 0px 0px #c4c4c4;
  193. }
  194. /* Arrow Color By Location */
  195. .ui.bottom.popup:before {
  196. background: #FFFFFF;
  197. }
  198. .ui.right.center.popup:before,
  199. .ui.left.center.popup:before {
  200. background: #FFFFFF;
  201. }
  202. .ui.top.popup:before {
  203. background: #FFFFFF;
  204. }
  205. /* Inverted Arrow Color */
  206. .ui.inverted.bottom.popup:before {
  207. background: #333333;
  208. }
  209. .ui.inverted.right.center.popup:before,
  210. .ui.inverted.left.center.popup:before {
  211. background: #333333;
  212. }
  213. .ui.inverted.top.popup:before {
  214. background: #333333;
  215. }
  216. /*******************************
  217. Coupling
  218. *******************************/
  219. /* Immediate Nested Grid */
  220. .ui.popup > .ui.grid:not(.padded) {
  221. width: calc(100% + 1.75rem);
  222. margin: -0.7rem -0.875rem;
  223. }
  224. /*******************************
  225. States
  226. *******************************/
  227. .ui.loading.popup {
  228. display: block;
  229. visibility: hidden;
  230. z-index: -1;
  231. }
  232. .ui.animating.popup,
  233. .ui.visible.popup {
  234. display: block;
  235. }
  236. .ui.visible.popup {
  237. -webkit-transform: translateZ(0px);
  238. transform: translateZ(0px);
  239. -webkit-backface-visibility: hidden;
  240. backface-visibility: hidden;
  241. }
  242. /*******************************
  243. Variations
  244. *******************************/
  245. /*--------------
  246. Basic
  247. ---------------*/
  248. .ui.basic.popup:before {
  249. display: none;
  250. }
  251. /*--------------
  252. Wide
  253. ---------------*/
  254. .ui.wide.popup {
  255. max-width: 350px;
  256. }
  257. .ui[class*="very wide"].popup {
  258. max-width: 550px;
  259. }
  260. @media only screen and (max-width: 687px) {
  261. .ui.wide.popup,
  262. .ui[class*="very wide"].popup {
  263. max-width: 250px;
  264. }
  265. }
  266. /*--------------
  267. Fluid
  268. ---------------*/
  269. .ui.fluid.popup {
  270. width: 100%;
  271. max-width: none;
  272. }
  273. /*--------------
  274. Colors
  275. ---------------*/
  276. /* Inverted colors */
  277. .ui.inverted.popup {
  278. background: #333333;
  279. color: #FFFFFF;
  280. border: none;
  281. box-shadow: none;
  282. }
  283. .ui.inverted.popup .header {
  284. background-color: none;
  285. color: #FFFFFF;
  286. }
  287. .ui.inverted.popup:before {
  288. background-color: #333333;
  289. box-shadow: none !important;
  290. }
  291. /*--------------
  292. Flowing
  293. ---------------*/
  294. .ui.flowing.popup {
  295. max-width: none;
  296. }
  297. /*--------------
  298. Sizes
  299. ---------------*/
  300. .ui.mini.popup {
  301. font-size: 0.69230769rem;
  302. }
  303. .ui.tiny.popup {
  304. font-size: 0.84615385rem;
  305. }
  306. .ui.small.popup {
  307. font-size: 0.76923077em;
  308. }
  309. .ui.popup {
  310. font-size: 0.84615385em;
  311. }
  312. .ui.large.popup {
  313. font-size: 1em;
  314. }
  315. .ui.huge.popup {
  316. font-size: 1.46153846rem;
  317. }
  318. /*******************************
  319. User Overrides
  320. *******************************/