Lungo.layout.nav.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. @import "mixins.less";
  11. nav {
  12. height: auto;
  13. text-align: center;
  14. & a {
  15. padding: 0 6px;
  16. min-width: 28px;
  17. z-index: 1000;
  18. float: left;
  19. height: @header_nav_height;
  20. & .icon {
  21. font-size: 1.7em;
  22. }
  23. & img {
  24. width: 16px;
  25. height: 16px;
  26. top: -1px !important;
  27. }
  28. & abbr {
  29. font-weight: bold;
  30. }
  31. }
  32. & .bubble {
  33. position: relative;
  34. top: -12px;
  35. left: -12px;
  36. margin-right: -20px;
  37. }
  38. &.groupbar {
  39. position: absolute;
  40. top: @header-height;
  41. height: @header_groupbar_height;
  42. display: block;
  43. width: 100%;
  44. z-index: 2;
  45. line-height: @header_groupbar_height;
  46. & a {
  47. padding: 0px;
  48. margin: 0px;
  49. font-weight: bold;
  50. height: @header_groupbar_height;
  51. & .icon {
  52. font-size: 1.0em;
  53. }
  54. & .bubble {
  55. top: -6px;
  56. left: 0px;
  57. }
  58. }
  59. }
  60. }
  61. header, footer {
  62. &:not(.toolbar) nav {
  63. & .icon ~ abbr { margin-left: 4px; float: right; }
  64. & .loading {
  65. margin-top: .5em;
  66. font-size: 1.6em;
  67. }
  68. }
  69. }
  70. .toolbar {
  71. height: 40px;
  72. & nav {
  73. margin: 2px;
  74. display: block;
  75. }
  76. & a {
  77. padding: 0;
  78. height: 36px;
  79. }
  80. &.with-labels {
  81. height: @with-labels-height;
  82. & a { height: 47px; }
  83. & .icon { padding-bottom: 12px; }
  84. }
  85. & .icon {
  86. display: block;
  87. top: 0px;
  88. font-size: 2.1em;
  89. line-height: 34px;
  90. }
  91. & .bubble {
  92. top: -56px;
  93. left: 4px;
  94. & .loading {
  95. top: 0;
  96. font-size: 1.4em;
  97. }
  98. }
  99. & abbr {
  100. position: absolute;
  101. top: 34px;
  102. width: inherit;
  103. height: 14px;
  104. margin-left: 0px;
  105. display: block !important;
  106. font-size: 11px;
  107. line-height: 14px;
  108. overflow: hidden;
  109. white-space: nowrap;
  110. text-overflow: ellipsis;
  111. }
  112. & .loading {
  113. top: .1em;
  114. font-size: 2.3em;
  115. }
  116. }