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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287
  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", "Noto Color Emoji", "Twemoji Mozilla";
  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, sans-serif;);
  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, sans-serif;);
  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, sans-serif;);
  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, sans-serif;);
  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, sans-serif;);
  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, sans-serif;);
  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. .error {
  388. &.header {
  389. background-color: #ffe8e6 !important;
  390. border-color: #db2828;
  391. }
  392. &.segment {
  393. border-color: #db2828;
  394. }
  395. }
  396. .warning {
  397. &.header {
  398. background-color: #f9edbe !important;
  399. border-color: #efc16b;
  400. }
  401. &.segment {
  402. border-color: #efc16b;
  403. }
  404. }
  405. .info {
  406. &.segment {
  407. border: 1px solid #c5d5dd;
  408. &.top {
  409. background-color: #e6f1f6 !important;
  410. h3,
  411. h4 {
  412. margin-top: 0;
  413. }
  414. h3:last-child {
  415. margin-top: 4px;
  416. }
  417. > :last-child {
  418. margin-bottom: 0;
  419. }
  420. }
  421. }
  422. }
  423. .normal.header {
  424. font-weight: normal;
  425. }
  426. .avatar.image,
  427. .avatar.image img,
  428. .avatar.image svg,
  429. .avatar.images .image,
  430. .avatar.images img,
  431. .avatar.images svg {
  432. border-radius: 3px;
  433. }
  434. .form {
  435. .fake {
  436. display: none !important;
  437. }
  438. .sub.field {
  439. margin-left: 25px;
  440. }
  441. }
  442. .sha.label {
  443. font-family: @monospaced-fonts, monospace;
  444. font-size: 13px;
  445. padding: 6px 10px 4px;
  446. font-weight: normal;
  447. margin: 0 6px;
  448. }
  449. .button.truncate {
  450. display: inline-block;
  451. max-width: 100%;
  452. overflow: hidden;
  453. text-overflow: ellipsis;
  454. vertical-align: top;
  455. white-space: nowrap;
  456. margin-right: 6px;
  457. }
  458. &.status.buttons {
  459. .svg {
  460. margin-right: 4px;
  461. }
  462. }
  463. &.inline.delete-button {
  464. padding: 8px 15px;
  465. font-weight: normal;
  466. }
  467. .background {
  468. &.red {
  469. background-color: #d95c5c !important;
  470. }
  471. &.blue {
  472. background-color: #428bca !important;
  473. }
  474. &.black {
  475. background-color: #444444;
  476. }
  477. &.grey {
  478. background-color: #767676 !important;
  479. }
  480. &.light.grey {
  481. background-color: #888888 !important;
  482. }
  483. &.green {
  484. background-color: #6cc644 !important;
  485. }
  486. &.purple {
  487. background-color: #6e5494 !important;
  488. }
  489. &.yellow {
  490. background-color: #fbbf09 !important;
  491. }
  492. &.orange {
  493. background-color: #f2711c !important;
  494. }
  495. &.gold {
  496. background-color: #a1882b !important;
  497. }
  498. }
  499. .migrate {
  500. color: #888888 !important;
  501. opacity: .5;
  502. a {
  503. color: #444444 !important;
  504. &:hover {
  505. color: #000000 !important;
  506. }
  507. }
  508. }
  509. .border {
  510. border: 1px solid;
  511. &.red {
  512. border-color: #d95c5c !important;
  513. }
  514. &.blue {
  515. border-color: #428bca !important;
  516. }
  517. &.black {
  518. border-color: #444444;
  519. }
  520. &.grey {
  521. border-color: #767676 !important;
  522. }
  523. &.light.grey {
  524. border-color: #888888 !important;
  525. }
  526. &.green {
  527. border-color: #6cc644 !important;
  528. }
  529. &.purple {
  530. border-color: #6e5494 !important;
  531. }
  532. &.yellow {
  533. border-color: #fbbd08 !important;
  534. }
  535. &.orange {
  536. border-color: #f2711c !important;
  537. }
  538. &.gold {
  539. border-color: #a1882b !important;
  540. }
  541. }
  542. .branch-tag-choice {
  543. line-height: 20px;
  544. }
  545. &.pagination.menu {
  546. @media only screen and (max-width: 767px) {
  547. .item:not(.active):not(.navigation),
  548. .item.navigation span.navigation_label {
  549. display: none;
  550. }
  551. }
  552. &.narrow .item {
  553. padding-left: 8px;
  554. padding-right: 8px;
  555. min-width: 1em;
  556. text-align: center;
  557. .icon {
  558. margin-right: 0;
  559. }
  560. }
  561. }
  562. }
  563. .file-comment {
  564. font: 12px @monospaced-fonts, monospace;
  565. color: rgba(0, 0, 0, .87);
  566. }
  567. .ui.floating.dropdown {
  568. .overflow.menu {
  569. .scrolling.menu.items {
  570. border-radius: 0 !important;
  571. box-shadow: none !important;
  572. border-bottom: 1px solid rgba(34, 36, 38, .15);
  573. }
  574. }
  575. }
  576. .user-menu > .item {
  577. width: 100%;
  578. border-radius: 0 !important;
  579. }
  580. .scrolling.menu {
  581. .item.selected {
  582. font-weight: 700 !important;
  583. }
  584. }
  585. footer {
  586. background-color: white;
  587. border-top: 1px solid #d6d6d6;
  588. width: 100%;
  589. flex-basis: 40px;
  590. color: #888888;
  591. .container {
  592. width: 100vw !important;
  593. padding: 0 .5rem;
  594. max-width: calc(100vw - 1rem) !important;
  595. .fa {
  596. width: 16px;
  597. text-align: center;
  598. color: #428bca;
  599. }
  600. .links > * {
  601. border-left: 1px solid #d6d6d6;
  602. padding-left: 8px;
  603. margin-left: 5px;
  604. &:first-child {
  605. border-left: 0;
  606. }
  607. }
  608. }
  609. .ui.language .menu {
  610. max-height: 500px;
  611. overflow-y: auto;
  612. margin-bottom: 7px;
  613. }
  614. .ui {
  615. &.left,
  616. &.right {
  617. line-height: 40px;
  618. }
  619. }
  620. }
  621. .hide {
  622. display: none;
  623. &.show-outdated {
  624. display: none !important;
  625. }
  626. &.hide-outdated {
  627. display: none !important;
  628. }
  629. }
  630. .center {
  631. text-align: center;
  632. }
  633. .generate-img(16);
  634. .generate-img(@n, @i: 1) when (@i =< @n) {
  635. .img-@{i} {
  636. width: (2px * @i) !important;
  637. height: (2px * @i) !important;
  638. }
  639. .generate-img(@n, (@i + 1));
  640. }
  641. // Conditional display
  642. @media only screen and (min-width: 768px) {
  643. .mobile-only,
  644. .ui.button.mobile-only {
  645. display: none;
  646. }
  647. // has the same behaviour of sr-only, hiding the content for
  648. // non-screenreaders, but is shown on mobile devices.
  649. .sr-mobile-only {
  650. .sr-only();
  651. }
  652. }
  653. @media only screen and (max-width: 767px) {
  654. .not-mobile {
  655. display: none;
  656. }
  657. }
  658. // Accessibility
  659. .sr-only {
  660. position: absolute;
  661. width: 1px;
  662. height: 1px;
  663. padding: 0;
  664. margin: -1px;
  665. overflow: hidden;
  666. clip: rect(0, 0, 0, 0);
  667. border: 0;
  668. }
  669. .sr-only-focusable:active,
  670. .sr-only-focusable:focus {
  671. position: static;
  672. width: auto;
  673. height: auto;
  674. margin: 0;
  675. overflow: visible;
  676. clip: auto;
  677. }
  678. @media only screen and (max-width: 991px) and (min-width: 768px) {
  679. .ui.container {
  680. width: 95%;
  681. }
  682. }
  683. .ui.menu.new-menu {
  684. justify-content: center !important;
  685. padding-top: 15px !important;
  686. margin-top: -15px !important;
  687. margin-bottom: 15px !important;
  688. background: #fafafa;
  689. border-width: 1px !important;
  690. }
  691. @media only screen and (max-width: 1200px) {
  692. .ui.menu.new-menu {
  693. overflow-x: auto !important;
  694. justify-content: left !important;
  695. padding-bottom: 2px;
  696. }
  697. .ui.menu.new-menu::-webkit-scrollbar {
  698. height: 8px;
  699. display: none;
  700. }
  701. .ui.menu.new-menu:hover::-webkit-scrollbar {
  702. display: block;
  703. }
  704. .ui.menu.new-menu::-webkit-scrollbar-track {
  705. background: rgba(0, 0, 0, .01);
  706. }
  707. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  708. background: rgba(0, 0, 0, .2);
  709. }
  710. .ui.menu.new-menu:after {
  711. position: absolute;
  712. margin-top: -15px;
  713. display: block;
  714. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  715. content: ' ';
  716. right: 0;
  717. height: 53px;
  718. z-index: 1000;
  719. width: 60px;
  720. clear: none;
  721. visibility: visible;
  722. }
  723. .ui.menu.new-menu a.item:last-child {
  724. padding-right: 30px !important;
  725. }
  726. }
  727. [v-cloak] {
  728. display: none !important;
  729. }
  730. .repos-search {
  731. padding-bottom: 0 !important;
  732. }
  733. .repos-filter {
  734. margin-top: 0 !important;
  735. border-bottom-width: 0 !important;
  736. margin-bottom: 2px !important;
  737. }
  738. #user-heatmap {
  739. width: 107%; // Fixes newest contributions not showing
  740. text-align: center;
  741. svg:not(:root) {
  742. overflow: inherit;
  743. padding: 0 !important;
  744. }
  745. @media only screen and (max-width: 1200px) {
  746. & {
  747. display: none;
  748. }
  749. }
  750. .total-contributions {
  751. text-align: left;
  752. font-weight: 500;
  753. margin-top: 0;
  754. }
  755. }
  756. .heatmap-color-0 {
  757. background-color: #f4f4f4;
  758. }
  759. .heatmap-color-1 {
  760. background-color: #d8efbf;
  761. }
  762. .heatmap-color-2 {
  763. background-color: #9fdb81;
  764. }
  765. .heatmap-color-3 {
  766. background-color: #66c74b;
  767. }
  768. .heatmap-color-4 {
  769. background-color: #609926;
  770. }
  771. .heatmap-color-5 {
  772. background-color: #025900;
  773. }
  774. .activity-bar-graph {
  775. background-color: #6cc644;
  776. color: #000000;
  777. }
  778. .activity-bar-graph-alt {
  779. color: #000000;
  780. }
  781. .archived-icon {
  782. color: lighten(#000000, 70%) !important;
  783. }
  784. .oauth2-authorize-application-box {
  785. margin-top: 3em !important;
  786. }
  787. /* multiple radio or checkboxes as inline element */
  788. .inline-grouped-list {
  789. display: inline-block;
  790. vertical-align: top;
  791. > .ui {
  792. display: block;
  793. margin-top: 5px;
  794. margin-bottom: 10px;
  795. &:first-child {
  796. margin-top: 1px;
  797. }
  798. }
  799. }
  800. i.icons .icon:first-child {
  801. margin-right: 0;
  802. }
  803. i.icon.centerlock {
  804. top: 1em;
  805. }
  806. .ui.label {
  807. padding: .3em .5em;
  808. }
  809. .ui.label > .detail .icons {
  810. margin-right: .25em;
  811. }
  812. .ui.label > .detail .icons .icon {
  813. margin-right: 0;
  814. }
  815. .lines-num {
  816. padding-left: 10px;
  817. padding-right: 10px;
  818. text-align: right !important;
  819. color: rgba(27, 31, 35, .3);
  820. width: 1%;
  821. user-select: none;
  822. font-family: @monospaced-fonts, monospace;
  823. span {
  824. &.bottom-line {
  825. &:after {
  826. border-bottom: 1px solid #eaecef;
  827. }
  828. }
  829. &:after {
  830. content: attr(data-line-number);
  831. line-height: 20px !important;
  832. padding: 0 10px;
  833. cursor: pointer;
  834. display: block;
  835. }
  836. }
  837. }
  838. .lines-type-marker {
  839. vertical-align: top;
  840. }
  841. .lines-num,
  842. .lines-code {
  843. padding-top: 0;
  844. padding-bottom: 0;
  845. vertical-align: top;
  846. pre,
  847. ol {
  848. background-color: inherit;
  849. margin: 0;
  850. padding: 0 !important;
  851. li {
  852. display: block;
  853. width: calc(100% - 1ch);
  854. padding-left: 1ch;
  855. }
  856. }
  857. }
  858. .lines-code code {
  859. white-space: pre;
  860. }
  861. .lines-code.active,
  862. .lines-code .active {
  863. background: #fffbdd !important;
  864. }
  865. .blame .lines-num {
  866. padding: 0 !important;
  867. background-color: #f5f5f5;
  868. }
  869. .blame .lines-code {
  870. padding: 0 !important;
  871. }
  872. .lines-commit {
  873. vertical-align: top;
  874. color: #999999;
  875. padding: 0 !important;
  876. background: #f5f5f5;
  877. width: 1%;
  878. -moz-user-select: none;
  879. -ms-user-select: none;
  880. -webkit-user-select: none;
  881. user-select: none;
  882. .blame-info {
  883. width: 350px;
  884. max-width: 350px;
  885. display: block;
  886. user-select: none;
  887. padding: 0 0 0 10px;
  888. .blame-data {
  889. display: flex;
  890. font-family: @default-fonts, sans-serif;
  891. .blame-message {
  892. flex-grow: 2;
  893. overflow: hidden;
  894. white-space: nowrap;
  895. text-overflow: ellipsis;
  896. line-height: 20px;
  897. }
  898. .blame-time,
  899. .blame-avatar {
  900. flex-shrink: 0;
  901. }
  902. }
  903. }
  904. .ui.avatar.image {
  905. height: 18px;
  906. width: 18px;
  907. }
  908. }
  909. .lines-code,
  910. .lines-commit {
  911. .bottom-line {
  912. border-bottom: 1px solid #eaecef;
  913. }
  914. }
  915. .code-view {
  916. overflow: auto;
  917. overflow-x: auto;
  918. overflow-y: hidden;
  919. &.has-context-menu {
  920. overflow: visible;
  921. overflow-x: visible;
  922. overflow-y: visible;
  923. }
  924. *:not(.fa):not(.svg):not(.icon) {
  925. font-size: 12px;
  926. font-family: @monospaced-fonts, monospace;
  927. line-height: 20px;
  928. }
  929. table {
  930. width: 100%;
  931. }
  932. }
  933. .octicon-tiny {
  934. font-size: .85714286rem;
  935. }
  936. .ui.basic.blue.button,
  937. .ui.basic.blue.buttons .button {
  938. box-shadow: inset 0 0 0 1px #1678c2 !important;
  939. color: #1678c2 !important;
  940. }
  941. .ui.label > img {
  942. width: auto !important;
  943. vertical-align: middle;
  944. height: 2.1666em !important;
  945. }
  946. .svg {
  947. span.green & {
  948. color: #21ba45;
  949. }
  950. span.red & {
  951. color: #db2828;
  952. }
  953. span.purple & {
  954. color: #a333c8;
  955. }
  956. }
  957. .ui.popup .ui.label {
  958. margin-bottom: .4em;
  959. }
  960. .color-icon {
  961. margin-right: .5em;
  962. margin-left: .5em;
  963. display: inline-block;
  964. border: 0 solid rgba(0, 0, 0, .2);
  965. border-radius: 100%;
  966. height: 14px;
  967. width: 14px;
  968. position: relative;
  969. top: 2px;
  970. }
  971. .ui.label > .color-icon {
  972. margin-left: 0;
  973. }
  974. .invisible {
  975. visibility: hidden;
  976. }
  977. /* https://github.com/go-gitea/gitea/issues/10210 */
  978. .ui.attached.segment ~ .ui.top.attached.header {
  979. margin-top: 1rem;
  980. }
  981. table th[data-sortt-asc],
  982. table th[data-sortt-desc] {
  983. &:hover {
  984. background: rgba(0, 0, 0, .1) !important;
  985. cursor: pointer !important;
  986. }
  987. .svg {
  988. margin-left: .25rem;
  989. }
  990. }
  991. /* limit width of all direct dropdown menu children */
  992. /* https://github.com/go-gitea/gitea/pull/10835 */
  993. .dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {
  994. max-width: 300px;
  995. overflow-x: hidden;
  996. text-overflow: ellipsis;
  997. }
  998. .dropdown:not(.selection) > .menu.review-box > * {
  999. @media only screen and (max-height: 700px) {
  1000. .CodeMirror,
  1001. .CodeMirror-scroll {
  1002. min-height: 100px;
  1003. }
  1004. }
  1005. }
  1006. .text-label {
  1007. display: inline-flex !important;
  1008. align-items: center !important;
  1009. }
  1010. .text-label .color-icon {
  1011. position: static !important;
  1012. }
  1013. .emoji,
  1014. .reaction {
  1015. font-size: 1.25em;
  1016. line-height: 1;
  1017. font-style: normal !important;
  1018. font-weight: normal !important;
  1019. vertical-align: -.075em;
  1020. }
  1021. .emoji img,
  1022. .reaction img {
  1023. border-width: 0 !important;
  1024. margin: 0 !important;
  1025. width: 1em !important;
  1026. height: 1em !important;
  1027. vertical-align: -.15em;
  1028. }
  1029. /* https://github.com/go-gitea/gitea/pull/11486 */
  1030. .ui.sub.header {
  1031. text-transform: none;
  1032. }
  1033. .ui.tabular.menu {
  1034. .item {
  1035. padding: 11px 12px;
  1036. color: rgba(0, 0, 0, .5);
  1037. }
  1038. .item:hover {
  1039. color: rgba(0, 0, 0, .8);
  1040. }
  1041. .item.active {
  1042. color: rgba(0, 0, 0, .9);
  1043. margin-top: 1px; /* offset fomantic's margin-bottom: -1px */
  1044. }
  1045. }
  1046. .ui.secondary.pointing.menu .item {
  1047. padding: 12px;
  1048. }
  1049. .ui.header > .ui.label.compact {
  1050. margin-top: inherit;
  1051. }
  1052. .flash-error details code {
  1053. display: block;
  1054. text-align: left;
  1055. }