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.

355 lines
6.4 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
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
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
9 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.1.4 - 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-color: #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. .ui.bottom.left.popup:before {
  133. top: -0.325em;
  134. left: 1em;
  135. right: auto;
  136. bottom: auto;
  137. margin-left: 0em;
  138. box-shadow: -1px -1px 0px 0px #bababc;
  139. }
  140. .ui.bottom.right.popup {
  141. margin-right: 0em;
  142. }
  143. .ui.bottom.right.popup:before {
  144. top: -0.325em;
  145. right: 1em;
  146. bottom: auto;
  147. left: auto;
  148. margin-left: 0em;
  149. box-shadow: -1px -1px 0px 0px #bababc;
  150. }
  151. /*--- Above ---*/
  152. .ui.top.center.popup:before {
  153. top: auto;
  154. right: auto;
  155. bottom: -0.325em;
  156. left: 50%;
  157. margin-left: -0.325em;
  158. }
  159. .ui.top.left.popup {
  160. margin-left: 0em;
  161. }
  162. .ui.top.left.popup:before {
  163. bottom: -0.325em;
  164. left: 1em;
  165. top: auto;
  166. right: auto;
  167. margin-left: 0em;
  168. }
  169. .ui.top.right.popup {
  170. margin-right: 0em;
  171. }
  172. .ui.top.right.popup:before {
  173. bottom: -0.325em;
  174. right: 1em;
  175. top: auto;
  176. left: auto;
  177. margin-left: 0em;
  178. }
  179. /*--- Left Center ---*/
  180. .ui.left.center.popup:before {
  181. top: 50%;
  182. right: -0.325em;
  183. bottom: auto;
  184. left: auto;
  185. margin-top: -0.325em;
  186. box-shadow: 1px -1px 0px 0px #bababc;
  187. }
  188. /*--- Right Center ---*/
  189. .ui.right.center.popup:before {
  190. top: 50%;
  191. left: -0.325em;
  192. bottom: auto;
  193. right: auto;
  194. margin-top: -0.325em;
  195. box-shadow: -1px 1px 0px 0px #bababc;
  196. }
  197. /*******************************
  198. Coupling
  199. *******************************/
  200. /* Immediate Nested Grid */
  201. .ui.popup > .ui.grid:not(.padded) {
  202. width: calc(100% + 1.75rem);
  203. margin: -0.7rem -0.875rem;
  204. }
  205. /*******************************
  206. States
  207. *******************************/
  208. .ui.loading.popup {
  209. display: block;
  210. visibility: hidden;
  211. z-index: -1;
  212. }
  213. .ui.animating.popup,
  214. .ui.visible.popup {
  215. display: block;
  216. }
  217. .ui.visible.popup {
  218. -webkit-transform: translateZ(0px);
  219. transform: translateZ(0px);
  220. -webkit-backface-visibility: hidden;
  221. backface-visibility: hidden;
  222. }
  223. /*******************************
  224. Variations
  225. *******************************/
  226. /*--------------
  227. Basic
  228. ---------------*/
  229. .ui.basic.popup:before {
  230. display: none;
  231. }
  232. /*--------------
  233. Wide
  234. ---------------*/
  235. .ui.wide.popup {
  236. max-width: 350px;
  237. }
  238. .ui[class*="very wide"].popup {
  239. max-width: 550px;
  240. }
  241. @media only screen and (max-width: 767px) {
  242. .ui.wide.popup,
  243. .ui[class*="very wide"].popup {
  244. max-width: 250px;
  245. }
  246. }
  247. /*--------------
  248. Fluid
  249. ---------------*/
  250. .ui.fluid.popup {
  251. width: 100%;
  252. max-width: none;
  253. }
  254. /*--------------
  255. Colors
  256. ---------------*/
  257. /* Inverted colors */
  258. .ui.inverted.popup {
  259. background: #1b1c1d;
  260. color: #ffffff;
  261. border: none;
  262. box-shadow: none;
  263. }
  264. .ui.inverted.popup .header {
  265. background-color: none;
  266. color: #ffffff;
  267. }
  268. .ui.inverted.popup:before {
  269. background-color: #1b1c1d;
  270. box-shadow: none !important;
  271. }
  272. /*--------------
  273. Flowing
  274. ---------------*/
  275. .ui.flowing.popup {
  276. max-width: none;
  277. }
  278. /*--------------
  279. Sizes
  280. ---------------*/
  281. .ui.mini.popup {
  282. font-size: 0.71428571rem;
  283. }
  284. .ui.tiny.popup {
  285. font-size: 0.85714286rem;
  286. }
  287. .ui.small.popup {
  288. font-size: 0.92857143rem;
  289. }
  290. .ui.popup {
  291. font-size: 1rem;
  292. }
  293. .ui.large.popup {
  294. font-size: 1.14285714rem;
  295. }
  296. .ui.huge.popup {
  297. font-size: 1.42857143rem;
  298. }
  299. /*******************************
  300. Theme Overrides
  301. *******************************/
  302. /*******************************
  303. User Overrides
  304. *******************************/