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

_base.less 6.1 kB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. @footer-margin: 40px;
  2. body {
  3. font-family: 'Helvetica Neue',Arial,Helvetica,sans-serif,'微软雅黑';
  4. background-color: #fff;
  5. overflow-y: scroll;
  6. }
  7. img {
  8. border-radius: 3px;
  9. }
  10. pre, code {
  11. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  12. &.raw {
  13. padding: 7px 12px;
  14. margin: 10px 0;
  15. background-color: #f8f8f8;
  16. border: 1px solid #ddd;
  17. border-radius: 3px;
  18. font-size: 13px;
  19. line-height: 1.5;
  20. overflow: auto;
  21. }
  22. &.wrap {
  23. white-space: pre-wrap; /* CSS 3 */
  24. // white-space: -moz-normal; /* Mozilla, since 1999 */
  25. // white-space: -normal; /* Opera 4-6 */
  26. // white-space: -o-normal; /* Opera 7 */
  27. word-break: break-word;
  28. }
  29. }
  30. .full.height {
  31. padding: 0;
  32. margin: 0 0 -@footer-margin*2 0;
  33. min-height: 100%;
  34. }
  35. .following.bar {
  36. z-index: 900;
  37. left: 0;
  38. width: 100%;
  39. &.light {
  40. background-color: white;
  41. border-bottom: 1px solid #DDDDDD;
  42. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  43. }
  44. .column .menu {
  45. margin-top: 0;
  46. }
  47. .top.menu a.item.brand {
  48. padding-left: 0;
  49. }
  50. .brand .ui.mini.image {
  51. width: 30px;
  52. }
  53. .top.menu a.item:hover,
  54. .top.menu .dropdown.item:hover,
  55. .top.menu .dropdown.item.active {
  56. background-color: transparent;
  57. }
  58. .top.menu a.item:hover {
  59. color: rgba(0,0,0,.45);
  60. }
  61. .top.menu .menu {
  62. z-index: 900;
  63. }
  64. .head.link.item {
  65. padding-right: 0 !important;
  66. .dropdown.icon,
  67. .menu .octicon {
  68. margin-right: 5px;
  69. }
  70. }
  71. .avatar > .ui.image {
  72. margin-right: 0;
  73. }
  74. .searchbox {
  75. background-color: rgb(244, 244, 244) !important;
  76. &:focus {
  77. background-color: rgb(233, 233, 233) !important;
  78. }
  79. }
  80. .text .octicon {
  81. width: 16px;
  82. text-align: center;
  83. }
  84. .right.menu {
  85. .menu {
  86. left: auto;
  87. right: 0;
  88. }
  89. .dropdown .menu {
  90. margin-top: 0;
  91. }
  92. }
  93. }
  94. .ui {
  95. &.left {
  96. float: left;
  97. }
  98. &.right {
  99. float: right;
  100. }
  101. &.container {
  102. &.fluid {
  103. &.padded {
  104. padding: 0 10px 0 10px;
  105. }
  106. }
  107. }
  108. .text {
  109. &.red {
  110. color: #d95c5c !important;
  111. a {
  112. color: #d95c5c !important;
  113. &:hover {
  114. color: #E67777 !important;
  115. }
  116. }
  117. }
  118. &.blue {
  119. color: #428bca !important;
  120. a {
  121. color: #15c !important;
  122. &:hover {
  123. color: #428bca !important;
  124. }
  125. }
  126. }
  127. &.black {
  128. color: #444;
  129. &:hover {
  130. color: #000;
  131. }
  132. }
  133. &.grey {
  134. color: #767676 !important;
  135. a {
  136. color: #444 !important;
  137. &:hover {
  138. color: #000 !important;
  139. }
  140. }
  141. }
  142. &.light.grey {
  143. color: #888 !important;
  144. }
  145. &.green {
  146. color: #6cc644 !important;
  147. }
  148. &.purple {
  149. color: #6e5494 !important;
  150. }
  151. &.yellow {
  152. color: #FBBD08 !important;
  153. }
  154. &.gold {
  155. color: #a1882b !important;
  156. }
  157. &.left {
  158. text-align: left !important;
  159. }
  160. &.right {
  161. text-align: right !important;
  162. }
  163. &.small {
  164. font-size: 0.75em;
  165. }
  166. &.normal {
  167. font-weight: normal;
  168. }
  169. &.bold {
  170. font-weight: bold;
  171. }
  172. &.italic {
  173. font-style: italic;
  174. }
  175. &.truncate {
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. white-space: nowrap;
  179. display: inline-block;
  180. }
  181. &.thin {
  182. font-weight: normal;
  183. }
  184. &.middle {
  185. vertical-align: middle;
  186. }
  187. }
  188. .message {
  189. text-align: center;
  190. }
  191. .header > i + .content {
  192. padding-left: 0.75rem;
  193. vertical-align: middle;
  194. }
  195. .warning {
  196. &.header {
  197. background-color: #F9EDBE !important;
  198. border-color: #F0C36D;
  199. }
  200. &.segment {
  201. border-color: #F0C36D;
  202. }
  203. }
  204. .info {
  205. &.segment {
  206. border: 1px solid #c5d5dd;
  207. &.top {
  208. background-color: #e6f1f6 !important;
  209. h3, h4 {
  210. margin-top: 0;
  211. }
  212. h3:last-child {
  213. margin-top: 4px;
  214. }
  215. > :last-child {
  216. margin-bottom: 0;
  217. }
  218. }
  219. }
  220. }
  221. .normal.header {
  222. font-weight: normal;
  223. }
  224. .avatar.image {
  225. border-radius: 3px;
  226. }
  227. .form {
  228. .fake {
  229. display: none !important;
  230. }
  231. .sub.field {
  232. margin-left: 25px;
  233. }
  234. }
  235. .sha.label {
  236. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  237. font-size: 13px;
  238. padding: 6px 10px 4px 10px;
  239. font-weight: normal;
  240. margin: 0 6px;
  241. }
  242. &.status.buttons {
  243. .octicon {
  244. margin-right: 4px;
  245. }
  246. }
  247. }
  248. .overflow.menu {
  249. .items {
  250. max-height: 300px;
  251. overflow-y: auto;
  252. .item {
  253. position: relative;
  254. cursor: pointer;
  255. display: block;
  256. border: none;
  257. height: auto;
  258. border-top: none;
  259. line-height: 1em;
  260. color: rgba(0,0,0,.8);
  261. padding: .71428571em 1.14285714em !important;
  262. font-size: 1rem;
  263. text-transform: none;
  264. font-weight: 400;
  265. box-shadow: none;
  266. -webkit-touch-callout: none;
  267. &.active {
  268. font-weight: 700;
  269. }
  270. &:hover {
  271. background: rgba(0,0,0,.05);
  272. color: rgba(0,0,0,.8);
  273. z-index: 13;
  274. }
  275. }
  276. }
  277. }
  278. .scrolling.menu {
  279. .item.selected {
  280. font-weight: 700 !important;
  281. }
  282. }
  283. footer {
  284. margin-top: @footer-margin+14px !important;
  285. height: @footer-margin;
  286. background-color: white;
  287. border-top: 1px solid #d6d6d6;
  288. clear: both;
  289. width: 100%;
  290. color: #888888;
  291. .container {
  292. padding-top: 10px;
  293. .fa {
  294. width: 16px;
  295. text-align: center;
  296. color: #428bca;
  297. }
  298. .links >* {
  299. border-left: 1px solid #d6d6d6;
  300. padding-left: 8px;
  301. margin-left: 5px;
  302. &:first-child {
  303. border-left: none;
  304. }
  305. }
  306. }
  307. }
  308. .hide {
  309. display: none;
  310. }
  311. .center {
  312. text-align: center;
  313. }
  314. .generate-img(16);
  315. .generate-img(@n, @i: 1) when (@i =< @n) {
  316. .img-@{i} {
  317. width: (2px * @i) !important;
  318. height: (2px * @i) !important;
  319. }
  320. .generate-img(@n, (@i + 1));
  321. }
  322. // ensure Semantic UI .icon font family and 14px size does not apply to .icon.octicon
  323. .octicon.icon,
  324. .mega-octicon.icon {
  325. font-family: octicons;
  326. font-size: 16px;
  327. opacity: 1 !important;
  328. }
  329. // Accessibility
  330. .sr-only {
  331. position: absolute;
  332. width: 1px;
  333. height: 1px;
  334. padding: 0;
  335. margin: -1px;
  336. overflow: hidden;
  337. clip: rect(0, 0, 0, 0);
  338. border: 0;
  339. }
  340. .sr-only-focusable:active,
  341. .sr-only-focusable:focus {
  342. position: static;
  343. width: auto;
  344. height: auto;
  345. margin: 0;
  346. overflow: visible;
  347. clip: auto;
  348. }
  349. @media only screen and (max-width: 991px) and (min-width: 768px) {
  350. .ui.container {
  351. width: 95%;
  352. }
  353. }
  354. /* Overrides some styles of the Highlight.js plugin */
  355. .hljs {
  356. background: inherit !important;
  357. padding: 0 !important;
  358. }