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.

296 lines
4.7 KiB

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