lungo.layout.list.styl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class List
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "__init.styl"
  10. .list
  11. & li
  12. list-style-type: none
  13. padding: LIST_PADDING LIST_PADDING_HORIZONTAL (LIST_PADDING - 1) LIST_PADDING_HORIZONTAL
  14. position: relative
  15. &, & a, & small, & .right
  16. font-weight: 300
  17. &.arrow::after
  18. position: absolute
  19. right: LIST_PADDING
  20. top: 45%
  21. width: 6px
  22. height: 6px
  23. content: ''
  24. border-right: 3px solid
  25. border-top: 3px solid
  26. transform( rotate(45deg) )
  27. & a
  28. display: block
  29. text-decoration: none
  30. & img, .icon
  31. float: left
  32. line-height: 1.0em
  33. text-align: center
  34. margin-right: LIST_PADDING_HORIZONTAL
  35. &:not(.thumb)
  36. & img, & .icon
  37. width: S = 34px
  38. height: S
  39. font-size: 2.6em
  40. &.thumb
  41. & img, & .icon
  42. margin-top: -(LIST_PADDING)
  43. margin-left: -(LIST_PADDING_HORIZONTAL)
  44. height: S = 61px
  45. width: S
  46. font-size: 3.6em
  47. line-height: 1.3em
  48. &.anchor
  49. padding: (LIST_PADDING_HORIZONTAL / 2) LIST_PADDING_HORIZONTAL
  50. line-height: 1.0em
  51. & .tag
  52. display: none
  53. & strong
  54. position: relative
  55. font-size: FONT_SIZE_BIG
  56. font-weight: 400
  57. & small
  58. display: block
  59. overflow: hidden
  60. white-space: nowrap
  61. text-overflow: ellipsis
  62. & + .right
  63. margin-left: 0px
  64. margin-top: -12px
  65. & small, &.anchor, & .right:not(.tag)
  66. font-size: FONT_SIZE_SMALL
  67. & .loading .right
  68. font-size: 1.0em
  69. & .right, small
  70. & .icon
  71. height: 13px !important
  72. width: 13px !important
  73. margin-right: 1px !important
  74. font-size: 1.2em !important
  75. line-height: 1.1em
  76. &.indented li:not(:last-child)
  77. margin-bottom: 10px