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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281
  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. .blame .lines-num {
  849. padding: 0 !important;
  850. background-color: #f5f5f5;
  851. }
  852. .blame .lines-code {
  853. padding: 0 !important;
  854. }
  855. .lines-commit {
  856. vertical-align: top;
  857. color: #999999;
  858. padding: 0 !important;
  859. background: #f5f5f5;
  860. width: 1%;
  861. -moz-user-select: none;
  862. -ms-user-select: none;
  863. -webkit-user-select: none;
  864. user-select: none;
  865. .blame-info {
  866. width: 350px;
  867. max-width: 350px;
  868. display: block;
  869. user-select: none;
  870. padding: 0 0 0 10px;
  871. .blame-data {
  872. display: flex;
  873. font-family: @default-fonts;
  874. .blame-message {
  875. flex-grow: 2;
  876. overflow: hidden;
  877. white-space: nowrap;
  878. text-overflow: ellipsis;
  879. line-height: 20px;
  880. }
  881. .blame-time,
  882. .blame-avatar {
  883. flex-shrink: 0;
  884. }
  885. }
  886. }
  887. .ui.avatar.image {
  888. height: 18px;
  889. width: 18px;
  890. }
  891. }
  892. .lines-code,
  893. .lines-commit {
  894. .bottom-line {
  895. border-bottom: 1px solid #eaecef;
  896. }
  897. }
  898. .code-view {
  899. overflow: auto;
  900. overflow-x: auto;
  901. overflow-y: hidden;
  902. &.has-context-menu {
  903. overflow: visible;
  904. overflow-x: visible;
  905. overflow-y: visible;
  906. }
  907. *:not(.fa):not(.svg):not(.icon) {
  908. font-size: 12px;
  909. font-family: @monospaced-fonts, monospace;
  910. line-height: 20px;
  911. }
  912. table {
  913. width: 100%;
  914. }
  915. .lines-code.active {
  916. background: #fffbdd !important;
  917. }
  918. }
  919. .octicon-tiny {
  920. font-size: .85714286rem;
  921. }
  922. .ui.basic.blue.button,
  923. .ui.basic.blue.buttons .button {
  924. box-shadow: inset 0 0 0 1px #1678c2 !important;
  925. color: #1678c2 !important;
  926. }
  927. .ui.label > img {
  928. width: auto !important;
  929. vertical-align: middle;
  930. height: 2.1666em !important;
  931. }
  932. .svg {
  933. span.green & {
  934. color: #21ba45;
  935. }
  936. span.red & {
  937. color: #db2828;
  938. }
  939. span.purple & {
  940. color: #a333c8;
  941. }
  942. }
  943. .ui.popup .ui.label {
  944. margin-bottom: .4em;
  945. }
  946. .color-icon {
  947. margin-right: .5em;
  948. margin-left: .5em;
  949. display: inline-block;
  950. border: 0 solid rgba(0, 0, 0, .2);
  951. border-radius: 100%;
  952. height: 14px;
  953. width: 14px;
  954. position: relative;
  955. top: 2px;
  956. }
  957. .ui.label > .color-icon {
  958. margin-left: 0;
  959. }
  960. .invisible {
  961. visibility: hidden;
  962. }
  963. /* https://github.com/go-gitea/gitea/issues/10210 */
  964. .ui.attached.segment ~ .ui.top.attached.header {
  965. margin-top: 1rem;
  966. }
  967. table th[data-sortt-asc],
  968. table th[data-sortt-desc] {
  969. &:hover {
  970. background: rgba(0, 0, 0, .1) !important;
  971. cursor: pointer !important;
  972. }
  973. .svg {
  974. margin-left: .25rem;
  975. }
  976. }
  977. /* limit width of all direct dropdown menu children */
  978. /* https://github.com/go-gitea/gitea/pull/10835 */
  979. .dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {
  980. max-width: 300px;
  981. overflow-x: hidden;
  982. text-overflow: ellipsis;
  983. }
  984. .dropdown:not(.selection) > .menu.review-box > * {
  985. @media only screen and (max-height: 700px) {
  986. .CodeMirror,
  987. .CodeMirror-scroll {
  988. min-height: 100px;
  989. }
  990. }
  991. }
  992. .text-label {
  993. display: inline-flex !important;
  994. align-items: center !important;
  995. }
  996. .text-label .color-icon {
  997. position: static !important;
  998. }
  999. .emoji,
  1000. .reaction {
  1001. font-size: 1.5em;
  1002. line-height: 1.2;
  1003. font-style: normal !important;
  1004. font-weight: normal !important;
  1005. vertical-align: middle;
  1006. }
  1007. #issue-title > .emoji {
  1008. font-size: 1em;
  1009. }
  1010. .commit-summary > .emoji {
  1011. font-size: 1em;
  1012. }
  1013. .label > .emoji {
  1014. font-size: 1em;
  1015. }
  1016. .dropdown .emoji {
  1017. font-size: 1em;
  1018. }
  1019. .emoji img,
  1020. .reaction img {
  1021. border-width: 0 !important;
  1022. margin: 0 !important;
  1023. width: 1em !important;
  1024. height: 1em !important;
  1025. vertical-align: middle !important;
  1026. }
  1027. /* https://github.com/go-gitea/gitea/pull/11486 */
  1028. .ui.sub.header {
  1029. text-transform: none;
  1030. }
  1031. .ui.tabular.menu {
  1032. .item {
  1033. padding: 11px 12px;
  1034. color: rgba(0, 0, 0, .5);
  1035. }
  1036. .item:hover {
  1037. color: rgba(0, 0, 0, .8);
  1038. }
  1039. .item.active {
  1040. color: rgba(0, 0, 0, .9);
  1041. margin-top: 1px; /* offset fomantic's margin-bottom: -1px */
  1042. }
  1043. }
  1044. .ui.secondary.pointing.menu .item {
  1045. padding: 12px;
  1046. }
  1047. .ui.header > .ui.label.compact {
  1048. margin-top: inherit;
  1049. }