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.

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