Lungo.layout.aside.less 2.0 KB

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