toolbar.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. .toolbar {
  2. height: 40px;
  3. border-bottom: 1px solid @toolbar-border-color;
  4. a {
  5. position: relative;
  6. .label {
  7. position: absolute;
  8. top: 0;
  9. right: 0;
  10. padding: .15em .6em .2em;
  11. font-size: 60%;
  12. }
  13. }
  14. a:not(.btn) {
  15. display: inline-block;
  16. color: @gray-light;
  17. padding: 4px 10px 5px;
  18. margin: 1px 2px;
  19. border-radius: @border-radius-small;
  20. &:hover {
  21. text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  22. color: @gray-dark;
  23. text-decoration: none;
  24. }
  25. &.active, &:active {
  26. .label {
  27. display: none;
  28. }
  29. color: white;
  30. background-color: @link-color;
  31. .box-shadow(inset 0 3px 5px rgba(0, 0, 0, 0.225));
  32. &:hover {
  33. color: white;
  34. }
  35. }
  36. }
  37. .btn-full-height {
  38. border: none;
  39. border-radius: 0;
  40. border-right: 1px solid @toolbar-border-color;
  41. color: @link-color;
  42. padding: 3px 10px 5px;
  43. font-size: 20px;
  44. &:hover {
  45. text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  46. background-color: darken(white, 10%);
  47. color: @link-hover-color;
  48. }
  49. &.active, &:active {
  50. color: white;
  51. background-color: @link-color;
  52. .box-shadow(inset 0 3px 5px rgba(0, 0, 0, 0.225));
  53. }
  54. .label {
  55. top: 4px;
  56. right: 4px;
  57. }
  58. }
  59. .toolbar-right {
  60. float: right;
  61. .btn-full-height {
  62. border-right: 0;
  63. border-left: 1px solid @toolbar-border-color;
  64. }
  65. }
  66. .toolbar-center {
  67. width: 300px;
  68. position: absolute;
  69. top: 0;
  70. left: 50%;
  71. margin-left: -150px;
  72. text-align: center;
  73. text-overflow: ellipsis;
  74. overflow: hidden;
  75. }
  76. &.toolbar-header {
  77. box-shadow: 0 0 2px #ccc;
  78. position: absolute;
  79. top: 0;
  80. left: 0;
  81. right: 0;
  82. z-index: 1;
  83. }
  84. &.toolbar-small {
  85. height: 32px;
  86. a {
  87. padding: 4px 2px 2px;
  88. margin: 0;
  89. margin-left: 6px;
  90. }
  91. .toolbar-right {
  92. a {
  93. margin-left: 0;
  94. margin-right: 6px;
  95. }
  96. }
  97. }
  98. &.toolbar-tall {
  99. height: 58px;
  100. padding-top: 10px;
  101. a.btn {
  102. margin: 0 (@line-height-computed / 2);
  103. }
  104. a {
  105. padding: 4px 10px 5px;
  106. }
  107. }
  108. &.toolbar-alt {
  109. background-color: #fafafa;
  110. }
  111. }
  112. .editor-dark {
  113. .toolbar-alt {
  114. background-color: darken(@editor-dark-background-color, 0%);
  115. }
  116. .toolbar {
  117. border-color: @editor-dark-toolbar-border-color;
  118. .btn-full-height {
  119. border-color: @editor-dark-toolbar-border-color;
  120. &:hover {
  121. background-color: black;
  122. color: lighten(@link-color, 10%);
  123. }
  124. }
  125. &.toolbar-header {
  126. box-shadow: none;
  127. }
  128. a:not(.btn) {
  129. color: @gray;
  130. &:hover {
  131. color: @gray-light;
  132. }
  133. }
  134. }
  135. }