_base.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. .head.link.item {
  41. padding-right: 0!important;
  42. .dropdown.icon,
  43. .menu .octicon {
  44. margin-right: 5px;
  45. }
  46. }
  47. .avatar > .ui.image {
  48. margin-right: 0;
  49. }
  50. .searchbox {
  51. background-color: rgb(244, 244, 244)!important;
  52. &:focus {
  53. background-color: rgb(233, 233, 233)!important;
  54. }
  55. }
  56. .octicon {
  57. width: 16px;
  58. text-align: center;
  59. }
  60. }
  61. .ui {
  62. &.left {
  63. float: left;
  64. }
  65. &.right {
  66. float: right;
  67. }
  68. .text {
  69. &.red {
  70. color: #d95c5c!important;
  71. }
  72. &.right {
  73. text-align: right;
  74. }
  75. }
  76. .message {
  77. text-align: center;
  78. }
  79. }
  80. footer {
  81. margin-top: @footer-margin!important;
  82. height: @footer-margin;
  83. background-color: white;
  84. border-top: 1px solid #d6d6d6;
  85. clear: both;
  86. width: 100%;
  87. color: #888888;
  88. .container {
  89. padding-top: 10px;
  90. .fa {
  91. width: 16px;
  92. text-align: center;
  93. color: #428bca;
  94. }
  95. .ui.language.dropdown {
  96. z-index: 10000;
  97. }
  98. .links >* {
  99. border-left: 1px solid #d6d6d6;
  100. padding-left: 8px;
  101. margin-left: 5px;
  102. &:first-child {
  103. border-left: none;
  104. }
  105. }
  106. }
  107. }
  108. .hide {
  109. display: none;
  110. }
  111. .center {
  112. text-align: center;
  113. }
  114. .generate-img(16);
  115. .generate-img(@n, @i: 1) when (@i =< @n) {
  116. .img-@{i} {
  117. width: (2px * @i)!important;
  118. height: (2px * @i)!important;
  119. }
  120. .generate-img(@n, (@i + 1));
  121. }
  122. .octicon.icon {
  123. font-family: octicons;
  124. }
  125. // Accessibility
  126. .sr-only {
  127. position: absolute;
  128. width: 1px;
  129. height: 1px;
  130. padding: 0;
  131. margin: -1px;
  132. overflow: hidden;
  133. clip: rect(0, 0, 0, 0);
  134. border: 0;
  135. }
  136. .sr-only-focusable:active,
  137. .sr-only-focusable:focus {
  138. position: static;
  139. width: auto;
  140. height: auto;
  141. margin: 0;
  142. overflow: visible;
  143. clip: auto;
  144. }