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.

301 lines
6.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. .ui.list {
  17. margin: 1em 0em;
  18. padding: 0em;
  19. }
  20. ul.ui.list:first-child,
  21. .ui.list:first-child {
  22. margin-top: 1em;
  23. }
  24. ul.ui.list:last-child,
  25. .ui.list:last-child {
  26. margin-bottom: 0em;
  27. }
  28. ul.ui.list li:first-child,
  29. .ui.list .item:first-child {
  30. border-top: none;
  31. }
  32. /*******************************
  33. Content
  34. *******************************/
  35. /* List Item */
  36. ul.ui.list li,
  37. .ui.list .item {
  38. display: list-item;
  39. list-style-type: none;
  40. list-style-position: inside;
  41. padding: 0.3em 0em;
  42. line-height: 1.2;
  43. }
  44. /* Icon */
  45. .ui.list .icon {
  46. margin: 0em 0.5em 0em 0em;
  47. }
  48. /* Link */
  49. ul.ui.list a,
  50. .ui.list a {
  51. cursor: pointer;
  52. }
  53. .ui.list a .icon {
  54. color: rgba(0, 0, 0, 0.6);
  55. -webkit-transition: color 0.2s ease;
  56. -moz-transition: color 0.2s ease;
  57. -o-transition: color 0.2s ease;
  58. -ms-transition: color 0.2s ease;
  59. transition: color 0.2s ease;
  60. }
  61. /* Header */
  62. .ui.list .header {
  63. font-weight: bold;
  64. }
  65. /*******************************
  66. Types
  67. *******************************/
  68. /*-------------------
  69. Horizontal
  70. --------------------*/
  71. ul.ui.horizontal.list,
  72. .ui.horizontal.list {
  73. display: inline-block;
  74. font-size: 0em;
  75. }
  76. ul.ui.horizontal.list li,
  77. .ui.horizontal.list .item {
  78. display: inline-block;
  79. margin-left: 1em;
  80. font-size: 1rem;
  81. }
  82. ul.ui.horizontal.list li:first-child,
  83. .ui.horizontal.list .item:first-child {
  84. margin-left: 0em;
  85. }
  86. /*******************************
  87. States
  88. *******************************/
  89. /*-------------------
  90. Hover
  91. --------------------*/
  92. .ui.list a:hover .icon {
  93. color: rgba(0, 0, 0, 0.8);
  94. }
  95. /*******************************
  96. Variations
  97. *******************************/
  98. /*-------------------
  99. Bulleted
  100. --------------------*/
  101. ul.ui.bulleted.list,
  102. .ui.bulleted.list {
  103. margin-left: 1em;
  104. }
  105. ul.ui.bulleted.list li,
  106. .ui.bulleted.list .item {
  107. position: relative;
  108. }
  109. ul.ui.bulleted.list li:before,
  110. .ui.bulleted.list .item:before {
  111. position: absolute;
  112. left: -1em;
  113. content: '·';
  114. line-height: 1.2rem;
  115. vertical-align: top;
  116. }
  117. /* Horizontal Bulleted */
  118. ul.ui.horizontal.bulleted.list,
  119. .ui.horizontal.bulleted.list {
  120. margin-left: 0em;
  121. }
  122. ul.ui.horizontal.bulleted.list li,
  123. .ui.horizontal.bulleted.list .item {
  124. margin-left: 1.5em;
  125. }
  126. ul.ui.horizontal.bulleted.list li:before,
  127. .ui.horizontal.bulleted.list .item:before {
  128. left: -0.9em;
  129. }
  130. ul.ui.horizontal.bulleted.list li:first-child,
  131. .ui.horizontal.bulleted.list .item:first-child {
  132. margin-left: 0em;
  133. }
  134. ul.ui.horizontal.bulleted.list li:first-child::before,
  135. .ui.horizontal.bulleted.list .item:first-child::before {
  136. display: none;
  137. }
  138. /*-------------------
  139. Ordered
  140. --------------------*/
  141. ol.ui.list,
  142. ul.ui.ordered.list,
  143. .ui.ordered.list {
  144. counter-reset: ordered;
  145. margin-left: 2em;
  146. }
  147. ol.ui.list li,
  148. ul.ui.ordered.list li,
  149. .ui.ordered.list .item {
  150. counter-increment: ordered;
  151. position: relative;
  152. }
  153. ol.ui.list li:before,
  154. ul.ui.ordered.list li:before,
  155. .ui.ordered.list .item:before {
  156. position: absolute;
  157. top: 0.4em;
  158. left: -2em;
  159. content: counter(ordered);
  160. width: 0.8em;
  161. margin-right: 0.5rem;
  162. padding-right: 0.5em;
  163. text-align: right;
  164. line-height: 1.2rem;
  165. vertical-align: top;
  166. opacity: 0.8;
  167. }
  168. /* Horizontal Ordered */
  169. ol.ui.horizontal.list,
  170. ul.ui.ordered.horizontal.list,
  171. .ui.ordered.horizontal.list {
  172. margin-left: 0em;
  173. }
  174. ol.ui.horizontal.list li:before,
  175. ul.ui.ordered.horizontal.list li:before,
  176. .ui.ordered.horizontal.list .item:before {
  177. position: static;
  178. margin: 0em;
  179. }
  180. /*-------------------
  181. Divided
  182. --------------------*/
  183. ul.ui.divided.list li,
  184. .ui.divided.list .item {
  185. border-top: 1px solid rgba(0, 0, 0, 0.1);
  186. padding-left: 0.5em;
  187. padding-right: 0.5em;
  188. }
  189. ul.ui.divided.list li:first-child,
  190. .ui.divided.list .item:first-child {
  191. border-top: none;
  192. }
  193. /* Divided bulleted */
  194. ul.ui.divided.bulleted.list,
  195. .ui.divided.bulleted.list {
  196. margin-left: 0em;
  197. }
  198. ul.ui.divided.bulleted.list li,
  199. .ui.divided.bulleted.list .item {
  200. padding-left: 1.5em;
  201. }
  202. ul.ui.divided.bulleted.list li:before,
  203. .ui.divided.bulleted.list .item:before {
  204. left: 0em;
  205. }
  206. /* Divided ordered */
  207. ol.ui.divided.list,
  208. ul.ui.divided.ordered.list,
  209. .ui.divided.ordered.list {
  210. margin-left: 0em;
  211. }
  212. ol.ui.divided.list li,
  213. ul.ui.divided.ordered.list li,
  214. .ui.divided.ordered.list .item {
  215. padding-left: 2em;
  216. }
  217. ol.ui.divided.list li:before,
  218. ul.ui.divided.ordered.list li:before,
  219. .ui.divided.ordered.list .item:before {
  220. left: 0em;
  221. }
  222. /* Divided horizontal */
  223. ul.ui.divided.horizontal.list,
  224. .ui.divided.horizontal.list {
  225. margin-left: 0em;
  226. }
  227. ul.ui.divided.horizontal.list li,
  228. .ui.divided.horizontal.list .item {
  229. border-top: none;
  230. border-left: 1px solid rgba(0, 0, 0, 0.1);
  231. margin: 0em;
  232. padding-left: 0.75em;
  233. padding-right: 0.75em;
  234. line-height: 0.6;
  235. }
  236. ul.ui.horizontal.divided.list li:first-child,
  237. .ui.horizontal.divided.list .item:first-child {
  238. border-left: none;
  239. padding-left: 0em;
  240. }
  241. /*-------------------
  242. Celled
  243. --------------------*/
  244. ul.ui.celled.list li,
  245. .ui.celled.list .item {
  246. border-top: 1px solid rgba(0, 0, 0, 0.1);
  247. padding-left: 0.5em;
  248. padding-right: 0.5em;
  249. }
  250. ul.ui.celled.list li:last-child,
  251. .ui.celled.list .item:last-child {
  252. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  253. }
  254. /* Celled Bulleted */
  255. ul.ui.celled.bulleted.list,
  256. .ui.celled.bulleted.list {
  257. margin-left: 0em;
  258. }
  259. ul.ui.celled.bulleted.list li,
  260. .ui.celled.bulleted.list .item {
  261. padding-left: 1.5em;
  262. }
  263. ul.ui.celled.bulleted.list li:before,
  264. .ui.celled.bulleted.list .item:before {
  265. left: 0em;
  266. }
  267. /* Celled Ordered */
  268. ol.ui.celled.list,
  269. ul.ui.celled.ordered.list,
  270. .ui.celled.ordered.list {
  271. margin-left: 0em;
  272. }
  273. ol.ui.celled.list li,
  274. ul.ui.celled.ordered.list li,
  275. .ui.celled.ordered.list .item {
  276. padding-left: 2em;
  277. }
  278. ol.ui.celled.list li:before,
  279. ul.ui.celled.ordered.list li:before,
  280. .ui.celled.ordered.list .item:before {
  281. left: 0em;
  282. }
  283. /* Celled Horizontal */
  284. ul.ui.horizontal.celled.list,
  285. .ui.horizontal.celled.list {
  286. margin-left: 0em;
  287. }
  288. ul.ui.horizontal.celled.list li,
  289. .ui.horizontal.celled.list .item {
  290. border-top: none;
  291. border-left: 1px solid rgba(0, 0, 0, 0.1);
  292. margin: 0em;
  293. padding-left: 0.75em;
  294. padding-right: 0.75em;
  295. line-height: 0.6;
  296. }
  297. ul.ui.horizontal.celled.list li:last-child,
  298. .ui.horizontal.celled.list .item:last-child {
  299. border-bottom: none;
  300. border-right: 1px solid rgba(0, 0, 0, 0.1);
  301. }