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

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