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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194
  1. /* roboto-regular - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  2. @font-face {
  3. font-family: 'Roboto';
  4. font-style: normal;
  5. font-weight: 400;
  6. src:
  7. local('Roboto'),
  8. local('Roboto-Regular'),
  9. /* Chrome 26+, Opera 23+, Firefox 39+ */
  10. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff2') format('woff2'),
  11. /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  12. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff') format('woff');
  13. }
  14. /* roboto-italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  15. @font-face {
  16. font-family: 'Roboto';
  17. font-style: italic;
  18. font-weight: 400;
  19. src:
  20. local('Roboto Italic'),
  21. local('Roboto-Italic'),
  22. /* Chrome 26+, Opera 23+, Firefox 39+ */
  23. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff2') format('woff2'),
  24. /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  25. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff') format('woff');
  26. }
  27. /* roboto-700 - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  28. @font-face {
  29. font-family: 'Roboto';
  30. font-style: normal;
  31. font-weight: 700;
  32. src:
  33. local('Roboto Bold'),
  34. local('Roboto-Bold'),
  35. /* Chrome 26+, Opera 23+, Firefox 39+ */
  36. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff2') format('woff2'),
  37. /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  38. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff') format('woff');
  39. }
  40. /* roboto-700italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  41. @font-face {
  42. font-family: 'Roboto';
  43. font-style: italic;
  44. font-weight: 700;
  45. src:
  46. local('Roboto Bold Italic'),
  47. local('Roboto-BoldItalic'),
  48. /* Chrome 26+, Opera 23+, Firefox 39+ */
  49. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff2') format('woff2'),
  50. /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  51. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff') format('woff');
  52. }
  53. @font-face {
  54. font-family: 'Yu Gothic';
  55. src: local('Yu Gothic Medium');
  56. font-weight: 400;
  57. }
  58. @font-face {
  59. font-family: 'Yu Gothic';
  60. src: local('Yu Gothic Bold');
  61. font-weight: 700;
  62. }
  63. @default-fonts: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial;
  64. @monospaced-fonts: 'SF Mono', Consolas, Menlo, 'Liberation Mono', Monaco, 'Lucida Console';
  65. .override-fonts(@fonts) {
  66. textarea {
  67. font-family: @fonts, sans-serif;
  68. }
  69. .markdown:not(code) {
  70. font-family: @fonts, sans-serif;
  71. }
  72. /* We're going to just override the semantic fonts here */
  73. h1,
  74. h2,
  75. h3,
  76. h4,
  77. h5 {
  78. font-family: Roboto, @fonts, sans-serif;
  79. }
  80. .home .hero h1,
  81. .home .hero h2 {
  82. font-family: 'PT Sans Narrow', Roboto, @fonts, sans-serif;
  83. }
  84. .ui.accordion .title:not(.ui),
  85. .ui.button,
  86. .ui.card > .content > .header.ui.card > .content > .header,
  87. .ui.category.search > .results .category > .name,
  88. .ui.form input:not([type]),
  89. .ui.form input[type="date"],
  90. .ui.form input[type="datetime-local"],
  91. .ui.form input[type="email"],
  92. .ui.form input[type="file"],
  93. .ui.form input[type="number"],
  94. .ui.form input[type="password"],
  95. .ui.form input[type="search"],
  96. .ui.form input[type="tel"],
  97. .ui.form input[type="text"],
  98. .ui.form input[type="time"],
  99. .ui.form input[type="url"],
  100. .ui.header,
  101. .ui.items > .item > .content > .header,
  102. .ui.list .list > .item .header,
  103. .ui.list > .item .header,
  104. .ui.menu,
  105. .ui.message .header,
  106. .ui.modal > .header,
  107. .ui.popup > .header,
  108. .ui.search > .results .result .title,
  109. .ui.search > .results > .message .header,
  110. body,
  111. .ui.input > input,
  112. .ui.input input,
  113. .ui.statistics .statistic > .value,
  114. .ui.statistic > .value,
  115. .ui.statistics .statistic > .label,
  116. .ui.statistic > .label,
  117. .ui.steps .step .title,
  118. .ui.text.container,
  119. .ui.language > .menu > .item& {
  120. font-family: Roboto, @fonts, sans-serif;
  121. }
  122. }
  123. .override-fonts(@default-fonts);
  124. body {
  125. background-color: #ffffff;
  126. overflow-y: auto;
  127. -webkit-font-smoothing: antialiased;
  128. display: flex;
  129. flex-direction: column;
  130. }
  131. @ja-fonts: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Source Han Sans JP', 'Noto Sans CJK JP', 'Droid Sans Japanese', 'Meiryo', 'MS PGothic';
  132. :lang(ja) {
  133. .override-fonts(@default-fonts, @ja-fonts;);
  134. }
  135. @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;
  136. :lang(zh-CN) {
  137. .override-fonts(@default-fonts, @zh-CN-fonts;);
  138. }
  139. @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;
  140. :lang(zh-TW) {
  141. .override-fonts(@default-fonts, @zh-TW-fonts;);
  142. }
  143. @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;
  144. :lang(zh-HK) {
  145. .override-fonts(@default-fonts, @zh-HK-fonts;);
  146. }
  147. @ko-fonts: 'Apple SD Gothic Neo', 'NanumBarunGothic', 'Malgun Gothic', 'Gulim', 'Dotum', 'Nanum Gothic', 'Source Han Sans KR', 'Noto Sans CJK KR';
  148. :lang(ko) {
  149. .override-fonts(@default-fonts, @ko-fonts;);
  150. }
  151. img {
  152. border-radius: 3px;
  153. }
  154. table {
  155. border-collapse: collapse;
  156. }
  157. a {
  158. cursor: pointer;
  159. }
  160. .rounded {
  161. border-radius: 0.28571429rem !important;
  162. }
  163. .wrap {
  164. word-wrap: break-word;
  165. word-break: break-all;
  166. }
  167. pre,
  168. code,
  169. .mono {
  170. font: 12px @monospaced-fonts, monospace;
  171. &.raw {
  172. padding: 7px 12px;
  173. margin: 10px 0;
  174. background-color: #f8f8f8;
  175. border: 1px solid #dddddd;
  176. border-radius: 3px;
  177. font-size: 13px;
  178. line-height: 1.5;
  179. overflow: auto;
  180. }
  181. &.wrap {
  182. white-space: pre-wrap;
  183. word-break: break-all;
  184. overflow-wrap: break-word;
  185. word-wrap: break-word;
  186. }
  187. }
  188. .dont-break-out {
  189. overflow-wrap: break-word;
  190. word-wrap: break-word;
  191. word-break: break-all;
  192. hyphens: auto;
  193. }
  194. .full.height {
  195. flex-grow: 1;
  196. padding-bottom: 80px;
  197. }
  198. .following.bar {
  199. z-index: 900;
  200. left: 0;
  201. margin: 0 !important;
  202. &.light {
  203. background-color: white;
  204. border-bottom: 1px solid #dddddd;
  205. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  206. }
  207. .column .menu {
  208. margin-top: 0;
  209. }
  210. .top.menu a.item.brand {
  211. padding-left: 0;
  212. }
  213. .brand .ui.mini.image {
  214. width: 30px;
  215. }
  216. .top.menu a.item:hover,
  217. .top.menu .dropdown.item:hover,
  218. .top.menu .dropdown.item.active {
  219. background-color: transparent;
  220. }
  221. .top.menu a.item:hover {
  222. color: rgba(0, 0, 0, 0.45);
  223. }
  224. .top.menu .menu {
  225. z-index: 900;
  226. }
  227. .octicon {
  228. &.fitted {
  229. margin-right: 0;
  230. }
  231. margin-right: 0.75em;
  232. }
  233. .searchbox {
  234. background-color: #f4f4f4 !important;
  235. &:focus {
  236. background-color: #e9e9e9 !important;
  237. }
  238. }
  239. .text .octicon {
  240. width: 16px;
  241. text-align: center;
  242. }
  243. #navbar {
  244. width: 100vw;
  245. min-height: 52px;
  246. padding: 0 0.5rem;
  247. }
  248. #navbar .brand {
  249. margin: 0;
  250. }
  251. @media only screen and (max-width: 767px) {
  252. #navbar:not(.shown) > *:not(:first-child) {
  253. display: none;
  254. }
  255. }
  256. }
  257. .right.stackable.menu {
  258. // responsive fix: this makes sure that the right menu when the page
  259. // is on mobile view will have elements stacked on top of each other.
  260. // no, stackable won't work on right menus.
  261. margin-left: auto;
  262. display: flex;
  263. align-items: inherit;
  264. flex-direction: inherit;
  265. }
  266. .ui {
  267. &.left {
  268. float: left;
  269. }
  270. &.right {
  271. float: right;
  272. }
  273. &.button,
  274. &.menu .item {
  275. user-select: auto;
  276. }
  277. &.container {
  278. &.fluid {
  279. &.padded {
  280. padding: 0 10px 0 10px;
  281. }
  282. }
  283. }
  284. &.form {
  285. .ui.button {
  286. font-weight: normal;
  287. }
  288. }
  289. &.floating.label {
  290. z-index: 10;
  291. }
  292. &.transparent.label {
  293. background-color: transparent;
  294. }
  295. &.nopadding {
  296. padding: 0;
  297. }
  298. &.menu,
  299. &.vertical.menu,
  300. &.segment {
  301. box-shadow: none;
  302. }
  303. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  304. /* This fixes the commit graph button on the commits page */
  305. .menu:not(.vertical) .item > .button.compact {
  306. padding: 0.58928571em 1.125em;
  307. }
  308. .menu:not(.vertical) .item > .button.small {
  309. font-size: 0.92857143rem;
  310. }
  311. &.menu .ui.dropdown.item .menu .item {
  312. width: 100%;
  313. }
  314. &.dropdown .menu > .item > .floating.label {
  315. z-index: 11;
  316. }
  317. &.dropdown .menu .menu > .item > .floating.label {
  318. z-index: 21;
  319. }
  320. &.dropdown .menu > .header {
  321. font-size: 0.8em;
  322. }
  323. .text {
  324. &.red {
  325. color: #d95c5c !important;
  326. a {
  327. color: #d95c5c !important;
  328. &:hover {
  329. color: #e67777 !important;
  330. }
  331. }
  332. }
  333. &.blue {
  334. color: #428bca !important;
  335. a {
  336. color: #1155cc !important;
  337. &:hover {
  338. color: #428bca !important;
  339. }
  340. }
  341. }
  342. &.black {
  343. color: #444444;
  344. &:hover {
  345. color: #000000;
  346. }
  347. }
  348. &.grey {
  349. color: #767676 !important;
  350. a {
  351. color: #444444 !important;
  352. &:hover {
  353. color: #000000 !important;
  354. }
  355. }
  356. }
  357. &.light.grey {
  358. color: #888888 !important;
  359. }
  360. &.green {
  361. color: #6cc644 !important;
  362. }
  363. &.purple {
  364. color: #6e5494 !important;
  365. }
  366. &.yellow {
  367. color: #fbbd08 !important;
  368. }
  369. &.gold {
  370. color: #a1882b !important;
  371. }
  372. &.left {
  373. text-align: left !important;
  374. }
  375. &.right {
  376. text-align: right !important;
  377. }
  378. &.small {
  379. font-size: 0.75em;
  380. }
  381. &.normal {
  382. font-weight: normal;
  383. }
  384. &.bold {
  385. font-weight: bold;
  386. }
  387. &.italic {
  388. font-style: italic;
  389. }
  390. &.truncate {
  391. overflow: hidden;
  392. text-overflow: ellipsis;
  393. white-space: nowrap;
  394. display: inline-block;
  395. }
  396. &.thin {
  397. font-weight: normal;
  398. }
  399. &.middle {
  400. vertical-align: middle;
  401. }
  402. &.nopadding {
  403. padding: 0;
  404. }
  405. &.nomargin {
  406. margin: 0;
  407. }
  408. }
  409. .message {
  410. text-align: center;
  411. }
  412. .message > ul {
  413. margin-left: auto;
  414. margin-right: auto;
  415. display: table;
  416. text-align: left;
  417. }
  418. &.bottom.attached.message {
  419. font-weight: bold;
  420. text-align: left;
  421. color: black;
  422. .pull-right {
  423. color: black;
  424. }
  425. & > span,
  426. .pull-right > span {
  427. color: #21ba45;
  428. }
  429. }
  430. .header > i + .content {
  431. padding-left: 0.75rem;
  432. vertical-align: middle;
  433. }
  434. .warning {
  435. &.header {
  436. background-color: #f9edbe !important;
  437. border-color: #efc16b;
  438. }
  439. &.segment {
  440. border-color: #efc16b;
  441. }
  442. }
  443. .info {
  444. &.segment {
  445. border: 1px solid #c5d5dd;
  446. &.top {
  447. background-color: #e6f1f6 !important;
  448. h3,
  449. h4 {
  450. margin-top: 0;
  451. }
  452. h3:last-child {
  453. margin-top: 4px;
  454. }
  455. > :last-child {
  456. margin-bottom: 0;
  457. }
  458. }
  459. }
  460. }
  461. .normal.header {
  462. font-weight: normal;
  463. }
  464. .avatar.image {
  465. border-radius: 3px;
  466. }
  467. .form {
  468. .fake {
  469. display: none !important;
  470. }
  471. .sub.field {
  472. margin-left: 25px;
  473. }
  474. }
  475. .sha.label {
  476. font-family: @monospaced-fonts, monospace;
  477. font-size: 13px;
  478. padding: 6px 10px 4px 10px;
  479. font-weight: normal;
  480. margin: 0 6px;
  481. }
  482. .button.truncate {
  483. display: inline-block;
  484. max-width: 100%;
  485. overflow: hidden;
  486. text-overflow: ellipsis;
  487. vertical-align: top;
  488. white-space: nowrap;
  489. margin-right: 6px;
  490. }
  491. &.status.buttons {
  492. .octicon {
  493. margin-right: 4px;
  494. }
  495. }
  496. &.inline.delete-button {
  497. padding: 8px 15px;
  498. font-weight: normal;
  499. }
  500. .background {
  501. &.red {
  502. background-color: #d95c5c !important;
  503. }
  504. &.blue {
  505. background-color: #428bca !important;
  506. }
  507. &.black {
  508. background-color: #444444;
  509. }
  510. &.grey {
  511. background-color: #767676 !important;
  512. }
  513. &.light.grey {
  514. background-color: #888888 !important;
  515. }
  516. &.green {
  517. background-color: #6cc644 !important;
  518. }
  519. &.purple {
  520. background-color: #6e5494 !important;
  521. }
  522. &.yellow {
  523. background-color: #fbbf09 !important;
  524. }
  525. &.gold {
  526. background-color: #a1882b !important;
  527. }
  528. }
  529. .migrate {
  530. color: #888888 !important;
  531. opacity: 0.5;
  532. a {
  533. color: #444444 !important;
  534. &:hover {
  535. color: #000000 !important;
  536. }
  537. }
  538. }
  539. .border {
  540. border: 1px solid;
  541. &.red {
  542. border-color: #d95c5c !important;
  543. }
  544. &.blue {
  545. border-color: #428bca !important;
  546. }
  547. &.black {
  548. border-color: #444444;
  549. }
  550. &.grey {
  551. border-color: #767676 !important;
  552. }
  553. &.light.grey {
  554. border-color: #888888 !important;
  555. }
  556. &.green {
  557. border-color: #6cc644 !important;
  558. }
  559. &.purple {
  560. border-color: #6e5494 !important;
  561. }
  562. &.yellow {
  563. border-color: #fbbd08 !important;
  564. }
  565. &.gold {
  566. border-color: #a1882b !important;
  567. }
  568. }
  569. .branch-tag-choice {
  570. line-height: 20px;
  571. }
  572. &.pagination.menu {
  573. @media only screen and (max-width: 767px) {
  574. .item:not(.active):not(.navigation),
  575. .item.navigation span.navigation_label {
  576. display: none;
  577. }
  578. }
  579. }
  580. }
  581. .file-comment {
  582. font: 12px @monospaced-fonts, monospace;
  583. color: rgba(0, 0, 0, 0.87);
  584. }
  585. .ui.floating.dropdown {
  586. .overflow.menu {
  587. .scrolling.menu.items {
  588. border-radius: 0 !important;
  589. box-shadow: none !important;
  590. border-bottom: 1px solid rgba(34, 36, 38, 0.15);
  591. }
  592. }
  593. }
  594. .user-menu > .item {
  595. width: 100%;
  596. border-radius: 0 !important;
  597. }
  598. .scrolling.menu {
  599. .item.selected {
  600. font-weight: 700 !important;
  601. }
  602. }
  603. footer {
  604. background-color: white;
  605. border-top: 1px solid #d6d6d6;
  606. width: 100%;
  607. flex-basis: 40px;
  608. color: #888888;
  609. .container {
  610. width: 100vw !important;
  611. padding: 0 0.5rem;
  612. max-width: calc(100vw - 1rem) !important;
  613. .fa {
  614. width: 16px;
  615. text-align: center;
  616. color: #428bca;
  617. }
  618. .links > * {
  619. border-left: 1px solid #d6d6d6;
  620. padding-left: 8px;
  621. margin-left: 5px;
  622. &:first-child {
  623. border-left: 0;
  624. }
  625. }
  626. }
  627. .ui.language .menu {
  628. max-height: 500px;
  629. overflow-y: auto;
  630. margin-bottom: 7px;
  631. }
  632. .ui {
  633. &.left,
  634. &.right {
  635. line-height: 40px;
  636. }
  637. }
  638. }
  639. .hide {
  640. display: none;
  641. &.show-outdated {
  642. display: none !important;
  643. }
  644. &.hide-outdated {
  645. display: none !important;
  646. }
  647. }
  648. .center {
  649. text-align: center;
  650. }
  651. .generate-img(16);
  652. .generate-img(@n, @i: 1) when (@i =< @n) {
  653. .img-@{i} {
  654. width: (2px * @i) !important;
  655. height: (2px * @i) !important;
  656. }
  657. .generate-img(@n, (@i + 1));
  658. }
  659. // Conditional display
  660. @media only screen and (min-width: 768px) {
  661. .mobile-only,
  662. .ui.button.mobile-only {
  663. display: none;
  664. }
  665. // has the same behaviour of sr-only, hiding the content for
  666. // non-screenreaders, but is shown on mobile devices.
  667. .sr-mobile-only {
  668. .sr-only();
  669. }
  670. }
  671. @media only screen and (max-width: 767px) {
  672. .not-mobile {
  673. display: none;
  674. }
  675. }
  676. // Accessibility
  677. .sr-only {
  678. position: absolute;
  679. width: 1px;
  680. height: 1px;
  681. padding: 0;
  682. margin: -1px;
  683. overflow: hidden;
  684. clip: rect(0, 0, 0, 0);
  685. border: 0;
  686. }
  687. .sr-only-focusable:active,
  688. .sr-only-focusable:focus {
  689. position: static;
  690. width: auto;
  691. height: auto;
  692. margin: 0;
  693. overflow: visible;
  694. clip: auto;
  695. }
  696. @media only screen and (max-width: 991px) and (min-width: 768px) {
  697. .ui.container {
  698. width: 95%;
  699. }
  700. }
  701. /* Overrides some styles of the Highlight.js plugin */
  702. .hljs {
  703. background: inherit !important;
  704. padding: 0 !important;
  705. }
  706. .ui.menu.new-menu {
  707. justify-content: center !important;
  708. padding-top: 15px !important;
  709. margin-top: -15px !important;
  710. margin-bottom: 15px !important;
  711. background-color: #fafafa !important;
  712. border-width: 1px !important;
  713. }
  714. @media only screen and (max-width: 1200px) {
  715. .ui.menu.new-menu {
  716. overflow-x: auto !important;
  717. justify-content: left !important;
  718. padding-bottom: 5px;
  719. }
  720. .ui.menu.new-menu::-webkit-scrollbar {
  721. height: 8px;
  722. display: none;
  723. }
  724. .ui.menu.new-menu:hover::-webkit-scrollbar {
  725. display: block;
  726. }
  727. .ui.menu.new-menu::-webkit-scrollbar-track {
  728. background: rgba(0, 0, 0, 0.01);
  729. }
  730. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  731. background: rgba(0, 0, 0, 0.2);
  732. }
  733. .ui.menu.new-menu:after {
  734. position: absolute;
  735. margin-top: -15px;
  736. display: block;
  737. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  738. content: ' ';
  739. right: 0;
  740. height: 53px;
  741. z-index: 1000;
  742. width: 60px;
  743. clear: none;
  744. visibility: visible;
  745. }
  746. .ui.menu.new-menu a.item:last-child {
  747. padding-right: 30px !important;
  748. }
  749. }
  750. [v-cloak] {
  751. display: none !important;
  752. }
  753. .repos-search {
  754. padding-bottom: 0 !important;
  755. }
  756. .repos-filter {
  757. margin-top: 0 !important;
  758. border-bottom-width: 0 !important;
  759. margin-bottom: 2px !important;
  760. }
  761. #user-heatmap {
  762. width: 107%; // Fixes newest contributions not showing
  763. text-align: center;
  764. svg:not(:root) {
  765. overflow: inherit;
  766. padding: 0 !important;
  767. }
  768. @media only screen and (max-width: 1200px) {
  769. & {
  770. display: none;
  771. }
  772. }
  773. .total-contributions {
  774. text-align: left;
  775. font-weight: 500;
  776. margin-top: 0;
  777. }
  778. }
  779. .heatmap-color-0 {
  780. background-color: #f4f4f4;
  781. }
  782. .heatmap-color-1 {
  783. background-color: #d8efbf;
  784. }
  785. .heatmap-color-2 {
  786. background-color: #9fdb81;
  787. }
  788. .heatmap-color-3 {
  789. background-color: #66c74b;
  790. }
  791. .heatmap-color-4 {
  792. background-color: #609926;
  793. }
  794. .heatmap-color-5 {
  795. background-color: #025900;
  796. }
  797. .activity-bar-graph {
  798. background-color: #6cc644;
  799. color: #000000;
  800. }
  801. .activity-bar-graph-alt {
  802. color: #000000;
  803. }
  804. .archived-icon {
  805. color: lighten(#000000, 70%) !important;
  806. }
  807. .oauth2-authorize-application-box {
  808. margin-top: 3em !important;
  809. }
  810. /* Tab color tweaks */
  811. .ui.tabular.menu .item {
  812. color: rgba(0, 0, 0, 0.5);
  813. }
  814. .ui.tabular.menu .item:hover {
  815. color: rgba(0, 0, 0, 0.8);
  816. }
  817. .ui.tabular.menu .item.active {
  818. color: rgba(0, 0, 0, 0.9);
  819. }
  820. /* multiple radio or checkboxes as inline element */
  821. .inline-grouped-list {
  822. display: inline-block;
  823. vertical-align: top;
  824. > .ui {
  825. display: block;
  826. margin-top: 5px;
  827. margin-bottom: 10px;
  828. &:first-child {
  829. margin-top: 1px;
  830. }
  831. }
  832. }
  833. i.icons .icon:first-child {
  834. margin-right: 0;
  835. }
  836. i.icon.centerlock {
  837. top: 1.5em;
  838. }
  839. .ui.label > .detail .icons {
  840. margin-right: 0.25em;
  841. }
  842. .ui.label > .detail .icons .icon {
  843. margin-right: 0;
  844. }
  845. .lines-num {
  846. vertical-align: top;
  847. text-align: right !important;
  848. color: #999999;
  849. background: #f5f5f5;
  850. width: 1%;
  851. user-select: none;
  852. span {
  853. &:before {
  854. content: attr(data-line-number);
  855. line-height: 20px !important;
  856. padding: 0 10px;
  857. cursor: pointer;
  858. display: block;
  859. }
  860. }
  861. }
  862. .lines-num,
  863. .lines-code {
  864. padding: 0 !important;
  865. pre,
  866. ol,
  867. .hljs {
  868. background-color: white;
  869. margin: 0;
  870. padding: 0 !important;
  871. li {
  872. display: block;
  873. width: 100%;
  874. &:before {
  875. content: ' ';
  876. }
  877. }
  878. }
  879. }
  880. .lines-commit {
  881. vertical-align: top;
  882. color: #999999;
  883. padding: 0 !important;
  884. background: #f5f5f5;
  885. width: 1%;
  886. -moz-user-select: none;
  887. -ms-user-select: none;
  888. -webkit-user-select: none;
  889. user-select: none;
  890. .blame-info {
  891. width: 350px;
  892. max-width: 350px;
  893. display: block;
  894. user-select: none;
  895. padding: 0 0 0 10px;
  896. .blame-data {
  897. display: flex;
  898. font-family: @default-fonts;
  899. .blame-message {
  900. flex-grow: 2;
  901. overflow: hidden;
  902. white-space: nowrap;
  903. text-overflow: ellipsis;
  904. line-height: 20px;
  905. }
  906. .blame-time,
  907. .blame-avatar {
  908. flex-shrink: 0;
  909. }
  910. }
  911. }
  912. .ui.avatar.image {
  913. height: 18px;
  914. width: 18px;
  915. }
  916. }
  917. .lines-num,
  918. .lines-code,
  919. .lines-commit {
  920. .bottom-line {
  921. border-bottom: 1px solid #eaecef;
  922. }
  923. }
  924. .code-view {
  925. overflow: auto;
  926. overflow-x: auto;
  927. overflow-y: hidden;
  928. &.has-context-menu {
  929. overflow: visible;
  930. overflow-x: visible;
  931. overflow-y: visible;
  932. }
  933. *:not(.fa):not(.octicon):not(.icon) {
  934. font-size: 12px;
  935. font-family: @monospaced-fonts, monospace;
  936. line-height: 20px;
  937. }
  938. table {
  939. width: 100%;
  940. }
  941. .active {
  942. background: #fff866;
  943. }
  944. }
  945. .octicon-tiny {
  946. font-size: 0.85714286rem;
  947. }
  948. .ui.basic.blue.button,
  949. .ui.basic.blue.buttons .button {
  950. box-shadow: inset 0 0 0 1px #1678c2 !important;
  951. color: #1678c2 !important;
  952. }
  953. .ui.label > img {
  954. width: auto !important;
  955. vertical-align: middle;
  956. height: 2.1666em !important;
  957. }
  958. .octicon {
  959. &.green {
  960. color: #21ba45;
  961. }
  962. &.red {
  963. color: #db2828;
  964. }
  965. &.purple {
  966. color: #a333c8;
  967. }
  968. }
  969. .ui.popup .ui.label {
  970. margin-bottom: 0.4em;
  971. }
  972. .color-icon {
  973. padding-right: 0.7em;
  974. padding-left: 0.5em;
  975. margin-right: 0.5em;
  976. margin-left: 0.5em;
  977. display: inline;
  978. border: 1px solid #ccc;
  979. border-radius: 500em;
  980. }