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.

691 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
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. /*
  2. * # Semantic List - Flat
  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. * Released: April 26 2013
  11. */
  12. /*******************************
  13. List
  14. *******************************/
  15. ul.ui.list,
  16. ol.ui.list,
  17. .ui.list {
  18. list-style-type: none;
  19. margin: 1em 0em;
  20. padding: 0em;
  21. }
  22. ul.ui.list ul,
  23. ol.ui.list ol,
  24. .ui.list .list {
  25. margin: 0em;
  26. padding: 0.5em 1em 0.5em 0em;
  27. }
  28. ul.ui.list:first-child,
  29. ol.ui.list:first-child,
  30. .ui.list:first-child {
  31. margin-top: 0em;
  32. }
  33. ul.ui.list:last-child,
  34. ol.ui.list:last-child,
  35. .ui.list:last-child {
  36. margin-bottom: 0em;
  37. }
  38. /*******************************
  39. Content
  40. *******************************/
  41. /* List Item */
  42. ul.ui.list li,
  43. ol.ui.list li,
  44. .ui.list .item {
  45. display: list-item;
  46. list-style-type: none;
  47. list-style-position: inside;
  48. padding: 0.3em 0em;
  49. line-height: 1.2em;
  50. }
  51. .ui.list .item:after {
  52. content: '';
  53. display: block;
  54. height: 0;
  55. clear: both;
  56. visibility: hidden;
  57. }
  58. /* Sub-List */
  59. .ui.list .list {
  60. clear: both;
  61. }
  62. /* Icon */
  63. .ui.list .item > .icon {
  64. display: block;
  65. float: right;
  66. margin: 0em 0em 0em 1em;
  67. padding: 0.1em 0em 0em 0em;
  68. }
  69. .ui.list .item > .icon:only-child {
  70. display: inline-block;
  71. }
  72. .ui.horizontal.list .item > .icon {
  73. margin: 0em;
  74. padding: 0em 0em 0em 0.25em;
  75. }
  76. .ui.horizontal.list .item > .icon,
  77. .ui.horizontal.list .item > .icon + .content {
  78. float: none;
  79. display: inline-block;
  80. }
  81. /* Image */
  82. .ui.list .item > img {
  83. display: block;
  84. float: right;
  85. margin-left: 1em;
  86. vertical-align: middle;
  87. }
  88. /* Content */
  89. .ui.list .item > .content {
  90. display: inline-block;
  91. vertical-align: middle;
  92. line-height: 1.2em;
  93. }
  94. .ui.list .item > .icon + .content {
  95. display: table-cell;
  96. vertical-align: top;
  97. }
  98. /* Link */
  99. .ui.list a {
  100. cursor: pointer;
  101. }
  102. .ui.list a .icon {
  103. color: rgba(0, 0, 0, 0.6);
  104. -webkit-transition: color 0.2s ease;
  105. transition: color 0.2s ease;
  106. }
  107. /* Header */
  108. .ui.list .header {
  109. font-weight: bold;
  110. }
  111. .ui.list .description {
  112. color: rgba(0, 0, 0, 0.5);
  113. }
  114. /* Floated Content */
  115. .ui.list .item > .left.floated {
  116. margin-left: 1em;
  117. float: right;
  118. }
  119. .ui.list .item > .right.floated {
  120. margin-right: 1em;
  121. float: left;
  122. }
  123. /*******************************
  124. Types
  125. *******************************/
  126. /*-------------------
  127. Horizontal
  128. --------------------*/
  129. .ui.horizontal.list {
  130. display: inline-block;
  131. font-size: 0em;
  132. }
  133. .ui.horizontal.list > .item {
  134. display: inline-block;
  135. margin-right: 1em;
  136. font-size: 1rem;
  137. }
  138. .ui.horizontal.list > .item:first-child {
  139. margin-right: 0em;
  140. }
  141. .ui.horizontal.list .list {
  142. padding-right: 0em;
  143. padding-bottom: 0em;
  144. }
  145. /*******************************
  146. States
  147. *******************************/
  148. /*-------------------
  149. Hover
  150. --------------------*/
  151. .ui.list a:hover .icon {
  152. color: rgba(0, 0, 0, 0.8);
  153. }
  154. /*******************************
  155. Variations
  156. *******************************/
  157. /*-------------------
  158. Inverted
  159. --------------------*/
  160. .ui.inverted.list a .icon {
  161. color: rgba(255, 255, 255, 0.6);
  162. }
  163. .ui.inverted.list .description {
  164. color: rgba(255, 255, 255, 0.8);
  165. }
  166. .ui.inverted.link.list .item {
  167. color: rgba(255, 255, 255, 0.4);
  168. }
  169. /*-------------------
  170. Link
  171. --------------------*/
  172. .ui.link.list .item {
  173. color: rgba(0, 0, 0, 0.3);
  174. }
  175. .ui.link.list a.item,
  176. .ui.link.list .item a {
  177. color: rgba(0, 0, 0, 0.5);
  178. }
  179. .ui.link.list a.item:hover,
  180. .ui.link.list .item a:hover {
  181. color: rgba(0, 0, 0, 0.8);
  182. }
  183. .ui.link.list a.item:active,
  184. .ui.link.list .item a:active {
  185. color: rgba(0, 0, 0, 0.8);
  186. }
  187. .ui.link.list a.active.item,
  188. .ui.link.list .active.item a {
  189. color: rgba(0, 0, 0, 0.8);
  190. }
  191. /* Inverted */
  192. .ui.inverted.link.list a.item,
  193. .ui.inverted.link.list .item a {
  194. color: rgba(255, 255, 255, 0.6);
  195. }
  196. .ui.inverted.link.list a.item:hover,
  197. .ui.inverted.link.list .item a:hover {
  198. color: rgba(255, 255, 255, 0.8);
  199. }
  200. .ui.inverted.link.list a.item:active,
  201. .ui.inverted.link.list .item a:active {
  202. color: rgba(255, 255, 255, 0.9);
  203. }
  204. .ui.inverted.link.list a.active.item,
  205. .ui.inverted.link.list .active.item a {
  206. color: rgba(255, 255, 255, 0.8);
  207. }
  208. /*-------------------
  209. Selection
  210. --------------------*/
  211. .ui.selection.list .item {
  212. cursor: pointer;
  213. color: rgba(0, 0, 0, 0.4);
  214. padding: 0.5em;
  215. -webkit-transition: 0.2s color ease, 0.2s padding-right ease, 0.2s background-color ease;
  216. transition: 0.2s color ease, 0.2s padding-right ease, 0.2s background-color ease;
  217. }
  218. .ui.selection.list .item:hover {
  219. background-color: rgba(0, 0, 0, 0.02);
  220. color: rgba(0, 0, 0, 0.7);
  221. }
  222. .ui.selection.list .item:active {
  223. background-color: rgba(0, 0, 0, 0.05);
  224. color: rgba(0, 0, 0, 0.7);
  225. }
  226. .ui.selection.list .item.active {
  227. background-color: rgba(0, 0, 0, 0.04);
  228. color: rgba(0, 0, 0, 0.7);
  229. }
  230. .ui.animated.list .item {
  231. -webkit-transition: 0.2s color ease, 0.2s padding-right ease, 0.2s background-color ease;
  232. transition: 0.2s color ease, 0.2s padding-right ease, 0.2s background-color ease;
  233. }
  234. .ui.animated.list:not(.horizontal) .item:hover {
  235. padding-right: 1em;
  236. }
  237. .ui.animated.list:not(.horizontal) .item:hover .item:hover {
  238. padding-right: 0.5em;
  239. }
  240. /* Inverted */
  241. .ui.inverted.selection.list .item {
  242. color: rgba(255, 255, 255, 0.6);
  243. }
  244. .ui.inverted.selection.list .item:hover {
  245. background-color: rgba(255, 255, 255, 0.04);
  246. color: rgba(255, 255, 255, 0.8);
  247. }
  248. .ui.inverted.selection.list .item:active {
  249. background-color: rgba(255, 255, 255, 0.1);
  250. color: rgba(255, 255, 255, 0.7);
  251. }
  252. .ui.inverted.selection.list .item.active {
  253. background-color: rgba(255, 255, 255, 0.08);
  254. color: #FFFFFF;
  255. }
  256. /*-------------------
  257. Bulleted
  258. --------------------*/
  259. ul.ui.list,
  260. .ui.bulleted.list {
  261. margin-right: 1.5em;
  262. }
  263. ul.ui.list li,
  264. .ui.bulleted.list .item {
  265. position: relative;
  266. }
  267. ul.ui.list li:before,
  268. .ui.bulleted.list .item:before {
  269. position: absolute;
  270. right: -1.5em;
  271. content: '•';
  272. }
  273. ul.ui.list ul,
  274. .ui.bulleted.list .list {
  275. padding-right: 1.5em;
  276. }
  277. /* Horizontal Bulleted */
  278. ul.ui.horizontal.bulleted.list,
  279. .ui.horizontal.bulleted.list {
  280. margin-right: 0em;
  281. }
  282. ul.ui.horizontal.bulleted.list li,
  283. .ui.horizontal.bulleted.list .item {
  284. margin-right: 1.5em;
  285. }
  286. ul.ui.horizontal.bulleted.list li:before,
  287. .ui.horizontal.bulleted.list .item:before {
  288. right: -0.9em;
  289. }
  290. ul.ui.horizontal.bulleted.list li:first-child,
  291. .ui.horizontal.bulleted.list .item:first-child {
  292. margin-right: 0em;
  293. }
  294. ul.ui.horizontal.bulleted.list li:first-child::before,
  295. .ui.horizontal.bulleted.list .item:first-child::before {
  296. display: none;
  297. }
  298. /*-------------------
  299. Ordered
  300. --------------------*/
  301. ol.ui.list,
  302. .ui.ordered.list {
  303. counter-reset: ordered;
  304. margin-right: 2em;
  305. list-style-type: none;
  306. }
  307. ol.ui.list li,
  308. .ui.ordered.list .item {
  309. list-style-type: none;
  310. position: relative;
  311. }
  312. ol.ui.list li:before,
  313. .ui.ordered.list .item:before {
  314. position: absolute;
  315. right: -2em;
  316. counter-increment: ordered;
  317. content: counters(ordered, ".");
  318. text-align: left;
  319. vertical-align: top;
  320. opacity: 0.75;
  321. }
  322. ol.ui.list ol,
  323. .ui.ordered.list .list {
  324. counter-reset: ordered;
  325. padding-right: 2.5em;
  326. }
  327. ol.ui.list ol li:before,
  328. .ui.ordered.list .list .item:before {
  329. right: -2.5em;
  330. }
  331. /* Horizontal Ordered */
  332. ol.ui.horizontal.list,
  333. .ui.ordered.horizontal.list {
  334. margin-right: 0em;
  335. }
  336. ol.ui.horizontal.list li:before,
  337. .ui.ordered.horizontal.list .item:before {
  338. position: static;
  339. right: 0em;
  340. margin: 0em 0em 0em 0.5em;
  341. }
  342. /*-------------------
  343. Divided
  344. --------------------*/
  345. .ui.divided.list > .item,
  346. .ui.divided.list:not(.horizontal) > .list {
  347. border-top: 1px solid rgba(0, 0, 0, 0.1);
  348. padding-right: 0.5em;
  349. padding-left: 0.5em;
  350. }
  351. .ui.divided.list .item .menu .item {
  352. border-width: 0px;
  353. }
  354. .ui.divided.list .item:first-child {
  355. border-top-width: 0px;
  356. }
  357. /* Sub Menu */
  358. .ui.divided.list:not(.horizontal) .list {
  359. margin-right: -0.5em;
  360. margin-left: -0.5em;
  361. }
  362. .ui.divided.list:not(.horizontal) .list .item {
  363. padding-right: 1em;
  364. padding-left: 1em;
  365. }
  366. .ui.divided.list:not(.horizontal) .list .item:first-child {
  367. border-top-width: 1px;
  368. }
  369. /* Divided bulleted */
  370. .ui.divided.bulleted.list {
  371. margin-right: 0em;
  372. }
  373. .ui.divided.bulleted.list .item {
  374. padding-right: 1.5em;
  375. }
  376. .ui.divided.bulleted.list .item:before {
  377. right: 0.5em;
  378. }
  379. /* Divided ordered */
  380. .ui.divided.ordered.list {
  381. margin-right: 0em;
  382. }
  383. .ui.divided.ordered.list > .item {
  384. padding-right: 2em;
  385. padding-left: 2em;
  386. }
  387. .ui.divided.ordered.list > .item:before {
  388. right: 0.5em;
  389. }
  390. .ui.divided.ordered.list .item .list {
  391. margin-right: -2em;
  392. margin-left: -2em;
  393. }
  394. /* Divided horizontal */
  395. .ui.divided.horizontal.list {
  396. margin-right: 0em;
  397. }
  398. .ui.divided.horizontal.list > .item {
  399. border-top: none;
  400. border-right: 1px solid rgba(0, 0, 0, 0.1);
  401. margin: 0em;
  402. padding-right: 0.75em;
  403. padding-left: 0.75em;
  404. line-height: 0.6em;
  405. }
  406. .ui.horizontal.divided.list > .item:first-child {
  407. border-right: none;
  408. padding-right: 0em;
  409. }
  410. /* Inverted */
  411. .ui.divided.inverted.list > .item,
  412. .ui.divided.inverted.list > .list {
  413. border-color: rgba(255, 255, 255, 0.2);
  414. }
  415. .ui.divided.inverted.horizontal.list .item {
  416. border-color: rgba(255, 255, 255, 0.2);
  417. }
  418. /*-------------------
  419. Celled
  420. --------------------*/
  421. .ui.celled.list > .item,
  422. .ui.celled.list > .list {
  423. border-top: 1px solid rgba(0, 0, 0, 0.1);
  424. padding-right: 0.5em;
  425. padding-left: 0.5em;
  426. }
  427. .ui.celled.list > .item:last-child {
  428. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  429. }
  430. /* Sub Menu */
  431. .ui.celled.list .item .list {
  432. margin-right: -0.5em;
  433. margin-left: -0.5em;
  434. }
  435. .ui.celled.list .item .list .item {
  436. border-width: 0px;
  437. }
  438. .ui.celled.list .list .item:first-child {
  439. border-top-width: 0px;
  440. }
  441. /* Celled Bulleted */
  442. .ui.celled.bulleted.list {
  443. margin-right: 0em;
  444. }
  445. .ui.celled.bulleted.list > .item {
  446. padding-right: 1.5em;
  447. }
  448. .ui.celled.bulleted.list > .item:before {
  449. right: 0.5em;
  450. }
  451. /* Celled Ordered */
  452. .ui.celled.ordered.list {
  453. margin-right: 0em;
  454. }
  455. .ui.celled.ordered.list .item {
  456. padding-right: 2em;
  457. padding-left: 2em;
  458. }
  459. .ui.celled.ordered.list .item:before {
  460. right: 0.5em;
  461. }
  462. .ui.celled.ordered.list .item .list {
  463. margin-right: -2em;
  464. margin-left: -2em;
  465. }
  466. /* Celled Horizontal */
  467. .ui.horizontal.celled.list {
  468. margin-right: 0em;
  469. }
  470. .ui.horizontal.celled.list .item {
  471. border-top: none;
  472. border-right: 1px solid rgba(0, 0, 0, 0.1);
  473. margin: 0em;
  474. padding-right: 0.75em;
  475. padding-left: 0.75em;
  476. line-height: 0.6em;
  477. }
  478. .ui.horizontal.celled.list .item:last-child {
  479. border-bottom: none;
  480. border-left: 1px solid rgba(0, 0, 0, 0.1);
  481. }
  482. /* Inverted */
  483. .ui.celled.inverted.list > .item,
  484. .ui.celled.inverted.list > .list {
  485. border-color: rgba(255, 255, 255, 0.2);
  486. }
  487. .ui.celled.inverted.horizontal.list .item {
  488. border-color: rgba(255, 255, 255, 0.2);
  489. }
  490. /*-------------------
  491. Relaxed
  492. --------------------*/
  493. .ui.relaxed.list:not(.horizontal) .item {
  494. padding-top: 0.5em;
  495. padding-bottom: 0.5em;
  496. }
  497. .ui.relaxed.list .header {
  498. margin-bottom: 0.25em;
  499. }
  500. .ui.horizontal.relaxed.list .item {
  501. padding-right: 1.25em;
  502. padding-left: 1.25em;
  503. }
  504. .ui.very.relaxed.list:not(.horizontal) .item {
  505. padding-top: 1em;
  506. padding-bottom: 1em;
  507. }
  508. .ui.very.relaxed.list .header {
  509. margin-bottom: 0.5em;
  510. }
  511. .ui.horizontal.very.relaxed.list .item {
  512. padding-right: 2em;
  513. padding-left: 2em;
  514. }
  515. /*-------------------
  516. Sizes
  517. --------------------*/
  518. .ui.mini.list .item {
  519. font-size: 0.7rem;
  520. }
  521. .ui.tiny.list .item {
  522. font-size: 0.8125rem;
  523. }
  524. .ui.small.list .item {
  525. font-size: 0.875rem;
  526. }
  527. .ui.list .item {
  528. font-size: 1em;
  529. }
  530. .ui.large.list .item {
  531. font-size: 1.125rem;
  532. }
  533. .ui.big.list .item {
  534. font-size: 1.25rem;
  535. }
  536. .ui.huge.list .item {
  537. font-size: 1.375rem;
  538. }
  539. .ui.massive.list .item {
  540. font-size: 1.5rem;
  541. }