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

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