gitea源码

repo.css 43KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
  1. .repository .data-table .line-num,
  2. .repository .diff-file-box .file-body.file-code .lines-num,
  3. .repository .diff-file-box .code-diff tbody tr .lines-type-marker {
  4. user-select: none;
  5. }
  6. .repository .owner.dropdown {
  7. min-width: 40% !important;
  8. }
  9. .repository .unicode-escaped .escaped-code-point[data-escaped]::before {
  10. visibility: visible;
  11. content: attr(data-escaped);
  12. font-family: var(--fonts-monospace);
  13. color: var(--color-red);
  14. }
  15. .repository .unicode-escaped .escaped-code-point .char {
  16. display: none;
  17. }
  18. .repository .broken-code-point {
  19. font-family: var(--fonts-monospace);
  20. color: var(--color-blue);
  21. }
  22. .repository .unicode-escaped .ambiguous-code-point {
  23. border: 1px var(--color-yellow) solid;
  24. }
  25. .issue-content {
  26. display: flex;
  27. align-items: flex-start;
  28. gap: 16px;
  29. }
  30. @media (max-width: 767.98px) {
  31. .issue-content {
  32. flex-direction: column;
  33. }
  34. }
  35. .issue-content-left {
  36. margin: 0 !important;
  37. width: calc(100% - 316px);
  38. }
  39. .issue-content-right {
  40. margin: 0 !important;
  41. width: 300px;
  42. }
  43. .issue-content-right .ui.dropdown.full-width {
  44. width: 100%;
  45. }
  46. .issue-content-right .ui.dropdown.full-width > .fixed-text {
  47. display: flex;
  48. flex-grow: 1;
  49. justify-content: space-between;
  50. }
  51. .issue-content-right .ui.dropdown > .menu {
  52. max-width: 270px;
  53. min-width: 0;
  54. max-height: 500px;
  55. overflow-x: auto;
  56. }
  57. .issue-content-right .ui.dropdown > .menu .item-secondary-info small {
  58. display: block;
  59. text-overflow: ellipsis;
  60. overflow: hidden;
  61. }
  62. .issue-content-right .ui.list {
  63. margin: 0.5em 0;
  64. max-width: 100%;
  65. }
  66. .issue-sidebar-combo > .ui.dropdown .item:not(.checked) .item-check-mark {
  67. visibility: hidden;
  68. }
  69. .issue-content-right .ui.list.labels-list {
  70. display: flex;
  71. gap: var(--gap-inline);
  72. flex-wrap: wrap;
  73. }
  74. @media (max-width: 767.98px) {
  75. .issue-content-left,
  76. .issue-content-right {
  77. width: 100%;
  78. }
  79. }
  80. /* make all issue filter dropdown menus popup leftward, to avoid go out the viewport (right side) */
  81. .repository .filter.menu .ui.dropdown .menu {
  82. max-height: 500px;
  83. max-width: 300px;
  84. overflow-x: hidden;
  85. right: 0;
  86. left: auto;
  87. }
  88. /* the label-filter is the first dropdown, it shouldn't be shown leftward, otherwise it may go out the viewport (left side) */
  89. .repository .filter.menu .ui.dropdown.label-filter .menu {
  90. min-width: max-content;
  91. right: unset;
  92. left: 0;
  93. }
  94. /* For the secondary pointing menu, respect its own border-bottom */
  95. /* style reference: https://semantic-ui.com/collections/menu.html#pointing */
  96. .repository .ui.tabs.container .ui.menu:not(.secondary.pointing) {
  97. border-bottom: 0;
  98. }
  99. .repository .ui.tabs.divider {
  100. margin-top: -1px;
  101. margin-bottom: 12px;
  102. }
  103. .commit-summary {
  104. flex: 1;
  105. overflow-wrap: anywhere;
  106. overflow: hidden;
  107. white-space: nowrap;
  108. text-overflow: ellipsis;
  109. }
  110. .commit-header .commit-summary,
  111. td .commit-summary {
  112. white-space: normal;
  113. }
  114. .latest-commit {
  115. display: flex;
  116. flex: 1;
  117. align-items: center;
  118. overflow: hidden;
  119. text-overflow: ellipsis;
  120. gap: 0.5em;
  121. }
  122. @media (max-width: 767.98px) {
  123. .latest-commit .commit-id-short {
  124. display: none;
  125. }
  126. }
  127. .repository.file.list .non-diff-file-content .header .icon {
  128. font-size: 1em;
  129. }
  130. .repository.file.list .non-diff-file-content .header .small.icon {
  131. font-size: 0.75em;
  132. }
  133. .repository.file.list .non-diff-file-content .header .tiny.icon {
  134. font-size: 0.5em;
  135. }
  136. .repository.file.list .non-diff-file-content .header .file-actions .btn-octicon {
  137. line-height: var(--line-height-default);
  138. padding: 8px;
  139. vertical-align: middle;
  140. color: var(--color-text);
  141. }
  142. .repository.file.list .non-diff-file-content .header .file-actions .btn-octicon:hover {
  143. color: var(--color-primary);
  144. }
  145. .repository.file.list .non-diff-file-content .header .file-actions .btn-octicon-danger:hover {
  146. color: var(--color-red);
  147. }
  148. .repository.file.list .non-diff-file-content .header .file-actions .btn-octicon.disabled {
  149. color: inherit;
  150. opacity: var(--opacity-disabled);
  151. cursor: default;
  152. }
  153. .repository.file.list .non-diff-file-content .plain-text {
  154. padding: 1em 2em;
  155. }
  156. .repository.file.list .non-diff-file-content .plain-text pre {
  157. overflow-wrap: anywhere;
  158. white-space: pre-wrap;
  159. }
  160. .repository.file.list .non-diff-file-content .csv {
  161. overflow-x: auto;
  162. padding: 0 !important;
  163. }
  164. .repository.file.list .non-diff-file-content pre {
  165. overflow: auto;
  166. }
  167. .repository.file.list .non-diff-file-content .asciicast {
  168. padding: 0 !important;
  169. }
  170. .repo-editor-header {
  171. width: 100%;
  172. }
  173. .repo-editor-header input {
  174. vertical-align: middle !important;
  175. width: auto !important;
  176. padding: 7px 8px !important;
  177. margin-right: 5px !important;
  178. }
  179. .repository.file.editor .tabular.menu .svg {
  180. margin-right: 5px;
  181. }
  182. .repository.file.editor .commit-form-wrapper {
  183. padding-left: 48px;
  184. }
  185. .repository.file.editor .commit-form-wrapper .commit-avatar {
  186. float: left;
  187. margin-left: -48px;
  188. }
  189. .repository.file.editor .commit-form-wrapper .commit-form {
  190. position: relative;
  191. padding: 15px;
  192. margin-bottom: 10px;
  193. border: 1px solid var(--color-secondary);
  194. background: var(--color-box-body);
  195. border-radius: var(--border-radius);
  196. }
  197. .avatar-content-left-arrow::before,
  198. .avatar-content-left-arrow::after {
  199. right: 100%;
  200. top: 20px;
  201. border: solid transparent;
  202. content: " ";
  203. height: 0;
  204. width: 0;
  205. position: absolute;
  206. pointer-events: none;
  207. }
  208. .avatar-content-left-arrow::before {
  209. border-right-color: var(--color-secondary);
  210. border-width: 9px;
  211. margin-top: -9px;
  212. }
  213. .avatar-content-left-arrow::after {
  214. border-right-color: var(--color-box-body);
  215. border-width: 8px;
  216. margin-top: -8px;
  217. }
  218. @media (max-width: 767.98px) {
  219. .avatar-content-left-arrow::before,
  220. .avatar-content-left-arrow::after {
  221. display: none;
  222. }
  223. }
  224. .repository.file.editor .commit-form-wrapper .commit-form .quick-pull-choice .branch-name {
  225. display: inline-block;
  226. padding: 2px 4px;
  227. font: 12px var(--fonts-monospace);
  228. color: var(--color-text);
  229. background: var(--color-secondary);
  230. border-radius: var(--border-radius);
  231. margin: 0 2px;
  232. }
  233. .repository.file.editor .commit-form-wrapper .commit-form .quick-pull-choice .new-branch-name-input {
  234. position: relative;
  235. margin-left: 25px;
  236. }
  237. .repository.file.editor .commit-form-wrapper .commit-form .quick-pull-choice .new-branch-name-input input {
  238. width: 240px !important;
  239. padding-left: 26px !important;
  240. }
  241. .repository.file.editor .commit-form-wrapper .commit-form .quick-pull-choice .octicon-git-branch {
  242. position: absolute;
  243. top: 9px;
  244. left: 10px;
  245. color: var(--color-grey);
  246. }
  247. .repository.options #interval {
  248. width: 100px !important;
  249. min-width: 100px;
  250. }
  251. .repository.view.issue .instruct-toggle {
  252. display: inline-block;
  253. }
  254. /* issue title & meta & edit */
  255. .issue-title-header {
  256. width: 100%;
  257. padding-bottom: 4px;
  258. margin-bottom: 1rem;
  259. }
  260. .issue-title-meta {
  261. display: flex;
  262. align-items: center;
  263. }
  264. .repository.view.issue .issue-title-buttons {
  265. display: flex;
  266. gap: 0.5em;
  267. }
  268. .repository.view.issue .issue-title-buttons > .ui.button {
  269. margin: 0;
  270. height: 35px;
  271. }
  272. .repository.view.issue .issue-title {
  273. display: flex;
  274. gap: 0.5em;
  275. margin-bottom: 8px;
  276. min-height: 36px; /* avoid layout shift on edit */
  277. }
  278. .repository.view.issue .issue-title h1 {
  279. flex: 1;
  280. width: 100%;
  281. font-weight: var(--font-weight-normal);
  282. font-size: 32px;
  283. line-height: 36px; /* vertically center single-line text with .issue-title-buttons */
  284. margin: 0;
  285. padding-right: 0.25rem;
  286. overflow-wrap: anywhere;
  287. }
  288. @media (max-width: 767.98px) {
  289. .repository.view.issue .issue-title {
  290. flex-direction: column;
  291. }
  292. .repository.view.issue .issue-title-buttons {
  293. width: 100%;
  294. justify-content: space-between;
  295. }
  296. }
  297. .repository.view.issue .issue-title .ui.input {
  298. width: 100%;
  299. height: 35px;
  300. }
  301. .repository.view.issue .issue-title .ui.input input {
  302. font-size: 1.5em;
  303. padding: 2px .5rem;
  304. }
  305. .issue-title .index {
  306. color: var(--color-text-light-2);
  307. }
  308. .issue-title .label {
  309. margin-right: 10px;
  310. }
  311. .issue-state-label {
  312. display: flex !important;
  313. align-items: center !important;
  314. font-size: 14px !important;
  315. padding: 7px 10px !important;
  316. border-radius: var(--border-radius-medium) !important;
  317. flex-shrink: 0;
  318. }
  319. .issue-state-label .svg {
  320. margin-right: 4px;
  321. }
  322. .repository.view.issue .pull-desc code {
  323. color: var(--color-primary);
  324. }
  325. .repository.view.issue .pull-desc a[data-clipboard-text] {
  326. cursor: pointer;
  327. }
  328. .repository.view.issue .pull-desc a[data-clipboard-text] svg {
  329. vertical-align: middle;
  330. position: relative;
  331. top: -2px;
  332. right: 1px;
  333. }
  334. .repository.view.issue .pull.tabs.container {
  335. width: 100%;
  336. max-width: 100%;
  337. }
  338. .repository.view.issue .pull.tabular.menu {
  339. margin-bottom: 0;
  340. overflow-x: auto;
  341. overflow-y: hidden;
  342. }
  343. .repository.view.issue .pull.tabular.menu .svg {
  344. margin-right: 5px;
  345. }
  346. .repository.view.issue .comment-list:not(.prevent-before-timeline)::before {
  347. display: block;
  348. content: "";
  349. position: absolute;
  350. margin-top: 12px;
  351. margin-bottom: 14px;
  352. top: 0;
  353. bottom: 0;
  354. left: 96px;
  355. width: 2px;
  356. background-color: var(--color-timeline);
  357. z-index: -1;
  358. }
  359. .repository.view.issue .comment-list .timeline {
  360. position: relative;
  361. display: block;
  362. margin-left: 40px;
  363. padding-left: 16px;
  364. }
  365. .repository.view.issue .comment-list .timeline::before { /* ciara */
  366. display: block;
  367. content: "";
  368. position: absolute;
  369. margin-top: 12px;
  370. margin-bottom: 14px;
  371. top: 0;
  372. bottom: 0;
  373. left: 30px;
  374. width: 2px;
  375. background-color: var(--color-timeline);
  376. z-index: -1;
  377. }
  378. .repository.view.issue .comment-list .timeline-item,
  379. .repository.view.issue .comment-list .timeline-item-group {
  380. padding: 8px 0;
  381. }
  382. .repository.view.issue .comment-list .timeline-item-group .timeline-item {
  383. padding-top: 8px;
  384. padding-bottom: 8px;
  385. }
  386. .repository.view.issue .comment-list .timeline-avatar-offset {
  387. margin-top: 48px;
  388. }
  389. .repository.view.issue .comment-list .timeline-item {
  390. margin-left: 16px;
  391. position: relative;
  392. }
  393. .repository.view.issue .comment-list .timeline-item .timeline-avatar {
  394. position: absolute;
  395. left: -68px;
  396. }
  397. /* Don't show the mobile oriented avatar ".inline-timeline-avatar" on desktop. Desktop uses the avatar with class ".timeline-avatar" */
  398. .repository.view.issue .comment-list .timeline-item .inline-timeline-avatar {
  399. display: none;
  400. }
  401. .repository.view.issue .comment-list .timeline-item:first-child:not(.commit) {
  402. padding-top: 0 !important;
  403. }
  404. .repository.view.issue .comment-list .timeline-item:last-child:not(.commit) {
  405. padding-bottom: 0 !important;
  406. }
  407. .repository.view.issue .comment-list .timeline-item .badge.badge-commit {
  408. border-color: transparent;
  409. background: radial-gradient(var(--color-body) 40%, transparent 40%) no-repeat;
  410. }
  411. .repository.view.issue .comment-list .timeline-item .badge {
  412. width: 34px;
  413. height: 34px;
  414. background-color: var(--color-timeline);
  415. border-radius: var(--border-radius-full);
  416. display: flex;
  417. flex-shrink: 0;
  418. float: left;
  419. margin-left: -33px;
  420. margin-right: 8px;
  421. color: var(--color-text);
  422. align-items: center;
  423. justify-content: center;
  424. }
  425. .repository.view.issue .comment-list .timeline-item.commits-list .badge {
  426. margin-right: 0;
  427. height: 28px;
  428. }
  429. .repository.view.issue .comment-list .timeline-item .badge .svg {
  430. width: 22px;
  431. height: 22px;
  432. padding: 3px;
  433. }
  434. .repository.view.issue .comment-list .timeline-item .badge .svg.octicon-comment {
  435. margin-top: 2px;
  436. }
  437. .repository.view.issue .comment-list .timeline-item.comment > .content {
  438. margin-left: -16px;
  439. }
  440. .repository.view.issue .comment-list .timeline-item .comment-text-line {
  441. line-height: 32px;
  442. vertical-align: middle;
  443. color: var(--color-text-light);
  444. }
  445. .repository.view.issue .comment-list .timeline-item .comment-text-line a {
  446. color: inherit;
  447. }
  448. .repository.view.issue .comment-list .timeline-item .avatar-with-link + .comment-text-line {
  449. margin-left: 0.25em;
  450. }
  451. .repository.view.issue .comment-list .timeline-item.commits-list {
  452. padding-left: 15px;
  453. padding-top: 0;
  454. }
  455. .repository.view.issue .comment-list .timeline-item.event > .commit-status-link {
  456. float: right;
  457. margin-right: 8px;
  458. margin-top: 4px;
  459. }
  460. .repository.view.issue .comment-list .timeline-item .comment-text-label {
  461. vertical-align: middle;
  462. border: 1px solid var(--color-light-border);
  463. height: 26px;
  464. margin: 4px 0; /* because this label is beside the comment line, which has "line-height: 34px" */
  465. }
  466. @media (max-width: 767.98px) {
  467. .repository.view.issue .comment-list .timeline-item .ui.segments {
  468. margin-left: -2rem;
  469. }
  470. }
  471. .repository.view.issue .comment-list .ui.comments {
  472. max-width: 100%;
  473. display: flex;
  474. flex-direction: column;
  475. gap: 3px;
  476. }
  477. .repository.view.issue .comment-list .comment > .content > div:first-child {
  478. border-top-left-radius: 4px;
  479. border-top-right-radius: 4px;
  480. }
  481. .repository.view.issue .comment-list .comment > .content > div:last-child {
  482. border-bottom-left-radius: 4px;
  483. border-bottom-right-radius: 4px;
  484. }
  485. .repository.view.issue .comment-list .comment .comment-container {
  486. border: 1px solid var(--color-secondary);
  487. border-radius: var(--border-radius);
  488. background: var(--color-box-body);
  489. }
  490. .repository.view.issue .comment-list .conversation-holder .comment .comment-container {
  491. border: none;
  492. }
  493. @media (max-width: 767.98px) {
  494. .repository.view.issue .comment-list .comment .content .form .button {
  495. width: 100%;
  496. margin: 0;
  497. }
  498. .repository.view.issue .comment-list .comment .content .form .button:not(:last-child) {
  499. margin-bottom: 1rem;
  500. }
  501. }
  502. .repository.view.issue .comment-list .comment .merge-section {
  503. background-color: var(--color-box-body);
  504. }
  505. .repository.view.issue .comment-list .comment .merge-section .item-section {
  506. display: flex;
  507. flex-wrap: wrap;
  508. align-items: center;
  509. justify-content: space-between;
  510. padding: 0;
  511. gap: 0.5em;
  512. }
  513. .repository.view.issue .comment-list .comment .merge-section .divider {
  514. margin-left: -1rem;
  515. width: calc(100% + 2rem);
  516. }
  517. .merge-section-info code {
  518. border: 1px solid var(--color-light-border);
  519. border-radius: var(--border-radius);
  520. padding: 2px 4px;
  521. background: var(--color-light);
  522. }
  523. .repository.view.issue .comment-list .comment .no-content {
  524. color: var(--color-text-light-2);
  525. font-style: italic;
  526. }
  527. .repository.view.issue .comment-list .comment .ui.form .field:first-child {
  528. clear: none;
  529. }
  530. .repository.view.issue .comment-list .comment .ui.form .field.footer {
  531. overflow: hidden;
  532. }
  533. .repository.view.issue .comment-list .comment .ui.form .field .tab.markup {
  534. min-height: 5rem;
  535. }
  536. .repository.view.issue .comment-list .comment .edit.buttons {
  537. margin-top: 10px;
  538. }
  539. .repository.view.issue .comment-list .code-comment {
  540. border: 1px solid transparent;
  541. margin: 0;
  542. }
  543. .repository.view.issue .comment-list .code-comment .comment-header {
  544. background: transparent;
  545. border-bottom: 0 !important;
  546. padding: 0 !important;
  547. }
  548. .repository.view.issue .comment-list .code-comment .comment-content {
  549. margin-left: 24px;
  550. }
  551. .repository.view.issue .comment-list .comment-code-cloud button.comment-form-reply {
  552. margin: 0;
  553. }
  554. .repository.view.issue .comment-list .event {
  555. padding-left: 15px;
  556. }
  557. .repository.view.issue .comment-list .event .detail {
  558. margin-top: 4px;
  559. margin-left: 15px;
  560. }
  561. .repository.view.issue .comment-list .event .detail .text {
  562. overflow: hidden;
  563. white-space: nowrap;
  564. text-overflow: ellipsis;
  565. }
  566. .repository.view.issue .comment-list .event .segments {
  567. box-shadow: none;
  568. }
  569. .repository.view.issue .ui.depending .item.is-closed .issue-dependency-title {
  570. text-decoration: line-through;
  571. }
  572. .repository .comment.form .content .field:first-child {
  573. clear: none;
  574. }
  575. .repository.new.milestone textarea {
  576. height: 200px;
  577. }
  578. .milestone-progress-big {
  579. width: min(420px, 96vw);
  580. height: 10px;
  581. }
  582. .repository .choose.branch {
  583. display: flex;
  584. align-items: center;
  585. gap: 8px;
  586. flex-wrap: wrap;
  587. }
  588. .repository .choose .compare-separator {
  589. width: 100%;
  590. margin-top: -1rem;
  591. text-align: center;
  592. }
  593. .repository.branches .commit-divergence .bar-group {
  594. position: relative;
  595. float: left;
  596. padding-bottom: 6px;
  597. width: 50%;
  598. max-width: 90px;
  599. }
  600. .repository.branches .commit-divergence .bar-group:last-child {
  601. border-left: 1px solid var(--color-secondary-dark-2);
  602. }
  603. .repository.branches .commit-divergence .count {
  604. margin: 0 3px;
  605. }
  606. .repository.branches .commit-divergence .count.count-ahead {
  607. text-align: left;
  608. }
  609. .repository.branches .commit-divergence .count.count-behind {
  610. text-align: right;
  611. }
  612. .repository.branches .commit-divergence .bar {
  613. height: 4px;
  614. position: absolute;
  615. background-color: var(--color-secondary-dark-2);
  616. }
  617. .repository.branches .commit-divergence .bar.bar-behind {
  618. right: 0;
  619. }
  620. .repository.branches .commit-divergence .bar.bar-ahead {
  621. left: 0;
  622. }
  623. .repository.commits .header .search input {
  624. font-weight: var(--font-weight-normal);
  625. padding: 5px 10px;
  626. }
  627. .repository #commits-table td:not(.message) {
  628. white-space: nowrap;
  629. }
  630. .repository #commits-table thead .sha {
  631. width: 200px;
  632. }
  633. .repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) {
  634. background-color: var(--color-light) !important;
  635. }
  636. .repository .data-table {
  637. width: 100%;
  638. }
  639. .repository .data-table tr {
  640. border-top: 0;
  641. background: none !important;
  642. }
  643. .repository .data-table td,
  644. .repository .data-table th {
  645. padding: 5px !important;
  646. overflow: hidden;
  647. font-size: 12px;
  648. text-align: left;
  649. white-space: nowrap;
  650. border: 1px solid var(--color-secondary);
  651. }
  652. /* the border css competes with .markup where all tables have outer border which would add a double
  653. border here, remove only the outer borders from this table */
  654. .repository .data-table tr:first-child :is(td,th) {
  655. border-top: none !important;
  656. }
  657. .repository .data-table tr:last-child :is(td,th) {
  658. border-bottom: none !important;
  659. }
  660. .repository .data-table tr :is(td,th):first-child {
  661. border-left: none !important;
  662. }
  663. .repository .data-table tr :is(td,th):last-child {
  664. border-right: none !important;
  665. }
  666. .repository .data-table td {
  667. white-space: pre-line;
  668. }
  669. .repository .data-table th {
  670. font-weight: var(--font-weight-semibold);
  671. background: var(--color-box-header);
  672. border-top: 0;
  673. }
  674. .repository .data-table td.added,
  675. .repository .data-table th.added,
  676. .repository .data-table tr.added {
  677. background-color: var(--color-diff-added-row-bg) !important;
  678. }
  679. .repository .data-table td.removed,
  680. .repository .data-table th.removed,
  681. .repository .data-table tr.removed {
  682. background-color: var(--color-diff-removed-row-bg) !important;
  683. }
  684. .repository .data-table td.moved,
  685. .repository .data-table th.moved,
  686. .repository .data-table tr.moved {
  687. background-color: var(--color-diff-moved-row-bg) !important;
  688. }
  689. .repository .data-table tbody.section {
  690. border-top: 2px solid var(--color-secondary);
  691. }
  692. .repository .data-table .line-num {
  693. width: 1%;
  694. min-width: 50px;
  695. font-family: monospace;
  696. line-height: 20px;
  697. color: var(--color-text-light-1);
  698. white-space: nowrap;
  699. vertical-align: top;
  700. cursor: pointer;
  701. text-align: right;
  702. background: var(--color-body);
  703. border: 0;
  704. }
  705. .repository .diff-detail-box {
  706. display: flex;
  707. justify-content: space-between;
  708. align-items: center;
  709. position: sticky;
  710. top: 0;
  711. z-index: 8;
  712. padding: 7px 5px;
  713. margin: 0 -5px; /* negative margin so it covers active file shadow */
  714. height: 44px; /* this height should match sticky-2nd-row */
  715. background: var(--color-body);
  716. }
  717. @media (max-width: 480px) {
  718. .repository .diff-detail-box {
  719. flex-wrap: wrap;
  720. }
  721. }
  722. .repository .diff-detail-box .diff-detail-stats strong {
  723. margin-left: 0.25rem;
  724. margin-right: 0.25rem;
  725. }
  726. /* Because the translations contain the <strong> we need to style with nth-of-type */
  727. .repository .diff-detail-box .diff-detail-stats strong:nth-of-type(1) {
  728. color: var(--color-yellow);
  729. }
  730. .repository .diff-detail-box .diff-detail-stats strong:nth-of-type(2) {
  731. color: var(--color-green);
  732. }
  733. .repository .diff-detail-box .diff-detail-stats strong:nth-of-type(3) {
  734. color: var(--color-red);
  735. }
  736. @media (max-width: 800px) {
  737. .repository .diff-detail-box .diff-detail-stats {
  738. display: none !important;
  739. }
  740. }
  741. .diff-detail-actions {
  742. display: flex;
  743. align-items: center;
  744. gap: 0.25em;
  745. justify-content: end;
  746. }
  747. .diff-detail-actions > *,
  748. .diff-detail-actions .button {
  749. margin-left: 0 !important;
  750. margin-right: 0 !important;
  751. }
  752. .repository .diff-detail-box span.status {
  753. display: inline-block;
  754. width: 12px;
  755. height: 12px;
  756. margin-right: 8px;
  757. vertical-align: middle;
  758. }
  759. .repository .diff-detail-box span.status.modify {
  760. background-color: var(--color-yellow);
  761. }
  762. .repository .diff-detail-box span.status.add {
  763. background-color: var(--color-green);
  764. }
  765. .repository .diff-detail-box span.status.del {
  766. background-color: var(--color-red);
  767. }
  768. .repository .diff-detail-box span.status.rename {
  769. background-color: var(--color-teal);
  770. }
  771. .repository .diff-detail-box .ui.button {
  772. padding: 0 12px;
  773. height: 30px;
  774. }
  775. .repository .diff-file-box .header {
  776. background-color: var(--color-box-header);
  777. }
  778. .repository .diff-file-box .file-body.file-code {
  779. background: var(--color-code-bg);
  780. border-radius: var(--border-radius);
  781. }
  782. .repository .diff-file-box .file-body.file-code .lines-num {
  783. text-align: right;
  784. }
  785. .repository .diff-file-box .file-body.file-code .lines-num span.fold {
  786. display: block;
  787. text-align: center;
  788. }
  789. .repository .diff-file-box .code-diff td {
  790. padding: 0 0 0 10px !important;
  791. border-top: 0;
  792. }
  793. .repository .diff-file-box .code-diff .lines-num {
  794. padding: 0 5px !important;
  795. }
  796. .repository .diff-file-box .code-diff .tag-code .lines-num,
  797. .repository .diff-file-box .code-diff .tag-code td {
  798. padding: 0 !important;
  799. }
  800. .repository .diff-file-box .code-diff table {
  801. table-layout: fixed;
  802. }
  803. .repository .diff-file-box .code-diff tbody tr td.center {
  804. text-align: center;
  805. }
  806. .repository .diff-file-box .code-diff tbody tr [data-line-num]::before {
  807. content: attr(data-line-num);
  808. text-align: right;
  809. }
  810. .repository .diff-file-box .code-diff tbody tr .lines-type-marker {
  811. width: 10px;
  812. min-width: 10px;
  813. }
  814. .repository .diff-file-box .code-diff tbody tr [data-type-marker]::before {
  815. content: attr(data-type-marker);
  816. text-align: right;
  817. display: inline-block;
  818. }
  819. .repository .diff-file-box .code-diff-split .tag-code .lines-code code.code-inner {
  820. padding-left: 10px !important;
  821. }
  822. .repository .diff-file-box .code-diff-split table,
  823. .repository .diff-file-box .code-diff-split tbody {
  824. width: 100%;
  825. }
  826. .repository .diff-file-box.file-content {
  827. clear: right;
  828. }
  829. .repository .diff-file-box.file-content .image-diff img {
  830. max-width: 100%;
  831. padding: 0;
  832. border-radius: 0;
  833. }
  834. .repository .diff-file-box .ui.bottom.attached.table.segment {
  835. padding-top: 5px;
  836. padding-bottom: 5px;
  837. }
  838. .diff-file-box {
  839. border: 1px solid transparent;
  840. border-radius: var(--border-radius);
  841. scroll-margin-top: 47px; /* match .repository .diff-detail-box */
  842. }
  843. .file.editor .diff-file-box {
  844. border: none;
  845. }
  846. .file.editor .diff-file-box .ui.attached.table {
  847. border: none;
  848. }
  849. /* TODO: this can potentially be made "global" by removing the class prefix */
  850. .diff-file-box .ui.attached.header,
  851. .diff-file-box .ui.attached.table {
  852. margin: 0; /* remove fomantic negative margins */
  853. width: initial; /* remove fomantic over 100% width */
  854. max-width: initial; /* remove fomantic over 100% width */
  855. }
  856. .repository .diff-stats {
  857. clear: both;
  858. margin-bottom: 5px;
  859. max-height: 200px;
  860. height: fit-content;
  861. overflow: auto;
  862. padding-left: 0;
  863. }
  864. .repository .diff-stats li {
  865. list-style: none;
  866. padding-bottom: 4px;
  867. margin-bottom: 4px;
  868. padding-left: 6px;
  869. }
  870. .repository .diff-stats li + li {
  871. border-top: 1px solid var(--color-secondary);
  872. }
  873. .repository .repo-search-result {
  874. padding-top: 10px;
  875. padding-bottom: 10px;
  876. }
  877. .repository .repo-search-result .lines-num a {
  878. color: inherit;
  879. }
  880. .repository.quickstart .guide .item {
  881. padding: 1em;
  882. }
  883. .repository.quickstart .guide .item small {
  884. font-weight: var(--font-weight-normal);
  885. }
  886. .repository .activity-header {
  887. display: flex;
  888. justify-content: space-between;
  889. gap: 8px;
  890. flex-wrap: wrap;
  891. }
  892. /* if the element is for a checkbox, then it should have a padding-left to align to the checkbox's text */
  893. .repository.settings.branches .branch-protection .ui.checkbox .help,
  894. .repository.settings.branches .branch-protection .checkbox-sub-item {
  895. padding-left: 26px;
  896. }
  897. .repository.settings.branches .branch-protection .status-check-matched-mark {
  898. font-weight: var(--font-weight-semibold);
  899. font-style: italic;
  900. }
  901. .repository.settings.webhook .events .column {
  902. padding-bottom: 0;
  903. }
  904. .repository.settings.webhook .events .help {
  905. font-size: 13px;
  906. margin-left: 26px;
  907. padding-top: 0;
  908. }
  909. .repository .ui.fluid.action.input .ui.search.action.input {
  910. flex: auto;
  911. }
  912. .repository .repository-summary {
  913. box-shadow: none;
  914. }
  915. .repository .repository-summary .segment.sub-menu {
  916. border: none;
  917. display: flex;
  918. align-items: center;
  919. padding: 0;
  920. overflow: hidden;
  921. }
  922. .repository .repository-summary .sub-menu .item {
  923. flex: 1;
  924. height: 33px; /* match search bar height, need to be improved in the future to use some consistent methods */
  925. line-height: var(--line-height-default);
  926. display: flex;
  927. align-items: center;
  928. justify-content: center;
  929. gap: 0.25em;
  930. padding: 0 0.5em; /* make the UI look better for narrow (mobile) view */
  931. text-decoration: none;
  932. }
  933. .repository .repository-summary .sub-menu .item.active {
  934. background: var(--color-secondary);
  935. }
  936. #cite-repo-modal #citation-panel {
  937. display: flex;
  938. width: 100%;
  939. }
  940. #cite-repo-modal #citation-panel input {
  941. border-radius: 0;
  942. padding: 5px 10px;
  943. width: 50%;
  944. line-height: 1.4;
  945. }
  946. #cite-repo-modal #citation-panel .citation.button {
  947. font-size: 13px;
  948. padding: 7.5px 5px;
  949. }
  950. #cite-repo-modal #citation-panel #citation-copy-content {
  951. border-radius: 0;
  952. padding: 5px 10px;
  953. font-size: 1.2em;
  954. line-height: 1.4;
  955. flex: 1;
  956. }
  957. #cite-repo-modal #citation-panel #citation-copy-apa,
  958. #cite-repo-modal #citation-panel #citation-copy-bibtex {
  959. border-right: none;
  960. }
  961. #cite-repo-modal #citation-panel #goto-citation-btn {
  962. border-left: none;
  963. }
  964. #cite-repo-modal #citation-panel > :first-child {
  965. border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
  966. }
  967. #cite-repo-modal #citation-panel > :last-child {
  968. border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
  969. }
  970. #cite-repo-modal #citation-panel .icon.button {
  971. padding: 0 10px;
  972. }
  973. .user-cards .list {
  974. padding: 0;
  975. display: flex;
  976. flex-wrap: wrap;
  977. }
  978. .user-cards .list .item {
  979. list-style: none;
  980. width: 32%;
  981. margin: 10px 10px 10px 0;
  982. padding-bottom: 14px;
  983. float: left;
  984. }
  985. .user-cards .list .item .avatar {
  986. float: left;
  987. display: block;
  988. margin-right: 10px;
  989. }
  990. .user-cards .list .item .name {
  991. margin-top: 0;
  992. margin-bottom: 0;
  993. font-weight: var(--font-weight-normal);
  994. }
  995. .user-cards .list .item .meta {
  996. margin-top: 5px;
  997. }
  998. #search-user-box .results .result .image {
  999. order: 0;
  1000. margin-right: 12px;
  1001. width: 2em;
  1002. height: 2em;
  1003. min-width: 2em;
  1004. min-height: 2em;
  1005. }
  1006. #search-user-box .results .result .content {
  1007. margin: 0; /* remove margin reserved for avatar because we move it to left via `order: 0` */
  1008. }
  1009. .ui.menu .item > img:not(.ui) {
  1010. width: auto;
  1011. }
  1012. .page.buttons {
  1013. padding-top: 15px;
  1014. }
  1015. .commit-header-buttons {
  1016. display: flex;
  1017. gap: 4px;
  1018. align-items: flex-start;
  1019. white-space: nowrap;
  1020. }
  1021. @media (max-width: 767.98px) {
  1022. .commit-header-buttons {
  1023. flex-direction: column;
  1024. align-items: stretch;
  1025. }
  1026. }
  1027. .settings.webhooks .list > .item:not(:first-child),
  1028. .settings.githooks .list > .item:not(:first-child),
  1029. .settings.actions .list > .item:not(:first-child) {
  1030. padding: 0.25rem 1rem;
  1031. margin: 12px -1rem -1rem;
  1032. }
  1033. .settings .list > .item:not(:first-child) {
  1034. border-top: 1px solid var(--color-secondary);
  1035. padding: 1rem;
  1036. margin: 16px -1rem -1rem;
  1037. }
  1038. .settings .list > .item > .svg {
  1039. display: table-cell;
  1040. }
  1041. .settings .list > .item > .svg + .content {
  1042. display: table-cell;
  1043. padding: 0 0 0 0.5em;
  1044. vertical-align: top;
  1045. }
  1046. .settings .list > .item .info {
  1047. margin-top: 10px;
  1048. }
  1049. .settings .list > .item .info .tab.segment {
  1050. border: 0;
  1051. padding: 10px 0 0;
  1052. }
  1053. .comment:target .comment-container {
  1054. border-color: var(--color-primary) !important;
  1055. box-shadow: 0 0 0 3px var(--color-primary-alpha-30) !important;
  1056. }
  1057. .comment:target .header::before {
  1058. border-right-color: var(--color-primary) !important;
  1059. filter: drop-shadow(-3px 0 0 var(--color-primary-alpha-30)) !important;
  1060. }
  1061. .code-comment:target,
  1062. .diff-file-box:target {
  1063. border-color: var(--color-primary) !important;
  1064. border-radius: var(--border-radius) !important;
  1065. box-shadow: 0 0 0 3px var(--color-primary-alpha-30) !important;
  1066. }
  1067. .code-comment:target .content {
  1068. box-shadow: none !important;
  1069. }
  1070. .comment-header {
  1071. background: var(--color-box-header);
  1072. border-bottom: 1px solid var(--color-secondary);
  1073. padding: 0.5em 1rem;
  1074. position: relative;
  1075. color: var(--color-text);
  1076. min-height: 41px;
  1077. display: flex;
  1078. justify-content: space-between;
  1079. align-items: center;
  1080. flex-wrap: wrap;
  1081. gap: 0.25em;
  1082. }
  1083. .comment-header.arrow-top::before,
  1084. .comment-header.arrow-top::after {
  1085. transform: rotate(90deg);
  1086. }
  1087. .comment-header.arrow-top::before {
  1088. top: -9px;
  1089. left: 6px;
  1090. }
  1091. .comment-header.arrow-top::after {
  1092. top: -8px;
  1093. left: 7px;
  1094. }
  1095. .comment-header-left,
  1096. .comment-header-right {
  1097. display: flex;
  1098. align-items: center;
  1099. gap: 0.5em;
  1100. }
  1101. .comment-header-right {
  1102. flex: 1;
  1103. justify-content: end;
  1104. }
  1105. .comment-body {
  1106. background: var(--color-box-body);
  1107. border: none !important;
  1108. width: 100% !important;
  1109. max-width: 100% !important;
  1110. margin: 0 !important;
  1111. padding: 1em;
  1112. }
  1113. .stats-table {
  1114. display: table;
  1115. width: 100%;
  1116. margin: 6px 0;
  1117. border-spacing: 2px;
  1118. }
  1119. .stats-table .table-cell {
  1120. display: table-cell;
  1121. }
  1122. .stats-table .table-cell.tiny {
  1123. height: 8px;
  1124. }
  1125. .stats-table .table-cell:first-child {
  1126. border-top-left-radius: 4px;
  1127. border-bottom-left-radius: 4px;
  1128. }
  1129. .stats-table .table-cell:last-child {
  1130. border-top-right-radius: 4px;
  1131. border-bottom-right-radius: 4px;
  1132. }
  1133. .repo-button-row {
  1134. margin: 8px 0;
  1135. display: flex;
  1136. align-items: center;
  1137. gap: 8px;
  1138. flex-wrap: wrap;
  1139. }
  1140. .repo-button-row-left,
  1141. .repo-button-row-right {
  1142. display: flex;
  1143. align-items: center;
  1144. gap: 0.5rem;
  1145. flex-wrap: wrap;
  1146. }
  1147. .repo-button-row-left {
  1148. flex-grow: 1;
  1149. }
  1150. .repo-button-row .ui.button {
  1151. flex-shrink: 0;
  1152. margin: 0;
  1153. min-height: 30px;
  1154. }
  1155. tbody.commit-list {
  1156. vertical-align: baseline;
  1157. }
  1158. .message-wrapper,
  1159. .author-wrapper {
  1160. overflow: hidden;
  1161. text-overflow: ellipsis;
  1162. max-width: 100%;
  1163. display: inline-block;
  1164. vertical-align: middle;
  1165. }
  1166. .author-wrapper {
  1167. max-width: 180px;
  1168. align-self: center;
  1169. white-space: nowrap;
  1170. }
  1171. .latest-commit .message-wrapper {
  1172. max-width: calc(100% - 2.5rem);
  1173. }
  1174. /* in the commit list, messages can wrap so we can use inline */
  1175. .commit-list .message-wrapper {
  1176. display: inline;
  1177. overflow-wrap: anywhere;
  1178. }
  1179. @media (max-width: 767.98px) {
  1180. tr.commit-list {
  1181. width: 100%;
  1182. }
  1183. .author-wrapper {
  1184. max-width: 80px;
  1185. }
  1186. }
  1187. @media (min-width: 768px) and (max-width: 991.98px) {
  1188. tr.commit-list {
  1189. width: 723px;
  1190. }
  1191. }
  1192. @media (min-width: 992px) and (max-width: 1200px) {
  1193. tr.commit-list {
  1194. width: 933px;
  1195. }
  1196. }
  1197. @media (min-width: 1201px) {
  1198. tr.commit-list {
  1199. width: 1127px;
  1200. }
  1201. }
  1202. .commit-list .commit-status-link {
  1203. display: inline-block;
  1204. vertical-align: middle;
  1205. }
  1206. .commit-body {
  1207. margin: 0.25em 0;
  1208. white-space: pre-wrap;
  1209. overflow-wrap: anywhere;
  1210. line-height: initial;
  1211. }
  1212. .git-notes.top {
  1213. text-align: left;
  1214. }
  1215. .comment-diff-data {
  1216. background: var(--color-code-bg);
  1217. min-height: 12em;
  1218. max-height: calc(100vh - 10.5rem);
  1219. overflow-y: auto;
  1220. tab-size: 4;
  1221. }
  1222. .comment-diff-data pre {
  1223. line-height: 18px;
  1224. margin: 1em;
  1225. white-space: pre-wrap;
  1226. overflow-wrap: anywhere;
  1227. }
  1228. .content-history-detail-dialog .header .ui.avatar {
  1229. position: relative;
  1230. top: -2px;
  1231. }
  1232. #repo-topics .repo-topic {
  1233. font-weight: var(--font-weight-normal);
  1234. cursor: pointer;
  1235. margin: 0;
  1236. display: inline-block !important;
  1237. }
  1238. #new-dependency-drop-list.ui.selection.dropdown {
  1239. min-width: 0;
  1240. width: 100%;
  1241. border-radius: var(--border-radius) 0 0 var(--border-radius);
  1242. border-right: 0;
  1243. white-space: nowrap;
  1244. }
  1245. #new-dependency-drop-list .text {
  1246. width: 100%;
  1247. overflow: hidden;
  1248. }
  1249. .tag-code {
  1250. height: 28px;
  1251. }
  1252. .tag-code,
  1253. .tag-code td,
  1254. .tag-code.line-expanded {
  1255. background-color: var(--color-box-body-highlight);
  1256. vertical-align: middle;
  1257. }
  1258. /* fix bottom border radius on diff files */
  1259. .diff-file-body tr.tag-code:last-child {
  1260. background: none;
  1261. }
  1262. .diff-file-body tr.tag-code:last-child > td {
  1263. background: var(--color-box-body-highlight);
  1264. }
  1265. .diff-file-body tr.tag-code:last-child td:first-child,
  1266. .diff-file-body tr.tag-code:last-child td:first-child * {
  1267. border-bottom-left-radius: 3px;
  1268. }
  1269. .diff-file-body tr.tag-code:last-child td:last-child,
  1270. .diff-file-body tr.tag-code:last-child td:last-child * {
  1271. border-bottom-right-radius: 3px;
  1272. }
  1273. .resolved-placeholder {
  1274. display: flex;
  1275. align-items: center;
  1276. justify-content: space-between;
  1277. margin: 4px;
  1278. padding: 8px;
  1279. border: 1px solid var(--color-secondary);
  1280. border-radius: var(--border-radius);
  1281. background: var(--color-box-header);
  1282. }
  1283. .resolved-placeholder + .comment-code-cloud {
  1284. padding-top: 0 !important;
  1285. }
  1286. .line-expanded {
  1287. background-color: var(--color-secondary-alpha-20);
  1288. }
  1289. .issue-keyword {
  1290. border-bottom: 1px dotted var(--color-text-light-3) !important;
  1291. }
  1292. .issue-keyword:hover {
  1293. border-bottom: none !important;
  1294. }
  1295. .file-header {
  1296. align-items: center;
  1297. display: flex;
  1298. justify-content: space-between;
  1299. overflow-x: auto;
  1300. padding: 6px 12px !important;
  1301. font-size: 13px !important;
  1302. }
  1303. .file-info {
  1304. display: flex;
  1305. align-items: center;
  1306. }
  1307. .file-info-entry {
  1308. display: flex;
  1309. align-items: center;
  1310. width: max-content;
  1311. }
  1312. .file-info-entry + .file-info-entry {
  1313. border-left: 1px solid currentcolor;
  1314. margin-left: 8px;
  1315. padding-left: 8px;
  1316. }
  1317. #diff-container {
  1318. display: flex;
  1319. }
  1320. #diff-file-boxes {
  1321. flex: 1;
  1322. max-width: 100%;
  1323. display: flex;
  1324. flex-direction: column;
  1325. gap: 8px;
  1326. }
  1327. #diff-file-tree {
  1328. flex: 0 0 20%;
  1329. max-width: 380px;
  1330. line-height: inherit;
  1331. position: sticky;
  1332. padding-top: 0;
  1333. top: 47px;
  1334. max-height: calc(100vh - 47px);
  1335. height: 100%;
  1336. overflow-y: auto;
  1337. }
  1338. .ui.message.unicode-escape-prompt {
  1339. margin-bottom: 0;
  1340. border-radius: 0;
  1341. display: flex;
  1342. flex-direction: column;
  1343. gap: 0.5em;
  1344. }
  1345. /* fomantic's last-child selector does not work with hidden last child */
  1346. .ui.buttons .unescape-button {
  1347. border-top-right-radius: 0.28571429rem;
  1348. border-bottom-right-radius: 0.28571429rem;
  1349. }
  1350. .webhook-info {
  1351. padding: 7px 12px;
  1352. margin: 10px 0;
  1353. background-color: var(--color-markup-code-block);
  1354. border: 1px solid var(--color-secondary);
  1355. border-radius: var(--border-radius);
  1356. font-size: 13px;
  1357. line-height: 1.5;
  1358. overflow: auto;
  1359. }
  1360. .title_wip_desc {
  1361. margin-top: 1em;
  1362. }
  1363. .diff-file-header {
  1364. padding: 5px 8px !important;
  1365. box-shadow: 0 -1px 0 1px var(--color-body); /* prevent borders being visible behind top corners when sticky and scrolled */
  1366. font-weight: var(--font-weight-normal);
  1367. display: flex;
  1368. justify-content: space-between;
  1369. align-items: center;
  1370. flex-wrap: wrap;
  1371. }
  1372. .diff-file-header .file {
  1373. min-width: 0;
  1374. }
  1375. .diff-file-header .file-link {
  1376. max-width: fit-content;
  1377. display: -webkit-box;
  1378. -webkit-box-orient: vertical;
  1379. -webkit-line-clamp: 2;
  1380. overflow: hidden;
  1381. overflow-wrap: anywhere;
  1382. }
  1383. .diff-file-header .button {
  1384. padding: 0 12px;
  1385. flex: 0 0 auto;
  1386. margin-right: 0;
  1387. height: 30px;
  1388. }
  1389. @media (max-width: 767.98px) {
  1390. .diff-file-header {
  1391. flex-direction: column;
  1392. align-items: stretch;
  1393. }
  1394. }
  1395. .diff-file-box[data-folded="true"] .diff-file-body {
  1396. display: none;
  1397. }
  1398. .diff-file-box[data-folded="true"] .diff-file-header {
  1399. border-radius: var(--border-radius) !important;
  1400. }
  1401. .ui.attached.header.diff-file-header.sticky-2nd-row {
  1402. position: sticky;
  1403. top: 44px; /* match .repository .diff-detail-box */
  1404. z-index: 7;
  1405. }
  1406. .diff-file-name {
  1407. flex: auto;
  1408. min-width: 100px;
  1409. }
  1410. .diff-file-name .ui.label {
  1411. margin-left: 0 !important;
  1412. }
  1413. .diff-stats-bar {
  1414. display: inline-block;
  1415. background-color: var(--color-red);
  1416. height: 12px;
  1417. width: 44px;
  1418. }
  1419. .diff-stats-bar .diff-stats-add-bar {
  1420. background-color: var(--color-green);
  1421. height: 100%;
  1422. }
  1423. .ui.form .right .ui.button {
  1424. margin-left: 0.25em;
  1425. margin-right: 0;
  1426. }
  1427. .removed-code {
  1428. background: var(--color-diff-removed-word-bg);
  1429. }
  1430. .added-code {
  1431. background: var(--color-diff-added-word-bg);
  1432. }
  1433. .code-diff-unified .del-code,
  1434. .code-diff-unified .del-code td,
  1435. .code-diff-split .del-code .lines-num-old,
  1436. .code-diff-split .del-code .lines-escape-old,
  1437. .code-diff-split .del-code .lines-type-marker-old,
  1438. .code-diff-split .del-code .lines-code-old {
  1439. background: var(--color-diff-removed-row-bg);
  1440. border-color: var(--color-diff-removed-row-border);
  1441. }
  1442. .code-diff-unified .add-code,
  1443. .code-diff-unified .add-code td,
  1444. .code-diff-split .add-code .lines-type-marker-new,
  1445. .code-diff-split .add-code .lines-escape-new,
  1446. .code-diff-split .add-code .lines-code-new,
  1447. .code-diff-split .del-code .add-code.lines-type-marker-new,
  1448. .code-diff-split .del-code .add-code.lines-escape-new,
  1449. .code-diff-split .del-code .add-code.lines-code-new {
  1450. background: var(--color-diff-added-row-bg);
  1451. border-color: var(--color-diff-added-row-border);
  1452. }
  1453. .code-diff-split .del-code .lines-type-marker-new,
  1454. .code-diff-split .del-code .lines-code-new,
  1455. .code-diff-split .del-code .lines-escape-new,
  1456. .code-diff-split .add-code .lines-escape-old,
  1457. .code-diff-split .add-code .lines-type-marker-old,
  1458. .code-diff-split .add-code .lines-code-old {
  1459. background: var(--color-diff-inactive);
  1460. }
  1461. .code-diff-split .add-code .lines-num.lines-num-old,
  1462. .code-diff-split .del-code .lines-num.lines-num-new {
  1463. background: var(--color-diff-inactive);
  1464. }
  1465. .code-diff-unified .del-code .lines-num,
  1466. .code-diff-split .del-code .lines-num {
  1467. background: var(--color-diff-removed-linenum-bg);
  1468. color: var(--color-text);
  1469. }
  1470. .code-diff-unified .add-code .lines-num,
  1471. .code-diff-split .add-code .lines-num,
  1472. .code-diff-split .del-code .add-code.lines-num {
  1473. background: var(--color-diff-added-linenum-bg);
  1474. color: var(--color-text);
  1475. }
  1476. .code-diff-split tbody tr td:nth-child(5),
  1477. .code-diff-split tbody tr td.add-comment-right {
  1478. border-left: 1px solid var(--color-secondary);
  1479. }
  1480. .migrate-entries {
  1481. display: grid !important;
  1482. grid-template-columns: repeat(3, 1fr);
  1483. gap: 25px;
  1484. margin: 0 !important;
  1485. }
  1486. @media (max-width: 767.98px) {
  1487. .migrate-entries {
  1488. grid-template-columns: repeat(1, 1fr);
  1489. }
  1490. }
  1491. .migrate-entry {
  1492. transition: all 0.1s ease-in-out;
  1493. box-shadow: none !important;
  1494. border: 1px solid var(--color-secondary);
  1495. color: var(--color-text) !important;
  1496. width: auto !important;
  1497. margin: 0 !important;
  1498. }
  1499. .migrate-entry:hover {
  1500. transform: scale(105%);
  1501. box-shadow: 0 0.5rem 1rem var(--color-shadow) !important;
  1502. }
  1503. .commits-table .commits-table-right form {
  1504. display: flex;
  1505. align-items: center;
  1506. gap: 0.75em;
  1507. justify-content: center;
  1508. flex-wrap: wrap;
  1509. }
  1510. @media (max-width: 767.98px) {
  1511. .repository.view.issue .comment-list .timeline,
  1512. .repository.view.issue .comment-list .timeline-item {
  1513. margin-left: 0;
  1514. }
  1515. .repository.view.issue .comment-list .timeline::before {
  1516. left: 14px;
  1517. }
  1518. .repository.view.issue .comment-list .timeline .inline-timeline-avatar {
  1519. display: flex;
  1520. margin-bottom: auto;
  1521. margin-left: 6px;
  1522. margin-right: 2px;
  1523. }
  1524. .repository.view.issue .comment-list .timeline .comment-header {
  1525. padding-left: 4px;
  1526. }
  1527. /* Don't show the general avatar, we show the inline avatar on mobile.
  1528. * And don't show the role labels, there's no place for that. */
  1529. .repository.view.issue .comment-list .timeline .timeline-avatar,
  1530. .repository.view.issue .comment-list .timeline .comment-header-right .role-label {
  1531. display: none;
  1532. }
  1533. .commit-header h3 {
  1534. flex-basis: auto !important;
  1535. margin-bottom: 0.5rem !important;
  1536. }
  1537. .commits-table {
  1538. flex-direction: column;
  1539. }
  1540. .commits-table .commits-table-left {
  1541. align-items: initial !important;
  1542. margin-bottom: 6px;
  1543. }
  1544. .commits-table .commits-table-right form > div:nth-child(1) {
  1545. order: 1; /* the "commit search" input */
  1546. }
  1547. .commits-table .commits-table-right form > div:nth-child(2) {
  1548. order: 3; /* the "search all" checkbox */
  1549. }
  1550. .commits-table .commits-table-right form > button:nth-child(3) {
  1551. order: 2; /* the "search" button */
  1552. }
  1553. .commit-table {
  1554. overflow-x: auto;
  1555. }
  1556. .commit-table td.sha,
  1557. .commit-table th.sha {
  1558. display: none !important;
  1559. }
  1560. }
  1561. .commit-status-header {
  1562. /* reset the default ".ui.attached.header" styles, to use the outer border */
  1563. border: none !important;
  1564. /* add a bottom border to make sure the there is always a divider between the header and list when the list is scrolling */
  1565. border-bottom: 1px solid var(--color-secondary) !important;
  1566. /* use negative margin to avoid the newly added border conflict with the list's top border */
  1567. margin: 0 0 -1px !important;
  1568. }
  1569. .commit-status-list {
  1570. max-height: 240px; /* fit exactly 6 items, commit-status-item.height * 6 */
  1571. overflow-x: hidden;
  1572. transition: max-height .2s;
  1573. }
  1574. .commit-status-item {
  1575. height: 40px;
  1576. padding: 0 10px;
  1577. display: flex;
  1578. gap: 8px;
  1579. align-items: center;
  1580. }
  1581. .commit-status-item + .commit-status-item {
  1582. border-top: 1px solid var(--color-secondary);
  1583. }
  1584. .commit-status-item .commit-status {
  1585. flex-shrink: 0;
  1586. }
  1587. .commit-status-item .status-context {
  1588. color: var(--color-text);
  1589. flex: 1;
  1590. }
  1591. .commit-status-item .status-details {
  1592. display: flex;
  1593. align-items: center;
  1594. justify-content: flex-end;
  1595. gap: 8px;
  1596. }
  1597. @media (max-width: 767.98px) {
  1598. .commit-status-item .status-details {
  1599. flex-direction: column;
  1600. align-items: flex-end;
  1601. justify-content: center;
  1602. }
  1603. }
  1604. .commit-status-item .status-details > span {
  1605. padding-right: 0.5em; /* To match the alignment with the "required" label */
  1606. }
  1607. .search-fullname {
  1608. color: var(--color-text-light-2);
  1609. }
  1610. #issue-pins {
  1611. display: grid;
  1612. grid-template-columns: repeat(3, 1fr);
  1613. gap: 8px;
  1614. margin-bottom: 8px;
  1615. }
  1616. @media (max-width: 767.98px) {
  1617. #issue-pins {
  1618. grid-template-columns: repeat(1, 1fr);
  1619. }
  1620. }
  1621. #cherry-pick-modal .scrolling.menu {
  1622. max-height: 200px;
  1623. }
  1624. .branch-selector-dropdown {
  1625. max-width: 100%;
  1626. }
  1627. .ui.dropdown.branch-selector-dropdown > .menu {
  1628. margin-top: 4px;
  1629. }
  1630. .ui.dropdown.branch-selector-dropdown .scrolling.menu {
  1631. max-width: min(400px, 90vw);
  1632. }
  1633. .branch-selector-dropdown .ui.button.branch-dropdown-button {
  1634. margin: 0;
  1635. max-width: 340px;
  1636. line-height: var(--line-height-default);
  1637. padding: 0 0.5em 0 0.75em;
  1638. }
  1639. /* FIXME: These media selectors are not ideal (just keep them from old code).
  1640. There are many different pages, some need the max-width while some others don't,
  1641. they should be tested and improved in the future. */
  1642. @media (min-width: 768px) and (max-width: 1235px) {
  1643. .branch-selector-dropdown .branch-dropdown-button {
  1644. max-width: 301px;
  1645. }
  1646. }
  1647. @media (max-width: 767.98px) {
  1648. .branch-selector-dropdown .branch-dropdown-button {
  1649. max-width: 165px;
  1650. }
  1651. }
  1652. .branch-selector-dropdown .branch-tag-tab {
  1653. padding: 0 10px;
  1654. }
  1655. .branch-selector-dropdown .branch-tag-item {
  1656. display: inline-block;
  1657. padding: 10px;
  1658. border: 1px solid transparent;
  1659. border-bottom: none;
  1660. }
  1661. .branch-selector-dropdown .branch-tag-item.active {
  1662. border-color: var(--color-secondary);
  1663. background: var(--color-menu);
  1664. border-top-left-radius: var(--border-radius);
  1665. border-top-right-radius: var(--border-radius);
  1666. }
  1667. .branch-selector-dropdown .branch-tag-divider {
  1668. margin-top: -1px !important;
  1669. border-top: 1px solid var(--color-secondary);
  1670. }
  1671. .branch-selector-dropdown .scrolling.menu {
  1672. border-top: none !important;
  1673. }
  1674. .branch-selector-dropdown .menu .item .rss-icon {
  1675. position: absolute;
  1676. right: 4px;
  1677. visibility: hidden; /* only show RSS icon on hover */
  1678. }
  1679. .branch-selector-dropdown .menu .item:hover .rss-icon {
  1680. visibility: visible;
  1681. }
  1682. .branch-selector-dropdown .scrolling.menu .loading-indicator {
  1683. height: 4em;
  1684. }