_base.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. &.green {
  88. color: #6cc644!important;
  89. }
  90. &.left {
  91. text-align: left!important;
  92. }
  93. &.right {
  94. text-align: right!important;
  95. }
  96. &.small {
  97. font-size: 0.75em;
  98. }
  99. &.truncate {
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. display: inline-block;
  104. }
  105. }
  106. .message {
  107. text-align: center;
  108. }
  109. .header > i + .content {
  110. padding-left: 0.75rem;
  111. vertical-align: middle;
  112. }
  113. .warning {
  114. &.header {
  115. background-color: #F9EDBE!important;
  116. border-color: #F0C36D;
  117. }
  118. &.segment {
  119. border-color: #F0C36D;
  120. }
  121. }
  122. .info {
  123. &.header {
  124. background-color: #d9edf7!important;
  125. border-color: #85c5e5;
  126. }
  127. &.segment {
  128. border-color: #85c5e5;
  129. }
  130. }
  131. .normal.header {
  132. font-weight: normal;
  133. }
  134. .avatar.image {
  135. border-radius: 3px;
  136. }
  137. .form {
  138. .fake {
  139. display: none!important;
  140. }
  141. }
  142. }
  143. .overflow.menu {
  144. .items {
  145. max-height: 300px;
  146. overflow-y: auto;
  147. .item {
  148. position: relative;
  149. cursor: pointer;
  150. display: block;
  151. border: none;
  152. height: auto;
  153. border-top: none;
  154. line-height: 1em;
  155. color: rgba(0,0,0,.8);
  156. padding: .71428571em 1.14285714em!important;
  157. font-size: 1rem;
  158. text-transform: none;
  159. font-weight: 400;
  160. box-shadow: none;
  161. -webkit-touch-callout: none;
  162. &.active {
  163. font-weight: 700;
  164. }
  165. &:hover {
  166. background: rgba(0,0,0,.05);
  167. color: rgba(0,0,0,.8);
  168. z-index: 13;
  169. }
  170. }
  171. }
  172. }
  173. footer {
  174. margin-top: @footer-margin+14px!important;
  175. height: @footer-margin;
  176. background-color: white;
  177. border-top: 1px solid #d6d6d6;
  178. clear: both;
  179. width: 100%;
  180. color: #888888;
  181. .container {
  182. padding-top: 10px;
  183. .fa {
  184. width: 16px;
  185. text-align: center;
  186. color: #428bca;
  187. }
  188. .ui.language.dropdown {
  189. z-index: 10000;
  190. }
  191. .links >* {
  192. border-left: 1px solid #d6d6d6;
  193. padding-left: 8px;
  194. margin-left: 5px;
  195. &:first-child {
  196. border-left: none;
  197. }
  198. }
  199. }
  200. }
  201. .hide {
  202. display: none;
  203. }
  204. .center {
  205. text-align: center;
  206. }
  207. .generate-img(16);
  208. .generate-img(@n, @i: 1) when (@i =< @n) {
  209. .img-@{i} {
  210. width: (2px * @i)!important;
  211. height: (2px * @i)!important;
  212. }
  213. .generate-img(@n, (@i + 1));
  214. }
  215. .octicon.icon,
  216. .mega-octicon.icon {
  217. font-family: octicons;
  218. }
  219. // Accessibility
  220. .sr-only {
  221. position: absolute;
  222. width: 1px;
  223. height: 1px;
  224. padding: 0;
  225. margin: -1px;
  226. overflow: hidden;
  227. clip: rect(0, 0, 0, 0);
  228. border: 0;
  229. }
  230. .sr-only-focusable:active,
  231. .sr-only-focusable:focus {
  232. position: static;
  233. width: auto;
  234. height: auto;
  235. margin: 0;
  236. overflow: visible;
  237. clip: auto;
  238. }
  239. @media only screen and (max-width: 991px) and (min-width: 768px) {
  240. .ui.container {
  241. width: 95%;
  242. }
  243. }