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.

665 lines
13 KiB

9 years ago
8 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
8 years ago
10 years ago
8 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
8 years ago
8 years ago
8 years ago
10 years ago
9 years ago
8 years ago
10 years ago
9 years ago
8 years ago
9 years ago
10 years ago
9 years ago
8 years ago
9 years ago
8 years ago
9 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
8 years ago
9 years ago
10 years ago
9 years ago
10 years ago
8 years ago
10 years ago
8 years ago
9 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 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
10 years ago
10 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
  1. /*!
  2. * # Semantic UI 2.2.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 #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.15);
  34. }
  35. .ui.popup > .header {
  36. padding: 0em;
  37. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  38. font-size: 1.14285714em;
  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.71428571em;
  49. height: 0.71428571em;
  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. Tooltip
  62. ---------------*/
  63. /* Content */
  64. [data-tooltip] {
  65. position: relative;
  66. }
  67. /* Popup */
  68. [data-tooltip]:before {
  69. content: attr(data-tooltip);
  70. display: none;
  71. position: absolute;
  72. white-space: nowrap;
  73. margin-bottom: -0.30714286em;
  74. font-size: normal;
  75. border: 1px solid #D4D4D5;
  76. line-height: 1.4285em;
  77. max-width: 250px;
  78. background: #FFFFFF;
  79. padding: 0.833em 1em;
  80. font-weight: normal;
  81. font-style: normal;
  82. color: rgba(0, 0, 0, 0.87);
  83. border-radius: 0.28571429rem;
  84. box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.15);
  85. z-index: 1;
  86. }
  87. /* Arrow */
  88. [data-tooltip]:after {
  89. position: absolute;
  90. display: none;
  91. content: '';
  92. font-size: 1rem;
  93. width: 0.71428571em;
  94. height: 0.71428571em;
  95. background: #FFFFFF;
  96. -webkit-transform: rotate(45deg);
  97. -ms-transform: rotate(45deg);
  98. transform: rotate(45deg);
  99. z-index: 2;
  100. box-shadow: 1px 1px 0px 0px #bababc;
  101. }
  102. /* Default Position (Top Center) */
  103. [data-tooltip]:not([data-position]):before {
  104. left: 50%;
  105. -webkit-transform: translateX(-50%);
  106. -ms-transform: translateX(-50%);
  107. transform: translateX(-50%);
  108. bottom: 100%;
  109. margin-bottom: 0.5em;
  110. }
  111. [data-tooltip]:not([data-position]):after {
  112. top: auto;
  113. right: auto;
  114. bottom: 100%;
  115. left: 50%;
  116. background: #FFFFFF;
  117. margin-left: -0.30714286em;
  118. margin-bottom: 0.30714286em;
  119. }
  120. /* Hover */
  121. [data-tooltip]:hover::after,
  122. [data-tooltip]:hover::before {
  123. display: block;
  124. }
  125. /*--------------
  126. Inverted
  127. ---------------*/
  128. /* Arrow */
  129. [data-tooltip][data-inverted]:after {
  130. box-shadow: none !important;
  131. }
  132. /* Arrow Position */
  133. [data-tooltip][data-inverted]:after {
  134. background: #1B1C1D;
  135. }
  136. /* Popup */
  137. [data-tooltip][data-inverted]:before {
  138. background: #1B1C1D;
  139. color: #FFFFFF;
  140. border: none;
  141. box-shadow: none;
  142. }
  143. [data-tooltip][data-inverted]:before .header {
  144. background-color: none;
  145. color: #FFFFFF;
  146. }
  147. /*--------------
  148. Position
  149. ---------------*/
  150. /* Top Center */
  151. [data-position="top center"][data-tooltip]:before {
  152. top: auto;
  153. right: auto;
  154. left: 50%;
  155. bottom: 100%;
  156. -webkit-transform: translateX(-50%);
  157. -ms-transform: translateX(-50%);
  158. transform: translateX(-50%);
  159. margin-bottom: 0.5em;
  160. }
  161. [data-position="top center"][data-tooltip]:after {
  162. top: auto;
  163. right: auto;
  164. bottom: 100%;
  165. left: 50%;
  166. background: #FFFFFF;
  167. margin-left: -0.30714286em;
  168. margin-bottom: 0.30714286em;
  169. }
  170. /* Top Left */
  171. [data-position="top left"][data-tooltip]:before {
  172. top: auto;
  173. right: auto;
  174. left: 0;
  175. bottom: 100%;
  176. margin-bottom: 0.5em;
  177. }
  178. [data-position="top left"][data-tooltip]:after {
  179. top: auto;
  180. right: auto;
  181. bottom: 100%;
  182. left: 1em;
  183. background: #FFFFFF;
  184. margin-left: -0.30714286em;
  185. margin-bottom: 0.30714286em;
  186. }
  187. /* Top Right */
  188. [data-position="top right"][data-tooltip]:before {
  189. top: auto;
  190. left: auto;
  191. right: 0;
  192. bottom: 100%;
  193. margin-bottom: 0.5em;
  194. }
  195. [data-position="top right"][data-tooltip]:after {
  196. top: auto;
  197. left: auto;
  198. bottom: 100%;
  199. right: 1em;
  200. background: #FFFFFF;
  201. margin-left: -0.30714286em;
  202. margin-bottom: 0.30714286em;
  203. }
  204. /* Bottom Center */
  205. [data-position="bottom center"][data-tooltip]:before {
  206. bottom: auto;
  207. right: auto;
  208. left: 50%;
  209. top: 100%;
  210. -webkit-transform: translateX(-50%);
  211. -ms-transform: translateX(-50%);
  212. transform: translateX(-50%);
  213. margin-top: 0.5em;
  214. }
  215. [data-position="bottom center"][data-tooltip]:after {
  216. bottom: auto;
  217. right: auto;
  218. top: 100%;
  219. left: 50%;
  220. background: #FFFFFF;
  221. margin-left: -0.30714286em;
  222. margin-top: 0.30714286em;
  223. }
  224. /* Bottom Left */
  225. [data-position="bottom left"][data-tooltip]:before {
  226. left: 0;
  227. top: 100%;
  228. margin-top: 0.5em;
  229. }
  230. [data-position="bottom left"][data-tooltip]:after {
  231. bottom: auto;
  232. right: auto;
  233. top: 100%;
  234. left: 1em;
  235. background: #FFFFFF;
  236. margin-left: -0.30714286em;
  237. margin-top: 0.30714286em;
  238. }
  239. /* Bottom Right */
  240. [data-position="bottom right"][data-tooltip]:before {
  241. right: 0;
  242. top: 100%;
  243. margin-top: 0.5em;
  244. }
  245. [data-position="bottom right"][data-tooltip]:after {
  246. bottom: auto;
  247. left: auto;
  248. top: 100%;
  249. right: 1em;
  250. background: #FFFFFF;
  251. margin-left: -0.30714286em;
  252. margin-top: 0.30714286em;
  253. }
  254. /* Left Center */
  255. [data-position="left center"][data-tooltip]:before {
  256. right: 100%;
  257. top: 50%;
  258. margin-right: 0.5em;
  259. -webkit-transform: translateY(-50%);
  260. -ms-transform: translateY(-50%);
  261. transform: translateY(-50%);
  262. }
  263. [data-position="left center"][data-tooltip]:after {
  264. right: 100%;
  265. top: 50%;
  266. margin-top: -0.30714286em;
  267. margin-right: 0.30714286em;
  268. }
  269. /* Right Center */
  270. [data-position="right center"][data-tooltip]:before {
  271. left: 100%;
  272. top: 50%;
  273. margin-left: 0.5em;
  274. -webkit-transform: translateY(-50%);
  275. -ms-transform: translateY(-50%);
  276. transform: translateY(-50%);
  277. }
  278. [data-position="right center"][data-tooltip]:after {
  279. left: 100%;
  280. top: 50%;
  281. margin-top: -0.30714286em;
  282. margin-left: 0.30714286em;
  283. }
  284. /* Arrow Color */
  285. [data-position~="bottom"][data-tooltip]:after {
  286. background: #FFFFFF;
  287. box-shadow: -1px -1px 0px 0px #bababc;
  288. }
  289. [data-position="left center"][data-tooltip]:after {
  290. background: #FFFFFF;
  291. box-shadow: 1px -1px 0px 0px #bababc;
  292. }
  293. [data-position="right center"][data-tooltip]:after {
  294. background: #FFFFFF;
  295. box-shadow: -1px 1px 0px 0px #bababc;
  296. }
  297. [data-position~="top"][data-tooltip]:after {
  298. background: #FFFFFF;
  299. }
  300. /* Inverted Arrow Color */
  301. [data-inverted][data-position~="bottom"][data-tooltip]:after {
  302. background: #1B1C1D;
  303. box-shadow: -1px -1px 0px 0px #bababc;
  304. }
  305. [data-inverted][data-position="left center"][data-tooltip]:after {
  306. background: #1B1C1D;
  307. box-shadow: 1px -1px 0px 0px #bababc;
  308. }
  309. [data-inverted][data-position="right center"][data-tooltip]:after {
  310. background: #1B1C1D;
  311. box-shadow: -1px 1px 0px 0px #bababc;
  312. }
  313. [data-inverted][data-position~="top"][data-tooltip]:after {
  314. background: #1B1C1D;
  315. }
  316. /*--------------
  317. Spacing
  318. ---------------*/
  319. .ui.popup {
  320. margin: 0em;
  321. }
  322. /* Extending from Top */
  323. .ui.top.popup {
  324. margin: 0em 0em 0.71428571em;
  325. }
  326. .ui.top.left.popup {
  327. -webkit-transform-origin: left bottom;
  328. -ms-transform-origin: left bottom;
  329. transform-origin: left bottom;
  330. }
  331. .ui.top.center.popup {
  332. -webkit-transform-origin: center bottom;
  333. -ms-transform-origin: center bottom;
  334. transform-origin: center bottom;
  335. }
  336. .ui.top.right.popup {
  337. -webkit-transform-origin: right bottom;
  338. -ms-transform-origin: right bottom;
  339. transform-origin: right bottom;
  340. }
  341. /* Extending from Vertical Center */
  342. .ui.left.center.popup {
  343. margin: 0em 0.71428571em 0em 0em;
  344. -webkit-transform-origin: right 50%;
  345. -ms-transform-origin: right 50%;
  346. transform-origin: right 50%;
  347. }
  348. .ui.right.center.popup {
  349. margin: 0em 0em 0em 0.71428571em;
  350. -webkit-transform-origin: left 50%;
  351. -ms-transform-origin: left 50%;
  352. transform-origin: left 50%;
  353. }
  354. /* Extending from Bottom */
  355. .ui.bottom.popup {
  356. margin: 0.71428571em 0em 0em;
  357. }
  358. .ui.bottom.left.popup {
  359. -webkit-transform-origin: left top;
  360. -ms-transform-origin: left top;
  361. transform-origin: left top;
  362. }
  363. .ui.bottom.center.popup {
  364. -webkit-transform-origin: center top;
  365. -ms-transform-origin: center top;
  366. transform-origin: center top;
  367. }
  368. .ui.bottom.right.popup {
  369. -webkit-transform-origin: right top;
  370. -ms-transform-origin: right top;
  371. transform-origin: right top;
  372. }
  373. /*--------------
  374. Pointer
  375. ---------------*/
  376. /*--- Below ---*/
  377. .ui.bottom.center.popup:before {
  378. margin-left: -0.30714286em;
  379. top: -0.30714286em;
  380. left: 50%;
  381. right: auto;
  382. bottom: auto;
  383. box-shadow: -1px -1px 0px 0px #bababc;
  384. }
  385. .ui.bottom.left.popup {
  386. margin-left: 0em;
  387. }
  388. /*rtl:rename*/
  389. .ui.bottom.left.popup:before {
  390. top: -0.30714286em;
  391. left: 1em;
  392. right: auto;
  393. bottom: auto;
  394. margin-left: 0em;
  395. box-shadow: -1px -1px 0px 0px #bababc;
  396. }
  397. .ui.bottom.right.popup {
  398. margin-right: 0em;
  399. }
  400. /*rtl:rename*/
  401. .ui.bottom.right.popup:before {
  402. top: -0.30714286em;
  403. right: 1em;
  404. bottom: auto;
  405. left: auto;
  406. margin-left: 0em;
  407. box-shadow: -1px -1px 0px 0px #bababc;
  408. }
  409. /*--- Above ---*/
  410. .ui.top.center.popup:before {
  411. top: auto;
  412. right: auto;
  413. bottom: -0.30714286em;
  414. left: 50%;
  415. margin-left: -0.30714286em;
  416. }
  417. .ui.top.left.popup {
  418. margin-left: 0em;
  419. }
  420. /*rtl:rename*/
  421. .ui.top.left.popup:before {
  422. bottom: -0.30714286em;
  423. left: 1em;
  424. top: auto;
  425. right: auto;
  426. margin-left: 0em;
  427. }
  428. .ui.top.right.popup {
  429. margin-right: 0em;
  430. }
  431. /*rtl:rename*/
  432. .ui.top.right.popup:before {
  433. bottom: -0.30714286em;
  434. right: 1em;
  435. top: auto;
  436. left: auto;
  437. margin-left: 0em;
  438. }
  439. /*--- Left Center ---*/
  440. /*rtl:rename*/
  441. .ui.left.center.popup:before {
  442. top: 50%;
  443. right: -0.30714286em;
  444. bottom: auto;
  445. left: auto;
  446. margin-top: -0.30714286em;
  447. box-shadow: 1px -1px 0px 0px #bababc;
  448. }
  449. /*--- Right Center ---*/
  450. /*rtl:rename*/
  451. .ui.right.center.popup:before {
  452. top: 50%;
  453. left: -0.30714286em;
  454. bottom: auto;
  455. right: auto;
  456. margin-top: -0.30714286em;
  457. box-shadow: -1px 1px 0px 0px #bababc;
  458. }
  459. /* Arrow Color By Location */
  460. .ui.bottom.popup:before {
  461. background: #FFFFFF;
  462. }
  463. .ui.right.center.popup:before,
  464. .ui.left.center.popup:before {
  465. background: #FFFFFF;
  466. }
  467. .ui.top.popup:before {
  468. background: #FFFFFF;
  469. }
  470. /* Inverted Arrow Color */
  471. .ui.inverted.bottom.popup:before {
  472. background: #1B1C1D;
  473. }
  474. .ui.inverted.right.center.popup:before,
  475. .ui.inverted.left.center.popup:before {
  476. background: #1B1C1D;
  477. }
  478. .ui.inverted.top.popup:before {
  479. background: #1B1C1D;
  480. }
  481. /*******************************
  482. Coupling
  483. *******************************/
  484. /* Immediate Nested Grid */
  485. .ui.popup > .ui.grid:not(.padded) {
  486. width: calc(100% + 1.75rem);
  487. margin: -0.7rem -0.875rem;
  488. }
  489. /*******************************
  490. States
  491. *******************************/
  492. .ui.loading.popup {
  493. display: block;
  494. visibility: hidden;
  495. z-index: -1;
  496. }
  497. .ui.animating.popup,
  498. .ui.visible.popup {
  499. display: block;
  500. }
  501. .ui.visible.popup {
  502. -webkit-transform: translateZ(0px);
  503. transform: translateZ(0px);
  504. -webkit-backface-visibility: hidden;
  505. backface-visibility: hidden;
  506. }
  507. /*******************************
  508. Variations
  509. *******************************/
  510. /*--------------
  511. Basic
  512. ---------------*/
  513. .ui.basic.popup:before {
  514. display: none;
  515. }
  516. /*--------------
  517. Wide
  518. ---------------*/
  519. .ui.wide.popup {
  520. max-width: 350px;
  521. }
  522. .ui[class*="very wide"].popup {
  523. max-width: 550px;
  524. }
  525. @media only screen and (max-width: 767px) {
  526. .ui.wide.popup,
  527. .ui[class*="very wide"].popup {
  528. max-width: 250px;
  529. }
  530. }
  531. /*--------------
  532. Fluid
  533. ---------------*/
  534. .ui.fluid.popup {
  535. width: 100%;
  536. max-width: none;
  537. }
  538. /*--------------
  539. Colors
  540. ---------------*/
  541. /* Inverted colors */
  542. .ui.inverted.popup {
  543. background: #1B1C1D;
  544. color: #FFFFFF;
  545. border: none;
  546. box-shadow: none;
  547. }
  548. .ui.inverted.popup .header {
  549. background-color: none;
  550. color: #FFFFFF;
  551. }
  552. .ui.inverted.popup:before {
  553. background-color: #1B1C1D;
  554. box-shadow: none !important;
  555. }
  556. /*--------------
  557. Flowing
  558. ---------------*/
  559. .ui.flowing.popup {
  560. max-width: none;
  561. }
  562. /*--------------
  563. Sizes
  564. ---------------*/
  565. .ui.mini.popup {
  566. font-size: 0.78571429rem;
  567. }
  568. .ui.tiny.popup {
  569. font-size: 0.85714286rem;
  570. }
  571. .ui.small.popup {
  572. font-size: 0.92857143rem;
  573. }
  574. .ui.popup {
  575. font-size: 1rem;
  576. }
  577. .ui.large.popup {
  578. font-size: 1.14285714rem;
  579. }
  580. .ui.huge.popup {
  581. font-size: 1.42857143rem;
  582. }
  583. /*******************************
  584. Theme Overrides
  585. *******************************/
  586. /*******************************
  587. User Overrides
  588. *******************************/