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.

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