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.

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