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.6KB

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