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

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