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.

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