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.

611 lines
12 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 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: "\f0da"/*rtl:"\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 0.325em 0.325em 0em !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: "\f0da"/*rtl:"\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. .ui.dropdown .menu .item.hovered {
  155. background-color: rgba(0, 0, 0, 0.02);
  156. z-index: 12;
  157. }
  158. /*--------------------
  159. Active
  160. ----------------------*/
  161. /* Menu Item Active */
  162. .ui.dropdown .menu .active.item {
  163. -webkit-box-shadow: none;
  164. box-shadow: none;
  165. background-color: rgba(0, 0, 0, 0.06) !important;
  166. border-right: none;
  167. border-color: transparent !important;
  168. -webkit-box-shadow: none;
  169. -moz-shadow: none;
  170. -webkit-box-shadow: none;
  171. box-shadow: none;
  172. z-index: 12;
  173. }
  174. /*--------------------
  175. Default Text
  176. ----------------------*/
  177. .ui.dropdown > .default.text,
  178. .ui.default.dropdown > .text {
  179. color: rgba(0, 0, 0, 0.5);
  180. }
  181. .ui.dropdown:hover > .default.text,
  182. .ui.default.dropdown:hover > .text {
  183. color: rgba(0, 0, 0, 0.8);
  184. }
  185. /*--------------------
  186. Error
  187. ----------------------*/
  188. .ui.dropdown.error,
  189. .ui.dropdown.error > .text,
  190. .ui.dropdown.error > .default.text {
  191. color: #D95C5C !important;
  192. }
  193. .ui.selection.dropdown.error {
  194. background-color: #FFFAFA;
  195. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  196. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  197. }
  198. .ui.selection.dropdown.error:hover {
  199. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  200. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  201. }
  202. .ui.dropdown.error > .menu,
  203. .ui.dropdown.error > .menu .menu {
  204. -webkit-box-shadow: 0px 0px 1px 1px #E7BEBE !important;
  205. box-shadow: 0px 0px 1px 1px #E7BEBE !important;
  206. }
  207. .ui.dropdown.error > .menu .item {
  208. color: #D95C5C !important;
  209. }
  210. /* Item Hover */
  211. .ui.dropdown.error > .menu .item:hover {
  212. background-color: #FFF2F2 !important;
  213. }
  214. /* Item Active */
  215. .ui.dropdown.error > .menu .active.item {
  216. background-color: #FDCFCF !important;
  217. }
  218. /*******************************
  219. Variations
  220. *******************************/
  221. /*--------------
  222. Simple
  223. ---------------*/
  224. /* Displays without javascript */
  225. .ui.simple.dropdown .menu:before,
  226. .ui.simple.dropdown .menu:after {
  227. display: none;
  228. }
  229. .ui.simple.dropdown .menu {
  230. display: block;
  231. overflow: hidden;
  232. top: -9999px !important;
  233. position: absolute;
  234. opacity: 0;
  235. width: 0;
  236. height: 0;
  237. -webkit-transition: opacity 0.2s ease-out;
  238. -moz-transition: opacity 0.2s ease-out;
  239. transition: opacity 0.2s ease-out;
  240. }
  241. .ui.simple.active.dropdown,
  242. .ui.simple.dropdown:hover {
  243. border-bottom-right-radius: 0em !important;
  244. border-bottom-left-radius: 0em !important;
  245. }
  246. .ui.simple.active.dropdown > .menu,
  247. .ui.simple.dropdown:hover > .menu {
  248. overflow: visible;
  249. width: auto;
  250. height: auto;
  251. top: 100% !important;
  252. opacity: 1;
  253. }
  254. .ui.simple.dropdown > .menu .item:active > .menu,
  255. .ui.simple.dropdown:hover > .menu .item:hover > .menu {
  256. overflow: visible;
  257. width: auto;
  258. height: auto;
  259. top: 0% !important;
  260. right: 100% !important;
  261. opacity: 1;
  262. }
  263. .ui.simple.disabled.dropdown:hover .menu {
  264. display: none;
  265. height: 0px;
  266. width: 0px;
  267. overflow: hidden;
  268. }
  269. /*--------------
  270. Selection
  271. ---------------*/
  272. /* Displays like a select box */
  273. .ui.selection.dropdown {
  274. cursor: pointer;
  275. display: inline-block;
  276. word-wrap: break-word;
  277. white-space: normal;
  278. background-color: #FFFFFF;
  279. padding: 0.65em 1em;
  280. line-height: 1.33;
  281. color: rgba(0, 0, 0, 0.8);
  282. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) !important;
  283. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) !important;
  284. border-radius: !important 0.3125em;
  285. }
  286. .ui.selection.dropdown select {
  287. display: none;
  288. }
  289. .ui.selection.dropdown > .dropdown.icon {
  290. opacity: 0.7;
  291. margin: 0.2em 1.25em 0.2em 0em;
  292. -webkit-transition: opacity 0.2s ease-out;
  293. -moz-transition: opacity 0.2s ease-out;
  294. transition: opacity 0.2s ease-out;
  295. }
  296. .ui.selection.dropdown,
  297. .ui.selection.dropdown .menu {
  298. -webkit-transition: -webkit-box-shadow 0.2s ease-out;
  299. -moz-transition: box-shadow 0.2s ease-out;
  300. transition: box-shadow 0.2s ease-out;
  301. }
  302. .ui.selection.dropdown .menu {
  303. top: 100%;
  304. max-height: 312px;
  305. overflow-x: hidden;
  306. overflow-y: auto;
  307. -webkit-box-shadow: 0px 1px 0px 1px #E0E0E0;
  308. box-shadow: 0px 1px 0px 1px #E0E0E0;
  309. border-radius: 0px 0px 0.325em 0.325em;
  310. }
  311. .ui.selection.dropdown .menu:after,
  312. .ui.selection.dropdown .menu:before {
  313. display: none;
  314. }
  315. .ui.selection.dropdown .menu img {
  316. height: 2.5em;
  317. display: inline-block;
  318. vertical-align: middle;
  319. margin-left: 0.5em;
  320. }
  321. /*--------------------
  322. Error
  323. ----------------------*/
  324. .ui.selection.dropdown.error,
  325. .ui.selection.dropdown.error .item {
  326. background-color: #FFFAFA;
  327. color: #D95C5C;
  328. }
  329. .ui.selection.dropdown.error {
  330. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  331. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  332. }
  333. .ui.selection.dropdown.error .menu {
  334. -webkit-box-shadow: 0px 1px 0px 1px #E7BEBE;
  335. box-shadow: 0px 1px 0px 1px #E7BEBE;
  336. border-radius: 0px 0px 0.325em 0.325em;
  337. }
  338. /* Menu Item Active */
  339. .ui.selection.dropdown.error .menu .active.item {
  340. background-color: #FDCFCF !important;
  341. }
  342. /* Hover */
  343. .ui.selection.dropdown:hover {
  344. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) !important;
  345. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2) !important;
  346. }
  347. .ui.selection.dropdown:hover .menu {
  348. -webkit-box-shadow: 0px 1px 0px 1px #D3D3D3;
  349. box-shadow: 0px 1px 0px 1px #D3D3D3;
  350. }
  351. .ui.selection.dropdown:hover > .dropdown.icon {
  352. opacity: 1;
  353. }
  354. .ui.selection.dropdown.error:hover {
  355. -webkit-box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  356. box-shadow: 0px 0px 0px 1px rgba(231, 190, 190, 1) !important;
  357. }
  358. .ui.selection.dropdown.error:hover .menu {
  359. -webkit-box-shadow: 0px 1px 0px 1px #E7BEBE;
  360. box-shadow: 0px 1px 0px 1px #E7BEBE;
  361. }
  362. .ui.selection.dropdown.error .menu .item:hover,
  363. .ui.selection.dropdown.error .menu .item.hovered{
  364. background-color: #FFF2F2;
  365. }
  366. /* Visible */
  367. .ui.visible.selection.dropdown {
  368. border-bottom-right-radius: 0em !important;
  369. border-bottom-left-radius: 0em !important;
  370. }
  371. /* Active */
  372. .ui.active.selection.dropdown {
  373. border-radius: 0.3125em 0.3125em 0em 0em !important;
  374. }
  375. .ui.active.selection.dropdown > .dropdown.icon {
  376. opacity: 1;
  377. }
  378. /*--------------
  379. Fluid
  380. ---------------*/
  381. .ui.fluid.dropdown {
  382. display: block;
  383. }
  384. .ui.fluid.dropdown > .dropdown.icon {
  385. float: left;
  386. }
  387. /*--------------
  388. Inline
  389. ---------------*/
  390. .ui.inline.dropdown {
  391. cursor: pointer;
  392. display: inline-block;
  393. color: inherit;
  394. }
  395. .ui.inline.dropdown .dropdown.icon {
  396. margin: 0em 0.25em 0em 0.5em;
  397. }
  398. .ui.inline.dropdown .text {
  399. font-weight: bold;
  400. }
  401. .ui.inline.dropdown .menu {
  402. cursor: auto;
  403. margin-top: 0.25em;
  404. border-radius: 0.325em;
  405. }
  406. /*--------------
  407. Floating
  408. ---------------*/
  409. .ui.floating.dropdown .menu {
  410. right: 0;
  411. left: auto;
  412. margin-top: 0.5em !important;
  413. border-radius: 0.325em;
  414. }
  415. /*--------------
  416. Pointing
  417. ---------------*/
  418. .ui.pointing.dropdown .menu {
  419. top: 100%;
  420. margin-top: 0.75em;
  421. border-radius: 0.325em;
  422. }
  423. .ui.pointing.dropdown .menu:after {
  424. display: block;
  425. position: absolute;
  426. pointer-events: none;
  427. content: " ";
  428. visibility: visible;
  429. width: 0.5em;
  430. height: 0.5em;
  431. -webkit-box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.05);
  432. box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.05);
  433. background-image: none;
  434. background-color: #FFFFFF;
  435. -webkit-transform: rotate(45deg);
  436. -moz-transform: rotate(45deg);
  437. -ms-transform: rotate(45deg);
  438. transform: rotate(45deg);
  439. z-index: 2;
  440. }
  441. .ui.pointing.dropdown .menu .active.item:first-child {
  442. background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.03));
  443. background: transparent -moz-linear-gradient(transparent, rgba(0, 0, 0, 0.03));
  444. background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.03));
  445. }
  446. /* Directions */
  447. .ui.pointing.dropdown .menu:after {
  448. top: -0.25em;
  449. right: 50%;
  450. margin: 0em -0.25em 0em 0em;
  451. }
  452. .ui.top.left.pointing.dropdown .menu {
  453. top: 100%;
  454. bottom: auto;
  455. right: 0%;
  456. left: auto;
  457. margin: 0.75em 0em 0em;
  458. }
  459. .ui.top.left.pointing.dropdown .menu:after {
  460. top: -0.25em;
  461. right: 1.25em;
  462. left: auto;
  463. margin: 0em;
  464. -webkit-transform: rotate(45deg);
  465. -moz-transform: rotate(45deg);
  466. -ms-transform: rotate(45deg);
  467. transform: rotate(45deg);
  468. }
  469. .ui.top.right.pointing.dropdown .menu {
  470. top: 100%;
  471. bottom: auto;
  472. left: 0%;
  473. right: auto;
  474. margin: 0.75em 0em 0em;
  475. }
  476. .ui.top.right.pointing.dropdown .menu:after {
  477. top: -0.25em;
  478. right: auto;
  479. left: 1.25em;
  480. margin: 0em;
  481. -webkit-transform: rotate(45deg);
  482. -moz-transform: rotate(45deg);
  483. -ms-transform: rotate(45deg);
  484. transform: rotate(45deg);
  485. }
  486. .ui.left.pointing.dropdown .menu {
  487. top: 0%;
  488. right: 100%;
  489. left: auto;
  490. margin: 0em 0.75em 0em 0em;
  491. }
  492. .ui.left.pointing.dropdown .menu:after {
  493. top: 1em;
  494. right: -0.25em;
  495. margin: 0em 0em 0em 0em;
  496. -webkit-transform: rotate(-45deg);
  497. -moz-transform: rotate(-45deg);
  498. -ms-transform: rotate(-45deg);
  499. transform: rotate(-45deg);
  500. }
  501. .ui.right.pointing.dropdown .menu {
  502. top: 0%;
  503. right: auto;
  504. left: 100%;
  505. margin: 0em 0em 0em 0.75em;
  506. }
  507. .ui.right.pointing.dropdown .menu:after {
  508. top: 1em;
  509. right: auto;
  510. left: -0.25em;
  511. margin: 0em 0em 0em 0em;
  512. -webkit-transform: rotate(135deg);
  513. -moz-transform: rotate(135deg);
  514. -ms-transform: rotate(135deg);
  515. transform: rotate(135deg);
  516. }