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

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