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 12 kB

11 years ago
11 years ago
11 years ago
10 years ago
11 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. @footer-margin: 40px;
  2. body {
  3. font-family: "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  4. background-color: #fff;
  5. overflow-y: scroll;
  6. -webkit-font-smoothing: antialiased;
  7. }
  8. img {
  9. border-radius: 3px;
  10. }
  11. pre, code {
  12. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  13. &.raw {
  14. padding: 7px 12px;
  15. margin: 10px 0;
  16. background-color: #f8f8f8;
  17. border: 1px solid #ddd;
  18. border-radius: 3px;
  19. font-size: 13px;
  20. line-height: 1.5;
  21. overflow: auto;
  22. }
  23. &.wrap {
  24. white-space: pre-wrap; /* CSS 3 */
  25. // white-space: -moz-normal; /* Mozilla, since 1999 */
  26. // white-space: -normal; /* Opera 4-6 */
  27. // white-space: -o-normal; /* Opera 7 */
  28. -ms-word-break: break-all;
  29. word-break: break-all;
  30. /* These are technically the same, but use both */
  31. overflow-wrap: break-word;
  32. word-wrap: break-word;
  33. }
  34. }
  35. .dont-break-out {
  36. /* These are technically the same, but use both */
  37. overflow-wrap: break-word;
  38. word-wrap: break-word;
  39. -ms-word-break: break-all;
  40. word-break: break-all;
  41. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  42. -ms-hyphens: auto;
  43. -moz-hyphens: auto;
  44. -webkit-hyphens: auto;
  45. hyphens: auto;
  46. }
  47. .full.height {
  48. padding: 0;
  49. margin: 0 0 -@footer-margin*2 0;
  50. min-height: 100%;
  51. }
  52. .following.bar {
  53. z-index: 900;
  54. left: 0;
  55. width: 100%;
  56. &.light {
  57. background-color: white;
  58. border-bottom: 1px solid #DDDDDD;
  59. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  60. }
  61. .column .menu {
  62. margin-top: 0;
  63. }
  64. .top.menu a.item.brand {
  65. padding-left: 0;
  66. }
  67. .brand .ui.mini.image {
  68. width: 30px;
  69. }
  70. .top.menu a.item:hover,
  71. .top.menu .dropdown.item:hover,
  72. .top.menu .dropdown.item.active {
  73. background-color: transparent;
  74. }
  75. .top.menu a.item:hover {
  76. color: rgba(0,0,0,.45);
  77. }
  78. .top.menu .menu {
  79. z-index: 900;
  80. }
  81. .icon,
  82. .octicon {
  83. margin-right: 5px !important;
  84. }
  85. .head.link.item {
  86. padding-right: 0 !important;
  87. }
  88. .avatar > .ui.image {
  89. margin-right: 0;
  90. }
  91. .avatar .octicon-triangle-down {
  92. margin-top: 6.5px;
  93. }
  94. .searchbox {
  95. background-color: rgb(244, 244, 244) !important;
  96. &:focus {
  97. background-color: rgb(233, 233, 233) !important;
  98. }
  99. }
  100. .text .octicon {
  101. width: 16px;
  102. text-align: center;
  103. }
  104. .right.menu {
  105. .menu {
  106. left: auto;
  107. right: 0;
  108. }
  109. .dropdown .menu {
  110. margin-top: 0;
  111. }
  112. }
  113. }
  114. .ui {
  115. &.left {
  116. float: left;
  117. }
  118. &.right {
  119. float: right;
  120. }
  121. &.button, &.menu .item {
  122. -moz-user-select: auto;
  123. -ms-user-select: auto;
  124. -webkit-user-select: auto;
  125. user-select: auto;
  126. }
  127. &.container {
  128. &.fluid {
  129. &.padded {
  130. padding: 0 10px 0 10px;
  131. }
  132. }
  133. }
  134. &.form {
  135. .ui.button {
  136. font-weight: normal;
  137. }
  138. }
  139. &.menu,
  140. &.vertical.menu,
  141. &.segment {
  142. box-shadow: none;
  143. }
  144. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  145. /* This fixes the commit graph button on the commits page */
  146. .menu:not(.vertical) .item > .button.compact {
  147. padding: .58928571em 1.125em;
  148. }
  149. .menu:not(.vertical) .item > .button.small {
  150. font-size: .92857143rem;
  151. }
  152. .text {
  153. &.red {
  154. color: #d95c5c !important;
  155. a {
  156. color: #d95c5c !important;
  157. &:hover {
  158. color: #E67777 !important;
  159. }
  160. }
  161. }
  162. &.blue {
  163. color: #428bca !important;
  164. a {
  165. color: #15c !important;
  166. &:hover {
  167. color: #428bca !important;
  168. }
  169. }
  170. }
  171. &.black {
  172. color: #444;
  173. &:hover {
  174. color: #000;
  175. }
  176. }
  177. &.grey {
  178. color: #767676 !important;
  179. a {
  180. color: #444 !important;
  181. &:hover {
  182. color: #000 !important;
  183. }
  184. }
  185. }
  186. &.light.grey {
  187. color: #888 !important;
  188. }
  189. &.green {
  190. color: #6cc644 !important;
  191. }
  192. &.purple {
  193. color: #6e5494 !important;
  194. }
  195. &.yellow {
  196. color: #FBBD08 !important;
  197. }
  198. &.gold {
  199. color: #a1882b !important;
  200. }
  201. &.left {
  202. text-align: left !important;
  203. }
  204. &.right {
  205. text-align: right !important;
  206. }
  207. &.small {
  208. font-size: 0.75em;
  209. }
  210. &.normal {
  211. font-weight: normal;
  212. }
  213. &.bold {
  214. font-weight: bold;
  215. }
  216. &.italic {
  217. font-style: italic;
  218. }
  219. &.truncate {
  220. overflow: hidden;
  221. text-overflow: ellipsis;
  222. white-space: nowrap;
  223. display: inline-block;
  224. }
  225. &.thin {
  226. font-weight: normal;
  227. }
  228. &.middle {
  229. vertical-align: middle;
  230. }
  231. }
  232. .message {
  233. text-align: center;
  234. }
  235. .header > i + .content {
  236. padding-left: 0.75rem;
  237. vertical-align: middle;
  238. }
  239. .warning {
  240. &.header {
  241. background-color: #F9EDBE !important;
  242. border-color: #F0C36D;
  243. }
  244. &.segment {
  245. border-color: #F0C36D;
  246. }
  247. }
  248. .info {
  249. &.segment {
  250. border: 1px solid #c5d5dd;
  251. &.top {
  252. background-color: #e6f1f6 !important;
  253. h3, h4 {
  254. margin-top: 0;
  255. }
  256. h3:last-child {
  257. margin-top: 4px;
  258. }
  259. > :last-child {
  260. margin-bottom: 0;
  261. }
  262. }
  263. }
  264. }
  265. .normal.header {
  266. font-weight: normal;
  267. }
  268. .avatar.image {
  269. border-radius: 3px;
  270. }
  271. .form {
  272. .fake {
  273. display: none !important;
  274. }
  275. .sub.field {
  276. margin-left: 25px;
  277. }
  278. }
  279. .sha.label {
  280. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  281. font-size: 13px;
  282. padding: 6px 10px 4px 10px;
  283. font-weight: normal;
  284. margin: 0 6px;
  285. }
  286. &.status.buttons {
  287. .octicon {
  288. margin-right: 4px;
  289. }
  290. }
  291. &.inline.delete-button {
  292. padding: 8px 15px;
  293. font-weight: normal;
  294. }
  295. .background {
  296. &.red {
  297. background-color: #d95c5c !important;
  298. }
  299. &.blue {
  300. background-color: #428bca !important;
  301. }
  302. &.black {
  303. background-color: #444;
  304. }
  305. &.grey {
  306. background-color: #767676 !important;
  307. }
  308. &.light.grey {
  309. background-color: #888 !important;
  310. }
  311. &.green {
  312. background-color: #6cc644 !important;
  313. }
  314. &.purple {
  315. background-color: #6e5494 !important;
  316. }
  317. &.yellow {
  318. background-color: #FBBD08 !important;
  319. }
  320. &.gold {
  321. background-color: #a1882b !important;
  322. }
  323. }
  324. .branch-tag-choice {
  325. line-height: 20px;
  326. }
  327. }
  328. .overflow.menu {
  329. .items {
  330. max-height: 300px;
  331. overflow-y: auto;
  332. .item {
  333. position: relative;
  334. cursor: pointer;
  335. display: block;
  336. border: none;
  337. height: auto;
  338. border-top: none;
  339. line-height: 1em;
  340. color: rgba(0,0,0,.8);
  341. padding: .71428571em 1.14285714em !important;
  342. font-size: 1rem;
  343. text-transform: none;
  344. font-weight: 400;
  345. box-shadow: none;
  346. -webkit-touch-callout: none;
  347. &.active {
  348. font-weight: 700;
  349. }
  350. &:hover {
  351. background: rgba(0,0,0,.05);
  352. color: rgba(0,0,0,.8);
  353. z-index: 13;
  354. }
  355. }
  356. }
  357. }
  358. .scrolling.menu {
  359. .item.selected {
  360. font-weight: 700 !important;
  361. }
  362. }
  363. footer {
  364. margin-top: @footer-margin+14px !important;
  365. height: @footer-margin;
  366. background-color: white;
  367. border-top: 1px solid #d6d6d6;
  368. clear: both;
  369. width: 100%;
  370. color: #888888;
  371. .container {
  372. padding-top: 10px;
  373. .fa {
  374. width: 16px;
  375. text-align: center;
  376. color: #428bca;
  377. }
  378. .links >* {
  379. border-left: 1px solid #d6d6d6;
  380. padding-left: 8px;
  381. margin-left: 5px;
  382. &:first-child {
  383. border-left: none;
  384. }
  385. }
  386. }
  387. .ui.language .menu {
  388. max-height: 500px;
  389. overflow-y: auto;
  390. margin-bottom: 7px;
  391. }
  392. }
  393. .hide {
  394. display: none;
  395. }
  396. .center {
  397. text-align: center;
  398. }
  399. .generate-img(16);
  400. .generate-img(@n, @i: 1) when (@i =< @n) {
  401. .img-@{i} {
  402. width: (2px * @i) !important;
  403. height: (2px * @i) !important;
  404. }
  405. .generate-img(@n, (@i + 1));
  406. }
  407. // Accessibility
  408. .sr-only {
  409. position: absolute;
  410. width: 1px;
  411. height: 1px;
  412. padding: 0;
  413. margin: -1px;
  414. overflow: hidden;
  415. clip: rect(0, 0, 0, 0);
  416. border: 0;
  417. }
  418. .sr-only-focusable:active,
  419. .sr-only-focusable:focus {
  420. position: static;
  421. width: auto;
  422. height: auto;
  423. margin: 0;
  424. overflow: visible;
  425. clip: auto;
  426. }
  427. @media only screen and (max-width: 991px) and (min-width: 768px) {
  428. .ui.container {
  429. width: 95%;
  430. }
  431. }
  432. /* Overrides some styles of the Highlight.js plugin */
  433. .hljs {
  434. background: inherit !important;
  435. padding: 0 !important;
  436. }
  437. .ui.menu.new-menu {
  438. justify-content: center !important;
  439. padding-top: 15px !important;
  440. margin-top: -15px !important;
  441. margin-bottom: 15px !important;
  442. background-color: #FAFAFA !important;
  443. border-width: 1px !important;
  444. }
  445. @media only screen and (max-width: 1200px) {
  446. .ui.menu.new-menu {
  447. overflow-x: auto !important;
  448. justify-content: left !important;
  449. padding-bottom: 5px;
  450. }
  451. .ui.menu.new-menu::-webkit-scrollbar {
  452. height: 8px;
  453. display: none;
  454. }
  455. .ui.menu.new-menu:hover::-webkit-scrollbar {
  456. display: block;
  457. }
  458. .ui.menu.new-menu::-webkit-scrollbar-track {
  459. background: rgba(0,0,0,0.01);
  460. }
  461. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  462. background:rgba(0,0,0,0.2);
  463. }
  464. .ui.menu.new-menu:after {
  465. position: absolute;
  466. margin-top: -15px;
  467. display: block;
  468. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  469. content: ' ';
  470. right: 0;
  471. height: 53px;
  472. z-index: 1000;
  473. width: 60px;
  474. clear: none;
  475. visibility: visible;
  476. }
  477. .ui.menu.new-menu a.item:last-child {
  478. padding-right: 30px !important;
  479. }
  480. }
  481. [v-cloak] {
  482. display: none !important;
  483. }
  484. .repos-search {
  485. padding-bottom: 0 !important;
  486. }
  487. .repos-filter {
  488. margin-top: 0 !important;
  489. border-bottom-width: 0 !important;
  490. margin-bottom: 2px !important;
  491. }