You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_base.less 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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. pre {
  10. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  11. &.raw {
  12. padding: 7px 12px;
  13. margin: 10px 0;
  14. background-color: #f8f8f8;
  15. border: 1px solid #ddd;
  16. border-radius: 3px;
  17. font-size: 13px;
  18. line-height: 1.5;
  19. overflow: auto;
  20. }
  21. }
  22. .full.height {
  23. padding: 0;
  24. margin: 0 0 -@footer-margin*2 0;
  25. min-height: 100%;
  26. }
  27. .following.bar {
  28. z-index: 900;
  29. left: 0;
  30. width: 100%;
  31. &.light {
  32. background-color: white;
  33. border-bottom: 1px solid #DDDDDD;
  34. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  35. }
  36. .column .menu {
  37. margin-top: 0;
  38. }
  39. .top.menu a.item.brand {
  40. padding-left: 0;
  41. }
  42. .brand .ui.mini.image {
  43. width: 30px;
  44. }
  45. .top.menu a.item:hover,
  46. .top.menu .dropdown.item:hover,
  47. .top.menu .dropdown.item.active {
  48. background-color: transparent;
  49. }
  50. .top.menu a.item:hover {
  51. color: rgba(0,0,0,.45);
  52. }
  53. .top.menu .menu {
  54. z-index: 900;
  55. }
  56. .head.link.item {
  57. padding-right: 0!important;
  58. .dropdown.icon,
  59. .menu .octicon {
  60. margin-right: 5px;
  61. }
  62. }
  63. .avatar > .ui.image {
  64. margin-right: 0;
  65. }
  66. .searchbox {
  67. background-color: rgb(244, 244, 244)!important;
  68. &:focus {
  69. background-color: rgb(233, 233, 233)!important;
  70. }
  71. }
  72. .text .octicon {
  73. width: 16px;
  74. text-align: center;
  75. }
  76. .right.menu {
  77. .menu {
  78. left: auto;
  79. right: 0;
  80. }
  81. .dropdown .menu {
  82. margin-top: 0;
  83. }
  84. }
  85. }
  86. .ui {
  87. &.left {
  88. float: left;
  89. }
  90. &.right {
  91. float: right;
  92. }
  93. .text {
  94. &.red {
  95. color: #d95c5c!important;
  96. a {
  97. color: #d95c5c!important;
  98. &:hover {
  99. color: #E67777!important;
  100. }
  101. }
  102. }
  103. &.blue {
  104. color: #428bca!important;
  105. a {
  106. color: #15c!important;
  107. &:hover {
  108. color: #428bca!important;
  109. }
  110. }
  111. }
  112. &.grey {
  113. color: #767676!important;
  114. a {
  115. color: #444!important;
  116. &:hover {
  117. color: #000!important;
  118. }
  119. }
  120. }
  121. &.green {
  122. color: #6cc644!important;
  123. }
  124. &.purple {
  125. color: #6e5494!important;
  126. }
  127. &.yellow {
  128. color: #FBBD08!important;
  129. }
  130. &.left {
  131. text-align: left!important;
  132. }
  133. &.right {
  134. text-align: right!important;
  135. }
  136. &.small {
  137. font-size: 0.75em;
  138. }
  139. &.truncate {
  140. overflow: hidden;
  141. text-overflow: ellipsis;
  142. white-space: nowrap;
  143. display: inline-block;
  144. }
  145. &.thin {
  146. font-weight: normal;
  147. }
  148. &.middle {
  149. vertical-align: middle;
  150. }
  151. }
  152. .message {
  153. text-align: center;
  154. }
  155. .header > i + .content {
  156. padding-left: 0.75rem;
  157. vertical-align: middle;
  158. }
  159. .warning {
  160. &.header {
  161. background-color: #F9EDBE!important;
  162. border-color: #F0C36D;
  163. }
  164. &.segment {
  165. border-color: #F0C36D;
  166. }
  167. }
  168. .info {
  169. &.header {
  170. background-color: #d9edf7!important;
  171. border-color: #85c5e5;
  172. }
  173. &.segment {
  174. border-color: #85c5e5;
  175. }
  176. }
  177. .normal.header {
  178. font-weight: normal;
  179. }
  180. .avatar.image {
  181. border-radius: 3px;
  182. }
  183. .form {
  184. .fake {
  185. display: none!important;
  186. }
  187. }
  188. &.status.buttons {
  189. .octicon {
  190. margin-right: 4px;
  191. }
  192. }
  193. }
  194. .overflow.menu {
  195. .items {
  196. max-height: 300px;
  197. overflow-y: auto;
  198. .item {
  199. position: relative;
  200. cursor: pointer;
  201. display: block;
  202. border: none;
  203. height: auto;
  204. border-top: none;
  205. line-height: 1em;
  206. color: rgba(0,0,0,.8);
  207. padding: .71428571em 1.14285714em!important;
  208. font-size: 1rem;
  209. text-transform: none;
  210. font-weight: 400;
  211. box-shadow: none;
  212. -webkit-touch-callout: none;
  213. &.active {
  214. font-weight: 700;
  215. }
  216. &:hover {
  217. background: rgba(0,0,0,.05);
  218. color: rgba(0,0,0,.8);
  219. z-index: 13;
  220. }
  221. }
  222. }
  223. }
  224. .scrolling.menu {
  225. .item.selected {
  226. font-weight: 700!important;
  227. }
  228. }
  229. footer {
  230. margin-top: @footer-margin+14px!important;
  231. height: @footer-margin;
  232. background-color: white;
  233. border-top: 1px solid #d6d6d6;
  234. clear: both;
  235. width: 100%;
  236. color: #888888;
  237. .container {
  238. padding-top: 10px;
  239. .fa {
  240. width: 16px;
  241. text-align: center;
  242. color: #428bca;
  243. }
  244. .links >* {
  245. border-left: 1px solid #d6d6d6;
  246. padding-left: 8px;
  247. margin-left: 5px;
  248. &:first-child {
  249. border-left: none;
  250. }
  251. }
  252. }
  253. }
  254. .hide {
  255. display: none;
  256. }
  257. .center {
  258. text-align: center;
  259. }
  260. .generate-img(16);
  261. .generate-img(@n, @i: 1) when (@i =< @n) {
  262. .img-@{i} {
  263. width: (2px * @i)!important;
  264. height: (2px * @i)!important;
  265. }
  266. .generate-img(@n, (@i + 1));
  267. }
  268. .octicon.icon,
  269. .mega-octicon.icon {
  270. font-family: octicons;
  271. opacity: 1!important;
  272. }
  273. // Accessibility
  274. .sr-only {
  275. position: absolute;
  276. width: 1px;
  277. height: 1px;
  278. padding: 0;
  279. margin: -1px;
  280. overflow: hidden;
  281. clip: rect(0, 0, 0, 0);
  282. border: 0;
  283. }
  284. .sr-only-focusable:active,
  285. .sr-only-focusable:focus {
  286. position: static;
  287. width: auto;
  288. height: auto;
  289. margin: 0;
  290. overflow: visible;
  291. clip: auto;
  292. }
  293. @media only screen and (max-width: 991px) and (min-width: 768px) {
  294. .ui.container {
  295. width: 95%;
  296. }
  297. }