_base.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. &.right {
  65. text-align: right;
  66. }
  67. }
  68. .message {
  69. text-align: center;
  70. }
  71. }
  72. footer {
  73. margin-top: @footer-margin!important;
  74. height: @footer-margin;
  75. background-color: white;
  76. border-top: 1px solid #d6d6d6;
  77. clear: both;
  78. width: 100%;
  79. color: #888888;
  80. .container {
  81. padding-top: 10px;
  82. .fa {
  83. width: 16px;
  84. text-align: center;
  85. color: #428bca;
  86. }
  87. .ui.language.dropdown {
  88. z-index: 10000;
  89. }
  90. .links >* {
  91. border-left: 1px solid #d6d6d6;
  92. padding-left: 8px;
  93. margin-left: 5px;
  94. &:first-child {
  95. border-left: none;
  96. }
  97. }
  98. }
  99. }
  100. .hide {
  101. display: none!important;
  102. }
  103. .center {
  104. text-align: center;
  105. }
  106. .generate-img(16);
  107. .generate-img(@n, @i: 1) when (@i =< @n) {
  108. .img-@{i} {
  109. width: (2px * @i)!important;
  110. height: (2px * @i)!important;
  111. }
  112. .generate-img(@n, (@i + 1));
  113. }
  114. // Accessibility
  115. .sr-only {
  116. position: absolute;
  117. width: 1px;
  118. height: 1px;
  119. padding: 0;
  120. margin: -1px;
  121. overflow: hidden;
  122. clip: rect(0, 0, 0, 0);
  123. border: 0;
  124. }
  125. .sr-only-focusable:active,
  126. .sr-only-focusable:focus {
  127. position: static;
  128. width: auto;
  129. height: auto;
  130. margin: 0;
  131. overflow: visible;
  132. clip: auto;
  133. }