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 64KB

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