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.

710 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
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/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. Theme
  14. *******************************/
  15. @type : 'view';
  16. @element : 'list';
  17. @import '../../semantic.config';
  18. /*******************************
  19. List
  20. *******************************/
  21. ul.ui.list,
  22. ol.ui.list,
  23. .ui.list {
  24. list-style-type: @listStyleType;
  25. margin: @margin;
  26. padding: @verticalPadding @horizontalPadding;
  27. }
  28. ul.ui.list:first-child,
  29. ol.ui.list:first-child,
  30. .ui.list:first-child {
  31. margin-top: 0em;
  32. padding-top: 0em;
  33. }
  34. ul.ui.list:last-child,
  35. ol.ui.list:last-child,
  36. .ui.list:last-child {
  37. margin-bottom: 0em;
  38. padding-bottom: 0em;
  39. }
  40. /*******************************
  41. Content
  42. *******************************/
  43. /* List Item */
  44. ul.ui.list li,
  45. ol.ui.list li,
  46. .ui.list .item {
  47. display: list-item;
  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: @iconAlign;
  87. transition: @iconTransition;
  88. }
  89. .ui.list .item > .icon:only-child {
  90. display: inline-block;
  91. }
  92. /* Image */
  93. .ui.list .item > .image {
  94. display: table-cell;
  95. background-color: transparent;
  96. margin: 0em;
  97. padding-right: @imageDistance;
  98. vertical-align: @imageAlign;
  99. }
  100. .ui.list .item > .top.aligned.image {
  101. vertical-align: top;
  102. }
  103. .ui.list .item > .image img {
  104. vertical-align: @imageAlign;
  105. }
  106. .ui.list .item > img.image,
  107. .ui.list .item > .image:only-child {
  108. display: inline-block;
  109. padding-right: 0em;
  110. }
  111. /* Content */
  112. .ui.list .item > .image + .content,
  113. .ui.list .item > .icon + .content {
  114. display: table-cell;
  115. padding-left: @contentDistance;
  116. vertical-align: @contentAlign;
  117. }
  118. .ui.list .item > .image + .content,
  119. .ui.list .item > .icon + .content {
  120. display: table-cell;
  121. padding-left: @contentDistance;
  122. vertical-align: @contentAlign;
  123. }
  124. .ui.list .item > img.image + .content {
  125. display: inline-block;
  126. }
  127. .ui.list .item > .content > .list {
  128. margin-left: 0em;
  129. padding-left: 0em;
  130. }
  131. /* Link */
  132. .ui.list a {
  133. cursor: pointer;
  134. color: @itemLinkColor;
  135. }
  136. .ui.list a:hover {
  137. color: @itemLinkHoverColor;
  138. }
  139. .ui.list a .icon {
  140. color: @itemLinkIconColor;
  141. }
  142. /* Header */
  143. .ui.list .header {
  144. display: block;
  145. margin: 0em;
  146. font-family: @itemHeaderFontFamily;
  147. font-weight: @itemHeaderFontWeight;
  148. color: @itemHeaderColor;
  149. }
  150. .ui.list .description {
  151. display: block;
  152. color: @itemDescriptionColor;
  153. }
  154. /* Floated Content */
  155. .ui.list .item > .left.floated {
  156. float: left;
  157. margin-right: @floatMargin;
  158. }
  159. .ui.list .item > .right.floated {
  160. float: right;
  161. margin-left: @floatMargin;
  162. }
  163. /*******************************
  164. Types
  165. *******************************/
  166. /*-------------------
  167. Horizontal
  168. --------------------*/
  169. .ui.horizontal.list {
  170. display: inline-block;
  171. font-size: 0em;
  172. }
  173. .ui.horizontal.list > .item {
  174. display: inline-block;
  175. margin-left: @horizontalSpacing;
  176. font-size: 1rem;
  177. }
  178. .ui.horizontal.list > .item:first-child {
  179. margin-left: 0em;
  180. }
  181. .ui.horizontal.list .list {
  182. padding-left: 0em;
  183. padding-bottom: 0em;
  184. }
  185. /* Padding on all elements */
  186. .ui.horizontal.list > .item:first-child,
  187. .ui.horizontal.list > .item:last-child {
  188. padding-top: @itemVerticalPadding;
  189. padding-bottom: @itemVerticalPadding;
  190. }
  191. /* Horizontal List */
  192. .ui.horizontal.list .item > .icon {
  193. margin: 0em;
  194. padding: 0em @horizontalIconDistance 0em 0em;
  195. }
  196. .ui.horizontal.list .item > .icon,
  197. .ui.horizontal.list .item > .icon + .content {
  198. float: none;
  199. display: inline-block;
  200. }
  201. /*******************************
  202. States
  203. *******************************/
  204. /*-------------------
  205. Hover
  206. --------------------*/
  207. .ui.list a:hover .icon {
  208. color: @itemLinkIconHoverColor;
  209. }
  210. /*******************************
  211. Variations
  212. *******************************/
  213. /*-------------------
  214. Inverted
  215. --------------------*/
  216. .ui.inverted.list a .icon {
  217. color: @invertedIconLinkColor;
  218. }
  219. .ui.inverted.list .header {
  220. color: @invertedHeaderColor;
  221. }
  222. .ui.inverted.list .description {
  223. color: @invertedDescriptionColor;
  224. }
  225. /*-------------------
  226. Link
  227. --------------------*/
  228. .ui.link.list .item,
  229. .ui.link.list a.item,
  230. .ui.link.list .item a {
  231. color: @linkListItemColor;
  232. }
  233. .ui.link.list a.item:hover,
  234. .ui.link.list .item a:hover {
  235. color:@linkListItemHoverColor;
  236. }
  237. .ui.link.list a.item:active,
  238. .ui.link.list .item a:active {
  239. color:@linkListItemDownColor;
  240. }
  241. .ui.link.list a.active.item,
  242. .ui.link.list .active.item a {
  243. color: @linkListItemActiveColor;
  244. }
  245. /* Inverted */
  246. .ui.inverted.link.list .item,
  247. .ui.inverted.link.list a.item,
  248. .ui.inverted.link.list .item a {
  249. color: @invertedLinkListItemColor;
  250. }
  251. .ui.inverted.link.list a.item:hover,
  252. .ui.inverted.link.list .item a:hover {
  253. color: @invertedLinkListItemHoverColor;
  254. }
  255. .ui.inverted.link.list a.item:active,
  256. .ui.inverted.link.list .item a:active {
  257. color: @invertedLinkListItemDownColor;
  258. }
  259. .ui.inverted.link.list a.active.item,
  260. .ui.inverted.link.list .active.item a {
  261. color: @invertedLinkListItemActiveColor;
  262. }
  263. /*-------------------
  264. Selection
  265. --------------------*/
  266. .ui.selection.list .item {
  267. cursor: pointer;
  268. background: @selectionListBackground;
  269. padding: @selectionListItemVerticalPadding @selectionListItemHorizontalPadding;
  270. color: @selectionListColor;
  271. transition: @selectionListTransition;
  272. }
  273. .ui.selection.list .item:hover {
  274. background: @selectionListHoverBackground;
  275. color: @selectionListHoverColor;
  276. }
  277. .ui.selection.list .item:active {
  278. background: @selectionListDownBackground;
  279. color: @selectionListDownColor;
  280. }
  281. .ui.selection.list .item.active {
  282. background: @selectionListActiveBackground;
  283. color: @selectionListActiveColor;
  284. }
  285. /* Inverted */
  286. .ui.inverted.selection.list .item {
  287. background: @invertedSelectionListBackground;
  288. color: @selectionListColor;
  289. }
  290. .ui.inverted.selection.list .item:hover {
  291. background: @invertedSelectionListHoverBackground;
  292. color: @invertedSelectionListHoverColor;
  293. }
  294. .ui.inverted.selection.list .item:active {
  295. background: @invertedSelectionListDownBackground;
  296. color: @invertedSelectionListDownColor;
  297. }
  298. .ui.inverted.selection.list .item.active {
  299. background: @invertedSelectionListActiveBackground;
  300. color: @invertedSelectionListActiveColor;
  301. }
  302. /*-------------------
  303. Animated
  304. --------------------*/
  305. .ui.animated.list .item {
  306. transition: @animatedListTransition;
  307. }
  308. .ui.animated.list:not(.horizontal) .item:hover {
  309. padding-left: @animatedListIndent;
  310. }
  311. .ui.animated.list:not(.horizontal) .item:hover .item:hover {
  312. padding-left: @animatedListChildIndent;
  313. }
  314. /*-------------------
  315. Fitted
  316. --------------------*/
  317. .ui.fitted.list:not(.selection) .item {
  318. padding-left: 0em;
  319. padding-right: 0em;
  320. }
  321. .ui.fitted.selection.list .item {
  322. margin-left: -@selectionListItemHorizontalPadding;
  323. margin-right: -@selectionListItemHorizontalPadding;
  324. }
  325. /*-------------------
  326. Bulleted
  327. --------------------*/
  328. ul.ui.list,
  329. .ui.bulleted.list {
  330. margin-left: @bulletDistance;
  331. }
  332. ul.ui.list li,
  333. .ui.bulleted.list .item {
  334. position: relative;
  335. }
  336. ul.ui.list li:before,
  337. .ui.bulleted.list .item:before {
  338. position: absolute;
  339. left: @bulletOffset;
  340. content: @bulletCharacter;
  341. opacity: @bulletOpacity;
  342. vertical-align: @bulletVerticalAlign;
  343. }
  344. ul.ui.list ul,
  345. .ui.bulleted.list .list {
  346. padding-left: @bulletChildDistance;
  347. }
  348. /* Horizontal Bulleted */
  349. ul.ui.horizontal.bulleted.list,
  350. .ui.horizontal.bulleted.list {
  351. margin-left: 0em;
  352. }
  353. ul.ui.horizontal.bulleted.list li,
  354. .ui.horizontal.bulleted.list .item {
  355. margin-left: @horizontalBulletSpacing;
  356. }
  357. ul.ui.horizontal.bulleted.list li:before,
  358. .ui.horizontal.bulleted.list .item:before {
  359. left: @horizontalBulletOffset;
  360. }
  361. ul.ui.horizontal.bulleted.list li:first-child,
  362. .ui.horizontal.bulleted.list .item:first-child {
  363. margin-left: 0em;
  364. }
  365. ul.ui.horizontal.bulleted.list li:first-child::before,
  366. .ui.horizontal.bulleted.list .item:first-child::before {
  367. display: none;
  368. }
  369. /*-------------------
  370. Ordered
  371. --------------------*/
  372. ol.ui.list,
  373. .ui.ordered.list,
  374. .ui.ordered.list .list,
  375. ol.ui.list ol {
  376. counter-reset: ordered;
  377. margin-left: @orderedCountDistance;
  378. list-style-type: none;
  379. }
  380. ol.ui.list li,
  381. .ui.ordered.list .item {
  382. list-style-type: none;
  383. position: relative;
  384. }
  385. ol.ui.list li:before,
  386. .ui.ordered.list .item:before {
  387. position: absolute;
  388. left: -(@orderedCountDistance);
  389. counter-increment: @orderedCountName;
  390. content: @orderedCountContent;
  391. text-align: @orderedCountTextAlign;
  392. vertical-align: @orderedCountVerticalAlign;
  393. opacity: @orderedCountOpacity;
  394. }
  395. /* Child Lists */
  396. ol.ui.list ol,
  397. .ui.ordered.list .list {
  398. margin-left: @orderedChildCountDistance;
  399. }
  400. ol.ui.list ol li:before,
  401. .ui.ordered.list .list .item:before {
  402. left: @orderedChildCountOffset;
  403. }
  404. /* Horizontal Ordered */
  405. ol.ui.horizontal.list,
  406. .ui.ordered.horizontal.list {
  407. margin-left: 0em;
  408. }
  409. ol.ui.horizontal.list li:before,
  410. .ui.ordered.horizontal.list .item:before {
  411. position: static;
  412. margin: 0em @horizontalOrderedCountDistance 0em 0em;
  413. }
  414. /*-------------------
  415. Divided
  416. --------------------*/
  417. .ui.divided.list .item {
  418. border-top: @dividedBorder;
  419. }
  420. .ui.divided.list .list .item {
  421. border-top: @dividedChildListBorder;
  422. }
  423. .ui.divided.list .item .menu .item {
  424. border-top: @dividedChildItemBorder;
  425. }
  426. .ui.divided.list .item:first-child {
  427. border-top: none;
  428. }
  429. /* Sub Menu */
  430. .ui.divided.list:not(.horizontal) .list .item:first-child {
  431. border-top-width: @dividedBorderWidth;
  432. }
  433. /* Divided bulleted */
  434. .ui.divided.bulleted.list:not(.horizontal),
  435. .ui.divided.bulleted.list .list {
  436. margin-left: 0em;
  437. padding-left: 0em;
  438. }
  439. .ui.divided.bulleted.list .item:not(.horizontal) {
  440. padding-left: @bulletDistance;
  441. }
  442. .ui.divided.bulleted.list .item:before {
  443. left: 0em;
  444. }
  445. /* Divided Ordered */
  446. .ui.divided.ordered.list {
  447. margin-left: 0em;
  448. }
  449. .ui.divided.ordered.list .item {
  450. padding-left: @orderedCountDistance;
  451. padding-right: @orderedCountDistance;
  452. }
  453. .ui.divided.ordered.list .item:before {
  454. left: 0em;
  455. }
  456. .ui.divided.ordered.list .item .list {
  457. margin-left: -(@orderedChildCountDistance);
  458. margin-right: -(@orderedChildCountDistance);
  459. padding-bottom: @itemVerticalPadding;
  460. }
  461. .ui.divided.ordered.list .item .list .item {
  462. padding-left: @orderedChildCountDistance;
  463. padding-right: @orderedChildCountDistance;
  464. }
  465. /* Divided horizontal */
  466. .ui.divided.horizontal.list {
  467. margin-left: 0em;
  468. }
  469. .ui.divided.horizontal.list > .item {
  470. border-top: none;
  471. border-left: @dividedBorder;
  472. margin: 0em;
  473. padding-left: @horizontalDividedSpacing;
  474. padding-right: @horizontalDividedSpacing;
  475. line-height: @horizontalDividedLineHeight;
  476. }
  477. .ui.horizontal.divided.list > .item:first-child {
  478. border-left: none;
  479. padding-left: 0em;
  480. }
  481. /* Inverted */
  482. .ui.divided.inverted.list > .item,
  483. .ui.divided.inverted.list > .list {
  484. border-color: @dividedInvertedBorder;
  485. }
  486. .ui.divided.inverted.horizontal.list .item {
  487. border-color: @dividedInvertedBorder;
  488. }
  489. /*-------------------
  490. Celled
  491. --------------------*/
  492. .ui.celled.list > .item,
  493. .ui.celled.list > .list {
  494. border-top: @celledBorder;
  495. padding-left: @celledHorizontalPadding;
  496. padding-right: @celledHorizontalPadding;
  497. }
  498. .ui.celled.list > .item:last-child {
  499. border-bottom: @celledBorder;
  500. }
  501. /* Padding on all elements */
  502. .ui.celled.list > .item:first-child,
  503. .ui.celled.list > .item:last-child {
  504. padding-top: @itemVerticalPadding;
  505. padding-bottom: @itemVerticalPadding;
  506. }
  507. /* Sub Menu */
  508. .ui.celled.list .item .list .item {
  509. border-width: 0px;
  510. }
  511. .ui.celled.list .list .item:first-child {
  512. border-top-width: 0px;
  513. }
  514. /* Celled Bulleted */
  515. .ui.celled.bulleted.list {
  516. margin-left: 0em;
  517. }
  518. .ui.celled.bulleted.list .item {
  519. padding-left: (@bulletDistance);
  520. padding-right: (@bulletDistance);
  521. }
  522. .ui.celled.bulleted.list .item:before {
  523. left: 0em;
  524. }
  525. .ui.celled.bulleted.list .item .list {
  526. margin-left: -(@bulletDistance);
  527. margin-right: -(@bulletDistance);
  528. padding-bottom: @itemVerticalPadding;
  529. }
  530. /* Celled Ordered */
  531. .ui.celled.ordered.list {
  532. margin-left: 0em;
  533. }
  534. .ui.celled.ordered.list .item {
  535. padding-left: @orderedCountDistance;
  536. padding-right: @orderedCountDistance;
  537. }
  538. .ui.celled.ordered.list .item:before {
  539. left: 0em;
  540. }
  541. .ui.celled.ordered.list .item .list {
  542. margin-left: -(@orderedChildCountDistance);
  543. margin-right: -(@orderedChildCountDistance);
  544. padding-bottom: @itemVerticalPadding;
  545. }
  546. .ui.celled.ordered.list .item .list .item {
  547. padding-left: @orderedChildCountDistance;
  548. padding-right: @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();