_base.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. &.blue {
  76. color: #428bca!important;
  77. }
  78. &.grey {
  79. color: #767676!important;
  80. a {
  81. color: #444!important;
  82. &:hover {
  83. color: #000!important;
  84. }
  85. }
  86. }
  87. &.right {
  88. text-align: right;
  89. }
  90. &.small {
  91. font-size: 0.75em;
  92. }
  93. }
  94. .message {
  95. text-align: center;
  96. }
  97. .header > i + .content {
  98. padding-left: 0.75rem;
  99. vertical-align: middle;
  100. }
  101. .avatar.image {
  102. border-radius: 3px;
  103. }
  104. .form {
  105. .fake {
  106. display: none!important;
  107. }
  108. }
  109. }
  110. footer {
  111. margin-top: @footer-margin+14px!important;
  112. height: @footer-margin;
  113. background-color: white;
  114. border-top: 1px solid #d6d6d6;
  115. clear: both;
  116. width: 100%;
  117. color: #888888;
  118. .container {
  119. padding-top: 10px;
  120. .fa {
  121. width: 16px;
  122. text-align: center;
  123. color: #428bca;
  124. }
  125. .ui.language.dropdown {
  126. z-index: 10000;
  127. }
  128. .links >* {
  129. border-left: 1px solid #d6d6d6;
  130. padding-left: 8px;
  131. margin-left: 5px;
  132. &:first-child {
  133. border-left: none;
  134. }
  135. }
  136. }
  137. }
  138. .hide {
  139. display: none;
  140. }
  141. .center {
  142. text-align: center;
  143. }
  144. .generate-img(16);
  145. .generate-img(@n, @i: 1) when (@i =< @n) {
  146. .img-@{i} {
  147. width: (2px * @i)!important;
  148. height: (2px * @i)!important;
  149. }
  150. .generate-img(@n, (@i + 1));
  151. }
  152. .octicon.icon,
  153. .mega-octicon.icon {
  154. font-family: octicons;
  155. }
  156. // Accessibility
  157. .sr-only {
  158. position: absolute;
  159. width: 1px;
  160. height: 1px;
  161. padding: 0;
  162. margin: -1px;
  163. overflow: hidden;
  164. clip: rect(0, 0, 0, 0);
  165. border: 0;
  166. }
  167. .sr-only-focusable:active,
  168. .sr-only-focusable:focus {
  169. position: static;
  170. width: auto;
  171. height: auto;
  172. margin: 0;
  173. overflow: visible;
  174. clip: auto;
  175. }