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

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