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.

554 lines
9.7 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: 0em 0.5em 0em 0em;
  63. vertical-align: middle;
  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 a {
  154. color: rgba(0, 0, 0, 0.5);
  155. }
  156. .ui.link.list a:hover {
  157. color: rgba(0, 0, 0, 0.7);
  158. }
  159. .ui.link.list a:active {
  160. color: rgba(0, 0, 0, 0.9);
  161. }
  162. .ui.link.list .active {
  163. color: rgba(0, 0, 0, 0.7);
  164. }
  165. /*-------------------
  166. Selection
  167. --------------------*/
  168. .ui.selection.list .item {
  169. cursor: pointer;
  170. color: rgba(0, 0, 0, 0.4);
  171. padding: 0.5em;
  172. -webkit-transition:
  173. 0.2s color ease,
  174. 0.2s padding-left ease,
  175. 0.2s background-color ease
  176. ;
  177. -moz-transition:
  178. 0.2s color ease,
  179. 0.2s padding-left ease,
  180. 0.2s background-color ease
  181. ;
  182. -o-transition:
  183. 0.2s color ease,
  184. 0.2s padding-left ease,
  185. 0.2s background-color ease
  186. ;
  187. -ms-transition:
  188. 0.2s color ease,
  189. 0.2s padding-left ease,
  190. 0.2s background-color ease
  191. ;
  192. transition:
  193. 0.2s color ease,
  194. 0.2s padding-left ease,
  195. 0.2s background-color ease
  196. ;
  197. }
  198. .ui.selection.list .item:hover {
  199. background-color: rgba(0, 0, 0, 0.02);
  200. color: rgba(0, 0, 0, 0.7);
  201. }
  202. .ui.selection.list:not(.horizontal, .ordered) .item:hover {
  203. padding-left: 1em;
  204. }
  205. .ui.selection.list:not(.horizontal, .ordered) .item:hover .item:hover {
  206. padding-left: 0.5em;
  207. }
  208. .ui.selection.list .item:active {
  209. background-color: rgba(0, 0, 0, 0.05);
  210. color: rgba(0, 0, 0, 0.7);
  211. }
  212. .ui.selection.list .item.active {
  213. background-color: rgba(0, 0, 0, 0.04);
  214. color: rgba(0, 0, 0, 0.7);
  215. }
  216. /*-------------------
  217. Bulleted
  218. --------------------*/
  219. ul.ui.list,
  220. .ui.bulleted.list {
  221. margin-left: 1em;
  222. }
  223. ul.ui.list li,
  224. .ui.bulleted.list .item {
  225. position: relative;
  226. }
  227. ul.ui.list li:before,
  228. .ui.bulleted.list .item:before {
  229. position: absolute;
  230. left: -1em;
  231. content: '•';
  232. line-height: 1.2rem;
  233. vertical-align: top;
  234. }
  235. ul.ui.list ul,
  236. .ui.bulleted.list .list {
  237. padding-left: 1.2em;
  238. }
  239. /* Horizontal Bulleted */
  240. ul.ui.horizontal.bulleted.list,
  241. .ui.horizontal.bulleted.list {
  242. margin-left: 0em;
  243. }
  244. ul.ui.horizontal.bulleted.list li,
  245. .ui.horizontal.bulleted.list .item {
  246. margin-left: 1.5em;
  247. }
  248. ul.ui.horizontal.bulleted.list li:before,
  249. .ui.horizontal.bulleted.list .item:before {
  250. left: -0.9em;
  251. }
  252. ul.ui.horizontal.bulleted.list li:first-child,
  253. .ui.horizontal.bulleted.list .item:first-child {
  254. margin-left: 0em;
  255. }
  256. ul.ui.horizontal.bulleted.list li:first-child::before,
  257. .ui.horizontal.bulleted.list .item:first-child::before {
  258. display: none;
  259. }
  260. /*-------------------
  261. Ordered
  262. --------------------*/
  263. ol.ui.list,
  264. .ui.ordered.list {
  265. counter-reset: ordered;
  266. margin-left: 2em;
  267. list-style-type: none;
  268. }
  269. ol.ui.list li,
  270. .ui.ordered.list .item {
  271. list-style-type: none;
  272. position: relative;
  273. }
  274. ol.ui.list li:before,
  275. .ui.ordered.list .item:before {
  276. position: absolute;
  277. left: -2em;
  278. counter-increment: ordered;
  279. content: counters(ordered, ".");
  280. text-align: right;
  281. vertical-align: top;
  282. opacity: 0.75;
  283. }
  284. ol.ui.list ol,
  285. .ui.ordered.list .list {
  286. counter-reset: ordered;
  287. padding-left: 3em;
  288. }
  289. ol.ui.list ol li:before,
  290. .ui.ordered.list .list .item:before {
  291. left: -2.5em;
  292. }
  293. /* Horizontal Ordered */
  294. ol.ui.horizontal.list,
  295. .ui.ordered.horizontal.list {
  296. margin-left: 0em;
  297. }
  298. ol.ui.horizontal.list li:before,
  299. .ui.ordered.horizontal.list .item:before {
  300. position: static;
  301. margin: 0em 0.5em 0em 0em;
  302. }
  303. /*-------------------
  304. Divided
  305. --------------------*/
  306. .ui.divided.list > .item,
  307. .ui.divided.list > .list {
  308. border-top: 1px solid rgba(0, 0, 0, 0.1);
  309. padding-left: 0.5em;
  310. padding-right: 0.5em;
  311. }
  312. .ui.divided.list .item .menu .item {
  313. border-width: 0px;
  314. }
  315. .ui.divided.list .item:first-child {
  316. border-top-width: 0px;
  317. }
  318. /* Sub Menu */
  319. .ui.divided.list .list {
  320. margin-left: -0.5em;
  321. margin-right: -0.5em;
  322. }
  323. .ui.divided.list .list .item {
  324. padding-left: 1em;
  325. padding-right: 1em;
  326. }
  327. .ui.divided.list .list .item:first-child {
  328. border-top-width: 1px;
  329. }
  330. /* Divided bulleted */
  331. .ui.divided.bulleted.list {
  332. margin-left: 0em;
  333. }
  334. .ui.divided.bulleted.list .item {
  335. padding-left: 1.5em;
  336. }
  337. .ui.divided.bulleted.list .item:before {
  338. left: 0.5em;
  339. }
  340. /* Divided ordered */
  341. .ui.divided.ordered.list {
  342. margin-left: 0em;
  343. }
  344. .ui.divided.ordered.list > .item {
  345. padding-left: 2em;
  346. padding-right: 2em;
  347. }
  348. .ui.divided.ordered.list > .item:before {
  349. left: 0.5em;
  350. }
  351. .ui.divided.ordered.list .item .list {
  352. margin-left: -2em;
  353. margin-right: -2em;
  354. }
  355. /* Divided horizontal */
  356. .ui.divided.horizontal.list {
  357. margin-left: 0em;
  358. }
  359. .ui.divided.horizontal.list .item {
  360. border-top: none;
  361. border-left: 1px solid rgba(0, 0, 0, 0.1);
  362. margin: 0em;
  363. padding-left: 0.75em;
  364. padding-right: 0.75em;
  365. line-height: 0.6;
  366. }
  367. .ui.horizontal.divided.list .item:first-child {
  368. border-left: none;
  369. padding-left: 0em;
  370. }
  371. /*-------------------
  372. Celled
  373. --------------------*/
  374. .ui.celled.list > .item,
  375. .ui.celled.list > .list {
  376. border-top: 1px solid rgba(0, 0, 0, 0.1);
  377. padding-left: 0.5em;
  378. padding-right: 0.5em;
  379. }
  380. .ui.celled.list > .item:last-child {
  381. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  382. }
  383. /* Sub Menu */
  384. .ui.celled.list .item .list {
  385. margin-left: -0.5em;
  386. margin-right: -0.5em;
  387. }
  388. .ui.celled.list .item .list .item {
  389. border-width: 0px;
  390. }
  391. .ui.celled.list .list .item:first-child {
  392. border-top-width: 0px;
  393. }
  394. /* Celled Bulleted */
  395. .ui.celled.bulleted.list {
  396. margin-left: 0em;
  397. }
  398. .ui.celled.bulleted.list > .item {
  399. padding-left: 1.5em;
  400. }
  401. .ui.celled.bulleted.list > .item:before {
  402. left: 0.5em;
  403. }
  404. /* Celled Ordered */
  405. .ui.celled.ordered.list {
  406. margin-left: 0em;
  407. }
  408. .ui.celled.ordered.list .item {
  409. padding-left: 2em;
  410. padding-right: 2em;
  411. }
  412. .ui.celled.ordered.list .item:before {
  413. left: 0.5em;
  414. }
  415. .ui.celled.ordered.list .item .list {
  416. margin-left: -2em;
  417. margin-right: -2em;
  418. }
  419. /* Celled Horizontal */
  420. .ui.horizontal.celled.list {
  421. margin-left: 0em;
  422. }
  423. .ui.horizontal.celled.list .item {
  424. border-top: none;
  425. border-left: 1px solid rgba(0, 0, 0, 0.1);
  426. margin: 0em;
  427. padding-left: 0.75em;
  428. padding-right: 0.75em;
  429. line-height: 0.6;
  430. }
  431. .ui.horizontal.celled.list .item:last-child {
  432. border-bottom: none;
  433. border-right: 1px solid rgba(0, 0, 0, 0.1);
  434. }
  435. /*-------------------
  436. Relaxed
  437. --------------------*/
  438. .ui.relaxed.list:not(.horizontal) .item {
  439. padding-top: 0.5em;
  440. padding-bottom: 0.5em;
  441. }
  442. .ui.horizontal.relaxed.list .item {
  443. padding-left: 1.25em;
  444. padding-right: 1.25em;
  445. }
  446. .ui.very.relaxed.list:not(.horizontal) .item {
  447. padding-top: 1em;
  448. padding-bottom: 1em;
  449. }
  450. .ui.horizontal.very.relaxed.list .item {
  451. padding-left: 2em;
  452. padding-right: 2em;
  453. }
  454. /*-------------------
  455. Sizes
  456. --------------------*/
  457. .ui.mini.list .item {
  458. font-size: 0.7rem;
  459. }
  460. .ui.tiny.list .item {
  461. font-size: 0.8125rem;
  462. }
  463. .ui.small.list .item {
  464. font-size: 0.875rem;
  465. }
  466. .ui.list .item {
  467. font-size: 1em;
  468. }
  469. .ui.large.list .item {
  470. font-size: 1.125rem;
  471. }
  472. .ui.big.list .item {
  473. font-size: 1.25rem;
  474. }
  475. .ui.huge.list .item {
  476. font-size: 1.375rem;
  477. }
  478. .ui.massive.list .item {
  479. font-size: 1.5rem;
  480. }