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.

707 lines
15 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - List
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'view';
  15. @element : 'list';
  16. @import '../../semantic.config';
  17. /*******************************
  18. List
  19. *******************************/
  20. ul.ui.list,
  21. ol.ui.list,
  22. .ui.list {
  23. list-style-type: @listStyleType;
  24. margin: @margin;
  25. padding: @verticalPadding @horizontalPadding;
  26. }
  27. ul.ui.list:first-child,
  28. ol.ui.list:first-child,
  29. .ui.list:first-child {
  30. margin-top: 0em;
  31. padding-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. padding-bottom: 0em;
  38. }
  39. /*******************************
  40. Content
  41. *******************************/
  42. /* List Item */
  43. ul.ui.list li,
  44. ol.ui.list li,
  45. .ui.list .item {
  46. display: list-item;
  47. table-layout: fixed;
  48. list-style-type: @listStyleType;
  49. list-style-position: @listStylePosition;
  50. padding: @itemVerticalPadding @itemHorizontalPadding;
  51. line-height: @itemLineHeight;
  52. }
  53. ul.ui.list > li:first-child:after,
  54. ol.ui.list > li:first-child:after,
  55. .ui.list .item:after {
  56. content: '';
  57. display: block;
  58. height: 0;
  59. clear: both;
  60. visibility: hidden;
  61. }
  62. ul.ui.list li:first-child,
  63. ol.ui.list li:first-child,
  64. .ui.list .item:first-child {
  65. padding-top: 0em;
  66. }
  67. ul.ui.list li:last-child,
  68. ol.ui.list li:last-child,
  69. .ui.list .item:last-child {
  70. padding-bottom: 0em;
  71. }
  72. /* Child List */
  73. ul.ui.list ul,
  74. ol.ui.list ol,
  75. .ui.list .list {
  76. clear: both;
  77. margin: 0em;
  78. padding: @childListPadding;
  79. }
  80. /* Icon */
  81. .ui.list .item > .icon {
  82. display: table-cell;
  83. margin: 0em;
  84. padding-top: @iconOffset;
  85. padding-right: @iconDistance;
  86. vertical-align: @iconContentVerticalAlign;
  87. transition: @iconTransition;
  88. }
  89. .ui.list .item > .top.aligned.icon {
  90. vertical-align: top;
  91. }
  92. .ui.list .item > .icon:only-child {
  93. display: inline-block;
  94. vertical-align: @iconVerticalAlign;
  95. }
  96. /* Image */
  97. .ui.list .item > .image {
  98. display: table-cell;
  99. background-color: transparent;
  100. margin: 0em;
  101. padding-right: @imageDistance;
  102. vertical-align: @imageAlign;
  103. }
  104. .ui.list .item > .top.aligned.image {
  105. vertical-align: top;
  106. }
  107. .ui.list .item > .image img {
  108. vertical-align: @imageAlign;
  109. }
  110. .ui.list .item > img.image,
  111. .ui.list .item > .image:only-child {
  112. display: inline-block;
  113. padding-right: 0em;
  114. }
  115. /* Content */
  116. .ui.list .item > .content {
  117. line-height: @contentLineHeight;
  118. }
  119. .ui.list .item > .image + .content,
  120. .ui.list .item > .icon + .content {
  121. display: table-cell;
  122. padding-left: @contentDistance;
  123. vertical-align: @contentVerticalAlign;
  124. }
  125. .ui.list .item > .image + .content,
  126. .ui.list .item > .icon + .content {
  127. display: table-cell;
  128. padding-left: @contentDistance;
  129. vertical-align: @contentVerticalAlign;
  130. }
  131. .ui.list .item > img.image + .content {
  132. display: inline-block;
  133. }
  134. .ui.list .item > .content > .list {
  135. margin-left: 0em;
  136. padding-left: 0em;
  137. }
  138. /* Link */
  139. .ui.list a {
  140. cursor: pointer;
  141. color: @itemLinkColor;
  142. }
  143. .ui.list a:hover {
  144. color: @itemLinkHoverColor;
  145. }
  146. .ui.list a .icon {
  147. color: @itemLinkIconColor;
  148. }
  149. /* Header */
  150. .ui.list .header {
  151. display: block;
  152. margin: 0em;
  153. font-family: @itemHeaderFontFamily;
  154. font-weight: @itemHeaderFontWeight;
  155. color: @itemHeaderColor;
  156. }
  157. .ui.list .description {
  158. display: block;
  159. color: @itemDescriptionColor;
  160. }
  161. /* Floated Content */
  162. .ui.list .item > .left.floated {
  163. float: left;
  164. margin-right: @floatMargin;
  165. }
  166. .ui.list .item > .right.floated {
  167. float: right;
  168. margin-left: @floatMargin;
  169. }
  170. /*******************************
  171. Types
  172. *******************************/
  173. /*-------------------
  174. Horizontal
  175. --------------------*/
  176. .ui.horizontal.list {
  177. display: inline-block;
  178. font-size: 0em;
  179. }
  180. .ui.horizontal.list > .item {
  181. display: inline-block;
  182. margin-left: @horizontalSpacing;
  183. font-size: 1rem;
  184. }
  185. .ui.horizontal.list > .item:first-child {
  186. margin-left: 0em;
  187. }
  188. .ui.horizontal.list .list {
  189. padding-left: 0em;
  190. padding-bottom: 0em;
  191. }
  192. /* Padding on all elements */
  193. .ui.horizontal.list > .item:first-child,
  194. .ui.horizontal.list > .item:last-child {
  195. padding-top: @itemVerticalPadding;
  196. padding-bottom: @itemVerticalPadding;
  197. }
  198. /* Horizontal List */
  199. .ui.horizontal.list .item > .icon {
  200. margin: 0em;
  201. padding: 0em @horizontalIconDistance 0em 0em;
  202. }
  203. .ui.horizontal.list .item > .icon,
  204. .ui.horizontal.list .item > .icon + .content {
  205. float: none;
  206. display: inline-block;
  207. }
  208. /*******************************
  209. States
  210. *******************************/
  211. /*-------------------
  212. Hover
  213. --------------------*/
  214. .ui.list a:hover .icon {
  215. color: @itemLinkIconHoverColor;
  216. }
  217. /*******************************
  218. Variations
  219. *******************************/
  220. /*-------------------
  221. Inverted
  222. --------------------*/
  223. .ui.inverted.list a .icon {
  224. color: @invertedIconLinkColor;
  225. }
  226. .ui.inverted.list .header {
  227. color: @invertedHeaderColor;
  228. }
  229. .ui.inverted.list .description {
  230. color: @invertedDescriptionColor;
  231. }
  232. /*-------------------
  233. Link
  234. --------------------*/
  235. .ui.link.list .item,
  236. .ui.link.list a.item,
  237. .ui.link.list .item a {
  238. color: @linkListItemColor;
  239. }
  240. .ui.link.list a.item:hover,
  241. .ui.link.list .item a:hover {
  242. color:@linkListItemHoverColor;
  243. }
  244. .ui.link.list a.item:active,
  245. .ui.link.list .item a:active {
  246. color:@linkListItemDownColor;
  247. }
  248. .ui.link.list a.active.item,
  249. .ui.link.list .active.item a {
  250. color: @linkListItemActiveColor;
  251. }
  252. /* Inverted */
  253. .ui.inverted.link.list .item,
  254. .ui.inverted.link.list a.item,
  255. .ui.inverted.link.list .item a {
  256. color: @invertedLinkListItemColor;
  257. }
  258. .ui.inverted.link.list a.item:hover,
  259. .ui.inverted.link.list .item a:hover {
  260. color: @invertedLinkListItemHoverColor;
  261. }
  262. .ui.inverted.link.list a.item:active,
  263. .ui.inverted.link.list .item a:active {
  264. color: @invertedLinkListItemDownColor;
  265. }
  266. .ui.inverted.link.list a.active.item,
  267. .ui.inverted.link.list .active.item a {
  268. color: @invertedLinkListItemActiveColor;
  269. }
  270. /*-------------------
  271. Selection
  272. --------------------*/
  273. .ui.selection.list .item {
  274. cursor: pointer;
  275. background: @selectionListBackground;
  276. padding: @selectionListItemVerticalPadding @selectionListItemHorizontalPadding;
  277. color: @selectionListColor;
  278. transition: @selectionListTransition;
  279. }
  280. .ui.selection.list .item:hover {
  281. background: @selectionListHoverBackground;
  282. color: @selectionListHoverColor;
  283. }
  284. .ui.selection.list .item:active {
  285. background: @selectionListDownBackground;
  286. color: @selectionListDownColor;
  287. }
  288. .ui.selection.list .item.active {
  289. background: @selectionListActiveBackground;
  290. color: @selectionListActiveColor;
  291. }
  292. /* Inverted */
  293. .ui.inverted.selection.list .item {
  294. background: @invertedSelectionListBackground;
  295. color: @selectionListColor;
  296. }
  297. .ui.inverted.selection.list .item:hover {
  298. background: @invertedSelectionListHoverBackground;
  299. color: @invertedSelectionListHoverColor;
  300. }
  301. .ui.inverted.selection.list .item:active {
  302. background: @invertedSelectionListDownBackground;
  303. color: @invertedSelectionListDownColor;
  304. }
  305. .ui.inverted.selection.list .item.active {
  306. background: @invertedSelectionListActiveBackground;
  307. color: @invertedSelectionListActiveColor;
  308. }
  309. /*-------------------
  310. Animated
  311. --------------------*/
  312. .ui.animated.list .item {
  313. transition: @animatedListTransition;
  314. }
  315. .ui.animated.list:not(.horizontal) .item:hover {
  316. padding-left: @animatedListIndent;
  317. }
  318. .ui.animated.list:not(.horizontal) .item:hover .item:hover {
  319. padding-left: @animatedListChildIndent;
  320. }
  321. /*-------------------
  322. Fitted
  323. --------------------*/
  324. .ui.fitted.list:not(.selection) .item {
  325. padding-left: 0em;
  326. padding-right: 0em;
  327. }
  328. .ui.fitted.selection.list .item {
  329. margin-left: -@selectionListItemHorizontalPadding;
  330. margin-right: -@selectionListItemHorizontalPadding;
  331. }
  332. /*-------------------
  333. Bulleted
  334. --------------------*/
  335. ul.ui.list,
  336. .ui.bulleted.list {
  337. margin-left: @bulletDistance;
  338. }
  339. ul.ui.list li,
  340. .ui.bulleted.list .item {
  341. position: relative;
  342. }
  343. ul.ui.list li:before,
  344. .ui.bulleted.list .item:before {
  345. position: absolute;
  346. left: @bulletOffset;
  347. content: @bulletCharacter;
  348. opacity: @bulletOpacity;
  349. vertical-align: @bulletVerticalAlign;
  350. }
  351. ul.ui.list ul,
  352. .ui.bulleted.list .list {
  353. padding-left: @bulletChildDistance;
  354. }
  355. /* Horizontal Bulleted */
  356. ul.ui.horizontal.bulleted.list,
  357. .ui.horizontal.bulleted.list {
  358. margin-left: 0em;
  359. }
  360. ul.ui.horizontal.bulleted.list li,
  361. .ui.horizontal.bulleted.list .item {
  362. margin-left: @horizontalBulletSpacing;
  363. }
  364. ul.ui.horizontal.bulleted.list li:before,
  365. .ui.horizontal.bulleted.list .item:before {
  366. left: @horizontalBulletOffset;
  367. }
  368. ul.ui.horizontal.bulleted.list li:first-child,
  369. .ui.horizontal.bulleted.list .item:first-child {
  370. margin-left: 0em;
  371. }
  372. ul.ui.horizontal.bulleted.list li:first-child::before,
  373. .ui.horizontal.bulleted.list .item:first-child::before {
  374. display: none;
  375. }
  376. /*-------------------
  377. Ordered
  378. --------------------*/
  379. ol.ui.list,
  380. .ui.ordered.list,
  381. .ui.ordered.list .list,
  382. ol.ui.list ol {
  383. counter-reset: ordered;
  384. margin-left: @orderedCountDistance;
  385. list-style-type: none;
  386. }
  387. ol.ui.list li,
  388. .ui.ordered.list .item {
  389. list-style-type: none;
  390. position: relative;
  391. }
  392. ol.ui.list li:before,
  393. .ui.ordered.list .item:before {
  394. position: absolute;
  395. left: -(@orderedCountDistance);
  396. counter-increment: @orderedCountName;
  397. content: @orderedCountContent;
  398. text-align: @orderedCountTextAlign;
  399. vertical-align: @orderedCountVerticalAlign;
  400. opacity: @orderedCountOpacity;
  401. }
  402. /* Child Lists */
  403. ol.ui.list ol,
  404. .ui.ordered.list .list {
  405. margin-left: @orderedChildCountDistance;
  406. }
  407. ol.ui.list ol li:before,
  408. .ui.ordered.list .list .item:before {
  409. left: @orderedChildCountOffset;
  410. }
  411. /* Horizontal Ordered */
  412. ol.ui.horizontal.list,
  413. .ui.ordered.horizontal.list {
  414. margin-left: 0em;
  415. }
  416. ol.ui.horizontal.list li:before,
  417. .ui.ordered.horizontal.list .item:before {
  418. position: static;
  419. margin: 0em @horizontalOrderedCountDistance 0em 0em;
  420. }
  421. /*-------------------
  422. Divided
  423. --------------------*/
  424. .ui.divided.list .item {
  425. border-top: @dividedBorder;
  426. }
  427. .ui.divided.list .list .item {
  428. border-top: @dividedChildListBorder;
  429. }
  430. .ui.divided.list .item .menu .item {
  431. border-top: @dividedChildItemBorder;
  432. }
  433. .ui.divided.list .item:first-child {
  434. border-top: none;
  435. }
  436. /* Sub Menu */
  437. .ui.divided.list:not(.horizontal) .list .item:first-child {
  438. border-top-width: @dividedBorderWidth;
  439. }
  440. /* Divided bulleted */
  441. .ui.divided.bulleted.list:not(.horizontal),
  442. .ui.divided.bulleted.list .list {
  443. margin-left: 0em;
  444. padding-left: 0em;
  445. }
  446. .ui.divided.bulleted.list .item:not(.horizontal) {
  447. padding-left: @bulletDistance;
  448. }
  449. .ui.divided.bulleted.list .item:before {
  450. left: 0em;
  451. }
  452. /* Divided Ordered */
  453. .ui.divided.ordered.list {
  454. margin-left: 0em;
  455. }
  456. .ui.divided.ordered.list .item {
  457. padding-left: @orderedCountDistance;
  458. }
  459. .ui.divided.ordered.list .item:before {
  460. left: 0em;
  461. }
  462. .ui.divided.ordered.list .item .list {
  463. margin-left: 0em;
  464. margin-right: 0em;
  465. padding-bottom: @itemVerticalPadding;
  466. }
  467. .ui.divided.ordered.list .item .list .item {
  468. padding-left: @orderedChildCountDistance;
  469. }
  470. /* Divided horizontal */
  471. .ui.divided.horizontal.list {
  472. margin-left: 0em;
  473. }
  474. .ui.divided.horizontal.list > .item {
  475. border-top: none;
  476. border-left: @dividedBorder;
  477. margin: 0em;
  478. padding-left: @horizontalDividedSpacing;
  479. padding-right: @horizontalDividedSpacing;
  480. line-height: @horizontalDividedLineHeight;
  481. }
  482. .ui.horizontal.divided.list > .item:first-child {
  483. border-left: none;
  484. padding-left: 0em;
  485. }
  486. /* Inverted */
  487. .ui.divided.inverted.list > .item,
  488. .ui.divided.inverted.list > .list,
  489. .ui.divided.inverted.horizontal.list .item {
  490. border-color: @dividedInvertedBorderColor;
  491. }
  492. /*-------------------
  493. Celled
  494. --------------------*/
  495. .ui.celled.list > .item,
  496. .ui.celled.list > .list {
  497. border-top: @celledBorder;
  498. padding-left: @celledHorizontalPadding;
  499. padding-right: @celledHorizontalPadding;
  500. }
  501. .ui.celled.list > .item:last-child {
  502. border-bottom: @celledBorder;
  503. }
  504. /* Padding on all elements */
  505. .ui.celled.list > .item:first-child,
  506. .ui.celled.list > .item:last-child {
  507. padding-top: @itemVerticalPadding;
  508. padding-bottom: @itemVerticalPadding;
  509. }
  510. /* Sub Menu */
  511. .ui.celled.list .item .list .item {
  512. border-width: 0px;
  513. }
  514. .ui.celled.list .list .item:first-child {
  515. border-top-width: 0px;
  516. }
  517. /* Celled Bulleted */
  518. .ui.celled.bulleted.list {
  519. margin-left: 0em;
  520. }
  521. .ui.celled.bulleted.list .item {
  522. padding-left: (@bulletDistance);
  523. }
  524. .ui.celled.bulleted.list .item:before {
  525. left: 0em;
  526. }
  527. .ui.celled.bulleted.list .item .list {
  528. margin-left: -(@bulletDistance);
  529. margin-right: -(@bulletDistance);
  530. padding-bottom: @itemVerticalPadding;
  531. }
  532. /* Celled Ordered */
  533. .ui.celled.ordered.list {
  534. margin-left: 0em;
  535. }
  536. .ui.celled.ordered.list .item {
  537. padding-left: @orderedCountDistance;
  538. }
  539. .ui.celled.ordered.list .item:before {
  540. left: 0em;
  541. }
  542. .ui.celled.ordered.list .item .list {
  543. margin-left: 0em;
  544. margin-right: 0em;
  545. padding-bottom: @itemVerticalPadding;
  546. }
  547. .ui.celled.ordered.list .item .list .item {
  548. padding-left: @orderedChildCountDistance;
  549. }
  550. /* Celled Horizontal */
  551. .ui.horizontal.celled.list {
  552. margin-left: 0em;
  553. }
  554. .ui.horizontal.celled.list .item {
  555. border-top: none;
  556. border-left: @celledBorder;
  557. margin: 0em;
  558. padding-left: @horizontalCelledSpacing;
  559. padding-right: @horizontalCelledSpacing;
  560. line-height: @horizontalCelledLineHeight;
  561. }
  562. .ui.horizontal.celled.list .item:last-child {
  563. border-bottom: none;
  564. border-right: @celledBorder;
  565. }
  566. /* Inverted */
  567. .ui.celled.inverted.list > .item,
  568. .ui.celled.inverted.list > .list {
  569. border-color: @celledInvertedBorder;
  570. }
  571. .ui.celled.inverted.horizontal.list .item {
  572. border-color: @celledInvertedBorder;
  573. }
  574. /*-------------------
  575. Relaxed
  576. --------------------*/
  577. .ui.relaxed.list:not(.horizontal) .item {
  578. padding-top: @relaxedVerticalPadding;
  579. padding-bottom: @relaxedVerticalPadding;
  580. }
  581. .ui.relaxed.list .header {
  582. /*margin-bottom: @relaxedHeaderMargin;*/
  583. }
  584. .ui.horizontal.relaxed.list .item {
  585. padding-left: @relaxedHorizontalPadding;
  586. padding-right: @relaxedHorizontalPadding;
  587. }
  588. .ui.very.relaxed.list:not(.horizontal) .item {
  589. padding-top: @veryRelaxedVerticalPadding;
  590. padding-bottom: @veryRelaxedVerticalPadding;
  591. }
  592. .ui.very.relaxed.list .header {
  593. /*margin-bottom: @veryRelaxedHeaderMargin;*/
  594. }
  595. .ui.horizontal.very.relaxed.list .item {
  596. padding-left: @veryRelaxedHorizontalPadding;
  597. padding-right: @veryRelaxedHorizontalPadding;
  598. }
  599. /*-------------------
  600. Sizes
  601. --------------------*/
  602. .ui.mini.list .item {
  603. font-size: @mini;
  604. }
  605. .ui.tiny.list .item {
  606. font-size: @tiny;
  607. }
  608. .ui.small.list .item {
  609. font-size: @small;
  610. }
  611. .ui.list .item {
  612. font-size: @medium;
  613. }
  614. .ui.large.list .item {
  615. font-size: @large;
  616. }
  617. .ui.big.list .item {
  618. font-size: @big;
  619. }
  620. .ui.huge.list .item {
  621. font-size: @huge;
  622. }
  623. .ui.massive.list .item {
  624. font-size: @massive;
  625. }
  626. .loadUIOverrides();