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.

625 lines
13 KiB

11 years ago
10 years ago
10 years ago
11 years ago
10 years ago
11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 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
11 years ago
10 years ago
10 years ago
11 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
11 years ago
10 years ago
10 years ago
10 years ago
11 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 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
10 years ago
  1. /*
  2. * # Semantic - Dropdown
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Dropdown
  13. *******************************/
  14. .ui.dropdown {
  15. cursor: pointer;
  16. position: relative;
  17. display: inline-block;
  18. line-height: 1;
  19. -webkit-transition:
  20. border-radius 0.1s ease,
  21. width 0.2s ease
  22. ;
  23. -moz-transition:
  24. border-radius 0.1s ease,
  25. width 0.2s ease
  26. ;
  27. transition:
  28. border-radius 0.1s ease,
  29. width 0.2s ease
  30. ;
  31. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  32. -moz-tap-highlight-color: rgba(0, 0, 0, 0);
  33. tap-highlight-color: rgba(0, 0, 0, 0);
  34. }
  35. /*******************************
  36. Content
  37. *******************************/
  38. /*--------------
  39. Menu
  40. ---------------*/
  41. .ui.dropdown .menu {
  42. cursor: auto;
  43. position: absolute;
  44. display: none;
  45. top: 100%;
  46. margin: 0em;
  47. background-color: #FFFFFF;
  48. min-width: 100%;
  49. white-space: nowrap;
  50. font-size: 0.875em;
  51. text-shadow: none;
  52. -webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
  53. box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1);
  54. border-radius: 0px 0px 0.325em 0.325em;
  55. -webkit-transition: opacity 0.2s ease;
  56. -moz-transition: opacity 0.2s ease;
  57. transition: opacity 0.2s ease;
  58. z-index: 11;
  59. }
  60. /*--------------
  61. Icon
  62. ---------------*/
  63. .ui.dropdown > .dropdown.icon {
  64. width: auto;
  65. margin: 0em 1em 0em 0em;
  66. }
  67. .ui.dropdown > .dropdown.icon:before {
  68. content: "\f0d7";
  69. }
  70. .ui.dropdown .menu .item .dropdown.icon {
  71. width: auto;
  72. float: left;
  73. margin: 0em 0.5em 0em 0em;
  74. }
  75. .ui.dropdown .menu .item .dropdown.icon:before {
  76. content: "\f0d9";
  77. }
  78. /*--------------
  79. Text
  80. ---------------*/
  81. .ui.dropdown > .text {
  82. display: inline-block;
  83. -webkit-transition: color 0.2s ease;
  84. -moz-transition: color 0.2s ease;
  85. transition: color 0.2s ease;
  86. }
  87. /* Flyout Direction */
  88. .ui.dropdown .menu {
  89. right: 0px;
  90. }
  91. /*--------------
  92. Sub Menu
  93. ---------------*/
  94. .ui.dropdown .menu .menu {
  95. top: 0% !important;
  96. right: 100% !important;
  97. margin: 0em !important;
  98. border-radius: 0.325em 0 0em 0.325em !important;
  99. }
  100. .ui.dropdown .menu .menu:after {
  101. display: none;
  102. }
  103. .ui.dropdown .menu .item {
  104. cursor: pointer;
  105. border: none;
  106. border-top: 1px solid rgba(0, 0, 0, 0.05);
  107. height: auto;
  108. font-size: 0.875em;
  109. display: block;
  110. color: rgba(0, 0, 0, 0.75);
  111. padding: 0.85em 1em !important;
  112. font-size: 0.875rem;
  113. text-transform: none;
  114. font-weight: normal;
  115. text-align: right;
  116. -webkit-touch-callout: none;
  117. }
  118. .ui.dropdown .menu .item:before {
  119. display: none;
  120. }
  121. .ui.dropdown .menu .item .icon {
  122. margin-left: 0.75em;
  123. }
  124. .ui.dropdown .menu .item:first-child {
  125. border-top: none;
  126. }
  127. /*******************************
  128. Coupling
  129. *******************************/
  130. /* Opposite on last menu on right */
  131. .ui.menu .right.menu .dropdown:last-child .menu,
  132. .ui.buttons > .ui.dropdown:last-child .menu {
  133. right: auto;
  134. left: 0px;
  135. }
  136. .ui.vertical.menu .dropdown.item > .dropdown.icon:before {
  137. content: "\f0d9";
  138. }
  139. .ui.dropdown.icon.button > .dropdown.icon {
  140. margin: 0em;
  141. }
  142. /*******************************
  143. States
  144. *******************************/
  145. /* Dropdown Visible */
  146. .ui.visible.dropdown > .menu {
  147. display: block;
  148. }
  149. /*--------------------
  150. Hover
  151. ----------------------*/
  152. /* Menu Item Hover */
  153. .ui.dropdown .menu .item:hover {
  154. background-color: rgba(0, 0, 0, 0.02);
  155. z-index: 12;
  156. }
  157. /*--------------------
  158. Selected
  159. ----------------------*/
  160. /* Menu Item Selected */
  161. .ui.dropdown .menu .item.selected {
  162. background-color: rgba(0, 0, 0, 0.02);
  163. z-index: 12;
  164. }
  165. /*--------------------
  166. Active
  167. ----------------------*/
  168. /* Menu Item Active */
  169. .ui.dropdown .menu .active.item {
  170. -webkit-box-shadow: none;
  171. box-shadow: none;
  172. background-color: rgba(0, 0, 0, 0.06) !important;
  173. border-right: none;
  174. border-color: transparent !important;
  175. -webkit-box-shadow: none;
  176. -moz-shadow: none;
  177. -webkit-box-shadow: none;
  178. box-shadow: none;
  179. z-index: 12;
  180. }
  181. /*--------------------
  182. Default Text
  183. ----------------------*/
  184. .ui.dropdown > .default.text,
  185. .ui.default.dropdown > .text {
  186. color: rgba(0, 0, 0, 0.5);
  187. }
  188. .ui.dropdown:hover > .default.text,
  189. .ui.default.dropdown:hover > .text {
  190. color: rgba(0, 0, 0, 0.8);
  191. }
  192. /*--------------------
  193. Error
  194. ----------------------*/
  195. .ui.dropdown.error,
  196. .ui.dropdown.error > .text,
  197. .ui.dropdown.error > .default.text {
  198. color: #D95C5C !important;
  199. }
  200. .ui.selection.dropdown.error {
  201. background-color: #FFFAFA;
  202. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  203. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  204. }
  205. .ui.selection.dropdown.error:hover {
  206. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  207. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  208. }
  209. .ui.dropdown.error > .menu,
  210. .ui.dropdown.error > .menu .menu {
  211. -webkit-box-shadow: 0px 0px 1px 1px #E7BEBE !important;
  212. box-shadow: 0px 0px 1px 1px #E7BEBE !important;
  213. }
  214. .ui.dropdown.error > .menu .item {
  215. color: #D95C5C !important;
  216. }
  217. /* Item Hover */
  218. .ui.dropdown.error > .menu .item:hover {
  219. background-color: #FFF2F2 !important;
  220. }
  221. /* Item Active */
  222. .ui.dropdown.error > .menu .active.item {
  223. background-color: #FDCFCF !important;
  224. }
  225. /*******************************
  226. Variations
  227. *******************************/
  228. /*--------------
  229. Simple
  230. ---------------*/
  231. /* Displays without javascript */
  232. .ui.simple.dropdown .menu:before,
  233. .ui.simple.dropdown .menu:after {
  234. display: none;
  235. }
  236. .ui.simple.dropdown .menu {
  237. display: block;
  238. overflow: hidden;
  239. top: -9999px !important;
  240. position: absolute;
  241. opacity: 0;
  242. width: 0;
  243. height: 0;
  244. -webkit-transition: opacity 0.2s ease-out;
  245. -moz-transition: opacity 0.2s ease-out;
  246. transition: opacity 0.2s ease-out;
  247. }
  248. .ui.simple.active.dropdown,
  249. .ui.simple.dropdown:hover {
  250. border-bottom-right-radius: 0em !important;
  251. border-bottom-left-radius: 0em !important;
  252. }
  253. .ui.simple.active.dropdown > .menu,
  254. .ui.simple.dropdown:hover > .menu {
  255. overflow: visible;
  256. width: auto;
  257. height: auto;
  258. top: 100% !important;
  259. opacity: 1;
  260. }
  261. .ui.simple.dropdown > .menu .item:active > .menu,
  262. .ui.simple.dropdown:hover > .menu .item:hover > .menu {
  263. overflow: visible;
  264. width: auto;
  265. height: auto;
  266. top: 0% !important;
  267. right: 100% !important;
  268. opacity: 1;
  269. }
  270. .ui.simple.disabled.dropdown:hover .menu {
  271. display: none;
  272. height: 0px;
  273. width: 0px;
  274. overflow: hidden;
  275. }
  276. /*--------------
  277. Selection
  278. ---------------*/
  279. /* Displays like a select box */
  280. .ui.selection.dropdown {
  281. cursor: pointer;
  282. display: inline-block;
  283. word-wrap: break-word;
  284. white-space: normal;
  285. background-color: #FFFFFF;
  286. padding: 0.65em 1em;
  287. line-height: 1.33;
  288. color: rgba(0, 0, 0, 0.8);
  289. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) !important;
  290. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) !important;
  291. border-radius: 0.3125em !important;
  292. }
  293. .ui.selection.dropdown select {
  294. display: none;
  295. }
  296. .ui.selection.dropdown > .dropdown.icon {
  297. opacity: 0.7;
  298. margin: 0.2em 1.25em 0.2em 0em;
  299. -webkit-transition: opacity 0.2s ease-out;
  300. -moz-transition: opacity 0.2s ease-out;
  301. transition: opacity 0.2s ease-out;
  302. }
  303. .ui.selection.dropdown,
  304. .ui.selection.dropdown .menu {
  305. -webkit-transition: -webkit-box-shadow 0.2s ease-out;
  306. -moz-transition: box-shadow 0.2s ease-out;
  307. transition: box-shadow 0.2s ease-out;
  308. }
  309. .ui.selection.dropdown .menu {
  310. top: 100%;
  311. max-height: 312px;
  312. overflow-x: hidden;
  313. overflow-y: auto;
  314. -webkit-box-shadow: 0px 1px 0px 1px #E0E0E0;
  315. box-shadow: 0px 1px 0px 1px #E0E0E0;
  316. border-radius: 0px 0px 0.325em 0.325em;
  317. }
  318. .ui.selection.dropdown .menu:after,
  319. .ui.selection.dropdown .menu:before {
  320. display: none;
  321. }
  322. .ui.selection.dropdown .menu img {
  323. height: 2.5em;
  324. display: inline-block;
  325. vertical-align: middle;
  326. margin-left: 0.5em;
  327. }
  328. /*--------------------
  329. Error
  330. ----------------------*/
  331. .ui.selection.dropdown.error,
  332. .ui.selection.dropdown.error .item {
  333. background-color: #FFFAFA;
  334. color: #D95C5C;
  335. }
  336. .ui.selection.dropdown.error {
  337. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  338. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  339. }
  340. .ui.selection.dropdown.error .menu {
  341. -webkit-box-shadow: 0px 1px 0px 1px #E7BEBE;
  342. box-shadow: 0px 1px 0px 1px #E7BEBE;
  343. border-radius: 0px 0px 0.325em 0.325em;
  344. }
  345. /* Menu Item Active */
  346. .ui.selection.dropdown.error .menu .active.item {
  347. background-color: #FDCFCF !important;
  348. }
  349. /* Hover */
  350. .ui.selection.dropdown:hover {
  351. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) !important;
  352. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) !important;
  353. }
  354. .ui.selection.dropdown:hover .menu {
  355. -webkit-box-shadow: 0px 1px 0px 1px #D3D3D3;
  356. box-shadow: 0px 1px 0px 1px #D3D3D3;
  357. }
  358. .ui.selection.dropdown:hover > .dropdown.icon {
  359. opacity: 1;
  360. }
  361. .ui.selection.dropdown.error:hover {
  362. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  363. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  364. }
  365. .ui.selection.dropdown.error:hover .menu {
  366. -webkit-box-shadow: 0px 1px 0px 1px #E7BEBE;
  367. box-shadow: 0px 1px 0px 1px #E7BEBE;
  368. }
  369. .ui.selection.dropdown.error .menu .item:hover {
  370. background-color: #FFF2F2;
  371. }
  372. /* Selected */
  373. .ui.selection.dropdown.error .menu .item.selected {
  374. background-color: #FFF2F2;
  375. }
  376. /* Visible */
  377. .ui.visible.selection.dropdown {
  378. border-bottom-right-radius: 0em !important;
  379. border-bottom-left-radius: 0em !important;
  380. }
  381. /* Active */
  382. .ui.active.selection.dropdown {
  383. border-radius: 0.3125em 0.3125em 0em 0em !important;
  384. }
  385. .ui.active.selection.dropdown > .dropdown.icon {
  386. opacity: 1;
  387. }
  388. /*--------------
  389. Fluid
  390. ---------------*/
  391. .ui.fluid.dropdown {
  392. display: block;
  393. }
  394. .ui.fluid.dropdown > .dropdown.icon {
  395. float: left;
  396. }
  397. /*--------------
  398. Inline
  399. ---------------*/
  400. .ui.inline.dropdown {
  401. cursor: pointer;
  402. display: inline-block;
  403. color: inherit;
  404. }
  405. .ui.inline.dropdown .dropdown.icon {
  406. margin: 0em 0.25em 0em 0.5em;
  407. }
  408. .ui.inline.dropdown .text {
  409. font-weight: bold;
  410. }
  411. .ui.inline.dropdown .menu {
  412. cursor: auto;
  413. margin-top: 0.25em;
  414. border-radius: 0.325em;
  415. }
  416. /*--------------
  417. Floating
  418. ---------------*/
  419. .ui.floating.dropdown .menu {
  420. right: 0;
  421. left: auto;
  422. margin-top: 0.5em !important;
  423. border-radius: 0.325em;
  424. }
  425. /*--------------
  426. Pointing
  427. ---------------*/
  428. .ui.pointing.dropdown .menu {
  429. top: 100%;
  430. margin-top: 0.75em;
  431. border-radius: 0.325em;
  432. }
  433. .ui.pointing.dropdown .menu:after {
  434. display: block;
  435. position: absolute;
  436. pointer-events: none;
  437. content: " ";
  438. visibility: visible;
  439. width: 0.5em;
  440. height: 0.5em;
  441. -webkit-box-shadow: 1px -1px 0px 1px rgba(0, 0, 0, 0.05);
  442. box-shadow: 1px -1px 0px 1px rgba(0, 0, 0, 0.05);
  443. background-image: none;
  444. background-color: #FFFFFF;
  445. -webkit-transform: rotate(-45deg);
  446. -moz-transform: rotate(-45deg);
  447. -ms-transform: rotate(-45deg);
  448. transform: rotate(-45deg);
  449. z-index: 12;
  450. }
  451. .ui.pointing.dropdown .menu .active.item:first-child {
  452. background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.03));
  453. background: transparent -moz-linear-gradient(transparent, rgba(0, 0, 0, 0.03));
  454. background: transparent -webkit-gradient(linear, right top, right bottom, from(transparent), to(rgba(0, 0, 0, 0.03)));
  455. background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.03));
  456. }
  457. /* Directions */
  458. .ui.pointing.dropdown .menu:after {
  459. top: -0.25em;
  460. right: 50%;
  461. margin: 0em -0.25em 0em 0em;
  462. }
  463. .ui.top.left.pointing.dropdown .menu {
  464. top: 100%;
  465. bottom: auto;
  466. right: 0%;
  467. left: auto;
  468. margin: 0.75em 0em 0em;
  469. }
  470. .ui.top.left.pointing.dropdown .menu:after {
  471. top: -0.25em;
  472. right: 1.25em;
  473. left: auto;
  474. margin: 0em;
  475. -webkit-transform: rotate(-45deg);
  476. -moz-transform: rotate(-45deg);
  477. -ms-transform: rotate(-45deg);
  478. transform: rotate(-45deg);
  479. }
  480. .ui.top.right.pointing.dropdown .menu {
  481. top: 100%;
  482. bottom: auto;
  483. left: 0%;
  484. right: auto;
  485. margin: 0.75em 0em 0em;
  486. }
  487. .ui.top.right.pointing.dropdown .menu:after {
  488. top: -0.25em;
  489. right: auto;
  490. left: 1.25em;
  491. margin: 0em;
  492. -webkit-transform: rotate(-45deg);
  493. -moz-transform: rotate(-45deg);
  494. -ms-transform: rotate(-45deg);
  495. transform: rotate(-45deg);
  496. }
  497. .ui.left.pointing.dropdown .menu {
  498. top: 0%;
  499. right: 100%;
  500. left: auto;
  501. margin: 0em 0.75em 0em 0em;
  502. }
  503. .ui.left.pointing.dropdown .menu:after {
  504. top: 1em;
  505. right: -0.25em;
  506. margin: 0em 0em 0em 0em;
  507. -webkit-transform: rotate(45deg);
  508. -moz-transform: rotate(45deg);
  509. -ms-transform: rotate(45deg);
  510. transform: rotate(45deg);
  511. }
  512. .ui.right.pointing.dropdown .menu {
  513. top: 0%;
  514. right: auto;
  515. left: 100%;
  516. margin: 0em 0em 0em 0.75em;
  517. }
  518. .ui.right.pointing.dropdown .menu:after {
  519. top: 1em;
  520. right: auto;
  521. left: -0.25em;
  522. margin: 0em 0em 0em 0em;
  523. -webkit-transform: rotate(-135deg);
  524. -moz-transform: rotate(-135deg);
  525. -ms-transform: rotate(-135deg);
  526. transform: rotate(-135deg);
  527. }