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.

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