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.

692 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 0em 0.5em 1em;
  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.2;
  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: left;
  66. margin: 0em 1em 0em 0em;
  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 0.25em 0em 0em;
  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: left;
  85. margin-right: 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.2;
  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-right: 1em;
  117. float: left;
  118. }
  119. .ui.list .item > .right.floated {
  120. margin-left: 1em;
  121. float: right;
  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-left: 1em;
  136. font-size: 1rem;
  137. }
  138. .ui.horizontal.list > .item:first-child {
  139. margin-left: 0em;
  140. }
  141. .ui.horizontal.list .list {
  142. padding-left: 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-left ease, 0.2s background-color ease;
  216. transition: 0.2s color ease, 0.2s padding-left 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-left ease, 0.2s background-color ease;
  232. transition: 0.2s color ease, 0.2s padding-left ease, 0.2s background-color ease;
  233. }
  234. .ui.animated.list:not(.horizontal) .item:hover {
  235. padding-left: 1em;
  236. }
  237. .ui.animated.list:not(.horizontal) .item:hover .item:hover {
  238. padding-left: 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-left: 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. left: -1.5em;
  271. content: '•';
  272. line-height: 1.2rem;
  273. vertical-align: top;
  274. }
  275. ul.ui.list ul,
  276. .ui.bulleted.list .list {
  277. padding-left: 1.5em;
  278. }
  279. /* Horizontal Bulleted */
  280. ul.ui.horizontal.bulleted.list,
  281. .ui.horizontal.bulleted.list {
  282. margin-left: 0em;
  283. }
  284. ul.ui.horizontal.bulleted.list li,
  285. .ui.horizontal.bulleted.list .item {
  286. margin-left: 1.5em;
  287. }
  288. ul.ui.horizontal.bulleted.list li:before,
  289. .ui.horizontal.bulleted.list .item:before {
  290. left: -0.9em;
  291. }
  292. ul.ui.horizontal.bulleted.list li:first-child,
  293. .ui.horizontal.bulleted.list .item:first-child {
  294. margin-left: 0em;
  295. }
  296. ul.ui.horizontal.bulleted.list li:first-child::before,
  297. .ui.horizontal.bulleted.list .item:first-child::before {
  298. display: none;
  299. }
  300. /*-------------------
  301. Ordered
  302. --------------------*/
  303. ol.ui.list,
  304. .ui.ordered.list {
  305. counter-reset: ordered;
  306. margin-left: 2em;
  307. list-style-type: none;
  308. }
  309. ol.ui.list li,
  310. .ui.ordered.list .item {
  311. list-style-type: none;
  312. position: relative;
  313. }
  314. ol.ui.list li:before,
  315. .ui.ordered.list .item:before {
  316. position: absolute;
  317. left: -2em;
  318. counter-increment: ordered;
  319. content: counters(ordered, ".");
  320. text-align: right;
  321. vertical-align: top;
  322. opacity: 0.75;
  323. }
  324. ol.ui.list ol,
  325. .ui.ordered.list .list {
  326. counter-reset: ordered;
  327. padding-left: 2.5em;
  328. }
  329. ol.ui.list ol li:before,
  330. .ui.ordered.list .list .item:before {
  331. left: -2.5em;
  332. }
  333. /* Horizontal Ordered */
  334. ol.ui.horizontal.list,
  335. .ui.ordered.horizontal.list {
  336. margin-left: 0em;
  337. }
  338. ol.ui.horizontal.list li:before,
  339. .ui.ordered.horizontal.list .item:before {
  340. position: static;
  341. margin: 0em 0.5em 0em 0em;
  342. }
  343. /*-------------------
  344. Divided
  345. --------------------*/
  346. .ui.divided.list > .item,
  347. .ui.divided.list:not(.horizontal) > .list {
  348. border-top: 1px solid rgba(0, 0, 0, 0.1);
  349. padding-left: 0.5em;
  350. padding-right: 0.5em;
  351. }
  352. .ui.divided.list .item .menu .item {
  353. border-width: 0px;
  354. }
  355. .ui.divided.list .item:first-child {
  356. border-top-width: 0px;
  357. }
  358. /* Sub Menu */
  359. .ui.divided.list:not(.horizontal) .list {
  360. margin-left: -0.5em;
  361. margin-right: -0.5em;
  362. }
  363. .ui.divided.list:not(.horizontal) .list .item {
  364. padding-left: 1em;
  365. padding-right: 1em;
  366. }
  367. .ui.divided.list:not(.horizontal) .list .item:first-child {
  368. border-top-width: 1px;
  369. }
  370. /* Divided bulleted */
  371. .ui.divided.bulleted.list {
  372. margin-left: 0em;
  373. }
  374. .ui.divided.bulleted.list .item {
  375. padding-left: 1.5em;
  376. }
  377. .ui.divided.bulleted.list .item:before {
  378. left: 0.5em;
  379. }
  380. /* Divided ordered */
  381. .ui.divided.ordered.list {
  382. margin-left: 0em;
  383. }
  384. .ui.divided.ordered.list > .item {
  385. padding-left: 2em;
  386. padding-right: 2em;
  387. }
  388. .ui.divided.ordered.list > .item:before {
  389. left: 0.5em;
  390. }
  391. .ui.divided.ordered.list .item .list {
  392. margin-left: -2em;
  393. margin-right: -2em;
  394. }
  395. /* Divided horizontal */
  396. .ui.divided.horizontal.list {
  397. margin-left: 0em;
  398. }
  399. .ui.divided.horizontal.list > .item {
  400. border-top: none;
  401. border-left: 1px solid rgba(0, 0, 0, 0.1);
  402. margin: 0em;
  403. padding-left: 0.75em;
  404. padding-right: 0.75em;
  405. line-height: 0.6;
  406. }
  407. .ui.horizontal.divided.list > .item:first-child {
  408. border-left: none;
  409. padding-left: 0em;
  410. }
  411. /* Inverted */
  412. .ui.divided.inverted.list > .item,
  413. .ui.divided.inverted.list > .list {
  414. border-color: rgba(255, 255, 255, 0.2);
  415. }
  416. .ui.divided.inverted.horizontal.list .item {
  417. border-color: rgba(255, 255, 255, 0.2);
  418. }
  419. /*-------------------
  420. Celled
  421. --------------------*/
  422. .ui.celled.list > .item,
  423. .ui.celled.list > .list {
  424. border-top: 1px solid rgba(0, 0, 0, 0.1);
  425. padding-left: 0.5em;
  426. padding-right: 0.5em;
  427. }
  428. .ui.celled.list > .item:last-child {
  429. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  430. }
  431. /* Sub Menu */
  432. .ui.celled.list .item .list {
  433. margin-left: -0.5em;
  434. margin-right: -0.5em;
  435. }
  436. .ui.celled.list .item .list .item {
  437. border-width: 0px;
  438. }
  439. .ui.celled.list .list .item:first-child {
  440. border-top-width: 0px;
  441. }
  442. /* Celled Bulleted */
  443. .ui.celled.bulleted.list {
  444. margin-left: 0em;
  445. }
  446. .ui.celled.bulleted.list > .item {
  447. padding-left: 1.5em;
  448. }
  449. .ui.celled.bulleted.list > .item:before {
  450. left: 0.5em;
  451. }
  452. /* Celled Ordered */
  453. .ui.celled.ordered.list {
  454. margin-left: 0em;
  455. }
  456. .ui.celled.ordered.list .item {
  457. padding-left: 2em;
  458. padding-right: 2em;
  459. }
  460. .ui.celled.ordered.list .item:before {
  461. left: 0.5em;
  462. }
  463. .ui.celled.ordered.list .item .list {
  464. margin-left: -2em;
  465. margin-right: -2em;
  466. }
  467. /* Celled Horizontal */
  468. .ui.horizontal.celled.list {
  469. margin-left: 0em;
  470. }
  471. .ui.horizontal.celled.list .item {
  472. border-top: none;
  473. border-left: 1px solid rgba(0, 0, 0, 0.1);
  474. margin: 0em;
  475. padding-left: 0.75em;
  476. padding-right: 0.75em;
  477. line-height: 0.6;
  478. }
  479. .ui.horizontal.celled.list .item:last-child {
  480. border-bottom: none;
  481. border-right: 1px solid rgba(0, 0, 0, 0.1);
  482. }
  483. /* Inverted */
  484. .ui.celled.inverted.list > .item,
  485. .ui.celled.inverted.list > .list {
  486. border-color: rgba(255, 255, 255, 0.2);
  487. }
  488. .ui.celled.inverted.horizontal.list .item {
  489. border-color: rgba(255, 255, 255, 0.2);
  490. }
  491. /*-------------------
  492. Relaxed
  493. --------------------*/
  494. .ui.relaxed.list:not(.horizontal) .item {
  495. padding-top: 0.5em;
  496. padding-bottom: 0.5em;
  497. }
  498. .ui.relaxed.list .header {
  499. margin-bottom: 0.25em;
  500. }
  501. .ui.horizontal.relaxed.list .item {
  502. padding-left: 1.25em;
  503. padding-right: 1.25em;
  504. }
  505. .ui.very.relaxed.list:not(.horizontal) .item {
  506. padding-top: 1em;
  507. padding-bottom: 1em;
  508. }
  509. .ui.very.relaxed.list .header {
  510. margin-bottom: 0.5em;
  511. }
  512. .ui.horizontal.very.relaxed.list .item {
  513. padding-left: 2em;
  514. padding-right: 2em;
  515. }
  516. /*-------------------
  517. Sizes
  518. --------------------*/
  519. .ui.mini.list .item {
  520. font-size: 0.7rem;
  521. }
  522. .ui.tiny.list .item {
  523. font-size: 0.8125rem;
  524. }
  525. .ui.small.list .item {
  526. font-size: 0.875rem;
  527. }
  528. .ui.list .item {
  529. font-size: 1em;
  530. }
  531. .ui.large.list .item {
  532. font-size: 1.125rem;
  533. }
  534. .ui.big.list .item {
  535. font-size: 1.25rem;
  536. }
  537. .ui.huge.list .item {
  538. font-size: 1.375rem;
  539. }
  540. .ui.massive.list .item {
  541. font-size: 1.5rem;
  542. }