_base.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. padding: 5px 0;
  19. &.light {
  20. background-color: white;
  21. border-bottom: 1px solid #DDDDDD;
  22. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  23. }
  24. .column .menu {
  25. margin-top: 0;
  26. }
  27. .brand {
  28. float: left;
  29. margin-top: 5px;
  30. margin-right: 5px;
  31. }
  32. .head.link.item {
  33. padding-right: 0!important;
  34. .dropdown.icon,
  35. .menu .octicon {
  36. margin-right: 5px;
  37. }
  38. }
  39. .user.avatar {
  40. padding: 0;
  41. }
  42. .searchbox {
  43. background-color: rgb(244, 244, 244)!important;
  44. &:focus {
  45. background-color: rgb(233, 233, 233)!important;
  46. }
  47. }
  48. .octicon {
  49. width: 16px;
  50. text-align: center;
  51. }
  52. }
  53. .ui {
  54. &.left {
  55. float: left;
  56. }
  57. &.right {
  58. float: right;
  59. }
  60. .text {
  61. &.red {
  62. color: #d95c5c!important;
  63. }
  64. }
  65. .message {
  66. text-align: center;
  67. }
  68. }
  69. footer {
  70. margin-top: @footer-margin!important;
  71. height: @footer-margin;
  72. background-color: white;
  73. border-top: 1px solid #d6d6d6;
  74. clear: both;
  75. width: 100%;
  76. color: #888888;
  77. .container {
  78. padding-top: 10px;
  79. .fa {
  80. width: 16px;
  81. text-align: center;
  82. color: #428bca;
  83. }
  84. .ui.language.dropdown {
  85. z-index: 10000;
  86. }
  87. .links >* {
  88. border-left: 1px solid #d6d6d6;
  89. padding-left: 8px;
  90. margin-left: 5px;
  91. &:first-child {
  92. border-left: none;
  93. }
  94. }
  95. }
  96. }
  97. .hide {
  98. display: none;
  99. }
  100. .center {
  101. text-align: center;
  102. }
  103. .generate-img(16);
  104. .generate-img(@n, @i: 1) when (@i =< @n) {
  105. .img-@{i} {
  106. width: (2px * @i)!important;
  107. height: (2px * @i)!important;
  108. }
  109. .generate-img(@n, (@i + 1));
  110. }
  111. // Accessibility
  112. .sr-only {
  113. position: absolute;
  114. width: 1px;
  115. height: 1px;
  116. padding: 0;
  117. margin: -1px;
  118. overflow: hidden;
  119. clip: rect(0, 0, 0, 0);
  120. border: 0;
  121. }
  122. .sr-only-focusable:active,
  123. .sr-only-focusable:focus {
  124. position: static;
  125. width: auto;
  126. height: auto;
  127. margin: 0;
  128. overflow: visible;
  129. clip: auto;
  130. }