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.

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