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

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