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.

507 lines
8.8 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. 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:
  153. 0.2s color ease,
  154. 0.2s padding-left ease,
  155. 0.2s background-color ease
  156. ;
  157. -moz-transition:
  158. 0.2s color ease,
  159. 0.2s padding-left ease,
  160. 0.2s background-color ease
  161. ;
  162. -o-transition:
  163. 0.2s color ease,
  164. 0.2s padding-left ease,
  165. 0.2s background-color ease
  166. ;
  167. -ms-transition:
  168. 0.2s color ease,
  169. 0.2s padding-left ease,
  170. 0.2s background-color ease
  171. ;
  172. transition:
  173. 0.2s color ease,
  174. 0.2s padding-left ease,
  175. 0.2s background-color ease
  176. ;
  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. Sizes
  417. --------------------*/
  418. .ui.mini.list .item {
  419. font-size: 0.8125rem;
  420. }
  421. .ui.tiny.list .item {
  422. font-size: 0.875rem;
  423. }
  424. .ui.small.list .item {
  425. font-size: 0.875rem;
  426. }
  427. .ui.large.list .item {
  428. font-size: 1.125rem;
  429. }
  430. .ui.big.list .item {
  431. font-size: 1.25rem;
  432. }
  433. .ui.huge.list .item {
  434. font-size: 1.375rem;
  435. }
  436. .ui.massive.list .item {
  437. font-size: 1.5rem;
  438. }