Lungo.layout.aside.less 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. aside a {
  32. display: block;
  33. width: 244px;
  34. height: 40px;
  35. padding: 0 6px;
  36. font-size: 15px;
  37. line-height: 40px;
  38. overflow: hidden;
  39. white-space: nowrap;
  40. text-overflow: ellipsis;
  41. }
  42. aside .icon {
  43. width: 24px;
  44. float: left;
  45. margin: 8px 4px 0 0;
  46. font-size: 24px;
  47. line-height: 24px;
  48. text-align: center;
  49. }
  50. aside .anchor {
  51. font-weight: bold;
  52. padding: 3px 10px 4px;
  53. }
  54. aside .bubble {
  55. float: right;
  56. font-size: 11px;
  57. margin: 12px 4px 0 0;
  58. }
  59. @media handheld, only screen and (min-width: 768px) {
  60. [data-target="aside"] { display: none !important; }
  61. aside { opacity: 1; }
  62. aside ~ article{
  63. width: auto !important;
  64. left: 256px;
  65. right: 0px !important;
  66. }
  67. }
  68. /* @end */