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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. @font-face {
  2. font-family: 'Lato';
  3. src: url('../vendor/assets/lato-fonts/lato-regular.eot');
  4. src: url('../vendor/assets/lato-fonts/lato-regular.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-regular.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-regular.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-regular.ttf') format('truetype');
  5. font-weight: 400;
  6. font-style: normal;
  7. }
  8. @font-face {
  9. font-family: 'Lato';
  10. src: url('../vendor/assets/lato-fonts/lato-italic.eot');
  11. src: url('../vendor/assets/lato-fonts/lato-italic.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-italic.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-italic.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-italic.ttf') format('truetype');
  12. font-weight: 400;
  13. font-style: italic;
  14. }
  15. @font-face {
  16. font-family: 'Lato';
  17. src: url('../vendor/assets/lato-fonts/lato-bold.eot');
  18. src: url('../vendor/assets/lato-fonts/lato-bold.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-bold.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-bold.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-bold.ttf') format('truetype');
  19. font-weight: 700;
  20. font-style: normal;
  21. }
  22. @font-face {
  23. font-family: 'Lato';
  24. src: url('../vendor/assets/lato-fonts/lato-bolditalic.eot');
  25. src: url('../vendor/assets/lato-fonts/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../vendor/assets/lato-fonts/lato-bolditalic.woff2') format('woff2'), url('../vendor/assets/lato-fonts/lato-bolditalic.woff') format('woff'), url('../vendor/assets/lato-fonts/lato-bolditalic.ttf') format('truetype');
  26. font-weight: 700;
  27. font-style: italic;
  28. }
  29. @font-face {
  30. font-family: 'Yu Gothic';
  31. src: local('Yu Gothic Medium');
  32. font-weight: 400;
  33. }
  34. @font-face {
  35. font-family: 'Yu Gothic';
  36. src: local('Yu Gothic Bold');
  37. font-weight: 700;
  38. }
  39. @default-fonts: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial;
  40. @monospaced-fonts: 'SF Mono', Consolas, Menlo, 'Liberation Mono', Monaco, 'Lucida Console';
  41. .override-fonts(@fonts) {
  42. textarea {
  43. font-family: @fonts, sans-serif;
  44. }
  45. .markdown:not(code) {
  46. font-family: @fonts, sans-serif;
  47. }
  48. /* We're going to just override the semantic fonts here */
  49. h1, h2, h3, h4, h5 {
  50. font-family: Lato, @fonts, sans-serif;
  51. }
  52. .home .hero h1, .home .hero h2 {
  53. font-family: 'PT Sans Narrow', Lato, @fonts, sans-serif;
  54. }
  55. .ui.accordion .title:not(.ui),
  56. .ui.button,
  57. .ui.card > .content > .header.ui.card > .content > .header,
  58. .ui.category.search > .results .category > .name,
  59. .ui.form input:not([type]), .ui.form input[type=date], .ui.form input[type=datetime-local], .ui.form input[type=email], .ui.form input[type=file], .ui.form input[type=number], .ui.form input[type=password], .ui.form input[type=search], .ui.form input[type=tel], .ui.form input[type=text], .ui.form input[type=time], .ui.form input[type=url],
  60. .ui.header,
  61. .ui.items > .item > .content > .header,
  62. .ui.list .list > .item .header,
  63. .ui.list > .item .header,
  64. .ui.menu,
  65. .ui.message .header,
  66. .ui.modal > .header,
  67. .ui.popup > .header,
  68. .ui.search > .results .result .title,
  69. .ui.search > .results > .message .header,
  70. body,
  71. .ui.input>input, .ui.input input,
  72. .ui.statistics .statistic > .value,
  73. .ui.statistic > .value,
  74. .ui.statistics .statistic > .label,
  75. .ui.statistic > .label,
  76. .ui.steps .step .title,
  77. .ui.text.container,
  78. .ui.language > .menu > .item&
  79. {
  80. font-family: Lato, @fonts, sans-serif;
  81. }
  82. }
  83. .override-fonts(@default-fonts);
  84. body {
  85. background-color: #fff;
  86. overflow-y: auto;
  87. -webkit-font-smoothing: antialiased;
  88. display: flex;
  89. flex-direction: column;
  90. }
  91. @ja-fonts: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Source Han Sans JP', 'Noto Sans CJK JP', 'Droid Sans Japanese', 'Meiryo', 'MS PGothic';
  92. :lang(ja) {
  93. .override-fonts(@default-fonts, @ja-fonts;);
  94. }
  95. @zh-CN-fonts: 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Heiti SC', SimHei;
  96. :lang(zh-CN) {
  97. .override-fonts(@default-fonts, @zh-CN-fonts;);
  98. }
  99. @zh-TW-fonts: 'PingFang TC', 'Hiragino Sans TC', 'Source Han Sans TW', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU;
  100. :lang(zh-TW) {
  101. .override-fonts(@default-fonts, @zh-TW-fonts;);
  102. }
  103. @zh-HK-fonts: 'PingFang HK', 'Hiragino Sans TC', 'Source Han Sans HK', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU_HKSCS, PMingLiU;
  104. :lang(zh-HK) {
  105. .override-fonts(@default-fonts, @zh-HK-fonts;);
  106. }
  107. @ko-fonts: 'Apple SD Gothic Neo', 'NanumBarunGothic', 'Malgun Gothic', 'Gulim', 'Dotum', 'Nanum Gothic', 'Source Han Sans KR', 'Noto Sans CJK KR';
  108. :lang(ko) {
  109. .override-fonts(@default-fonts, @ko-fonts;);
  110. }
  111. img {
  112. border-radius: 3px;
  113. }
  114. table {
  115. border-collapse: collapse;
  116. }
  117. a {
  118. cursor: pointer;
  119. }
  120. .rounded {
  121. border-radius: .28571429rem !important;
  122. }
  123. pre, code {
  124. font: 12px @monospaced-fonts, monospace;
  125. &.raw {
  126. padding: 7px 12px;
  127. margin: 10px 0;
  128. background-color: #f8f8f8;
  129. border: 1px solid #ddd;
  130. border-radius: 3px;
  131. font-size: 13px;
  132. line-height: 1.5;
  133. overflow: auto;
  134. }
  135. &.wrap {
  136. white-space: pre-wrap;
  137. word-break: break-all;
  138. overflow-wrap: break-word;
  139. word-wrap: break-word;
  140. }
  141. }
  142. .dont-break-out {
  143. overflow-wrap: break-word;
  144. word-wrap: break-word;
  145. word-break: break-all;
  146. hyphens: auto;
  147. }
  148. .full.height {
  149. flex-grow: 1;
  150. padding-bottom: 80px;
  151. }
  152. .following.bar {
  153. z-index: 900;
  154. left: 0;
  155. margin: 0 !important;
  156. &.light {
  157. background-color: white;
  158. border-bottom: 1px solid #DDDDDD;
  159. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  160. }
  161. .column .menu {
  162. margin-top: 0;
  163. }
  164. .top.menu a.item.brand {
  165. padding-left: 0;
  166. }
  167. .brand .ui.mini.image {
  168. width: 30px;
  169. }
  170. .top.menu a.item:hover,
  171. .top.menu .dropdown.item:hover,
  172. .top.menu .dropdown.item.active {
  173. background-color: transparent;
  174. }
  175. .top.menu a.item:hover {
  176. color: rgba(0,0,0,.45);
  177. }
  178. .top.menu .menu {
  179. z-index: 900;
  180. }
  181. .octicon {
  182. &.fitted {
  183. margin-right: 0;
  184. }
  185. margin-right: .75em;
  186. }
  187. .searchbox {
  188. background-color: rgb(244, 244, 244) !important;
  189. &:focus {
  190. background-color: rgb(233, 233, 233) !important;
  191. }
  192. }
  193. .text .octicon {
  194. width: 16px;
  195. text-align: center;
  196. }
  197. #navbar {
  198. width: 100vw;
  199. min-height: 52px;
  200. padding: 0 .5rem;
  201. }
  202. #navbar .brand {
  203. margin: 0;
  204. }
  205. @media only screen and (max-width: 767px) {
  206. #navbar:not(.shown) > *:not(:first-child) {
  207. display: none;
  208. }
  209. }
  210. }
  211. .right.stackable.menu {
  212. // responsive fix: this makes sure that the right menu when the page
  213. // is on mobile view will have elements stacked on top of each other.
  214. // no, stackable won't work on right menus.
  215. margin-left: auto;
  216. display: flex;
  217. align-items: inherit;
  218. flex-direction: inherit;
  219. }
  220. .ui {
  221. &.left {
  222. float: left;
  223. }
  224. &.right {
  225. float: right;
  226. }
  227. &.button, &.menu .item {
  228. user-select: auto;
  229. }
  230. &.container {
  231. &.fluid {
  232. &.padded {
  233. padding: 0 10px 0 10px;
  234. }
  235. }
  236. }
  237. &.form {
  238. .ui.button {
  239. font-weight: normal;
  240. }
  241. }
  242. &.floating.label {
  243. z-index: 10;
  244. }
  245. &.transparent.label {
  246. background-color: transparent;
  247. }
  248. &.menu,
  249. &.vertical.menu,
  250. &.segment {
  251. box-shadow: none;
  252. }
  253. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  254. /* This fixes the commit graph button on the commits page */
  255. .menu:not(.vertical) .item > .button.compact {
  256. padding: .58928571em 1.125em;
  257. }
  258. .menu:not(.vertical) .item > .button.small {
  259. font-size: .92857143rem;
  260. }
  261. &.menu .ui.dropdown.item .menu .item {
  262. margin-right: auto;
  263. }
  264. &.dropdown .menu>.item>.floating.label {
  265. z-index: 11;
  266. }
  267. &.dropdown .menu .menu>.item>.floating.label {
  268. z-index: 21;
  269. }
  270. .text {
  271. &.red {
  272. color: #d95c5c !important;
  273. a {
  274. color: #d95c5c !important;
  275. &:hover {
  276. color: #E67777 !important;
  277. }
  278. }
  279. }
  280. &.blue {
  281. color: #428bca !important;
  282. a {
  283. color: #15c !important;
  284. &:hover {
  285. color: #428bca !important;
  286. }
  287. }
  288. }
  289. &.black {
  290. color: #444;
  291. &:hover {
  292. color: #000;
  293. }
  294. }
  295. &.grey {
  296. color: #767676 !important;
  297. a {
  298. color: #444 !important;
  299. &:hover {
  300. color: #000 !important;
  301. }
  302. }
  303. }
  304. &.light.grey {
  305. color: #888 !important;
  306. }
  307. &.green {
  308. color: #6cc644 !important;
  309. }
  310. &.purple {
  311. color: #6e5494 !important;
  312. }
  313. &.yellow {
  314. color: #FBBD08 !important;
  315. }
  316. &.gold {
  317. color: #a1882b !important;
  318. }
  319. &.left {
  320. text-align: left !important;
  321. }
  322. &.right {
  323. text-align: right !important;
  324. }
  325. &.small {
  326. font-size: 0.75em;
  327. }
  328. &.normal {
  329. font-weight: normal;
  330. }
  331. &.bold {
  332. font-weight: bold;
  333. }
  334. &.italic {
  335. font-style: italic;
  336. }
  337. &.truncate {
  338. overflow: hidden;
  339. text-overflow: ellipsis;
  340. white-space: nowrap;
  341. display: inline-block;
  342. }
  343. &.thin {
  344. font-weight: normal;
  345. }
  346. &.middle {
  347. vertical-align: middle;
  348. }
  349. }
  350. .message {
  351. text-align: center;
  352. }
  353. &.bottom.attached.message {
  354. font-weight: bold;
  355. text-align: left;
  356. color: black;
  357. .pull-right {
  358. color: black;
  359. }
  360. &>span, .pull-right>span{
  361. color:#21ba45;
  362. }
  363. }
  364. .header > i + .content {
  365. padding-left: 0.75rem;
  366. vertical-align: middle;
  367. }
  368. .warning {
  369. &.header {
  370. background-color: #F9EDBE !important;
  371. border-color: #F0C36D;
  372. }
  373. &.segment {
  374. border-color: #F0C36D;
  375. }
  376. }
  377. .info {
  378. &.segment {
  379. border: 1px solid #c5d5dd;
  380. &.top {
  381. background-color: #e6f1f6 !important;
  382. h3, h4 {
  383. margin-top: 0;
  384. }
  385. h3:last-child {
  386. margin-top: 4px;
  387. }
  388. > :last-child {
  389. margin-bottom: 0;
  390. }
  391. }
  392. }
  393. }
  394. .normal.header {
  395. font-weight: normal;
  396. }
  397. .avatar.image {
  398. border-radius: 3px;
  399. }
  400. .form {
  401. .fake {
  402. display: none !important;
  403. }
  404. .sub.field {
  405. margin-left: 25px;
  406. }
  407. }
  408. .sha.label {
  409. font-family: @monospaced-fonts, monospace;
  410. font-size: 13px;
  411. padding: 6px 10px 4px 10px;
  412. font-weight: normal;
  413. margin: 0 6px;
  414. }
  415. &.status.buttons {
  416. .octicon {
  417. margin-right: 4px;
  418. }
  419. }
  420. &.inline.delete-button {
  421. padding: 8px 15px;
  422. font-weight: normal;
  423. }
  424. .background {
  425. &.red {
  426. background-color: #d95c5c !important;
  427. }
  428. &.blue {
  429. background-color: #428bca !important;
  430. }
  431. &.black {
  432. background-color: #444;
  433. }
  434. &.grey {
  435. background-color: #767676 !important;
  436. }
  437. &.light.grey {
  438. background-color: #888 !important;
  439. }
  440. &.green {
  441. background-color: #6cc644 !important;
  442. }
  443. &.purple {
  444. background-color: #6e5494 !important;
  445. }
  446. &.yellow {
  447. background-color: #FBBD08 !important;
  448. }
  449. &.gold {
  450. background-color: #a1882b !important;
  451. }
  452. }
  453. .branch-tag-choice {
  454. line-height: 20px;
  455. }
  456. &.pagination.menu {
  457. @media only screen and (max-width:767px) {
  458. .item:not(.active):not(.navigation),
  459. .item.navigation span.navigation_label{
  460. display: none;
  461. }
  462. }
  463. }
  464. }
  465. .file-comment {
  466. font: 12px @monospaced-fonts, monospace;
  467. color: rgba(0,0,0,.87);
  468. }
  469. .ui.floating.dropdown {
  470. .overflow.menu {
  471. .scrolling.menu.items {
  472. border-radius: 0px !important;
  473. box-shadow: none !important;
  474. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  475. }
  476. }
  477. }
  478. .user-menu > .item {
  479. width: 100%;
  480. border-radius: 0 !important;
  481. }
  482. .scrolling.menu {
  483. .item.selected {
  484. font-weight: 700 !important;
  485. }
  486. }
  487. footer {
  488. background-color: white;
  489. border-top: 1px solid #d6d6d6;
  490. width: 100%;
  491. flex-basis: 40px;
  492. color: #888888;
  493. .container {
  494. width: 100vw !important;
  495. padding: 0 .5rem;
  496. .fa {
  497. width: 16px;
  498. text-align: center;
  499. color: #428bca;
  500. }
  501. .links >* {
  502. border-left: 1px solid #d6d6d6;
  503. padding-left: 8px;
  504. margin-left: 5px;
  505. &:first-child {
  506. border-left: none;
  507. }
  508. }
  509. }
  510. .ui.language .menu {
  511. max-height: 500px;
  512. overflow-y: auto;
  513. margin-bottom: 7px;
  514. }
  515. .ui {
  516. &.left, &.right {
  517. line-height: 40px;
  518. }
  519. }
  520. }
  521. .hide {
  522. display: none;
  523. &.show-outdated {
  524. display: none !important;
  525. }
  526. &.hide-outdated {
  527. display: none !important;
  528. }
  529. }
  530. .center {
  531. text-align: center;
  532. }
  533. .generate-img(16);
  534. .generate-img(@n, @i: 1) when (@i =< @n) {
  535. .img-@{i} {
  536. width: (2px * @i) !important;
  537. height: (2px * @i) !important;
  538. }
  539. .generate-img(@n, (@i + 1));
  540. }
  541. // Conditional display
  542. @media only screen and (min-width: 768px) {
  543. .mobile-only, .ui.button.mobile-only {
  544. display: none;
  545. }
  546. // has the same behaviour of sr-only, hiding the content for
  547. // non-screenreaders, but is shown on mobile devices.
  548. .sr-mobile-only {
  549. .sr-only();
  550. }
  551. }
  552. @media only screen and (max-width: 767px) {
  553. .not-mobile {
  554. display: none;
  555. }
  556. }
  557. // Accessibility
  558. .sr-only {
  559. position: absolute;
  560. width: 1px;
  561. height: 1px;
  562. padding: 0;
  563. margin: -1px;
  564. overflow: hidden;
  565. clip: rect(0, 0, 0, 0);
  566. border: 0;
  567. }
  568. .sr-only-focusable:active,
  569. .sr-only-focusable:focus {
  570. position: static;
  571. width: auto;
  572. height: auto;
  573. margin: 0;
  574. overflow: visible;
  575. clip: auto;
  576. }
  577. @media only screen and (max-width: 991px) and (min-width: 768px) {
  578. .ui.container {
  579. width: 95%;
  580. }
  581. }
  582. /* Overrides some styles of the Highlight.js plugin */
  583. .hljs {
  584. background: inherit !important;
  585. padding: 0 !important;
  586. }
  587. .ui.menu.new-menu {
  588. justify-content: center !important;
  589. padding-top: 15px !important;
  590. margin-top: -15px !important;
  591. margin-bottom: 15px !important;
  592. background-color: #FAFAFA !important;
  593. border-width: 1px !important;
  594. }
  595. @media only screen and (max-width: 1200px) {
  596. .ui.menu.new-menu {
  597. overflow-x: auto !important;
  598. justify-content: left !important;
  599. padding-bottom: 5px;
  600. }
  601. .ui.menu.new-menu::-webkit-scrollbar {
  602. height: 8px;
  603. display: none;
  604. }
  605. .ui.menu.new-menu:hover::-webkit-scrollbar {
  606. display: block;
  607. }
  608. .ui.menu.new-menu::-webkit-scrollbar-track {
  609. background: rgba(0,0,0,0.01);
  610. }
  611. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  612. background:rgba(0,0,0,0.2);
  613. }
  614. .ui.menu.new-menu:after {
  615. position: absolute;
  616. margin-top: -15px;
  617. display: block;
  618. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  619. content: ' ';
  620. right: 0;
  621. height: 53px;
  622. z-index: 1000;
  623. width: 60px;
  624. clear: none;
  625. visibility: visible;
  626. }
  627. .ui.menu.new-menu a.item:last-child {
  628. padding-right: 30px !important;
  629. }
  630. }
  631. [v-cloak] {
  632. display: none !important;
  633. }
  634. .repos-search {
  635. padding-bottom: 0 !important;
  636. }
  637. .repos-filter {
  638. margin-top: 0 !important;
  639. border-bottom-width: 0 !important;
  640. margin-bottom: 2px !important;
  641. }
  642. #user-heatmap {
  643. width: 107%; // Fixes newest contributions not showing
  644. text-align: center;
  645. svg:not(:root) {
  646. overflow: inherit;
  647. padding: 0 !important;
  648. }
  649. @media only screen and (max-width: 1200px) {
  650. & {
  651. display: none;
  652. }
  653. }
  654. }
  655. .heatmap-color-0 {
  656. background-color: #f4f4f4;
  657. }
  658. .heatmap-color-1 {
  659. background-color: #d7e5db;
  660. }
  661. .heatmap-color-2 {
  662. background-color: #adc7ab;
  663. }
  664. .heatmap-color-3 {
  665. background-color: #83a87b;
  666. }
  667. .heatmap-color-4 {
  668. background-color: #598a4b;
  669. }
  670. .heatmap-color-5 {
  671. background-color: #2f6b1b;
  672. }
  673. .archived-icon{
  674. color: lighten(#000, 70%) !important;
  675. }
  676. .archived-icon{
  677. color: lighten(#000, 70%) !important;
  678. }
  679. .oauth2-authorize-application-box {
  680. margin-top: 3em !important;
  681. }