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

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