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.

490 lines
8.6 KiB

  1. /*
  2. * # Semantic List - Flat
  3. * http://github.com/quirkyinc/semantic
  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.list .item > .icon + .content {
  56. margin-left: 0.75em;
  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. Selection
  132. --------------------*/
  133. .ui.selection.list .item {
  134. cursor: pointer;
  135. color: rgba(0, 0, 0, 0.4);
  136. padding: 0.5em;
  137. -webkit-transition:
  138. 0.2s color ease,
  139. 0.2s padding-left ease,
  140. 0.2s background-color ease
  141. ;
  142. -moz-transition:
  143. 0.2s color ease,
  144. 0.2s padding-left ease,
  145. 0.2s background-color ease
  146. ;
  147. -o-transition:
  148. 0.2s color ease,
  149. 0.2s padding-left ease,
  150. 0.2s background-color ease
  151. ;
  152. -ms-transition:
  153. 0.2s color ease,
  154. 0.2s padding-left ease,
  155. 0.2s background-color ease
  156. ;
  157. transition:
  158. 0.2s color ease,
  159. 0.2s padding-left ease,
  160. 0.2s background-color ease
  161. ;
  162. }
  163. .ui.selection.list .item:hover {
  164. background-color: rgba(0, 0, 0, 0.02);
  165. color: rgba(0, 0, 0, 0.7);
  166. }
  167. .ui.selection.list:not(.horizontal, .ordered) .item:hover {
  168. padding-left: 1em;
  169. }
  170. .ui.selection.list:not(.horizontal, .ordered) .item:hover .item:hover {
  171. padding-left: 0.5em;
  172. }
  173. .ui.selection.list .item:active {
  174. background-color: rgba(0, 0, 0, 0.05);
  175. color: rgba(0, 0, 0, 0.7);
  176. }
  177. .ui.selection.list .item.active {
  178. background-color: rgba(0, 0, 0, 0.04);
  179. color: rgba(0, 0, 0, 0.7);
  180. }
  181. /*-------------------
  182. Bulleted
  183. --------------------*/
  184. ul.ui.list,
  185. .ui.bulleted.list {
  186. margin-left: 1em;
  187. }
  188. ul.ui.list li,
  189. .ui.bulleted.list .item {
  190. position: relative;
  191. }
  192. ul.ui.list li:before,
  193. .ui.bulleted.list .item:before {
  194. position: absolute;
  195. left: -1em;
  196. content: '•';
  197. line-height: 1.2rem;
  198. vertical-align: top;
  199. }
  200. ul.ui.list ul,
  201. .ui.bulleted.list .list {
  202. padding-left: 1.2em;
  203. }
  204. /* Horizontal Bulleted */
  205. ul.ui.horizontal.bulleted.list,
  206. .ui.horizontal.bulleted.list {
  207. margin-left: 0em;
  208. }
  209. ul.ui.horizontal.bulleted.list li,
  210. .ui.horizontal.bulleted.list .item {
  211. margin-left: 1.5em;
  212. }
  213. ul.ui.horizontal.bulleted.list li:before,
  214. .ui.horizontal.bulleted.list .item:before {
  215. left: -0.9em;
  216. }
  217. ul.ui.horizontal.bulleted.list li:first-child,
  218. .ui.horizontal.bulleted.list .item:first-child {
  219. margin-left: 0em;
  220. }
  221. ul.ui.horizontal.bulleted.list li:first-child::before,
  222. .ui.horizontal.bulleted.list .item:first-child::before {
  223. display: none;
  224. }
  225. /*-------------------
  226. Ordered
  227. --------------------*/
  228. ol.ui.list,
  229. .ui.ordered.list {
  230. counter-reset: ordered;
  231. margin-left: 2em;
  232. list-style-type: none;
  233. }
  234. ol.ui.list li,
  235. .ui.ordered.list .item {
  236. list-style-type: none;
  237. position: relative;
  238. }
  239. ol.ui.list li:before,
  240. .ui.ordered.list .item:before {
  241. position: absolute;
  242. left: -2em;
  243. counter-increment: ordered;
  244. content: counters(ordered, ".");
  245. text-align: right;
  246. vertical-align: top;
  247. opacity: 0.75;
  248. }
  249. ol.ui.list ol,
  250. .ui.ordered.list .list {
  251. counter-reset: ordered;
  252. padding-left: 3em;
  253. }
  254. ol.ui.list ol li:before,
  255. .ui.ordered.list .list .item:before {
  256. left: -2.5em;
  257. }
  258. /* Horizontal Ordered */
  259. ol.ui.horizontal.list,
  260. .ui.ordered.horizontal.list {
  261. margin-left: 0em;
  262. }
  263. ol.ui.horizontal.list li:before,
  264. .ui.ordered.horizontal.list .item:before {
  265. position: static;
  266. margin: 0em 0.5em 0em 0em;
  267. }
  268. /*-------------------
  269. Divided
  270. --------------------*/
  271. .ui.divided.list > .item,
  272. .ui.divided.list > .list {
  273. border-top: 1px solid rgba(0, 0, 0, 0.1);
  274. padding-left: 0.5em;
  275. padding-right: 0.5em;
  276. }
  277. .ui.divided.list .item .menu .item {
  278. border-width: 0px;
  279. }
  280. .ui.divided.list .item:first-child {
  281. border-top-width: 0px;
  282. }
  283. /* Sub Menu */
  284. .ui.divided.list .list {
  285. margin-left: -0.5em;
  286. margin-right: -0.5em;
  287. }
  288. .ui.divided.list .list .item {
  289. padding-left: 1em;
  290. padding-right: 1em;
  291. }
  292. .ui.divided.list .list .item:first-child {
  293. border-top-width: 1px;
  294. }
  295. /* Divided bulleted */
  296. .ui.divided.bulleted.list {
  297. margin-left: 0em;
  298. }
  299. .ui.divided.bulleted.list .item {
  300. padding-left: 1.5em;
  301. }
  302. .ui.divided.bulleted.list .item:before {
  303. left: 0.5em;
  304. }
  305. /* Divided ordered */
  306. .ui.divided.ordered.list {
  307. margin-left: 0em;
  308. }
  309. .ui.divided.ordered.list > .item {
  310. padding-left: 2em;
  311. padding-right: 2em;
  312. }
  313. .ui.divided.ordered.list > .item:before {
  314. left: 0.5em;
  315. }
  316. .ui.divided.ordered.list .item .list {
  317. margin-left: -2em;
  318. margin-right: -2em;
  319. }
  320. /* Divided horizontal */
  321. .ui.divided.horizontal.list {
  322. margin-left: 0em;
  323. }
  324. .ui.divided.horizontal.list .item {
  325. border-top: none;
  326. border-left: 1px solid rgba(0, 0, 0, 0.1);
  327. margin: 0em;
  328. padding-left: 0.75em;
  329. padding-right: 0.75em;
  330. line-height: 0.6;
  331. }
  332. .ui.horizontal.divided.list .item:first-child {
  333. border-left: none;
  334. padding-left: 0em;
  335. }
  336. /*-------------------
  337. Celled
  338. --------------------*/
  339. .ui.celled.list > .item,
  340. .ui.celled.list > .list {
  341. border-top: 1px solid rgba(0, 0, 0, 0.1);
  342. padding-left: 0.5em;
  343. padding-right: 0.5em;
  344. }
  345. .ui.celled.list > .item:last-child {
  346. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  347. }
  348. /* Sub Menu */
  349. .ui.celled.list .item .list {
  350. margin-left: -0.5em;
  351. margin-right: -0.5em;
  352. }
  353. .ui.celled.list .item .list .item {
  354. border-width: 0px;
  355. }
  356. .ui.celled.list .list .item:first-child {
  357. border-top-width: 0px;
  358. }
  359. /* Celled Bulleted */
  360. .ui.celled.bulleted.list {
  361. margin-left: 0em;
  362. }
  363. .ui.celled.bulleted.list > .item {
  364. padding-left: 1.5em;
  365. }
  366. .ui.celled.bulleted.list > .item:before {
  367. left: 0.5em;
  368. }
  369. /* Celled Ordered */
  370. .ui.celled.ordered.list {
  371. margin-left: 0em;
  372. }
  373. .ui.celled.ordered.list .item {
  374. padding-left: 2em;
  375. padding-right: 2em;
  376. }
  377. .ui.celled.ordered.list .item:before {
  378. left: 0.5em;
  379. }
  380. .ui.celled.ordered.list .item .list {
  381. margin-left: -2em;
  382. margin-right: -2em;
  383. }
  384. /* Celled Horizontal */
  385. .ui.horizontal.celled.list {
  386. margin-left: 0em;
  387. }
  388. .ui.horizontal.celled.list .item {
  389. border-top: none;
  390. border-left: 1px solid rgba(0, 0, 0, 0.1);
  391. margin: 0em;
  392. padding-left: 0.75em;
  393. padding-right: 0.75em;
  394. line-height: 0.6;
  395. }
  396. .ui.horizontal.celled.list .item:last-child {
  397. border-bottom: none;
  398. border-right: 1px solid rgba(0, 0, 0, 0.1);
  399. }
  400. /*-------------------
  401. Sizes
  402. --------------------*/
  403. .ui.mini.list .item {
  404. font-size: 0.8125rem;
  405. }
  406. .ui.tiny.list .item {
  407. font-size: 0.875rem;
  408. }
  409. .ui.small.list .item {
  410. font-size: 0.875rem;
  411. }
  412. .ui.large.list .item {
  413. font-size: 1.125rem;
  414. }
  415. .ui.big.list .item {
  416. font-size: 1.25rem;
  417. }
  418. .ui.huge.list .item {
  419. font-size: 1.375rem;
  420. }
  421. .ui.massive.list .item {
  422. font-size: 1.5rem;
  423. }