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.

_repository.less 65KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589
  1. .repository {
  2. .popup.commit-statuses {
  3. // we had better limit the max size of the popup, and add scroll bars if the content size is too large.
  4. // otherwise some part of the popup will be hidden by viewport boundary
  5. max-height: 45vh;
  6. max-width: 60vw;
  7. &.ui.right {
  8. // Override `.ui.attached.header .right:not(.dropdown) height: 30px;` which would otherwise lead to
  9. // the status popup box having its height fixed at 30px. See https://github.com/go-gitea/gitea/issues/18498
  10. height: auto;
  11. }
  12. overflow: auto;
  13. padding: 0;
  14. .list {
  15. padding: .8em; // to make the scrollbar align to the border, we move the padding from outer `.popup` to this inside `.list`
  16. > .item {
  17. line-height: 2;
  18. }
  19. }
  20. }
  21. .repo-header {
  22. .ui.compact.menu {
  23. margin-left: 1rem;
  24. }
  25. .ui.header {
  26. margin-top: 0;
  27. }
  28. .fork-flag {
  29. font-size: 12px;
  30. margin-top: 2px;
  31. }
  32. .repo-buttons .svg {
  33. margin: 0 .42857143em 0 -.21428571em;
  34. }
  35. .button {
  36. margin-top: 2px;
  37. margin-bottom: 2px;
  38. }
  39. }
  40. .tabs {
  41. .navbar {
  42. justify-content: initial;
  43. }
  44. }
  45. .navbar {
  46. display: flex;
  47. justify-content: space-between;
  48. .ui.label {
  49. margin-left: 7px;
  50. padding: 3px 5px;
  51. }
  52. }
  53. .owner.dropdown {
  54. min-width: 40% !important;
  55. }
  56. .unicode-escaped .escaped-code-point {
  57. &[data-escaped]::before {
  58. visibility: visible;
  59. content: attr(data-escaped);
  60. font-family: var(--fonts-monospace);
  61. color: var(--color-red);
  62. }
  63. .char {
  64. display: none;
  65. }
  66. }
  67. .broken-code-point {
  68. font-family: var(--fonts-monospace);
  69. color: var(--color-blue);
  70. }
  71. .unicode-escaped .ambiguous-code-point {
  72. border: 1px var(--color-yellow) solid;
  73. }
  74. .metas {
  75. .menu {
  76. overflow-x: auto;
  77. max-height: 300px;
  78. }
  79. .ui.list {
  80. &.assignees .icon {
  81. line-height: 2em;
  82. }
  83. &.assignees .teamavatar {
  84. margin-top: .125rem;
  85. margin-left: 6.75px;
  86. margin-right: 8.75px;
  87. }
  88. .hide {
  89. display: none !important;
  90. }
  91. .dependency {
  92. padding: 0;
  93. white-space: nowrap;
  94. }
  95. .title {
  96. max-width: 200px;
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. }
  100. @media @mediaLgAndDown {
  101. .title {
  102. max-width: 150px;
  103. }
  104. }
  105. @media (max-width: 1000px) {
  106. .title {
  107. max-width: 100px;
  108. }
  109. }
  110. }
  111. #deadlineForm input {
  112. width: 12.8rem;
  113. border-radius: 4px 0 0 4px;
  114. border-right: 0;
  115. white-space: nowrap;
  116. }
  117. }
  118. .header-wrapper {
  119. background-color: var(--color-navbar);
  120. .ui.tabs.divider {
  121. border-bottom: 0;
  122. }
  123. .ui.tabular .svg {
  124. margin-right: 5px;
  125. }
  126. }
  127. .filter.menu {
  128. .label.color {
  129. border-radius: 3px;
  130. margin-left: 15px;
  131. padding: 0 8px;
  132. }
  133. &.labels {
  134. .label-filter .menu .info {
  135. display: inline-block;
  136. padding: .5rem .25rem;
  137. border-bottom: 1px solid var(--color-secondary);
  138. font-size: 12px;
  139. width: 100%;
  140. white-space: nowrap;
  141. text-align: center;
  142. code {
  143. border: 1px solid var(--color-secondary);
  144. border-radius: 3px;
  145. padding: 1px 2px;
  146. font-size: 11px;
  147. }
  148. }
  149. }
  150. .menu {
  151. max-height: 300px;
  152. overflow-x: auto;
  153. right: 0 !important;
  154. left: auto !important;
  155. }
  156. }
  157. .select-label {
  158. .desc {
  159. padding-left: 16px;
  160. }
  161. }
  162. .ui.tabs {
  163. &.container {
  164. margin-top: 14px;
  165. margin-bottom: 0;
  166. .ui.menu {
  167. border-bottom: 0;
  168. }
  169. }
  170. &.divider {
  171. margin-top: 0;
  172. margin-bottom: 20px;
  173. }
  174. }
  175. #clone-panel {
  176. #repo-clone-url {
  177. width: 320px;
  178. @media @mediaMd {
  179. width: 200px;
  180. }
  181. @media @mediaSm {
  182. width: 200px;
  183. }
  184. }
  185. #repo-clone-https,
  186. #repo-clone-ssh {
  187. border-right: none;
  188. }
  189. #more-btn {
  190. border-left: none;
  191. }
  192. button:first-of-type {
  193. border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
  194. }
  195. button:last-of-type {
  196. border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
  197. }
  198. .dropdown .menu {
  199. right: 0 !important;
  200. left: auto !important;
  201. }
  202. }
  203. &.file.list {
  204. .repo-description {
  205. display: flex;
  206. justify-content: space-between;
  207. align-items: center;
  208. }
  209. #repo-desc {
  210. font-size: 1.2em;
  211. }
  212. .choose.reference {
  213. .header .icon {
  214. font-size: 1.4em;
  215. }
  216. }
  217. .repo-path {
  218. .section,
  219. .divider {
  220. display: inline;
  221. }
  222. }
  223. #repo-files-table {
  224. thead {
  225. th {
  226. padding-top: 8px;
  227. padding-bottom: 5px;
  228. font-weight: normal;
  229. }
  230. .ui.avatar {
  231. margin-bottom: 5px;
  232. }
  233. }
  234. tbody {
  235. .svg {
  236. margin-left: 3px;
  237. margin-right: 5px;
  238. &.octicon-reply {
  239. margin-right: 10px;
  240. }
  241. &.octicon-file-directory-fill,
  242. &.octicon-file-submodule {
  243. color: var(--color-primary);
  244. }
  245. &.octicon-file,
  246. &.octicon-file-symlink-file {
  247. color: var(--color-secondary-dark-7);
  248. }
  249. }
  250. }
  251. td {
  252. padding-top: 0;
  253. padding-bottom: 0;
  254. overflow: initial;
  255. &.name {
  256. @media @mediaXl {
  257. max-width: 150px;
  258. }
  259. @media @mediaLg {
  260. max-width: 200px;
  261. }
  262. @media @mediaMd {
  263. max-width: 300px;
  264. }
  265. width: 33%;
  266. max-width: calc(100vw - 140px);
  267. }
  268. &.message {
  269. color: var(--color-text-light-1);
  270. @media @mediaXl {
  271. max-width: 400px;
  272. }
  273. @media @mediaLg {
  274. max-width: 350px;
  275. }
  276. @media @mediaMd {
  277. max-width: 250px;
  278. }
  279. width: 66%;
  280. }
  281. &.age {
  282. width: 120px;
  283. color: var(--color-text-light-1);
  284. }
  285. .truncate {
  286. display: inline-block;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. white-space: nowrap;
  290. width: 100%;
  291. padding-top: 8px;
  292. padding-bottom: 8px;
  293. }
  294. a {
  295. padding-top: 8px;
  296. padding-bottom: 8px;
  297. }
  298. .at {
  299. margin-left: 3px;
  300. margin-right: 3px;
  301. }
  302. > * {
  303. vertical-align: middle;
  304. }
  305. }
  306. td.message .isSigned {
  307. cursor: default;
  308. }
  309. tr:last-of-type {
  310. td:first-child {
  311. border-bottom-left-radius: var(--border-radius);
  312. }
  313. td:last-child {
  314. border-bottom-right-radius: var(--border-radius);
  315. }
  316. }
  317. tr:hover {
  318. background-color: var(--color-hover);
  319. }
  320. tr.has-parent a {
  321. display: inline-block;
  322. padding-top: 8px;
  323. padding-bottom: 8px;
  324. width: calc(100% - 1.25rem);
  325. }
  326. }
  327. .non-diff-file-content {
  328. .header {
  329. .icon {
  330. font-size: 1em;
  331. }
  332. .small.icon {
  333. font-size: .75em;
  334. }
  335. .tiny.icon {
  336. font-size: .5em;
  337. }
  338. .file-actions {
  339. .btn-octicon {
  340. line-height: 1;
  341. padding: 10px 8px;
  342. vertical-align: middle;
  343. color: var(--color-text);
  344. }
  345. .btn-octicon:hover {
  346. color: var(--color-primary);
  347. }
  348. .btn-octicon-danger:hover {
  349. color: var(--color-red);
  350. }
  351. .btn-octicon.disabled {
  352. color: inherit;
  353. opacity: var(--opacity-disabled);
  354. cursor: default;
  355. }
  356. }
  357. }
  358. .view-raw {
  359. padding: 5px;
  360. > * {
  361. max-width: 100%;
  362. border: 1px solid var(--color-secondary);
  363. }
  364. img {
  365. margin: 1rem 0;
  366. border-radius: 0;
  367. object-fit: contain;
  368. }
  369. img[src$='.svg' i] {
  370. max-height: 600px !important;
  371. max-width: 600px !important;
  372. }
  373. }
  374. .plain-text {
  375. padding: 1em 2em;
  376. pre {
  377. word-break: break-word;
  378. white-space: pre-wrap;
  379. }
  380. }
  381. .csv {
  382. overflow-x: auto;
  383. padding: 0 !important;
  384. }
  385. pre {
  386. overflow: auto;
  387. }
  388. }
  389. .sidebar {
  390. padding-left: 0;
  391. .svg {
  392. width: 16px;
  393. }
  394. }
  395. }
  396. &.file.editor {
  397. .treepath {
  398. width: 100%;
  399. input {
  400. vertical-align: middle;
  401. box-shadow: rgba(0, 0, 0, .0745098) 0 1px 2px inset;
  402. width: inherit;
  403. padding: 7px 8px;
  404. margin-right: 5px;
  405. }
  406. }
  407. .tabular.menu {
  408. .svg {
  409. margin-right: 5px;
  410. }
  411. }
  412. .commit-form-wrapper {
  413. padding-left: 64px;
  414. .commit-avatar {
  415. float: left;
  416. margin-left: -64px;
  417. width: 3em;
  418. height: auto;
  419. }
  420. .commit-form {
  421. position: relative;
  422. padding: 15px;
  423. margin-bottom: 10px;
  424. border: 1px solid var(--color-secondary);
  425. background: var(--color-box-body);
  426. border-radius: 3px;
  427. #avatar-arrow();
  428. &::after {
  429. border-right-color: var(--color-box-body);
  430. }
  431. .quick-pull-choice {
  432. .branch-name {
  433. display: inline-block;
  434. padding: 2px 4px;
  435. font: 12px var(--fonts-monospace);
  436. color: var(--color-text);
  437. background: var(--color-secondary);
  438. border-radius: 3px;
  439. margin: 0 2px;
  440. }
  441. .new-branch-name-input {
  442. position: relative;
  443. margin-left: 25px;
  444. input {
  445. width: 240px !important;
  446. padding-left: 26px !important;
  447. }
  448. }
  449. .octicon-git-branch {
  450. position: absolute;
  451. top: 9px;
  452. left: 10px;
  453. color: var(--color-grey);
  454. }
  455. }
  456. }
  457. }
  458. }
  459. &.options {
  460. #interval {
  461. width: 100px !important;
  462. min-width: 100px;
  463. }
  464. .danger {
  465. .item {
  466. padding: 20px 15px;
  467. }
  468. .ui.divider {
  469. margin: 0;
  470. }
  471. }
  472. }
  473. @comment-avatar-width: 3em;
  474. .comment textarea {
  475. max-height: none !important;
  476. }
  477. &.new.issue {
  478. .comment.form {
  479. .comment {
  480. .avatar {
  481. width: @comment-avatar-width;
  482. }
  483. }
  484. .content {
  485. margin-left: 4em;
  486. #avatar-arrow();
  487. &::after {
  488. border-right-color: var(--color-box-body);
  489. }
  490. .markup {
  491. font-size: 14px;
  492. }
  493. }
  494. .metas {
  495. min-width: 220px;
  496. .filter.menu {
  497. max-height: 300px;
  498. overflow-x: auto;
  499. }
  500. }
  501. }
  502. }
  503. &.view.issue {
  504. .instruct-toggle {
  505. display: inline-block;
  506. }
  507. .title {
  508. padding-bottom: 0 !important;
  509. .issue-title {
  510. margin-bottom: .5rem;
  511. &.edit-active {
  512. display: flex;
  513. align-items: center;
  514. h1 {
  515. display: flex;
  516. width: 100%;
  517. }
  518. @media @mediaSm {
  519. flex-direction: column;
  520. h1 {
  521. margin-right: 0;
  522. margin-bottom: 1rem;
  523. padding-right: 0;
  524. .ui.input input {
  525. width: calc(100% - 2rem);
  526. }
  527. }
  528. .edit-buttons {
  529. padding-bottom: 1rem;
  530. width: 100%;
  531. .button {
  532. width: 100%;
  533. margin-right: .5rem;
  534. &:last-child {
  535. margin-right: 0;
  536. }
  537. }
  538. }
  539. }
  540. }
  541. h1 {
  542. font-weight: 300;
  543. font-size: 2.3rem;
  544. margin: 0;
  545. padding-right: .5rem;
  546. .ui.input {
  547. font-size: .5em;
  548. width: 100%;
  549. input {
  550. font-size: 1.5em;
  551. padding: 6px 1rem;
  552. }
  553. }
  554. }
  555. .edit-button {
  556. float: right;
  557. padding-left: 1rem;
  558. }
  559. .edit-buttons {
  560. display: flex;
  561. }
  562. .index {
  563. color: var(--color-text-light-2);
  564. }
  565. .label {
  566. margin-right: 10px;
  567. }
  568. .edit-zone {
  569. margin-top: 10px;
  570. }
  571. }
  572. }
  573. .pull-desc {
  574. code {
  575. color: var(--color-primary);
  576. }
  577. a[data-clipboard-text] {
  578. cursor: pointer;
  579. svg {
  580. vertical-align: middle;
  581. position: relative;
  582. top: -2px;
  583. right: 1px;
  584. }
  585. }
  586. }
  587. .pull {
  588. &.tabular.menu {
  589. margin-bottom: 1rem;
  590. .svg {
  591. margin-right: 5px;
  592. }
  593. }
  594. .merge.box {
  595. .avatar {
  596. margin-left: 10px;
  597. margin-top: 10px;
  598. }
  599. .branch-update.grid {
  600. .row {
  601. padding-bottom: 1rem;
  602. .icon {
  603. margin-top: 1.1rem;
  604. }
  605. }
  606. }
  607. }
  608. .review-item {
  609. display: flex;
  610. justify-content: space-between;
  611. align-items: center;
  612. .review-item-left,
  613. .review-item-right {
  614. display: flex;
  615. align-items: center;
  616. }
  617. .text {
  618. margin: .3em 0 .5em .5em;
  619. }
  620. .type-icon {
  621. align-self: flex-start;
  622. margin-right: 1em;
  623. i {
  624. line-height: 1.8em;
  625. }
  626. }
  627. .divider {
  628. margin: .5rem 0;
  629. }
  630. .review-content {
  631. padding: 1em 0 1em 3.8em;
  632. }
  633. }
  634. }
  635. .comment-list {
  636. &:not(.prevent-before-timeline)::before {
  637. display: block;
  638. content: "";
  639. position: absolute;
  640. margin-top: 12px;
  641. margin-bottom: 14px;
  642. top: 0;
  643. bottom: 0;
  644. left: 96px;
  645. width: 2px;
  646. background-color: var(--color-timeline);
  647. z-index: -1;
  648. }
  649. .timeline {
  650. position: relative;
  651. display: block;
  652. margin-left: 40px;
  653. padding-left: 16px;
  654. &::before { //ciara
  655. display: block;
  656. content: "";
  657. position: absolute;
  658. margin-top: 12px;
  659. margin-bottom: 14px;
  660. top: 0;
  661. bottom: 0;
  662. left: 30px;
  663. width: 2px;
  664. background-color: var(--color-timeline);
  665. z-index: -1;
  666. }
  667. }
  668. .timeline-item,
  669. .timeline-item-group {
  670. padding: 12px 0;
  671. }
  672. .timeline-item-group {
  673. .timeline-item {
  674. padding-top: 8px;
  675. padding-bottom: 8px;
  676. }
  677. }
  678. .timeline-item {
  679. margin-left: 16px;
  680. position: relative;
  681. .timeline-avatar {
  682. position: absolute;
  683. left: -68px;
  684. img {
  685. width: 40px !important;
  686. height: 40px !important;
  687. }
  688. }
  689. /* Don't show the mobile oriented avatar ".inline-timeline-avatar" on desktop. Desktop uses the avatar with class ".timeline-avatar" */
  690. .inline-timeline-avatar {
  691. display: none;
  692. }
  693. img.avatar,
  694. .avatar img {
  695. width: 20px;
  696. height: 20px;
  697. vertical-align: middle;
  698. }
  699. &:first-child:not(.commit) {
  700. padding-top: 0 !important;
  701. }
  702. &:last-child:not(.commit) {
  703. padding-bottom: 0 !important;
  704. }
  705. .badge.badge-commit {
  706. border-color: transparent;
  707. background: radial-gradient(var(--color-body) 40%, transparent 40%) no-repeat;
  708. }
  709. .badge {
  710. width: 34px;
  711. height: 34px;
  712. background-color: var(--color-timeline);
  713. border-radius: 50%;
  714. display: flex;
  715. float: left;
  716. margin-left: -33px;
  717. margin-right: 8px;
  718. color: var(--color-text);
  719. align-items: center;
  720. justify-content: center;
  721. .svg {
  722. width: 22px;
  723. height: 22px;
  724. padding: 3px;
  725. &.octicon-comment {
  726. margin-top: 2px;
  727. }
  728. }
  729. }
  730. &.comment > .content {
  731. margin-left: -16px;
  732. }
  733. &.event > .text {
  734. line-height: 32px;
  735. vertical-align: middle;
  736. }
  737. &.commits-list {
  738. padding-left: 15px;
  739. padding-top: 0;
  740. .singular-commit {
  741. line-height: 34px; /* this must be same as .badge height, to avoid overflow */
  742. clear: both; // reset the "float right shabox", in the future, use flexbox instead
  743. > img.avatar,
  744. > .avatar img {
  745. position: relative;
  746. top: -2px;
  747. }
  748. .shabox {
  749. .sha.label {
  750. margin: 0;
  751. border: 1px solid var(--color-light-border);
  752. &.isSigned.isWarning {
  753. border: 1px solid var(--color-red-badge);
  754. background: var(--color-red-badge-bg);
  755. .shortsha {
  756. display: inline-block;
  757. padding-top: 1px;
  758. }
  759. &:hover {
  760. background: var(--color-red-badge-hover-bg) !important;
  761. }
  762. }
  763. &.isSigned.isVerified {
  764. border: 1px solid var(--color-green-badge);
  765. background: var(--color-green-badge-bg);
  766. .shortsha {
  767. display: inline-block;
  768. padding-top: 1px;
  769. }
  770. &:hover {
  771. background: var(--color-green-badge-hover-bg) !important;
  772. }
  773. }
  774. &.isSigned.isVerifiedUntrusted {
  775. border: 1px solid var(--color-yellow-badge);
  776. background: var(--color-yellow-badge-bg);
  777. .shortsha {
  778. display: inline-block;
  779. padding-top: 1px;
  780. }
  781. &:hover {
  782. background: var(--color-yellow-badge-hover-bg) !important;
  783. }
  784. }
  785. &.isSigned.isVerifiedUnmatched {
  786. border: 1px solid var(--color-orange-badge);
  787. background: var(--color-orange-badge-bg);
  788. .shortsha {
  789. display: inline-block;
  790. padding-top: 1px;
  791. }
  792. &:hover {
  793. background: var(--color-orange-badge-hover-bg) !important;
  794. }
  795. }
  796. }
  797. }
  798. }
  799. }
  800. &.event > .commit-status-link {
  801. float: right;
  802. margin-right: 8px;
  803. margin-top: 4px;
  804. }
  805. .comment-form-reply .footer {
  806. padding-bottom: 1em;
  807. }
  808. @media @mediaSm {
  809. .ui.segments {
  810. margin-left: -2rem;
  811. }
  812. }
  813. }
  814. .ui.comments {
  815. max-width: 100%;
  816. .avatar {
  817. margin-right: .5rem;
  818. }
  819. }
  820. .comment {
  821. > .content {
  822. > div:first-child {
  823. border-top-left-radius: 4px;
  824. border-top-right-radius: 4px;
  825. }
  826. > div:last-child {
  827. border-bottom-left-radius: 4px;
  828. border-bottom-right-radius: 4px;
  829. }
  830. }
  831. .comment-container {
  832. border: 1px solid var(--color-secondary);
  833. border-radius: var(--border-radius);
  834. }
  835. .content {
  836. @media @mediaSm {
  837. .form .button {
  838. width: 100%;
  839. margin: 0;
  840. &:not(:last-child) {
  841. margin-bottom: 1rem;
  842. }
  843. }
  844. }
  845. }
  846. .merge-section {
  847. background-color: var(--color-box-body);
  848. .item-section {
  849. display: flex;
  850. align-items: center;
  851. justify-content: space-between;
  852. padding: 0;
  853. margin-top: -.25rem;
  854. margin-bottom: -.25rem;
  855. }
  856. @media @mediaSm {
  857. .item-section {
  858. align-items: flex-start;
  859. flex-direction: column;
  860. }
  861. }
  862. .divider {
  863. margin-left: -1rem;
  864. margin-right: -1rem;
  865. }
  866. &.no-header {
  867. #avatar-arrow();
  868. &::after {
  869. border-right-color: var(--color-box-body);
  870. }
  871. }
  872. }
  873. .markup {
  874. font-size: 14px;
  875. }
  876. .no-content {
  877. color: var(--color-text-light-2);
  878. font-style: italic;
  879. }
  880. .ui.form {
  881. .field {
  882. &:first-child {
  883. clear: none;
  884. }
  885. &.footer {
  886. overflow: hidden;
  887. }
  888. .tab.markup {
  889. min-height: 5rem;
  890. }
  891. }
  892. textarea {
  893. height: 200px;
  894. font-family: var(--fonts-monospace);
  895. }
  896. }
  897. .edit.buttons {
  898. margin-top: 10px;
  899. }
  900. }
  901. .code-comment {
  902. border: 1px solid transparent;
  903. padding: .25rem .5rem;
  904. margin: 0;
  905. .content {
  906. border: none !important;
  907. }
  908. .comment-header {
  909. background: transparent;
  910. border-bottom: 0 !important;
  911. padding: 0 !important;
  912. &::after,
  913. &::before {
  914. display: none;
  915. }
  916. }
  917. .comment-content {
  918. margin-left: 36px;
  919. }
  920. }
  921. .code-comment,
  922. .comment {
  923. img.avatar {
  924. width: 28px;
  925. height: 28px;
  926. }
  927. }
  928. .comment-code-cloud {
  929. .segment.reactions {
  930. margin-top: 16px !important;
  931. margin-bottom: -8px !important;
  932. border-top: none !important;
  933. .ui.label {
  934. border: 1px solid;
  935. padding: 6px 10px !important;
  936. margin: 0 2px;
  937. border-radius: var(--border-radius);
  938. border-color: var(--color-secondary-dark-1) !important;
  939. }
  940. .ui.label.basic.primary {
  941. background-color: var(--color-reaction-active-bg) !important;
  942. border-color: var(--color-primary-alpha-80) !important;
  943. }
  944. }
  945. button.comment-form-reply {
  946. margin: 0;
  947. }
  948. }
  949. .event {
  950. padding-left: 15px;
  951. .detail {
  952. margin-top: 4px;
  953. margin-left: 14px;
  954. .svg {
  955. margin-right: 2px;
  956. }
  957. }
  958. .segments {
  959. box-shadow: none;
  960. }
  961. }
  962. @media @mediaSm {
  963. padding: 1rem 0 !important; // Important is required here to override existing fomantic styles.
  964. }
  965. }
  966. .ui.depending {
  967. .item.is-closed {
  968. .title {
  969. text-decoration: line-through;
  970. }
  971. }
  972. }
  973. }
  974. .comment.form {
  975. .ui.comments {
  976. margin-top: -12px;
  977. max-width: 100%;
  978. }
  979. .content {
  980. .field:first-child {
  981. clear: none;
  982. }
  983. .form {
  984. #avatar-arrow();
  985. &::after {
  986. border-right-color: var(--color-box-body);
  987. }
  988. }
  989. textarea {
  990. height: 200px;
  991. font-family: var(--fonts-monospace);
  992. }
  993. .CodeMirror-scroll {
  994. max-height: 85vh;
  995. }
  996. }
  997. }
  998. .milestone.list {
  999. list-style: none;
  1000. padding-top: 15px;
  1001. > .item {
  1002. padding-top: 10px;
  1003. padding-bottom: 10px;
  1004. border-bottom: 1px dashed var(--color-secondary);
  1005. progress {
  1006. width: 200px;
  1007. height: 16px;
  1008. }
  1009. .meta {
  1010. color: var(--color-text-light-2);
  1011. padding-top: 5px;
  1012. .issue-stats .svg {
  1013. padding-left: 5px;
  1014. }
  1015. .overdue {
  1016. color: var(--color-red);
  1017. }
  1018. }
  1019. .operate {
  1020. margin-top: -15px;
  1021. > a {
  1022. font-size: 15px;
  1023. padding-top: 5px;
  1024. padding-right: 10px;
  1025. color: var(--color-text-light-2);
  1026. &:hover {
  1027. color: var(--color-text);
  1028. }
  1029. }
  1030. }
  1031. .content {
  1032. padding-top: 10px;
  1033. }
  1034. }
  1035. }
  1036. &.new.milestone {
  1037. textarea {
  1038. height: 200px;
  1039. }
  1040. }
  1041. &.compare.pull {
  1042. .show-form-container {
  1043. text-align: left;
  1044. }
  1045. .choose.branch {
  1046. .svg {
  1047. margin-right: 10px;
  1048. }
  1049. }
  1050. .comment.form {
  1051. .content {
  1052. #avatar-arrow();
  1053. &::after {
  1054. border-right-color: var(--color-box-body);
  1055. }
  1056. }
  1057. }
  1058. .pullrequest-form {
  1059. margin-bottom: 1.5rem;
  1060. }
  1061. .markup {
  1062. font-size: 14px;
  1063. }
  1064. .title {
  1065. .issue-title {
  1066. margin-bottom: .5rem;
  1067. .index {
  1068. color: var(--color-text-light-2);
  1069. }
  1070. }
  1071. }
  1072. }
  1073. .filter.dropdown .menu {
  1074. margin-top: 1px !important;
  1075. }
  1076. &.branches {
  1077. .commit-divergence {
  1078. .bar-group {
  1079. position: relative;
  1080. float: left;
  1081. padding-bottom: 6px;
  1082. width: 50%;
  1083. max-width: 90px;
  1084. &:last-child {
  1085. border-left: 1px solid var(--color-secondary-dark-2);
  1086. }
  1087. }
  1088. .count {
  1089. margin: 0 3px;
  1090. &.count-ahead {
  1091. text-align: left;
  1092. }
  1093. &.count-behind {
  1094. text-align: right;
  1095. }
  1096. }
  1097. .bar {
  1098. height: 4px;
  1099. position: absolute;
  1100. background-color: var(--color-secondary-dark-2);
  1101. &.bar-behind {
  1102. right: 0;
  1103. }
  1104. &.bar-ahead {
  1105. left: 0;
  1106. }
  1107. }
  1108. }
  1109. }
  1110. &.commits {
  1111. .header {
  1112. .search {
  1113. input {
  1114. font-weight: normal;
  1115. padding: 5px 10px;
  1116. }
  1117. }
  1118. }
  1119. }
  1120. #commits-table {
  1121. thead {
  1122. th:first-of-type {
  1123. padding-left: 15px;
  1124. }
  1125. .sha {
  1126. &td {
  1127. text-align: center;
  1128. }
  1129. width: 200px;
  1130. }
  1131. }
  1132. td.sha .sha.label {
  1133. margin: 0;
  1134. }
  1135. td.message {
  1136. text-overflow: unset;
  1137. }
  1138. &.ui.basic.striped.table tbody tr:nth-child(2n) {
  1139. background-color: rgba(0, 0, 0, .02) !important;
  1140. }
  1141. }
  1142. #commits-table td.sha .sha.label,
  1143. #repo-files-table .sha.label,
  1144. #rev-list .sha.label,
  1145. .timeline-item.commits-list .singular-commit .sha.label {
  1146. border: 1px solid var(--color-light-border);
  1147. .ui.signature.avatar {
  1148. height: 16px;
  1149. margin-bottom: 0;
  1150. width: 16px;
  1151. }
  1152. .detail.icon {
  1153. background: var(--color-light);
  1154. margin: -6px -10px -4px 0;
  1155. padding: 5px 4px 5px 6px;
  1156. border-left: 1px solid var(--color-light-border);
  1157. border-top: 0;
  1158. border-right: 0;
  1159. border-bottom: 0;
  1160. border-top-left-radius: 0;
  1161. border-bottom-left-radius: 0;
  1162. img {
  1163. margin-right: 0;
  1164. }
  1165. .svg {
  1166. margin: 0 .25em 0 0;
  1167. }
  1168. > div {
  1169. display: flex;
  1170. align-items: center;
  1171. }
  1172. }
  1173. &.isSigned.isWarning {
  1174. border: 1px solid var(--color-red-badge);
  1175. background: var(--color-red-badge-bg);
  1176. .shortsha {
  1177. display: inline-block;
  1178. padding-top: 1px;
  1179. }
  1180. .detail.icon {
  1181. border-left: 1px solid var(--color-red-badge);
  1182. color: var(--color-red-badge);
  1183. }
  1184. &:hover {
  1185. background: var(--color-red-badge-hover-bg) !important;
  1186. }
  1187. }
  1188. &.isSigned.isVerified {
  1189. border: 1px solid var(--color-green-badge);
  1190. background: var(--color-green-badge-bg);
  1191. .shortsha {
  1192. display: inline-block;
  1193. padding-top: 1px;
  1194. }
  1195. .detail.icon {
  1196. border-left: 1px solid var(--color-green-badge);
  1197. color: var(--color-green-badge);
  1198. }
  1199. &:hover {
  1200. background: var(--color-green-badge-hover-bg) !important;
  1201. }
  1202. }
  1203. &.isSigned.isVerifiedUntrusted {
  1204. border: 1px solid var(--color-yellow-badge);
  1205. background: var(--color-yellow-badge-bg);
  1206. .shortsha {
  1207. display: inline-block;
  1208. padding-top: 1px;
  1209. }
  1210. .detail.icon {
  1211. border-left: 1px solid var(--color-yellow-badge);
  1212. color: var(--color-yellow-badge);
  1213. }
  1214. &:hover {
  1215. background: var(--color-yellow-badge-hover-bg) !important;
  1216. }
  1217. }
  1218. &.isSigned.isVerifiedUnmatched {
  1219. border: 1px solid var(--color-orange-badge);
  1220. background: var(--color-orange-badge-bg);
  1221. .shortsha {
  1222. display: inline-block;
  1223. padding-top: 1px;
  1224. }
  1225. .detail.icon {
  1226. border-left: 1px solid var(--color-orange-badge);
  1227. color: var(--color-orange-badge);
  1228. }
  1229. &:hover {
  1230. background: var(--color-orange-badge-hover-bg) !important;
  1231. }
  1232. }
  1233. }
  1234. .data-table {
  1235. width: 100%;
  1236. tr {
  1237. border-top: 0;
  1238. }
  1239. td,
  1240. th {
  1241. padding: 5px !important;
  1242. overflow: hidden;
  1243. font-size: 12px;
  1244. text-align: left;
  1245. white-space: nowrap;
  1246. border: 1px solid var(--color-secondary);
  1247. }
  1248. td {
  1249. white-space: pre-line;
  1250. }
  1251. th {
  1252. font-weight: 600;
  1253. background: var(--color-box-header);
  1254. border-top: 0;
  1255. }
  1256. td.added,
  1257. th.added,
  1258. tr.added {
  1259. background-color: var(--color-diff-added-row-bg) !important;
  1260. }
  1261. td.removed,
  1262. th.removed,
  1263. tr.removed {
  1264. background-color: var(--color-diff-removed-row-bg) !important;
  1265. }
  1266. td.moved,
  1267. th.moved,
  1268. tr.moved {
  1269. background-color: var(--color-diff-moved-row-bg) !important;
  1270. }
  1271. tbody.section {
  1272. border-top: 2px solid var(--color-secondary);
  1273. }
  1274. .line-num {
  1275. &:extend(.unselectable);
  1276. width: 1%;
  1277. min-width: 50px;
  1278. font-family: monospace;
  1279. line-height: 20px;
  1280. color: var(--color-secondary-dark-2);
  1281. white-space: nowrap;
  1282. vertical-align: top;
  1283. cursor: pointer;
  1284. text-align: right;
  1285. background: var(--color-body);
  1286. border: 0;
  1287. }
  1288. }
  1289. .diff-detail-box {
  1290. padding: 7px 0;
  1291. background: var(--color-body);
  1292. line-height: 30px;
  1293. @media @mediaMdAndDown {
  1294. flex-direction: column;
  1295. align-items: flex-start;
  1296. }
  1297. @media (max-width: 480px) {
  1298. flex-wrap: wrap;
  1299. }
  1300. &.sticky {
  1301. position: sticky;
  1302. top: 0;
  1303. z-index: 8;
  1304. border-bottom: 1px solid var(--color-secondary);
  1305. padding-left: 2px;
  1306. padding-right: 2px;
  1307. margin-left: -1px;
  1308. margin-right: -1px;
  1309. }
  1310. > div::after {
  1311. clear: both;
  1312. content: "";
  1313. display: block;
  1314. }
  1315. .diff-detail-stats strong {
  1316. margin-left: .25rem;
  1317. margin-right: .25rem;
  1318. }
  1319. .diff-detail-stats {
  1320. @media (max-width: 480px) {
  1321. font-size: 0;
  1322. line-height: 1.6rem;
  1323. strong {
  1324. font-size: 1rem;
  1325. }
  1326. }
  1327. }
  1328. .diff-detail-actions > * {
  1329. margin-right: 0;
  1330. }
  1331. .diff-detail-actions > * + * {
  1332. margin-left: .25rem;
  1333. }
  1334. .diff-detail-actions {
  1335. @media (max-width: 480px) {
  1336. padding-top: .25rem;
  1337. .ui.button:not(.btn-submit) {
  1338. padding-left: .5rem;
  1339. padding-right: .5rem;
  1340. display: flex;
  1341. flex-wrap: wrap;
  1342. justify-content: center;
  1343. text-align: center;
  1344. }
  1345. }
  1346. }
  1347. span.status {
  1348. display: inline-block;
  1349. width: 12px;
  1350. height: 12px;
  1351. margin-right: 8px;
  1352. vertical-align: middle;
  1353. &.modify {
  1354. background-color: var(--color-yellow);
  1355. }
  1356. &.add {
  1357. background-color: var(--color-green);
  1358. }
  1359. &.del {
  1360. background-color: var(--color-red);
  1361. }
  1362. &.rename {
  1363. background-color: var(--color-teal);
  1364. }
  1365. }
  1366. .button {
  1367. padding: 8px 12px;
  1368. }
  1369. }
  1370. .diff-box .header:not(.resolved-placeholder) {
  1371. display: flex;
  1372. align-items: center;
  1373. .file {
  1374. flex: 1;
  1375. word-break: break-all;
  1376. }
  1377. .button {
  1378. padding: 8px 12px;
  1379. flex: 0 0 auto;
  1380. margin-top: -8px;
  1381. margin-bottom: -8px;
  1382. margin-right: 0;
  1383. }
  1384. }
  1385. .diff-box .resolved-placeholder {
  1386. display: flex;
  1387. align-items: center;
  1388. .button {
  1389. padding: 8px 12px;
  1390. }
  1391. }
  1392. .diff-file-box {
  1393. .header {
  1394. background-color: var(--color-box-header);
  1395. }
  1396. .file-body.file-code {
  1397. background: var(--color-code-bg);
  1398. .lines-num {
  1399. &:extend(.unselectable);
  1400. text-align: right;
  1401. color: var(--color-text-light);
  1402. width: 1%;
  1403. min-width: 50px;
  1404. span.fold {
  1405. display: block;
  1406. text-align: center;
  1407. }
  1408. }
  1409. }
  1410. .code-diff {
  1411. font-size: 12px;
  1412. td {
  1413. padding: 0 0 0 10px !important;
  1414. border-top: 0;
  1415. }
  1416. .lines-num {
  1417. padding: 0 5px !important;
  1418. }
  1419. .tag-code .lines-num,
  1420. .tag-code td {
  1421. padding: 0 !important;
  1422. }
  1423. tbody {
  1424. tr {
  1425. td.halfwidth {
  1426. // halfwidth is used in split view - and in that case, 1% of each
  1427. width: 49%;
  1428. }
  1429. td.center {
  1430. text-align: center;
  1431. }
  1432. [data-line-num]::before {
  1433. content: attr(data-line-num);
  1434. text-align: right;
  1435. }
  1436. .lines-type-marker {
  1437. &:extend(.unselectable);
  1438. width: 10px;
  1439. min-width: 10px;
  1440. }
  1441. [data-type-marker]::before {
  1442. content: attr(data-type-marker);
  1443. text-align: right;
  1444. display: inline-block;
  1445. }
  1446. }
  1447. }
  1448. }
  1449. .code-diff-split {
  1450. .tag-code .lines-code code.code-inner {
  1451. padding-left: 10px !important;
  1452. }
  1453. table,
  1454. tbody {
  1455. width: 100%;
  1456. }
  1457. }
  1458. &.file-content {
  1459. img {
  1460. max-width: 100%;
  1461. padding: 0;
  1462. border-radius: 0;
  1463. }
  1464. img.emoji {
  1465. padding: 0;
  1466. }
  1467. clear: right;
  1468. }
  1469. .ui.bottom.attached.table.segment {
  1470. padding-top: 5px;
  1471. padding-bottom: 5px;
  1472. }
  1473. }
  1474. .diff-stats {
  1475. clear: both;
  1476. margin-bottom: 5px;
  1477. max-height: 400px;
  1478. overflow: auto;
  1479. padding-left: 0;
  1480. li {
  1481. list-style: none;
  1482. padding-bottom: 4px;
  1483. margin-bottom: 4px;
  1484. padding-left: 6px;
  1485. }
  1486. li + li {
  1487. border-top: 1px solid var(--color-secondary);
  1488. }
  1489. }
  1490. .repo-search-result {
  1491. padding-top: 10px;
  1492. padding-bottom: 10px;
  1493. .lines-num a {
  1494. color: inherit;
  1495. }
  1496. }
  1497. &.quickstart {
  1498. .guide {
  1499. .item {
  1500. padding: 1em;
  1501. small {
  1502. font-weight: normal;
  1503. }
  1504. }
  1505. .clone.button:first-child {
  1506. border-radius: var(--border-radius) 0 0 var(--border-radius);
  1507. }
  1508. .ui.action.small.input {
  1509. width: 100%;
  1510. }
  1511. #repo-clone-url {
  1512. border-radius: 0;
  1513. padding: 5px 10px;
  1514. font-size: 1.2em;
  1515. line-height: 1.4;
  1516. }
  1517. }
  1518. }
  1519. &.release {
  1520. #release-list {
  1521. border-top: 1px solid var(--color-secondary);
  1522. margin-top: 20px;
  1523. padding-top: 15px;
  1524. padding-left: 0;
  1525. .release-list-title {
  1526. font-size: 2rem;
  1527. font-weight: normal;
  1528. margin-top: -4px;
  1529. margin-bottom: 0;
  1530. }
  1531. > li {
  1532. list-style: none;
  1533. .meta,
  1534. .detail {
  1535. padding-top: 30px;
  1536. padding-bottom: 40px;
  1537. }
  1538. .meta {
  1539. text-align: right;
  1540. position: relative;
  1541. .label {
  1542. margin-right: 0;
  1543. }
  1544. .commit {
  1545. display: block;
  1546. margin-top: 10px;
  1547. }
  1548. .choose {
  1549. margin-top: 15px;
  1550. .button {
  1551. margin-right: 0;
  1552. }
  1553. }
  1554. }
  1555. .detail {
  1556. border-left: 2px solid var(--color-secondary);
  1557. .author {
  1558. img {
  1559. margin-bottom: 3px;
  1560. }
  1561. }
  1562. .download {
  1563. > a {
  1564. .svg {
  1565. margin-left: 5px;
  1566. margin-right: 5px;
  1567. }
  1568. }
  1569. .list {
  1570. padding-left: 0;
  1571. li {
  1572. list-style: none;
  1573. display: block;
  1574. padding: 8px;
  1575. border: 1px solid var(--color-secondary);
  1576. background: var(--color-light);
  1577. a > .text.right {
  1578. margin-right: 5px;
  1579. }
  1580. }
  1581. li + li {
  1582. border-top: 0;
  1583. }
  1584. li:first-of-type {
  1585. border-radius: var(--border-radius) 0 0 var(--border-radius);
  1586. }
  1587. li:last-of-type {
  1588. border-radius: 0 var(--border-radius) var(--border-radius) 0;
  1589. }
  1590. }
  1591. }
  1592. .dot {
  1593. width: 10px;
  1594. height: 10px;
  1595. background-color: var(--color-secondary-dark-3);
  1596. z-index: 9;
  1597. position: absolute;
  1598. display: block;
  1599. left: -6px;
  1600. top: 40px;
  1601. border-radius: 100%;
  1602. border: 2.5px solid var(--color-body);
  1603. }
  1604. }
  1605. }
  1606. }
  1607. #tags-table {
  1608. .tag {
  1609. padding: 8px 12px;
  1610. }
  1611. .release-tag-name {
  1612. font-size: 18px;
  1613. font-weight: normal;
  1614. }
  1615. }
  1616. }
  1617. &.new.release {
  1618. .target {
  1619. min-width: 500px;
  1620. #tag-name {
  1621. margin-top: -4px;
  1622. }
  1623. .at {
  1624. margin-left: -5px;
  1625. margin-right: 5px;
  1626. }
  1627. .selection.dropdown {
  1628. padding-top: 10px;
  1629. padding-bottom: 10px;
  1630. }
  1631. }
  1632. .prerelease.field {
  1633. margin-bottom: 0;
  1634. }
  1635. .field {
  1636. button,
  1637. input {
  1638. @media (max-width: 438px) {
  1639. width: 100%;
  1640. }
  1641. }
  1642. button {
  1643. @media @mediaSm {
  1644. margin-bottom: 1em;
  1645. }
  1646. }
  1647. .wrap_remove {
  1648. height: 38px;
  1649. }
  1650. .attachment_edit {
  1651. width: 450px !important;
  1652. }
  1653. }
  1654. }
  1655. &.forks {
  1656. .list {
  1657. margin-top: 0;
  1658. .item {
  1659. padding-top: 10px;
  1660. padding-bottom: 10px;
  1661. border-bottom: 1px solid var(--color-secondary);
  1662. .ui.avatar {
  1663. float: left;
  1664. margin-right: 5px;
  1665. }
  1666. .link {
  1667. padding-top: 5px;
  1668. }
  1669. }
  1670. }
  1671. }
  1672. &.packages {
  1673. .empty {
  1674. padding-top: 70px;
  1675. padding-bottom: 100px;
  1676. .svg {
  1677. height: 48px;
  1678. }
  1679. }
  1680. .file-size {
  1681. white-space: nowrap;
  1682. }
  1683. }
  1684. &.wiki {
  1685. &.start {
  1686. .ui.segment {
  1687. padding-top: 70px;
  1688. padding-bottom: 100px;
  1689. .svg {
  1690. height: 48px;
  1691. }
  1692. }
  1693. }
  1694. &.new {
  1695. .ui.attached.tabular.menu.previewtabs {
  1696. margin-bottom: 15px;
  1697. }
  1698. }
  1699. &.view {
  1700. > .markup {
  1701. padding: 15px 30px;
  1702. h1,
  1703. h2,
  1704. h3,
  1705. h4,
  1706. h5,
  1707. h6 {
  1708. &:first-of-type {
  1709. margin-top: 0;
  1710. }
  1711. }
  1712. }
  1713. }
  1714. .form .CodeMirror-scroll {
  1715. max-height: 85vh;
  1716. }
  1717. @media @mediaSm {
  1718. .dividing.header .stackable.grid .button {
  1719. margin-top: 2px;
  1720. margin-bottom: 2px;
  1721. }
  1722. }
  1723. @media @mediaSm {
  1724. #clone-panel #repo-clone-url {
  1725. width: 160px;
  1726. }
  1727. }
  1728. }
  1729. &.settings {
  1730. &.collaboration {
  1731. .collaborator.list {
  1732. padding: 0;
  1733. > .item {
  1734. margin: 0;
  1735. line-height: 2em;
  1736. &:not(:last-child) {
  1737. border-bottom: 1px solid var(--color-secondary);
  1738. }
  1739. }
  1740. }
  1741. #repo-collab-form {
  1742. #search-user-box {
  1743. .results {
  1744. left: 7px;
  1745. }
  1746. }
  1747. .ui.button {
  1748. margin-left: 5px;
  1749. margin-top: -3px;
  1750. }
  1751. }
  1752. #repo-collab-team-form {
  1753. #search-team-box {
  1754. .results {
  1755. left: 7px;
  1756. }
  1757. }
  1758. .ui.button {
  1759. margin-left: 5px;
  1760. margin-top: -3px;
  1761. }
  1762. }
  1763. }
  1764. &.branches {
  1765. .protected-branches {
  1766. .selection.dropdown {
  1767. width: 300px;
  1768. }
  1769. .item {
  1770. border: 1px solid var(--color-secondary);
  1771. padding: 10px 15px;
  1772. &:not(:last-child) {
  1773. border-bottom: 0;
  1774. }
  1775. }
  1776. }
  1777. .branch-protection {
  1778. .help {
  1779. margin-left: 26px;
  1780. padding-top: 0;
  1781. }
  1782. .fields {
  1783. margin-left: 20px;
  1784. display: block;
  1785. }
  1786. .whitelist {
  1787. margin-left: 26px;
  1788. .dropdown img {
  1789. display: inline-block;
  1790. }
  1791. }
  1792. }
  1793. }
  1794. &.webhook {
  1795. .events {
  1796. .column {
  1797. padding-bottom: 0;
  1798. }
  1799. .help {
  1800. font-size: 13px;
  1801. margin-left: 26px;
  1802. padding-top: 0;
  1803. }
  1804. }
  1805. }
  1806. }
  1807. .ui.attached.isSigned.isWarning {
  1808. border-left: 1px solid var(--color-error-border);
  1809. border-right: 1px solid var(--color-error-border);
  1810. &.top,
  1811. &.message {
  1812. border-top: 1px solid var(--color-error-border);
  1813. }
  1814. &.message {
  1815. box-shadow: none;
  1816. background-color: var(--color-error-bg);
  1817. color: var(--color-error-text);
  1818. .ui.text {
  1819. color: var(--color-error-text);
  1820. }
  1821. }
  1822. &:last-child,
  1823. &.bottom {
  1824. border-bottom: 1px solid var(--color-error-border);
  1825. }
  1826. }
  1827. .ui.attached.isSigned.isVerified {
  1828. border-left: 1px solid var(--color-success-border);
  1829. border-right: 1px solid var(--color-success-border);
  1830. &.top,
  1831. &.message {
  1832. border-top: 1px solid var(--color-success-border);
  1833. }
  1834. &.message {
  1835. box-shadow: none;
  1836. background-color: var(--color-success-bg);
  1837. color: var(--color-success-text);
  1838. .pull-right {
  1839. color: var(--color-text);
  1840. }
  1841. .ui.text {
  1842. color: var(--color-success-text);
  1843. }
  1844. }
  1845. &:last-child,
  1846. &.bottom {
  1847. border-bottom: 1px solid var(--color-success-border);
  1848. }
  1849. }
  1850. .ui.attached.isSigned.isVerifiedUntrusted,
  1851. .ui.attached.isSigned.isVerifiedUnmatched {
  1852. border-left: 1px solid var(--color-warning-border);
  1853. border-right: 1px solid var(--color-warning-border);
  1854. &.top,
  1855. &.message {
  1856. border-top: 1px solid var(--color-warning-border);
  1857. }
  1858. &.message {
  1859. box-shadow: none;
  1860. background-color: var(--color-warning-bg);
  1861. color: var(--color-warning-text);
  1862. .ui.text {
  1863. color: var(--color-warning-text);
  1864. }
  1865. }
  1866. &:last-child,
  1867. &.bottom {
  1868. border-bottom: 1px solid var(--color-warning-border);
  1869. }
  1870. }
  1871. .ui.segment.sub-menu {
  1872. padding: 7px;
  1873. line-height: 0;
  1874. .list {
  1875. width: 100%;
  1876. display: flex;
  1877. align-items: center;
  1878. .item {
  1879. width: 100%;
  1880. color: var(--color-text);
  1881. &:first-of-type {
  1882. border-radius: var(--border-radius) 0 0 var(--border-radius);
  1883. padding-left: .25rem;
  1884. }
  1885. &:last-of-type {
  1886. border-radius: 0 var(--border-radius) var(--border-radius) 0;
  1887. padding-right: .25rem;
  1888. }
  1889. a {
  1890. color: var(--color-text);
  1891. &:hover {
  1892. color: var(--color-primary-light-2);
  1893. }
  1894. }
  1895. &.active {
  1896. background: var(--color-secondary);
  1897. }
  1898. }
  1899. }
  1900. }
  1901. .segment.reactions,
  1902. .select-reaction {
  1903. &.dropdown .menu {
  1904. right: 0 !important;
  1905. left: auto !important;
  1906. min-width: 15em;
  1907. > .header {
  1908. margin: .75rem 0 .5rem;
  1909. }
  1910. > .item {
  1911. float: left;
  1912. padding: .25rem !important;
  1913. margin: .25rem;
  1914. font-size: 1.5em;
  1915. width: 39px;
  1916. left: 13px;
  1917. border-radius: 6px;
  1918. display: flex;
  1919. justify-content: center;
  1920. align-items: center;
  1921. img.emoji {
  1922. margin-right: 0;
  1923. }
  1924. }
  1925. > .item:hover {
  1926. background: var(--color-primary);
  1927. }
  1928. }
  1929. }
  1930. .segment.reactions {
  1931. padding: 0;
  1932. display: flex;
  1933. border: none !important;
  1934. border-top: 1px solid var(--color-secondary) !important;
  1935. width: 100% !important;
  1936. max-width: 100% !important;
  1937. margin: 0 !important;
  1938. .ui.label {
  1939. max-height: 40px;
  1940. padding: 10px 18px !important;
  1941. display: flex !important;
  1942. align-items: center;
  1943. border: 0;
  1944. border-right: 1px solid;
  1945. border-radius: 0;
  1946. margin: 0;
  1947. font-size: 14px;
  1948. font-weight: normal;
  1949. border-color: var(--color-secondary) !important;
  1950. background: var(--color-reaction-bg);
  1951. &.disabled {
  1952. cursor: default;
  1953. opacity: 1;
  1954. }
  1955. }
  1956. .ui.label.basic {
  1957. color: var(--color-primary) !important;
  1958. }
  1959. .ui.label.basic.primary {
  1960. background-color: var(--color-reaction-active-bg) !important;
  1961. border-color: var(--color-secondary) !important;
  1962. }
  1963. .reaction-count {
  1964. margin-left: .5rem;
  1965. }
  1966. .select-reaction {
  1967. display: flex;
  1968. align-items: center;
  1969. padding: 0 14px;
  1970. &:not(.active) a {
  1971. display: none;
  1972. }
  1973. }
  1974. &:hover .select-reaction a {
  1975. display: block;
  1976. }
  1977. }
  1978. .ui.fluid.action.input {
  1979. .ui.search.action.input {
  1980. flex: auto;
  1981. }
  1982. }
  1983. .repository-summary {
  1984. box-shadow: none !important;
  1985. .segment.language-stats-details,
  1986. .segment.repository-summary {
  1987. border-top: none;
  1988. background: none;
  1989. }
  1990. .segment.language-stats-details .item {
  1991. white-space: nowrap;
  1992. }
  1993. .segment.language-stats {
  1994. &:extend(.unselectable);
  1995. padding: 0;
  1996. height: 11px;
  1997. display: flex;
  1998. white-space: nowrap;
  1999. width: 100%;
  2000. border-radius: 0;
  2001. @media @mediaSm {
  2002. display: none;
  2003. }
  2004. .bar {
  2005. white-space: nowrap;
  2006. border: 0;
  2007. padding: 0;
  2008. margin: 0;
  2009. height: 100%;
  2010. }
  2011. }
  2012. }
  2013. .repository-menu {
  2014. padding: 0 !important;
  2015. }
  2016. .repository-menu .item {
  2017. padding-top: 9px !important;
  2018. padding-bottom: 9px !important;
  2019. }
  2020. }
  2021. // End of .repository
  2022. #cite-repo-modal {
  2023. #citation-panel {
  2024. width: 500px;
  2025. @media @mediaSm {
  2026. width: 100%;
  2027. }
  2028. input {
  2029. border-radius: 0;
  2030. padding: 5px 10px;
  2031. width: 50%;
  2032. line-height: 1.4;
  2033. }
  2034. .citation.button {
  2035. font-size: 13px;
  2036. padding: 7.5px 5px;
  2037. }
  2038. #citation-copy-content {
  2039. border-radius: 0;
  2040. padding: 5px 10px;
  2041. font-size: 1.2em;
  2042. line-height: 1.4;
  2043. }
  2044. #citation-copy-apa,
  2045. #citation-copy-bibtex {
  2046. border-right: none;
  2047. }
  2048. #goto-citation-btn {
  2049. border-left: none;
  2050. }
  2051. >:first-child {
  2052. border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
  2053. }
  2054. >:last-child {
  2055. border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
  2056. }
  2057. .icon.button {
  2058. padding: 0 10px;
  2059. }
  2060. }
  2061. }
  2062. &.user-cards {
  2063. .list {
  2064. padding: 0;
  2065. display: flex;
  2066. flex-wrap: wrap;
  2067. .item {
  2068. list-style: none;
  2069. width: 32%;
  2070. margin: 10px 10px 10px 0;
  2071. padding-bottom: 14px;
  2072. float: left;
  2073. .avatar {
  2074. width: 48px;
  2075. height: 48px;
  2076. float: left;
  2077. display: block;
  2078. margin-right: 10px;
  2079. }
  2080. .name {
  2081. margin-top: 0;
  2082. margin-bottom: 0;
  2083. font-weight: normal;
  2084. }
  2085. .meta {
  2086. margin-top: 5px;
  2087. }
  2088. }
  2089. }
  2090. }
  2091. #search-repo-box,
  2092. #search-user-box {
  2093. .results {
  2094. .result {
  2095. img {
  2096. float: left;
  2097. margin-right: 8px;
  2098. width: 2em;
  2099. height: 2em;
  2100. }
  2101. .content {
  2102. margin: 6px 0;
  2103. }
  2104. }
  2105. }
  2106. }
  2107. #search-team-box {
  2108. .results {
  2109. .result {
  2110. .content {
  2111. margin: 6px 0;
  2112. }
  2113. }
  2114. }
  2115. }
  2116. #issue-filters.hide {
  2117. display: none;
  2118. }
  2119. #issue-actions {
  2120. margin-top: -1rem !important; // counteract padding from Semantic
  2121. }
  2122. #issue-actions.hide {
  2123. display: none;
  2124. }
  2125. .ui.menu .item > img:not(.ui) {
  2126. width: auto;
  2127. }
  2128. .page.buttons {
  2129. padding-top: 15px;
  2130. }
  2131. .commit-header-row {
  2132. min-height: 50px !important;
  2133. padding-top: 0 !important;
  2134. padding-bottom: 0 !important;
  2135. }
  2136. .settings {
  2137. .content {
  2138. > .header,
  2139. .segment {
  2140. box-shadow: 0 1px 2px 0 var(--color-box-header);
  2141. }
  2142. }
  2143. &.webhooks .list > .item:not(:first-child),
  2144. &.githooks .list > .item:not(:first-child) {
  2145. padding: .25rem 1rem;
  2146. margin: 12px -1rem -1rem;
  2147. }
  2148. .list {
  2149. > .item {
  2150. &:not(:first-child) {
  2151. border-top: 1px solid var(--color-secondary);
  2152. padding: 1rem;
  2153. margin: 16px -1rem -1rem;
  2154. }
  2155. > .svg {
  2156. display: table-cell;
  2157. }
  2158. > .svg + .content {
  2159. display: table-cell;
  2160. padding: 0 0 0 .5em;
  2161. vertical-align: top;
  2162. }
  2163. .info {
  2164. margin-top: 10px;
  2165. .tab.segment {
  2166. border: 0;
  2167. padding: 10px 0 0;
  2168. }
  2169. }
  2170. }
  2171. &.key {
  2172. .meta {
  2173. padding-top: 5px;
  2174. color: var(--color-text-light-2);
  2175. }
  2176. }
  2177. &.email {
  2178. > .item:not(:first-child) {
  2179. min-height: 60px;
  2180. }
  2181. }
  2182. &.collaborator {
  2183. > .item {
  2184. padding: 0;
  2185. }
  2186. }
  2187. }
  2188. }
  2189. .ui.vertical.menu {
  2190. .header.item {
  2191. font-size: 1.1em;
  2192. background: var(--color-box-header);
  2193. }
  2194. }
  2195. .comment:target .comment-container {
  2196. border-color: var(--color-primary) !important;
  2197. box-shadow: 0 0 0 3px var(--color-primary-alpha-30) !important;
  2198. }
  2199. .comment:target .header::before {
  2200. border-right-color: var(--color-primary) !important;
  2201. filter: drop-shadow(-3px 0 0 var(--color-primary-alpha-30)) !important;
  2202. }
  2203. .code-comment:target {
  2204. border-color: var(--color-primary) !important;
  2205. border-radius: var(--border-radius) !important;
  2206. box-shadow: 0 0 0 3px var(--color-primary-alpha-30) !important;
  2207. }
  2208. .code-comment:target .content {
  2209. box-shadow: none !important;
  2210. }
  2211. .comment-header {
  2212. #avatar-arrow();
  2213. border: none !important;
  2214. background: var(--color-box-header);
  2215. border-bottom: 1px solid var(--color-secondary) !important;
  2216. font-weight: normal !important;
  2217. padding: .5rem 1rem;
  2218. margin: 0 !important;
  2219. position: relative;
  2220. color: var(--color-text-light-2);
  2221. min-height: 41px;
  2222. background-color: var(--color-box-header);
  2223. display: flex;
  2224. justify-content: space-between;
  2225. align-items: center;
  2226. &.arrow-top::before,
  2227. &.arrow-top::after {
  2228. transform: rotate(90deg);
  2229. }
  2230. &.arrow-top::before {
  2231. top: -9px;
  2232. left: 6px;
  2233. }
  2234. &.arrow-top::after {
  2235. top: -8px;
  2236. left: 7px;
  2237. }
  2238. a {
  2239. color: var(--color-text);
  2240. }
  2241. a:hover {
  2242. color: var(--color-primary);
  2243. }
  2244. }
  2245. .comment-header .actions a {
  2246. margin-right: 0 !important;
  2247. padding: .5rem !important;
  2248. }
  2249. .comment-header-left > * + *,
  2250. .comment-header-right > * + * {
  2251. margin-left: .25rem;
  2252. }
  2253. .comment-body {
  2254. background: var(--color-box-body);
  2255. border: none !important;
  2256. width: 100% !important;
  2257. max-width: 100% !important;
  2258. margin: 0 !important;
  2259. }
  2260. .edit-label.modal,
  2261. .new-label.segment {
  2262. .form {
  2263. .column {
  2264. padding-right: 0;
  2265. }
  2266. .buttons {
  2267. margin-left: auto;
  2268. padding-top: 15px;
  2269. }
  2270. .color.picker.column {
  2271. width: auto;
  2272. .color-picker {
  2273. height: 35px;
  2274. width: auto;
  2275. padding-left: 30px;
  2276. }
  2277. }
  2278. .minicolors-swatch.minicolors-sprite {
  2279. top: 10px;
  2280. left: 10px;
  2281. width: 15px;
  2282. height: 15px;
  2283. }
  2284. }
  2285. }
  2286. #avatar-arrow {
  2287. &::before,
  2288. &::after {
  2289. right: 100%;
  2290. top: 20px;
  2291. border: solid transparent;
  2292. content: " ";
  2293. height: 0;
  2294. width: 0;
  2295. position: absolute;
  2296. pointer-events: none;
  2297. }
  2298. &::before {
  2299. border-right-color: var(--color-secondary);
  2300. border-width: 9px;
  2301. margin-top: -9px;
  2302. }
  2303. &::after {
  2304. border-right-color: var(--color-box-header);
  2305. border-width: 8px;
  2306. margin-top: -8px;
  2307. }
  2308. }
  2309. #transfer-repo-modal,
  2310. #delete-repo-modal,
  2311. #delete-wiki-modal,
  2312. #convert-fork-repo-modal,
  2313. #convert-mirror-repo-modal,
  2314. #fork-repo-modal {
  2315. .ui.message {
  2316. width: 100% !important;
  2317. }
  2318. }
  2319. // generate .tab-size-{i} from 1 to 16
  2320. .generate-tab-size(16);
  2321. .generate-tab-size(@n, @i: 1) when (@i =< @n) {
  2322. .tab-size-@{i} {
  2323. tab-size: @i !important;
  2324. -moz-tab-size: @i !important;
  2325. }
  2326. .generate-tab-size(@n, (@i + 1));
  2327. }
  2328. .stats-table {
  2329. display: table;
  2330. width: 100%;
  2331. .table-cell {
  2332. display: table-cell;
  2333. &.tiny {
  2334. height: .5em;
  2335. }
  2336. }
  2337. }
  2338. .labels-list .label {
  2339. margin: 2px 0;
  2340. display: inline-block !important;
  2341. line-height: 1.3em; // there is a `font-size: 1.25em` for inside emoji, so here the line-height needs to be larger slightly
  2342. }
  2343. .repo-button-row {
  2344. margin-bottom: 10px;
  2345. }
  2346. .repo-button-row > * {
  2347. margin-top: 10px;
  2348. }
  2349. .repo-button-row .dropdown > .dropdown.icon {
  2350. margin-left: .25rem !important;
  2351. margin-right: 0 !important;
  2352. }
  2353. .wiki .repo-button-row {
  2354. margin-bottom: 0;
  2355. }
  2356. .wiki .repo-button-row > * {
  2357. margin-top: 0;
  2358. }
  2359. .repo-button-row .button {
  2360. padding: 6px 10px !important;
  2361. height: 30px;
  2362. }
  2363. .repo-button-row input {
  2364. height: 30px;
  2365. }
  2366. tbody.commit-list {
  2367. vertical-align: baseline;
  2368. }
  2369. .message-wrapper {
  2370. overflow: hidden;
  2371. text-overflow: ellipsis;
  2372. max-width: calc(100% - 50px);
  2373. display: inline-block;
  2374. vertical-align: middle;
  2375. }
  2376. // in the commit list, messages can wrap so we can use inline
  2377. .commit-list .message-wrapper {
  2378. display: inline;
  2379. }
  2380. @media @mediaSm {
  2381. tr.commit-list {
  2382. width: 100%;
  2383. }
  2384. th .message-wrapper {
  2385. display: block;
  2386. max-width: calc(100vw - 70px);
  2387. }
  2388. }
  2389. @media @mediaMd {
  2390. tr.commit-list {
  2391. width: 723px;
  2392. }
  2393. th .message-wrapper {
  2394. max-width: 280px;
  2395. }
  2396. }
  2397. @media @mediaLg {
  2398. tr.commit-list {
  2399. width: 933px;
  2400. }
  2401. th .message-wrapper {
  2402. max-width: 490px;
  2403. }
  2404. }
  2405. @media @mediaXl {
  2406. tr.commit-list {
  2407. width: 1127px;
  2408. }
  2409. th .message-wrapper {
  2410. max-width: 680px;
  2411. }
  2412. }
  2413. .commit-list .commit-status-link {
  2414. display: inline-block;
  2415. vertical-align: middle;
  2416. }
  2417. .commit-body {
  2418. white-space: pre-wrap;
  2419. line-height: initial;
  2420. }
  2421. .repository:not(.diff) {
  2422. .commit-body { // commit history list
  2423. margin: 0;
  2424. }
  2425. .timeline-item .commit-body { // PR-comment
  2426. margin-left: 40px;
  2427. }
  2428. }
  2429. .git-notes.top {
  2430. text-align: left;
  2431. }
  2432. .comment-diff-data {
  2433. background: var(--color-code-bg);
  2434. max-height: calc(100vh - 10.5rem);
  2435. overflow-y: auto;
  2436. }
  2437. .comment-diff-data pre {
  2438. line-height: 18px;
  2439. white-space: pre-wrap;
  2440. word-break: break-all;
  2441. overflow-wrap: break-word;
  2442. }
  2443. .content-history-detail-dialog .header .avatar {
  2444. position: relative;
  2445. top: -2px;
  2446. }
  2447. #topic_edit {
  2448. margin-top: 5px;
  2449. }
  2450. #repo-topics {
  2451. margin-top: 5px;
  2452. display: flex;
  2453. align-items: center;
  2454. flex-wrap: wrap;
  2455. }
  2456. .repo-topic {
  2457. font-weight: normal !important;
  2458. cursor: pointer;
  2459. margin: 2px !important;
  2460. }
  2461. #new-dependency-drop-list {
  2462. &.ui.selection.dropdown {
  2463. min-width: 0;
  2464. width: 100%;
  2465. border-radius: 4px 0 0 4px;
  2466. border-right: 0;
  2467. white-space: nowrap;
  2468. }
  2469. .text {
  2470. width: 100%;
  2471. overflow: hidden;
  2472. }
  2473. }
  2474. #manage_topic {
  2475. font-size: 12px;
  2476. }
  2477. .label + #manage_topic {
  2478. margin-left: 5px;
  2479. }
  2480. .ui.small.label.topic {
  2481. margin-bottom: 4px;
  2482. }
  2483. .repo-header {
  2484. display: flex;
  2485. align-items: center;
  2486. justify-content: space-between;
  2487. flex-wrap: wrap;
  2488. word-break: break-word;
  2489. @media @mediaSm {
  2490. + .container {
  2491. margin-top: 7px;
  2492. }
  2493. }
  2494. }
  2495. .repo-buttons {
  2496. align-items: center;
  2497. display: flex;
  2498. flex-direction: row;
  2499. flex-wrap: wrap;
  2500. word-break: keep-all;
  2501. @media @mediaSm {
  2502. margin-top: 1em;
  2503. }
  2504. }
  2505. .repo-buttons .ui.labeled.button > .label:hover {
  2506. color: var(--color-primary-light-2);
  2507. background: var(--color-light);
  2508. }
  2509. .label-mimic-enabled() {
  2510. color: var(--color-text-dark);
  2511. background: var(--color-light-mimic-enabled) !important;
  2512. &:hover {
  2513. color: var(--color-primary-dark-1);
  2514. }
  2515. }
  2516. .repo-buttons button[disabled] ~ .label {
  2517. opacity: var(--opacity-disabled);
  2518. .label-mimic-enabled();
  2519. }
  2520. .repo-buttons .ui.labeled.button {
  2521. cursor: initial;
  2522. > .label {
  2523. border-left: 0 !important;
  2524. margin: 0 !important;
  2525. }
  2526. &.disabled {
  2527. pointer-events: inherit !important;
  2528. > .label {
  2529. .label-mimic-enabled();
  2530. }
  2531. > .button {
  2532. pointer-events: none !important;
  2533. }
  2534. }
  2535. @media @mediaSm {
  2536. .svg {
  2537. display: none;
  2538. }
  2539. }
  2540. }
  2541. .tag-code {
  2542. height: 28px;
  2543. }
  2544. .tag-code,
  2545. .tag-code td,
  2546. .tag-code .blob-excerpt {
  2547. background-color: var(--color-box-body-highlight);
  2548. vertical-align: middle;
  2549. }
  2550. .resolved-placeholder {
  2551. font-weight: normal !important;
  2552. border: 1px solid var(--color-secondary) !important;
  2553. border-radius: var(--border-radius) !important;
  2554. margin: 4px !important;
  2555. }
  2556. .resolved-placeholder + .comment-code-cloud {
  2557. padding-top: 0 !important;
  2558. }
  2559. td.blob-excerpt {
  2560. background-color: var(--color-secondary-alpha-30);
  2561. }
  2562. .issue-keyword {
  2563. border-bottom: 1px dotted var(--color-text-light-3) !important;
  2564. }
  2565. .issue-keyword:hover {
  2566. border-bottom: none !important;
  2567. }
  2568. .file-header {
  2569. align-items: center;
  2570. display: flex;
  2571. justify-content: space-between;
  2572. overflow-x: auto;
  2573. padding: 6px 12px !important;
  2574. font-size: 13px !important;
  2575. }
  2576. .file-info {
  2577. display: flex;
  2578. align-items: center;
  2579. }
  2580. .file-info-entry {
  2581. display: flex;
  2582. align-items: center;
  2583. width: max-content;
  2584. }
  2585. .file-info-entry + .file-info-entry {
  2586. border-left: 1px solid currentcolor;
  2587. margin-left: 8px;
  2588. padding-left: 8px;
  2589. }
  2590. #diff-container {
  2591. display: flex;
  2592. }
  2593. #diff-file-boxes {
  2594. flex: 1;
  2595. }
  2596. #diff-file-tree {
  2597. width: 20%;
  2598. max-width: 380px;
  2599. line-height: inherit;
  2600. position: sticky;
  2601. padding-top: 0;
  2602. top: 47px;
  2603. max-height: calc(100vh - 50px);
  2604. height: 100%;
  2605. overflow-y: auto;
  2606. }
  2607. @media @mediaMdAndDown {
  2608. #diff-file-tree {
  2609. display: none !important;
  2610. }
  2611. .diff-toggle-file-tree-button {
  2612. display: none !important;
  2613. }
  2614. }
  2615. .ui.message.unicode-escape-prompt {
  2616. margin-bottom: 0;
  2617. border-radius: 0;
  2618. display: flex;
  2619. flex-direction: column;
  2620. }
  2621. .wiki-content-sidebar .ui.message.unicode-escape-prompt,
  2622. .wiki-content-footer .ui.message.unicode-escape-prompt {
  2623. p {
  2624. display: none;
  2625. }
  2626. }
  2627. .wiki-content-toc {
  2628. > ul > li {
  2629. margin-bottom: 4px;
  2630. }
  2631. ul {
  2632. margin: 0;
  2633. list-style: none;
  2634. padding-left: 1em;
  2635. }
  2636. }
  2637. /* fomantic's last-child selector does not work with hidden last child */
  2638. .ui.buttons .unescape-button {
  2639. border-top-right-radius: .28571429rem;
  2640. border-bottom-right-radius: .28571429rem;
  2641. }
  2642. .webhook-info {
  2643. padding: 7px 12px;
  2644. margin: 10px 0;
  2645. background-color: var(--color-markup-code-block);
  2646. border: 1px solid var(--color-secondary);
  2647. border-radius: 3px;
  2648. font-size: 13px;
  2649. line-height: 1.5;
  2650. overflow: auto;
  2651. }
  2652. .title_wip_desc {
  2653. margin-top: 1em;
  2654. }
  2655. .sidebar-item-link {
  2656. display: inline-flex;
  2657. align-items: center;
  2658. }
  2659. .diff-file-box[data-folded="true"] .diff-file-body {
  2660. display: none;
  2661. }
  2662. .diff-file-box[data-folded="true"] .diff-file-header {
  2663. border-radius: var(--border-radius) !important;
  2664. }
  2665. .diff-file-header-actions > * + * {
  2666. margin-left: .5rem !important;
  2667. }
  2668. .ui.attached.header.diff-file-header {
  2669. &.sticky-2nd-row {
  2670. position: sticky;
  2671. top: 46px;
  2672. z-index: 7;
  2673. @media @mediaMd {
  2674. top: 77px;
  2675. }
  2676. @media @mediaSm {
  2677. top: 77px;
  2678. }
  2679. @media (max-width: 480px) {
  2680. position: static;
  2681. }
  2682. }
  2683. }
  2684. .diff-stats-bar {
  2685. display: inline-block;
  2686. background-color: var(--color-red);
  2687. height: 12px;
  2688. width: 40px;
  2689. .diff-stats-add-bar {
  2690. background-color: var(--color-green);
  2691. height: 100%;
  2692. }
  2693. }
  2694. /* prevent page shaking on language bar click */
  2695. .repository-summary-language-stats {
  2696. height: 48px;
  2697. overflow: hidden;
  2698. @media @mediaSm {
  2699. height: auto;
  2700. }
  2701. }
  2702. .ui.form .right .ui.button {
  2703. margin-left: .25em;
  2704. margin-right: 0;
  2705. }
  2706. .removed-code {
  2707. background: var(--color-diff-removed-word-bg);
  2708. }
  2709. .added-code {
  2710. background: var(--color-diff-added-word-bg);
  2711. }
  2712. .code-diff-unified .del-code,
  2713. .code-diff-unified .del-code td,
  2714. .code-diff-split .del-code .lines-num-old,
  2715. .code-diff-split .del-code .lines-escape-old,
  2716. .code-diff-split .del-code .lines-type-marker-old,
  2717. .code-diff-split .del-code .lines-code-old {
  2718. background: var(--color-diff-removed-row-bg);
  2719. border-color: var(--color-diff-removed-row-border);
  2720. }
  2721. .code-diff-unified .add-code,
  2722. .code-diff-unified .add-code td,
  2723. .code-diff-split .add-code .lines-num-new,
  2724. .code-diff-split .add-code .lines-type-marker-new,
  2725. .code-diff-split .add-code .lines-escape-new,
  2726. .code-diff-split .add-code .lines-code-new,
  2727. .code-diff-split .del-code .add-code.lines-num-new,
  2728. .code-diff-split .del-code .add-code.lines-type-marker-new,
  2729. .code-diff-split .del-code .add-code.lines-escape-new,
  2730. .code-diff-split .del-code .add-code.lines-code-new {
  2731. background: var(--color-diff-added-row-bg);
  2732. border-color: var(--color-diff-added-row-border);
  2733. }
  2734. .code-diff-split .del-code .lines-num-new,
  2735. .code-diff-split .del-code .lines-type-marker-new,
  2736. .code-diff-split .del-code .lines-code-new,
  2737. .code-diff-split .del-code .lines-escape-new,
  2738. .code-diff-split .add-code .lines-num-old,
  2739. .code-diff-split .add-code .lines-escape-old,
  2740. .code-diff-split .add-code .lines-type-marker-old,
  2741. .code-diff-split .add-code .lines-code-old {
  2742. background: var(--color-diff-inactive);
  2743. }
  2744. .code-diff-split tbody tr td:nth-child(5),
  2745. .code-diff-split tbody tr td.add-comment-right {
  2746. border-left: 1px solid var(--color-secondary);
  2747. }
  2748. .repository .ui.menu.new-menu {
  2749. background: none !important;
  2750. @media @mediaLgAndDown {
  2751. &::after {
  2752. background: none !important;
  2753. }
  2754. }
  2755. }
  2756. .repository.migrate .card {
  2757. transition: all .1s ease-in-out;
  2758. box-shadow: none !important;
  2759. border: 1px solid var(--color-secondary);
  2760. color: var(--color-text);
  2761. }
  2762. .repository.migrate .card:hover {
  2763. transform: scale(105%);
  2764. box-shadow: 0 .5rem 1rem var(--color-shadow) !important;
  2765. }
  2766. @media @mediaSm {
  2767. .repository.file.list {
  2768. #repo-files-table {
  2769. .entry,
  2770. .commit-list {
  2771. align-items: center;
  2772. display: flex !important;
  2773. padding-top: 4px;
  2774. padding-bottom: 4px;
  2775. td.age,
  2776. th.age {
  2777. margin-left: auto;
  2778. }
  2779. td.message,
  2780. span.commit-summary {
  2781. display: none !important;
  2782. }
  2783. }
  2784. }
  2785. }
  2786. .issue-list-headers.ui[class].grid {
  2787. > div:nth-child(1) {
  2788. order: 1;
  2789. width: 50%;
  2790. }
  2791. > div:nth-child(2) {
  2792. order: 3;
  2793. width: 100%;
  2794. }
  2795. > div.column:not(.row):nth-child(3) {
  2796. order: 2;
  2797. width: 50%;
  2798. }
  2799. }
  2800. .repository.view.issue .comment-list {
  2801. .timeline,
  2802. .timeline-item {
  2803. margin-left: 0;
  2804. }
  2805. .timeline {
  2806. &::before {
  2807. left: 14px;
  2808. }
  2809. .inline-timeline-avatar {
  2810. display: flex;
  2811. margin-bottom: auto;
  2812. img.avatar {
  2813. height: 24px;
  2814. width: 24px;
  2815. }
  2816. }
  2817. .comment-header {
  2818. &::before,
  2819. &::after {
  2820. content: unset;
  2821. }
  2822. padding-left: 4px;
  2823. }
  2824. /* Don't show the general avatar, we show the inline avatar on mobile.
  2825. * And don't show the role labels, there's no place for that. */
  2826. .timeline-avatar,
  2827. .comment-header-right .role-label {
  2828. display: none;
  2829. }
  2830. }
  2831. }
  2832. .commit-header-row {
  2833. .ui.horizontal.list {
  2834. width: 100%;
  2835. overflow-x: auto;
  2836. margin-top: 2px;
  2837. .item {
  2838. align-items: center;
  2839. display: flex;
  2840. }
  2841. }
  2842. .author {
  2843. padding: 3px 0;
  2844. }
  2845. }
  2846. .commit-header h3 {
  2847. flex-basis: auto !important;
  2848. margin-bottom: .5rem !important;
  2849. }
  2850. .commits-table {
  2851. flex-direction: column;
  2852. .commits-table-left {
  2853. align-items: initial !important;
  2854. margin-bottom: 6px;
  2855. }
  2856. .commits-table-right form {
  2857. display: flex;
  2858. flex-wrap: wrap;
  2859. > div:nth-child(1) {
  2860. order: 1;
  2861. }
  2862. > div:nth-child(2) {
  2863. order: 3;
  2864. margin-left: .5rem;
  2865. margin-top: .5rem;
  2866. }
  2867. > button:nth-child(3) {
  2868. order: 2;
  2869. margin-left: .25rem;
  2870. }
  2871. }
  2872. }
  2873. .commit-table {
  2874. overflow-x: auto;
  2875. td.sha,
  2876. th.sha {
  2877. display: none !important;
  2878. }
  2879. .commit-list {
  2880. span.message-wrapper {
  2881. max-width: none;
  2882. }
  2883. tr td:last-child {
  2884. display: block;
  2885. width: max-content;
  2886. }
  2887. td.author {
  2888. display: block;
  2889. width: calc(100% + .5rem);
  2890. }
  2891. .copy-commit-sha {
  2892. display: none !important;
  2893. }
  2894. }
  2895. }
  2896. .comment-header {
  2897. flex-wrap: wrap;
  2898. .comment-header-left {
  2899. flex-wrap: wrap;
  2900. }
  2901. .comment-header-right {
  2902. margin-left: auto;
  2903. }
  2904. }
  2905. }
  2906. .branch-dropdown-button {
  2907. max-width: 340px;
  2908. vertical-align: bottom !important;
  2909. @media @mediaMd {
  2910. max-width: 185px;
  2911. }
  2912. @media @mediaSm {
  2913. max-width: 165px;
  2914. }
  2915. }
  2916. .pr-status {
  2917. padding: 0 !important; // To clear fomantic's padding on .ui.segment elements
  2918. display: flex;
  2919. align-items: center;
  2920. .commit-status {
  2921. margin: 1em;
  2922. flex-shrink: 0;
  2923. }
  2924. .status-context {
  2925. display: flex;
  2926. justify-content: space-between;
  2927. width: 100%;
  2928. > span {
  2929. padding: 1em 0;
  2930. }
  2931. }
  2932. .status-details {
  2933. display: flex;
  2934. padding-right: .5em;
  2935. align-items: center;
  2936. justify-content: flex-end;
  2937. @media @mediaSm {
  2938. flex-direction: column;
  2939. align-items: flex-end;
  2940. justify-content: center;
  2941. }
  2942. > span {
  2943. padding-right: .5em; // To match the alignment with the "required" label
  2944. }
  2945. }
  2946. }