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

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