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.

561 lines
9.8 KiB

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