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

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