_base.less 2.3 KB

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