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.

584 lines
9.4 KiB

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