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