_base.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @footer-margin: 40px;
  2. body {
  3. font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif,'微软雅黑';
  4. background-color: #FAFAFA;
  5. }
  6. img {
  7. border-radius: 3px;
  8. }
  9. .full.height {
  10. padding: 0;
  11. margin: 0 0 -@footer-margin*2 0;
  12. min-height: 100%;
  13. }
  14. .following.bar {
  15. z-index: 900;
  16. left: 0;
  17. width: 100%;
  18. &.light {
  19. background-color: white;
  20. border-bottom: 1px solid #DDDDDD;
  21. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  22. }
  23. .column .menu {
  24. margin-top: 0;
  25. }
  26. .top.menu a.item.brand {
  27. padding-left: 0;
  28. }
  29. .brand .ui.mini.image {
  30. width: 30px;
  31. }
  32. .top.menu a.item:hover,
  33. .top.menu .dropdown.item:hover,
  34. .top.menu .dropdown.item.active {
  35. background-color: transparent;
  36. }
  37. .top.menu a.item:hover {
  38. color: rgba(0,0,0,.45);
  39. }
  40. .top.menu .menu {
  41. z-index: 900;
  42. }
  43. .head.link.item {
  44. padding-right: 0!important;
  45. .dropdown.icon,
  46. .menu .octicon {
  47. margin-right: 5px;
  48. }
  49. }
  50. .avatar > .ui.image {
  51. margin-right: 0;
  52. }
  53. .searchbox {
  54. background-color: rgb(244, 244, 244)!important;
  55. &:focus {
  56. background-color: rgb(233, 233, 233)!important;
  57. }
  58. }
  59. .octicon {
  60. width: 16px;
  61. text-align: center;
  62. }
  63. }
  64. .ui {
  65. &.left {
  66. float: left;
  67. }
  68. &.right {
  69. float: right;
  70. }
  71. .text {
  72. &.red {
  73. color: #d95c5c!important;
  74. }
  75. &.grey {
  76. color: #767676!important;
  77. a {
  78. color: #444!important;
  79. &:hover {
  80. color: #000!important;
  81. }
  82. }
  83. }
  84. &.right {
  85. text-align: right;
  86. }
  87. &.small {
  88. font-size: 0.75em;
  89. }
  90. }
  91. .message {
  92. text-align: center;
  93. }
  94. .header > i + .content {
  95. padding-left: 0.75rem;
  96. vertical-align: middle;
  97. }
  98. .avatar.image {
  99. border-radius: 3px;
  100. }
  101. }
  102. footer {
  103. margin-top: @footer-margin!important;
  104. height: @footer-margin;
  105. background-color: white;
  106. border-top: 1px solid #d6d6d6;
  107. clear: both;
  108. width: 100%;
  109. color: #888888;
  110. .container {
  111. padding-top: 10px;
  112. .fa {
  113. width: 16px;
  114. text-align: center;
  115. color: #428bca;
  116. }
  117. .ui.language.dropdown {
  118. z-index: 10000;
  119. }
  120. .links >* {
  121. border-left: 1px solid #d6d6d6;
  122. padding-left: 8px;
  123. margin-left: 5px;
  124. &:first-child {
  125. border-left: none;
  126. }
  127. }
  128. }
  129. }
  130. .hide {
  131. display: none;
  132. }
  133. .center {
  134. text-align: center;
  135. }
  136. .generate-img(16);
  137. .generate-img(@n, @i: 1) when (@i =< @n) {
  138. .img-@{i} {
  139. width: (2px * @i)!important;
  140. height: (2px * @i)!important;
  141. }
  142. .generate-img(@n, (@i + 1));
  143. }
  144. .octicon.icon,
  145. .mega-octicon.icon {
  146. font-family: octicons;
  147. }
  148. // Accessibility
  149. .sr-only {
  150. position: absolute;
  151. width: 1px;
  152. height: 1px;
  153. padding: 0;
  154. margin: -1px;
  155. overflow: hidden;
  156. clip: rect(0, 0, 0, 0);
  157. border: 0;
  158. }
  159. .sr-only-focusable:active,
  160. .sr-only-focusable:focus {
  161. position: static;
  162. width: auto;
  163. height: auto;
  164. margin: 0;
  165. overflow: visible;
  166. clip: auto;
  167. }