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.

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