Lungo.layout.aside.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace LUNGO.Layout
  5. * @class Aside
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.less";
  10. @import "mixins.less";
  11. section.aside {
  12. &:not(.mini) { .transform(translate(@aside-width, 0)); }
  13. &.mini { .transform(translate(@aside-width-mini, 0)); }
  14. &.onright {
  15. .transform(translate(-@aside-width, 0));
  16. &.mini { .transform(translate(-@aside-width-mini, 0)); }
  17. }
  18. }
  19. aside {
  20. position: absolute;
  21. width: inherit;
  22. height: inherit;
  23. top: 0px;
  24. visibility: hidden;
  25. z-index: 0;
  26. width: @aside-width;
  27. max-width: @aside-width;
  28. &.onright { right: 0px; }
  29. &.current { visibility: visible;}
  30. & .title {
  31. line-height: 42px;
  32. height: 41px;
  33. font-size: 15px;
  34. font-weight: bold;
  35. }
  36. & .title, & .anchor, & a {
  37. padding: 0 6px;
  38. }
  39. & a {
  40. display: block;
  41. height: 40px;
  42. font-size: 14px;
  43. //font-weight: bold;
  44. line-height: 40px;
  45. overflow: hidden;
  46. white-space: nowrap;
  47. text-overflow: ellipsis;
  48. }
  49. & .bubble {
  50. float: right;
  51. font-size: 11px;
  52. }
  53. & *.not(.anchor) .bubble { margin-top: 13px; }
  54. & *.anchor .bubble { margin-top: 2px; }
  55. & .icon {
  56. width: 24px;
  57. float: left;
  58. margin: 8px 4px 0 0;
  59. font-size: 24px;
  60. line-height: 24px;
  61. text-align: center;
  62. }
  63. & .anchor {
  64. font-weight: bold;
  65. line-height: 19px;
  66. }
  67. &.mini {
  68. width: @aside-width-mini;
  69. & a {
  70. padding: 0 8px;
  71. height: @aside-width-mini;
  72. }
  73. & .icon {
  74. height: 48px;
  75. width: 48px;
  76. font-size: 48px;
  77. line-height: 48px;
  78. //background: red;
  79. }
  80. & .bubble {
  81. margin-top: -48px;
  82. }
  83. }
  84. }
  85. @media handheld, only screen and (min-width: 768px) {
  86. .autohide[data-target="aside"] { display: none !important; }
  87. section.aside {
  88. width: auto !important;
  89. left: @aside-width;
  90. right: 0px !important;
  91. .transform(translate3d(0px, 0, 0));
  92. -webkit-transition: none;
  93. &.mini{ left: @aside-width-mini; }
  94. }
  95. }