Lungo.layout.nav.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Nav
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.less";
  10. nav {
  11. &.groupbar, footer & {
  12. .display-box();
  13. .box-pack(justify);
  14. & > a {
  15. .box-flex(1);
  16. }
  17. }
  18. & abbr {
  19. font-weight: bold;
  20. }
  21. }
  22. header nav {
  23. & a {
  24. padding: 0 6px;
  25. min-width: 30px;
  26. z-index: 1000;
  27. float: left;
  28. height: @header-footer-height;
  29. text-align: center;
  30. & .icon { font-size: 1.7em; }
  31. & img {
  32. width: 16px;
  33. height: 16px;
  34. top: -1px !important; }
  35. & .bubble {
  36. position: relative;
  37. top: -12px;
  38. left: -12px;
  39. margin-right: -20px;
  40. }
  41. }
  42. &.button a {
  43. margin: 5px 5px 5px 0;
  44. height: 32px;
  45. line-height: 32px;
  46. & .icon { line-height: 33px; }
  47. &:first-child { margin: 5px; }
  48. }
  49. & .icon ~ abbr {
  50. margin-left: 4px;
  51. float: right; }
  52. & .loading {
  53. margin-top: .5em;
  54. font-size: 1.6em;
  55. & + .icon { display: none; }
  56. }
  57. }
  58. nav.groupbar {
  59. position: absolute;
  60. top: @header-footer-height;
  61. height: @header_groupbar_height;
  62. width: 100%;
  63. z-index: 2;
  64. line-height: @header_groupbar_height;
  65. & > a {
  66. padding: 0px;
  67. margin: 0px;
  68. height: @header_groupbar_height !important;
  69. display: block;
  70. text-align: center;
  71. & .icon {
  72. font-size: 1.0em;
  73. margin-right: 2px;
  74. }
  75. & .bubble {
  76. position: relative;
  77. top: -1px;
  78. left: 2px;
  79. }
  80. }
  81. }
  82. footer nav {
  83. & a {
  84. text-align: center;
  85. display: block;
  86. padding: 0;
  87. height: @header-footer-height;
  88. }
  89. & .icon {
  90. font-size: 2.0em !important;
  91. line-height: @header-footer-height;
  92. width: 32px;
  93. display: inline-block;
  94. }
  95. & .bubble {
  96. top: -42px;
  97. left: 4px;
  98. & .loading {
  99. top: 0;
  100. font-size: 1.4em; }
  101. }
  102. abbr { display: none; }
  103. & .bubble {
  104. position: relative;
  105. top: -12px;
  106. left: -12px;
  107. margin-right: -20px;
  108. }
  109. &.with-labels {
  110. & .icon { line-height: 36px; }
  111. & abbr {
  112. display: block !important;
  113. margin-top: -8px;
  114. z-index: 1;
  115. font-size: 11px;
  116. line-height: 14px;
  117. overflow: hidden;
  118. white-space: nowrap;
  119. text-overflow: ellipsis; }
  120. }
  121. }