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.

544 lines
12 KiB

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