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 13KB

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