Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

_base.less 43KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218
  1. :root {
  2. /* documented customizable variables */
  3. --fonts-proportional: -apple-system, "Segoe UI", system-ui, "Roboto", "Helvetica Neue", "Arial";
  4. --fonts-monospace: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace, var(--fonts-emoji);
  5. --fonts-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla";
  6. /* other variables */
  7. --border-radius: .28571429rem;
  8. --opacity-disabled: .55;
  9. --height-loading: 12rem;
  10. --color-primary: #4183c4;
  11. --color-primary-dark-1: #3876b3;
  12. --color-primary-dark-2: #31699f;
  13. --color-primary-dark-3: #2b5c8b;
  14. --color-primary-dark-4: #254f77;
  15. --color-primary-dark-5: #193450;
  16. --color-primary-dark-6: #0c1a28;
  17. --color-primary-dark-7: #04080c;
  18. --color-primary-light-1: #548fca;
  19. --color-primary-light-2: #679cd0;
  20. --color-primary-light-3: #7aa8d6;
  21. --color-primary-light-4: #8db5dc;
  22. --color-primary-light-5: #b3cde7;
  23. --color-primary-light-6: #d9e6f3;
  24. --color-primary-light-7: #f4f8fb;
  25. --color-primary-alpha-10: #4183c419;
  26. --color-primary-alpha-20: #4183c433;
  27. --color-primary-alpha-30: #4183c44b;
  28. --color-primary-alpha-40: #4183c466;
  29. --color-primary-alpha-50: #4183c480;
  30. --color-primary-alpha-60: #4183c499;
  31. --color-primary-alpha-70: #4183c4b3;
  32. --color-primary-alpha-80: #4183c4cc;
  33. --color-primary-alpha-90: #4183c4e1;
  34. --color-secondary: #dedede;
  35. --color-secondary-dark-1: #cecece;
  36. --color-secondary-dark-2: #bfbfbf;
  37. --color-secondary-dark-3: #a0a0a0;
  38. --color-secondary-dark-4: #909090;
  39. --color-secondary-dark-5: #818181;
  40. --color-secondary-dark-6: #717171;
  41. --color-secondary-dark-7: #626262;
  42. --color-secondary-dark-8: #525252;
  43. --color-secondary-dark-9: #434343;
  44. --color-secondary-dark-10: #333333;
  45. --color-secondary-dark-11: #242424;
  46. --color-secondary-dark-12: #141414;
  47. --color-secondary-dark-13: #040404;
  48. --color-secondary-light-1: #e5e5e5;
  49. --color-secondary-light-2: #ebebeb;
  50. --color-secondary-light-3: #f2f2f2;
  51. --color-secondary-light-4: #f8f8f8;
  52. --color-secondary-alpha-10: #dedede19;
  53. --color-secondary-alpha-20: #dedede33;
  54. --color-secondary-alpha-30: #dedede4b;
  55. --color-secondary-alpha-40: #dedede66;
  56. --color-secondary-alpha-50: #dedede80;
  57. --color-secondary-alpha-60: #dedede99;
  58. --color-secondary-alpha-70: #dededeb3;
  59. --color-secondary-alpha-80: #dededecc;
  60. --color-secondary-alpha-90: #dededee1;
  61. /* colors */
  62. --color-red: #db2828;
  63. --color-orange: #f2711c;
  64. --color-yellow: #fbbd08;
  65. --color-olive: #b5cc18;
  66. --color-green: #21ba45;
  67. --color-teal: #00b5ad;
  68. --color-blue: #2185d0;
  69. --color-violet: #6435c9;
  70. --color-purple: #a333c8;
  71. --color-pink: #e03997;
  72. --color-brown: #a5673f;
  73. --color-grey: #888888;
  74. --color-gold: #a1882b;
  75. /* light variants - produced via Sass scale-color(color, $lightness: +25%) */
  76. --color-red-light: #e45e5e;
  77. --color-orange-light: #f59555;
  78. --color-yellow-light: #fcce46;
  79. --color-olive-light: #d3e942;
  80. --color-green-light: #46de6a;
  81. --color-teal-light: #08fff4;
  82. --color-blue-light: #51a5e3;
  83. --color-violet-light: #8b67d7;
  84. --color-purple-light: #bb64d8;
  85. --color-pink-light: #e86bb1;
  86. --color-brown-light: #c58b66;
  87. --color-grey-light: #a6a6a6;
  88. --color-gold-light: #cfb34a;
  89. /* other colors */
  90. --color-black: #1b1c1d;
  91. --color-white: #ffffff;
  92. --color-diff-removed-word-bg: #fdb8c0;
  93. --color-diff-added-word-bg: #acf2bd;
  94. --color-diff-removed-row-bg: #ffeef0;
  95. --color-diff-moved-row-bg: #f1f8d1;
  96. --color-diff-added-row-bg: #e6ffed;
  97. --color-diff-removed-row-border: #f1c0c0;
  98. --color-diff-moved-row-border: #d0e27f;
  99. --color-diff-added-row-border: #e6ffed;
  100. --color-diff-inactive: #f2f2f2;
  101. --color-error-border: #e0b4b4;
  102. --color-error-bg: #fff6f6;
  103. --color-error-text: #9f3a38;
  104. --color-success-border: #a3c293;
  105. --color-success-bg: #fcfff5;
  106. --color-success-text: #2c662d;
  107. --color-warning-border: #c9ba9b;
  108. --color-warning-bg: #fffaf3;
  109. --color-warning-text: #573a08;
  110. --color-info-border: #a9d5de;
  111. --color-info-bg: #f8ffff;
  112. --color-info-text: #276f86;
  113. /* target-based colors */
  114. --color-body: #ffffff;
  115. --color-text-dark: #080808;
  116. --color-text: #212121;
  117. --color-text-light: #555555;
  118. --color-text-light-2: #808080;
  119. --color-text-light-3: #a0a0a0;
  120. --color-box-header: #f7f7f7;
  121. --color-box-body: #ffffff;
  122. --color-footer: #ffffff;
  123. --color-timeline: #ececec;
  124. --color-input-text: #212121;
  125. --color-input-background: #ffffff;
  126. --color-input-border: #dedede;
  127. --color-input-border-hover: #cecece;
  128. --color-navbar: #f8f8f8;
  129. --color-navbar-transparent: #f8f8f800;
  130. --color-light: #00000006;
  131. --color-light-mimic-enabled: rgba(0, 0, 0, calc(6 / 255 * 222 / 255 / var(--opacity-disabled)));
  132. --color-light-border: #0000001d;
  133. --color-hover: #0000000f;
  134. --color-active: #00000014;
  135. --color-menu: #ffffff;
  136. --color-card: #ffffff;
  137. --color-markup-table-row: #00000008;
  138. --color-markup-code-block: #00000010;
  139. --color-button: #ffffff;
  140. --color-code-bg: #ffffff;
  141. --color-code-sidebar-bg: #f5f5f5;
  142. --color-shadow: #00000030;
  143. --color-secondary-bg: #f4f4f4;
  144. --color-expand-button: #d8efff;
  145. --color-placeholder-text: #aaa;
  146. --color-editor-line-highlight: var(--color-primary-light-6);
  147. --color-project-board-bg: var(--color-secondary-light-4);
  148. --color-project-board-dark-label: #555555;
  149. --color-project-board-light-label: #a6aab5;
  150. --color-caret: var(--color-text-dark);
  151. --color-reaction-bg: #0000000a;
  152. --color-reaction-active-bg: var(--color-primary-alpha-20);
  153. /* backgrounds */
  154. --checkbox-mask-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');
  155. --checkbox-mask-indeterminate: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>');
  156. }
  157. :root * {
  158. --fonts-regular: var(--fonts-override, var(--fonts-proportional)), "Noto Sans", "Liberation Sans", sans-serif, var(--fonts-emoji);
  159. }
  160. textarea {
  161. font-family: var(--fonts-regular);
  162. }
  163. pre,
  164. code,
  165. kbd,
  166. samp {
  167. font-size: .9em; /* compensate for monospace fonts being usually slightly larger */
  168. font-family: var(--fonts-monospace);
  169. }
  170. b,
  171. strong,
  172. h1,
  173. h2,
  174. h3,
  175. h4,
  176. h5,
  177. h6 {
  178. font-weight: 600;
  179. }
  180. body {
  181. color: var(--color-text);
  182. background-color: var(--color-body);
  183. overflow-y: auto;
  184. display: flex;
  185. flex-direction: column;
  186. overflow-wrap: break-word;
  187. }
  188. img {
  189. border-radius: 3px;
  190. }
  191. table {
  192. border-collapse: collapse;
  193. }
  194. details summary {
  195. cursor: pointer;
  196. }
  197. details summary > * {
  198. display: inline;
  199. }
  200. progress {
  201. background: var(--color-secondary);
  202. border-radius: 6px;
  203. border: none;
  204. overflow: hidden;
  205. }
  206. progress::-webkit-progress-bar {
  207. background: var(--color-secondary);
  208. }
  209. progress::-webkit-progress-value {
  210. background-color: var(--color-secondary-dark-3);
  211. }
  212. progress::-moz-progress-bar {
  213. background: var(--color-secondary-dark-3);
  214. }
  215. * {
  216. scrollbar-color: var(--color-primary) transparent;
  217. caret-color: var(--color-caret);
  218. }
  219. ::-webkit-scrollbar {
  220. width: 10px;
  221. height: 10px;
  222. }
  223. ::-webkit-scrollbar-thumb {
  224. box-shadow: inset 0 0 0 6px var(--color-primary);
  225. border: 2px solid transparent;
  226. border-radius: 5px !important;
  227. }
  228. ::-webkit-scrollbar-thumb:window-inactive {
  229. box-shadow: inset 0 0 0 6px var(--color-primary);
  230. }
  231. ::-webkit-scrollbar-thumb:hover {
  232. box-shadow: inset 0 0 0 6px var(--color-primary-dark-2);
  233. }
  234. ::-webkit-scrollbar-corner {
  235. background: transparent;
  236. }
  237. ::selection {
  238. background: var(--color-primary-light-1) !important;
  239. color: var(--color-white) !important;
  240. }
  241. ::placeholder,
  242. .ui.dropdown:not(.button) > .default.text,
  243. .ui.default.dropdown:not(.button) > .text {
  244. color: var(--color-placeholder-text) !important;
  245. opacity: 1 !important;
  246. }
  247. a,
  248. .ui.breadcrumb a {
  249. color: var(--color-primary);
  250. cursor: pointer;
  251. text-decoration-skip-ink: all;
  252. }
  253. a.muted {
  254. color: inherit;
  255. }
  256. a:hover,
  257. a.muted:hover,
  258. .ui.breadcrumb a:hover {
  259. color: var(--color-primary);
  260. }
  261. a.label,
  262. .repository-menu a,
  263. .ui.search .results a,
  264. .ui .menu a,
  265. .ui.cards a.card,
  266. .issue-keyword a,
  267. a.commit-statuses-trigger {
  268. text-decoration: none !important;
  269. }
  270. .unselectable {
  271. -webkit-touch-callout: none;
  272. -webkit-user-select: none;
  273. user-select: none;
  274. }
  275. .button {
  276. &:extend(.unselectable);
  277. }
  278. .ui.breadcrumb a:hover {
  279. text-decoration: underline !important;
  280. }
  281. .ui.breadcrumb .divider {
  282. color: var(--color-text-light-2);
  283. }
  284. .page-content {
  285. margin-top: 15px;
  286. }
  287. .page-content .header-wrapper,
  288. .page-content .new-menu {
  289. margin-top: -15px !important;
  290. padding-top: 15px !important;
  291. }
  292. .ui.input.focus > input,
  293. .ui.input > input:focus {
  294. border-color: var(--color-primary);
  295. }
  296. /* currently used for search bar dropdowns in repo search and explore code */
  297. .ui.action.input:not([class*="left action"]) > .ui.dropdown.selection {
  298. min-width: 10em;
  299. &:not(:focus):not(:hover) {
  300. border-right-color: transparent;
  301. }
  302. }
  303. .ui.action.input:not([class*="left action"]) > input:focus {
  304. border-right-color: var(--color-primary);
  305. }
  306. .ui.menu,
  307. .ui.vertical.menu {
  308. background: var(--color-menu);
  309. border-color: var(--color-secondary);
  310. }
  311. .ui.menu .item {
  312. color: var(--color-text);
  313. > .svg {
  314. margin-right: .35em;
  315. }
  316. }
  317. .ui.menu .item > .label {
  318. background: var(--color-grey);
  319. }
  320. .ui.link.menu .item:hover,
  321. .ui.menu .dropdown.item:hover,
  322. .ui.menu .link.item:hover,
  323. .ui.menu a.item:hover {
  324. color: var(--color-text);
  325. background: var(--color-hover);
  326. }
  327. .ui.menu .active.item,
  328. .ui.menu .active.item:hover,
  329. .ui.vertical.menu .active.item,
  330. .ui.vertical.menu .active.item:hover {
  331. color: var(--color-text);
  332. background: var(--color-active);
  333. }
  334. .ui.link.menu .item:active,
  335. .ui.menu .link.item:active,
  336. .ui.menu a.item:active {
  337. color: var(--color-text);
  338. background: none;
  339. }
  340. .ui.ui.menu .item.disabled {
  341. color: var(--color-text-light-3);
  342. }
  343. /* slightly more contrast for filters on issue list */
  344. .ui.ui.menu .dropdown.item.disabled {
  345. color: var(--color-text-light-2);
  346. }
  347. .ui.dropdown .menu {
  348. background: var(--color-menu);
  349. border-color: var(--color-secondary);
  350. }
  351. .ui.dropdown .menu > .header:not(.ui) {
  352. color: var(--color-text);
  353. }
  354. .ui.dropdown .menu > .item {
  355. color: var(--color-text);
  356. }
  357. .ui.dropdown .menu > .item:hover {
  358. color: var(--color-text);
  359. background: var(--color-hover);
  360. }
  361. .ui.dropdown .menu .active.item {
  362. color: var(--color-text);
  363. background: var(--color-active);
  364. font-weight: normal;
  365. }
  366. /* fix misaligned images in webhook dropdown */
  367. .ui.dropdown .menu > .item > img {
  368. margin-top: -.25rem;
  369. margin-bottom: -.25rem;
  370. }
  371. .ui.selection.dropdown .menu > .item {
  372. border-color: var(--color-secondary);
  373. }
  374. .ui.selection.visible.dropdown > .text:not(.default) {
  375. color: var(--color-text);
  376. }
  377. .ui.dropdown.selected,
  378. .ui.dropdown .menu .selected.item {
  379. color: var(--color-text);
  380. background: var(--color-hover);
  381. }
  382. .ui.menu .ui.dropdown .menu > .selected.item {
  383. color: var(--color-text) !important;
  384. background: var(--color-hover) !important;
  385. }
  386. .ui.dropdown .menu > .message:not(.ui) {
  387. color: var(--color-text-light-2);
  388. }
  389. .ui.secondary.menu .dropdown.item:hover,
  390. .ui.secondary.menu .link.item:hover,
  391. .ui.secondary.menu a.item:hover {
  392. color: var(--color-text);
  393. background: var(--color-hover);
  394. }
  395. .ui.secondary.menu .active.item,
  396. .ui.secondary.menu .active.item:hover {
  397. color: var(--color-text);
  398. background: var(--color-active);
  399. }
  400. .ui.secondary.menu.tight .item {
  401. padding-left: .85714286em;
  402. padding-right: .85714286em;
  403. }
  404. .ui.menu .dropdown.item .menu {
  405. background: var(--color-menu);
  406. }
  407. .ui.menu .ui.dropdown .menu > .item {
  408. color: var(--color-text) !important;
  409. }
  410. .ui.menu .ui.dropdown .menu > .item:hover {
  411. color: var(--color-text) !important;
  412. background: var(--color-hover) !important;
  413. }
  414. .ui.menu .ui.dropdown .menu > .active.item {
  415. color: var(--color-text) !important;
  416. background: var(--color-active) !important;
  417. }
  418. .ui.message {
  419. background: var(--color-box-body);
  420. color: var(--color-text);
  421. box-shadow: none !important;
  422. border: 1px solid var(--color-secondary);
  423. }
  424. .ui.info.message,
  425. .ui.attached.info.message,
  426. .ui.blue.message,
  427. .ui.attached.blue.message {
  428. background: var(--color-info-bg);
  429. color: var(--color-info-text);
  430. border-color: var(--color-info-border);
  431. }
  432. .ui.success.message,
  433. .ui.attached.success.message,
  434. .ui.positive.message,
  435. .ui.attached.positive.message {
  436. background: var(--color-success-bg);
  437. color: var(--color-success-text);
  438. border-color: var(--color-success-border);
  439. }
  440. .ui.error.message,
  441. .ui.attached.error.message,
  442. .ui.red.message,
  443. .ui.attached.red.message,
  444. .ui.negative.message,
  445. .ui.attached.negative.message {
  446. background: var(--color-error-bg);
  447. color: var(--color-error-text);
  448. border-color: var(--color-error-border);
  449. }
  450. .ui.warning.message,
  451. .ui.attached.warning.message,
  452. .ui.yellow.message,
  453. .ui.attached.yellow.message {
  454. background: var(--color-warning-bg);
  455. color: var(--color-warning-text);
  456. border-color: var(--color-warning-border);
  457. }
  458. .ui.error.header {
  459. background: var(--color-error-bg) !important;
  460. color: var(--color-error-text) !important;
  461. border-color: var(--color-error-border) !important;
  462. }
  463. .ui.error.segment {
  464. border-color: var(--color-error-border) !important;
  465. }
  466. .ui.warning.header {
  467. background: var(--color-warning-bg) !important;
  468. color: var(--color-warning-text) !important;
  469. border-color: var(--color-warning-border) !important;
  470. }
  471. .ui.warning.segment {
  472. border-color: var(--color-warning-border) !important;
  473. }
  474. .ui.selection.active.dropdown,
  475. .ui.selection.active.dropdown:hover,
  476. .ui.selection.active.dropdown .menu,
  477. .ui.selection.active.dropdown:hover .menu {
  478. border-color: var(--color-primary-light-2);
  479. }
  480. .ui.selection.dropdown .menu {
  481. margin: 0 -1.25px;
  482. }
  483. .ui.pointing.dropdown > .menu:not(.hidden)::after {
  484. background: var(--color-box-body);
  485. box-shadow: -1px -1px 0 0 var(--color-secondary);
  486. }
  487. .ui.cards > .card,
  488. .ui.card {
  489. background: var(--color-card);
  490. border: 1px solid var(--color-secondary);
  491. box-shadow: none;
  492. }
  493. .ui.cards > .card > .content,
  494. .ui.card > .content {
  495. border-color: var(--color-secondary);
  496. }
  497. .ui.cards > .card > .extra,
  498. .ui.card > .extra,
  499. .ui.cards > .card > .extra a:not(.ui),
  500. .ui.card > .extra a:not(.ui) {
  501. color: var(--color-text);
  502. }
  503. .ui.cards > .card > .extra a:not(.ui):hover,
  504. .ui.card > .extra a:not(.ui):hover {
  505. color: var(--color-primary);
  506. }
  507. .ui.cards > .card > .content > .header,
  508. .ui.card > .content > .header {
  509. color: var(--color-text);
  510. }
  511. .ui.cards > .card > .content > .description,
  512. .ui.card > .content > .description {
  513. color: var(--color-text);
  514. }
  515. .ui.cards > .card .meta > a:not(.ui),
  516. .ui.card .meta > a:not(.ui) {
  517. color: var(--color-text-light-2);
  518. }
  519. .ui.cards > .card .meta > a:not(.ui):hover,
  520. .ui.card .meta > a:not(.ui):hover {
  521. color: var(--color-text);
  522. }
  523. .ui.cards a.card:hover,
  524. .ui.link.cards .card:not(.icon):hover,
  525. a.ui.card:hover,
  526. .ui.link.card:hover {
  527. border: 1px solid var(--color-secondary);
  528. background: var(--color-card);
  529. }
  530. .ui.cards > .card > .extra,
  531. .ui.card > .extra {
  532. color: var(--color-text);
  533. border-top-color: var(--color-secondary-light-1) !important;
  534. }
  535. .ui.comments .comment .text {
  536. margin: 0;
  537. }
  538. .ui.comments .comment .text,
  539. .ui.comments .comment .author {
  540. color: var(--color-text);
  541. }
  542. .ui.comments .comment a.author:hover {
  543. color: var(--color-primary);
  544. }
  545. .ui.comments .comment .metadata {
  546. color: var(--color-text-light-2);
  547. }
  548. .ui.comments .comment .actions a {
  549. color: var(--color-text-light);
  550. }
  551. .ui.comments .comment .actions a.active,
  552. .ui.comments .comment .actions a:hover {
  553. color: var(--color-primary);
  554. }
  555. .ui.attached.table {
  556. border-color: var(--color-secondary);
  557. }
  558. .ui.table {
  559. color: var(--color-text);
  560. background: var(--color-body);
  561. border-color: var(--color-secondary);
  562. }
  563. .ui.ui.selectable.table > tbody > tr:hover,
  564. .ui.table tbody tr td.selectable:hover {
  565. color: var(--color-text);
  566. background-color: var(--color-secondary-alpha-40);
  567. }
  568. .ui.ui.ui.ui.table tr.grey:not(.marked),
  569. .ui.ui.table td.grey:not(.marked) {
  570. background: var(--color-body);
  571. color: var(--color-text);
  572. }
  573. .ui.modal {
  574. background: var(--color-body);
  575. }
  576. .ui.modal > .header {
  577. border-color: var(--color-secondary);
  578. border-top-left-radius: var(--border-radius);
  579. border-top-right-radius: var(--border-radius);
  580. }
  581. .ui.modal > .close.inside,
  582. .ui.fullscreen.modal > .close {
  583. top: 11px; /* align modal close icon, for example admin notices */
  584. color: var(--body-color);
  585. }
  586. .ui.basic.table > tbody > tr {
  587. border-color: var(--color-secondary);
  588. }
  589. .ui.avatar.images .image,
  590. .ui.avatar.images img,
  591. .ui.avatar.images svg,
  592. .ui.avatar.image img,
  593. .ui.avatar.image svg,
  594. .ui.avatar.image,
  595. .ui.cards > .card img.avatar,
  596. .ui.cards > .card .avatar img,
  597. .ui.card img.avatar,
  598. .ui.card .avatar img {
  599. border-radius: var(--border-radius);
  600. }
  601. .ui.divided.list > .item {
  602. border-color: var(--color-secondary);
  603. }
  604. .ui.link.list .item,
  605. .ui.link.list a.item,
  606. .ui.link.list .item a:not(.ui) {
  607. color: var(--color-text);
  608. }
  609. .ui.link.list.list a.item:hover,
  610. .ui.link.list.list .item a:not(.ui):hover,
  611. .ui.link.list.list a.item:active,
  612. .ui.link.list.list .item a:not(.ui):active {
  613. color: var(--color-text-dark);
  614. }
  615. .ui.error.message .header,
  616. .ui.warning.message .header {
  617. color: inherit;
  618. filter: saturate(2);
  619. }
  620. .dont-break-out {
  621. overflow-wrap: break-word;
  622. word-wrap: break-word;
  623. word-break: break-all;
  624. hyphens: auto;
  625. }
  626. .full.height {
  627. flex-grow: 1;
  628. padding-bottom: 80px;
  629. }
  630. .following.bar {
  631. z-index: 900;
  632. left: 0;
  633. margin: 0 !important;
  634. &.light {
  635. background: var(--color-body);
  636. border-bottom: 1px solid var(--color-secondary);
  637. }
  638. .column .menu {
  639. margin-top: 0;
  640. }
  641. .top.menu a.item.brand {
  642. padding-left: 0;
  643. }
  644. .brand .ui.mini.image {
  645. width: 30px;
  646. }
  647. .top.menu a.item:hover,
  648. .top.menu .dropdown.item:hover,
  649. .top.menu .dropdown.item.active {
  650. background-color: transparent;
  651. }
  652. .top.menu a.item:hover {
  653. color: rgba(0, 0, 0, .45);
  654. }
  655. .top.menu .menu {
  656. z-index: 900;
  657. }
  658. .fitted .svg {
  659. margin-right: 0;
  660. vertical-align: middle;
  661. }
  662. .searchbox {
  663. background-color: #f4f4f4 !important;
  664. &:focus {
  665. background-color: #e9e9e9 !important;
  666. }
  667. }
  668. .text .svg {
  669. width: 16px;
  670. text-align: center;
  671. }
  672. #navbar {
  673. width: 100vw;
  674. min-height: 52px;
  675. padding: 0 .5rem;
  676. }
  677. #navbar .brand {
  678. margin: 0;
  679. }
  680. #navbar .dropdown .avatar {
  681. margin-right: 0 !important;
  682. }
  683. @media @mediaSm {
  684. #navbar:not(.shown) > *:not(:first-child) {
  685. display: none;
  686. }
  687. }
  688. }
  689. .right.stackable.menu {
  690. // responsive fix: this makes sure that the right menu when the page
  691. // is on mobile view will have elements stacked on top of each other.
  692. // no, stackable won't work on right menus.
  693. margin-left: auto;
  694. display: flex;
  695. align-items: inherit;
  696. flex-direction: inherit;
  697. }
  698. .ui.dropdown .menu {
  699. border-color: var(--color-secondary);
  700. }
  701. .ui.pagination.menu .active.item {
  702. color: var(--color-text);
  703. background: var(--color-active);
  704. }
  705. .ui.form .field > .selection.dropdown > .dropdown.icon {
  706. height: auto;
  707. }
  708. .ui.loading.segment::before,
  709. .ui.loading.form::before {
  710. background: none;
  711. }
  712. .ui.loading.form > *,
  713. .ui.loading.segment > * {
  714. opacity: .35;
  715. }
  716. .ui.loading.loading.input > i.icon svg {
  717. visibility: hidden;
  718. }
  719. .ui {
  720. &.left:not(.action) {
  721. float: left;
  722. }
  723. &.right:not(.action) {
  724. float: right;
  725. }
  726. &.menu .item {
  727. user-select: auto;
  728. }
  729. &.container {
  730. &.fluid {
  731. &.padded {
  732. padding: 0 10px;
  733. }
  734. }
  735. }
  736. &.form {
  737. .ui.button {
  738. font-weight: normal;
  739. }
  740. }
  741. &.floating.label {
  742. z-index: 10;
  743. }
  744. &.transparent.label {
  745. background-color: transparent;
  746. }
  747. &.menu,
  748. &.vertical.menu,
  749. &.segment {
  750. box-shadow: none;
  751. }
  752. /* Override semantic selector '.ui.menu:not(.vertical) .item > .button' */
  753. /* This fixes the commit graph button on the commits page */
  754. .menu:not(.vertical) .item > .button.compact {
  755. padding: .58928571em 1.125em;
  756. }
  757. .menu:not(.vertical) .item > .button.small {
  758. font-size: .92857143rem;
  759. }
  760. &.menu .ui.dropdown.item .menu .item {
  761. width: 100%;
  762. }
  763. &.dropdown .menu > .item > .floating.label {
  764. z-index: 11;
  765. }
  766. &.dropdown .menu .menu > .item > .floating.label {
  767. z-index: 21;
  768. }
  769. &.dropdown .menu > .header {
  770. font-size: .8em;
  771. }
  772. .text {
  773. &.red {
  774. color: var(--color-red) !important;
  775. a {
  776. color: inherit !important;
  777. &:hover {
  778. color: var(--color-red-light) !important;
  779. }
  780. }
  781. }
  782. &.blue {
  783. color: var(--color-blue) !important;
  784. a {
  785. color: inherit !important;
  786. &:hover {
  787. color: var(--color-blue-light) !important;
  788. }
  789. }
  790. }
  791. &.black {
  792. color: var(--color-text);
  793. &:hover {
  794. color: var(--color-text-dark);
  795. }
  796. }
  797. &.grey {
  798. color: var(--color-text-light) !important;
  799. a {
  800. color: var(--color-text) !important;
  801. &:hover {
  802. color: var(--color-primary) !important;
  803. }
  804. }
  805. }
  806. &.light.grey {
  807. color: var(--color-text-light-2) !important;
  808. }
  809. &.green {
  810. color: var(--color-green) !important;
  811. }
  812. &.purple {
  813. color: var(--color-purple) !important;
  814. }
  815. &.yellow {
  816. color: var(--color-yellow) !important;
  817. }
  818. &.orange {
  819. color: var(--color-orange) !important;
  820. }
  821. &.gold {
  822. color: var(--color-gold) !important;
  823. }
  824. &.left {
  825. text-align: left !important;
  826. }
  827. &.right {
  828. text-align: right !important;
  829. }
  830. &.small {
  831. font-size: .75em;
  832. }
  833. &.normal {
  834. font-weight: normal;
  835. }
  836. &.italic {
  837. font-style: italic;
  838. }
  839. &.truncate {
  840. overflow: hidden;
  841. text-overflow: ellipsis;
  842. white-space: nowrap;
  843. display: inline-block;
  844. }
  845. &.thin {
  846. font-weight: normal;
  847. }
  848. &.middle {
  849. vertical-align: middle;
  850. }
  851. }
  852. .message {
  853. text-align: center;
  854. }
  855. .message > ul {
  856. margin-left: auto;
  857. margin-right: auto;
  858. display: table;
  859. text-align: left;
  860. }
  861. .header > i + .content {
  862. padding-left: .75rem;
  863. vertical-align: middle;
  864. }
  865. .info {
  866. &.segment {
  867. &.top {
  868. h3,
  869. h4 {
  870. margin-top: 0;
  871. }
  872. h3:last-child {
  873. margin-top: 4px;
  874. }
  875. > :last-child {
  876. margin-bottom: 0;
  877. }
  878. }
  879. }
  880. }
  881. .normal.header {
  882. font-weight: normal;
  883. }
  884. .form {
  885. .autofill-dummy {
  886. position: absolute;
  887. width: 1px;
  888. height: 1px;
  889. overflow: hidden;
  890. z-index: -10000;
  891. }
  892. .sub.field {
  893. margin-left: 25px;
  894. }
  895. }
  896. .sha.label {
  897. font-family: var(--fonts-monospace);
  898. font-size: 13px;
  899. padding: 6px 10px 4px;
  900. font-weight: normal;
  901. margin: 0 6px;
  902. }
  903. .button.copy-commit-sha {
  904. border: 1px solid var(--color-light-border);
  905. margin-right: 3px;
  906. padding: 6px 6px 4px;
  907. background: var(--color-light);
  908. }
  909. .button.truncate {
  910. display: inline-block;
  911. max-width: 100%;
  912. overflow: hidden;
  913. text-overflow: ellipsis;
  914. vertical-align: top;
  915. white-space: nowrap;
  916. margin-right: 6px;
  917. }
  918. &.status.buttons {
  919. .svg {
  920. margin-right: 4px;
  921. }
  922. }
  923. &.inline.delete-button {
  924. padding: 8px 15px;
  925. font-weight: normal;
  926. }
  927. .background {
  928. &.red {
  929. background-color: var(--color-red) !important;
  930. }
  931. &.blue {
  932. background-color: var(--color-blue) !important;
  933. }
  934. &.black {
  935. background-color: var(--color-black) !important;
  936. }
  937. &.grey {
  938. background-color: var(--color-grey) !important;
  939. }
  940. &.light.grey {
  941. background-color: var(--color-grey) !important;
  942. }
  943. &.green {
  944. background-color: var(--color-green) !important;
  945. }
  946. &.purple {
  947. background-color: var(--color-purple) !important;
  948. }
  949. &.yellow {
  950. background-color: var(--color-yellow) !important;
  951. }
  952. &.orange {
  953. background-color: var(--color-orange) !important;
  954. }
  955. &.gold {
  956. background-color: var(--color-gold) !important;
  957. }
  958. }
  959. .migrate {
  960. color: var(--color-text-light-2) !important;
  961. a {
  962. color: var(--color-text-light) !important;
  963. &:hover {
  964. color: var(--color-text) !important;
  965. }
  966. }
  967. }
  968. .border {
  969. border: 1px solid;
  970. &.red {
  971. border-color: var(--color-red) !important;
  972. }
  973. &.blue {
  974. border-color: var(--color-blue) !important;
  975. }
  976. &.black {
  977. border-color: var(--color-black) !important;
  978. }
  979. &.grey {
  980. border-color: var(--color-grey) !important;
  981. }
  982. &.light.grey {
  983. border-color: var(--color-grey) !important;
  984. }
  985. &.green {
  986. border-color: var(--color-green) !important;
  987. }
  988. &.purple {
  989. border-color: var(--color-purple) !important;
  990. }
  991. &.yellow {
  992. border-color: var(--color-yellow) !important;
  993. }
  994. &.orange {
  995. border-color: var(--color-orange) !important;
  996. }
  997. &.gold {
  998. border-color: var(--color-gold) !important;
  999. }
  1000. }
  1001. .branch-tag-choice {
  1002. line-height: 20px;
  1003. }
  1004. &.pagination.menu {
  1005. @media @mediaSm {
  1006. .item:not(.active):not(.navigation),
  1007. .item.navigation span.navigation_label {
  1008. display: none;
  1009. }
  1010. }
  1011. &.narrow .item {
  1012. padding-left: 8px;
  1013. padding-right: 8px;
  1014. min-width: 1em;
  1015. text-align: center;
  1016. .icon {
  1017. margin-right: 0;
  1018. }
  1019. }
  1020. }
  1021. /* modal svg icons, copied from fomantic except width and height */
  1022. &.icon.header svg {
  1023. width: 3em;
  1024. height: 3em;
  1025. float: none;
  1026. display: block;
  1027. line-height: 1;
  1028. padding: 0;
  1029. margin: 0 auto .5rem;
  1030. opacity: 1;
  1031. }
  1032. /* center text in fomantic modal dialogs */
  1033. &.modal > .content {
  1034. text-align: center;
  1035. }
  1036. }
  1037. .ui.floating.dropdown {
  1038. .overflow.menu {
  1039. .scrolling.menu.items {
  1040. border-radius: 0 !important;
  1041. box-shadow: none !important;
  1042. border-bottom: 1px solid var(--color-secondary);
  1043. }
  1044. }
  1045. }
  1046. .user-menu > .item {
  1047. width: 100%;
  1048. border-radius: 0 !important;
  1049. }
  1050. .scrolling.menu {
  1051. .item.selected {
  1052. font-weight: 600 !important;
  1053. }
  1054. }
  1055. .ui.dropdown .scrolling.menu {
  1056. border-color: var(--color-secondary);
  1057. }
  1058. footer {
  1059. background-color: var(--color-footer);
  1060. border-top: 1px solid var(--color-secondary);
  1061. width: 100%;
  1062. flex-basis: 40px;
  1063. color: var(--color-text-light);
  1064. .container {
  1065. width: 100vw !important;
  1066. padding: 0 .5rem;
  1067. max-width: calc(100vw - 1rem) !important;
  1068. .links > * {
  1069. border-left: 1px solid var(--color-secondary);
  1070. padding-left: 8px;
  1071. margin-left: 5px;
  1072. &:first-child {
  1073. border-left: 0;
  1074. }
  1075. }
  1076. }
  1077. .ui.language {
  1078. .menu {
  1079. max-height: 500px;
  1080. overflow-y: auto;
  1081. margin-bottom: 7px;
  1082. }
  1083. .svg {
  1084. margin-right: .15em;
  1085. vertical-align: top;
  1086. margin-top: calc(2em - 16px);
  1087. }
  1088. }
  1089. .ui {
  1090. &.left,
  1091. &.right {
  1092. line-height: 40px;
  1093. }
  1094. }
  1095. }
  1096. .hide {
  1097. display: none;
  1098. &.show-outdated {
  1099. display: none !important;
  1100. }
  1101. &.hide-outdated {
  1102. display: none !important;
  1103. }
  1104. }
  1105. .center:not(.popup) {
  1106. text-align: center;
  1107. }
  1108. // Conditional display
  1109. @media @mediaMdAndUp {
  1110. .mobile-only,
  1111. .ui.button.mobile-only {
  1112. display: none;
  1113. }
  1114. // has the same behaviour of sr-only, hiding the content for
  1115. // non-screenreaders, but is shown on mobile devices.
  1116. .sr-mobile-only {
  1117. .sr-only();
  1118. }
  1119. }
  1120. @media @mediaSm {
  1121. .not-mobile {
  1122. display: none;
  1123. }
  1124. }
  1125. // Accessibility
  1126. .sr-only {
  1127. position: absolute;
  1128. width: 1px;
  1129. height: 1px;
  1130. padding: 0;
  1131. margin: -1px;
  1132. overflow: hidden;
  1133. clip: rect(0, 0, 0, 0);
  1134. border: 0;
  1135. }
  1136. .sr-only-focusable:active,
  1137. .sr-only-focusable:focus {
  1138. position: static;
  1139. width: auto;
  1140. height: auto;
  1141. margin: 0;
  1142. overflow: visible;
  1143. clip: auto;
  1144. }
  1145. @media @mediaMd {
  1146. .ui.container {
  1147. width: 95%;
  1148. }
  1149. }
  1150. .ui.menu.new-menu {
  1151. margin-bottom: 15px;
  1152. background: var(--color-navbar);
  1153. border-bottom: 1px solid var(--color-secondary) !important;
  1154. overflow: auto;
  1155. }
  1156. .ui.menu.new-menu .new-menu-inner {
  1157. display: flex;
  1158. margin-left: auto;
  1159. margin-right: auto;
  1160. overflow-x: auto;
  1161. }
  1162. .ui.menu.new-menu::after {
  1163. position: absolute;
  1164. display: block;
  1165. background: linear-gradient(to right, var(--color-navbar-transparent), var(--color-navbar) 100%);
  1166. content: '';
  1167. right: 0;
  1168. height: 39px;
  1169. width: 60px;
  1170. visibility: visible;
  1171. pointer-events: none;
  1172. }
  1173. .ui.menu.new-menu.shadow-body::after {
  1174. background: linear-gradient(to right, transparent, var(--color-body) 100%);
  1175. }
  1176. .ui.menu.new-menu .item {
  1177. margin: 0 !important;
  1178. }
  1179. @media @mediaSm {
  1180. .ui.menu.new-menu .item {
  1181. width: auto !important;
  1182. }
  1183. }
  1184. .ui.menu.new-menu .item:last-child {
  1185. padding-right: 30px !important;
  1186. }
  1187. .ui.menu.new-menu::-webkit-scrollbar {
  1188. height: 6px;
  1189. display: none;
  1190. }
  1191. .ui.menu.new-menu::-webkit-scrollbar-track {
  1192. background: none !important;
  1193. }
  1194. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  1195. box-shadow: none !important;
  1196. }
  1197. .ui.menu.new-menu:hover::-webkit-scrollbar {
  1198. display: block;
  1199. }
  1200. [v-cloak] {
  1201. display: none !important;
  1202. }
  1203. .repos-search {
  1204. padding-bottom: 0 !important;
  1205. }
  1206. .repos-filter {
  1207. margin-top: 0 !important;
  1208. border-bottom-width: 0 !important;
  1209. margin-bottom: 2px !important;
  1210. justify-content: space-evenly;
  1211. }
  1212. .ui.secondary.pointing.menu.repos-filter .item {
  1213. padding-left: 4.5px;
  1214. padding-right: 4.5px;
  1215. }
  1216. .repo-title {
  1217. font-size: 1.5rem;
  1218. display: flex;
  1219. align-items: center;
  1220. flex: 1;
  1221. word-break: break-all;
  1222. color: var(--color-text-light);
  1223. .avatar {
  1224. width: 32px !important;
  1225. height: 32px !important;
  1226. }
  1227. .labels {
  1228. margin-left: .5rem;
  1229. > * + * {
  1230. margin-left: .5rem;
  1231. }
  1232. }
  1233. }
  1234. .repo-icon {
  1235. display: inline-block;
  1236. }
  1237. .activity-bar-graph {
  1238. background-color: var(--color-primary);
  1239. color: #fff;
  1240. }
  1241. .activity-bar-graph-alt {
  1242. color: #fff;
  1243. }
  1244. .archived-icon {
  1245. color: lighten(#000000, 70%) !important;
  1246. }
  1247. .oauth2-authorize-application-box {
  1248. margin-top: 3em !important;
  1249. }
  1250. /* multiple radio or checkboxes as inline element */
  1251. .inline-grouped-list {
  1252. display: inline-block;
  1253. vertical-align: top;
  1254. > .ui {
  1255. display: block;
  1256. margin-top: 5px;
  1257. margin-bottom: 10px;
  1258. &:first-child {
  1259. margin-top: 1px;
  1260. }
  1261. }
  1262. }
  1263. i.icons .icon:first-child {
  1264. margin-right: 0;
  1265. }
  1266. i.icon.centerlock {
  1267. top: 1em;
  1268. }
  1269. .ui.label {
  1270. padding: .3em .5em;
  1271. background: var(--color-light);
  1272. color: var(--color-text-light);
  1273. }
  1274. .ui.labels a.label:hover,
  1275. a.ui.label:hover {
  1276. background: var(--color-hover);
  1277. color: var(--color-text);
  1278. }
  1279. .ui.label > .detail .icons {
  1280. margin-right: .25em;
  1281. }
  1282. .ui.label > .detail .icons .icon {
  1283. margin-right: 0;
  1284. }
  1285. .lines-blame-btn {
  1286. padding-left: 10px;
  1287. padding-right: 10px;
  1288. text-align: right !important;
  1289. background-color: var(--color-code-sidebar-bg);
  1290. width: 2%;
  1291. }
  1292. .lines-num {
  1293. &:extend(.unselectable);
  1294. padding-left: 10px;
  1295. padding-right: 10px;
  1296. text-align: right !important;
  1297. color: rgba(27, 31, 35, .3);
  1298. width: 1%;
  1299. font-family: var(--fonts-monospace);
  1300. span {
  1301. &.bottom-line {
  1302. &::after {
  1303. border-bottom: 1px solid var(--color-secondary);
  1304. }
  1305. }
  1306. &::after {
  1307. content: attr(data-line-number);
  1308. line-height: 20px !important;
  1309. padding: 0 10px;
  1310. cursor: pointer;
  1311. display: block;
  1312. }
  1313. }
  1314. }
  1315. .lines-type-marker {
  1316. vertical-align: top;
  1317. }
  1318. .lines-num,
  1319. .lines-code {
  1320. font-size: 12px;
  1321. font-family: var(--fonts-monospace);
  1322. line-height: 20px;
  1323. padding-top: 0;
  1324. padding-bottom: 0;
  1325. vertical-align: top;
  1326. pre,
  1327. ol {
  1328. background-color: inherit;
  1329. margin: 0;
  1330. padding: 0 !important;
  1331. li {
  1332. display: block;
  1333. width: calc(100% - 1ch);
  1334. padding-left: 1ch;
  1335. }
  1336. }
  1337. }
  1338. .lines-escape {
  1339. width: 0;
  1340. }
  1341. .lines-code {
  1342. background-color: var(--color-code-bg);
  1343. padding-left: 5px;
  1344. }
  1345. .lines-code.active,
  1346. .lines-code .active {
  1347. background: #fffbdd !important;
  1348. }
  1349. .blame .lines-num {
  1350. padding: 0 !important;
  1351. background-color: var(--color-code-sidebar-bg);
  1352. }
  1353. .blame .lines-code {
  1354. padding: 0 !important;
  1355. }
  1356. .code-inner {
  1357. font: 12px var(--fonts-monospace);
  1358. white-space: pre-wrap;
  1359. word-break: break-all;
  1360. overflow-wrap: break-word;
  1361. word-wrap: break-word;
  1362. }
  1363. .blame .code-inner {
  1364. white-space: pre;
  1365. word-break: normal;
  1366. word-wrap: normal; /* not using overflow-wrap because safari does not treat is an an alias */
  1367. }
  1368. .lines-commit {
  1369. &:extend(.unselectable);
  1370. vertical-align: top;
  1371. color: #999999;
  1372. padding: 0 !important;
  1373. background: var(--color-code-sidebar-bg);
  1374. width: 1%;
  1375. .blame-info {
  1376. &:extend(.unselectable);
  1377. width: 350px;
  1378. max-width: 350px;
  1379. display: block;
  1380. padding: 0 0 0 10px;
  1381. line-height: 20px;
  1382. box-sizing: content-box;
  1383. .blame-data {
  1384. display: flex;
  1385. font-family: var(--fonts-regular);
  1386. .blame-message {
  1387. flex-grow: 2;
  1388. overflow: hidden;
  1389. white-space: nowrap;
  1390. text-overflow: ellipsis;
  1391. }
  1392. .blame-time,
  1393. .blame-avatar {
  1394. flex-shrink: 0;
  1395. }
  1396. }
  1397. }
  1398. .ui.avatar.image {
  1399. height: 18px;
  1400. width: 18px;
  1401. display: block;
  1402. margin-top: 1px;
  1403. }
  1404. }
  1405. .top-line-blame {
  1406. border-top: 1px solid var(--color-secondary);
  1407. }
  1408. .lines-code,
  1409. .lines-commit {
  1410. .bottom-line {
  1411. border-bottom: 1px solid var(--color-secondary);
  1412. }
  1413. }
  1414. .code-view table {
  1415. width: 100%;
  1416. }
  1417. .octicon-tiny {
  1418. font-size: .85714286rem;
  1419. }
  1420. .ui.button {
  1421. background: var(--color-button);
  1422. border: 1px solid var(--color-light-border);
  1423. color: var(--color-text);
  1424. }
  1425. .page-content .ui.button {
  1426. box-shadow: none !important;
  1427. }
  1428. .ui.button:focus,
  1429. .ui.button:hover {
  1430. background: var(--color-hover);
  1431. color: var(--color-text);
  1432. }
  1433. .ui.button:active,
  1434. .ui.active.button:active,
  1435. .ui.active.button:hover {
  1436. background: var(--color-active);
  1437. color: var(--color-text);
  1438. }
  1439. .ui.button.no-text .icon {
  1440. margin: 0 !important;
  1441. }
  1442. .ui.buttons .button:first-child {
  1443. border-left: 1px solid var(--color-light-border);
  1444. }
  1445. .ui.buttons .button + .button {
  1446. border-left: none;
  1447. }
  1448. .two-toggle-buttons .button:not(.active):first-of-type {
  1449. border-right: none;
  1450. }
  1451. .two-toggle-buttons .button.active:last-of-type {
  1452. border-left: 1px solid var(--color-light-border);
  1453. }
  1454. .ui.labeled.button.disabled > .button,
  1455. .ui.basic.buttons .button,
  1456. .ui.basic.button {
  1457. color: var(--color-text-light);
  1458. background: var(--color-light);
  1459. }
  1460. .ui.basic.buttons .button:hover,
  1461. .ui.basic.button:hover {
  1462. color: var(--color-text);
  1463. background: var(--color-hover);
  1464. }
  1465. .ui.basic.buttons .button:focus,
  1466. .ui.basic.button:focus,
  1467. .ui.basic.buttons .button:active,
  1468. .ui.basic.button:active,
  1469. .ui.basic.buttons .active.button,
  1470. .ui.basic.active.button,
  1471. .ui.basic.buttons .active.button:hover,
  1472. .ui.basic.active.button:hover {
  1473. color: var(--color-text);
  1474. background: var(--color-active);
  1475. }
  1476. .ui.labeled.button > .label {
  1477. border-color: var(--color-light-border);
  1478. }
  1479. .ui.labeled.icon.buttons > .button > .icon,
  1480. .ui.labeled.icon.button > .icon {
  1481. background: var(--color-hover);
  1482. }
  1483. .ui.primary.button,
  1484. .ui.primary.buttons .button {
  1485. background-color: var(--color-primary) !important;
  1486. }
  1487. .ui.primary.button:hover,
  1488. .ui.primary.buttons .button:hover {
  1489. background-color: var(--color-primary-dark-2) !important;
  1490. }
  1491. .ui.primary.button:focus,
  1492. .ui.primary.buttons .button:focus {
  1493. background-color: var(--color-primary-dark-3) !important;
  1494. }
  1495. .ui.basic.primary.button,
  1496. .ui.basic.primary.buttons .button {
  1497. box-shadow: inset 0 0 0 1px var(--color-primary) !important;
  1498. color: #fff !important;
  1499. }
  1500. .ui.basic.primary.button:hover,
  1501. .ui.basic.primary.buttons .button:hover {
  1502. box-shadow: inset 0 0 0 1px var(--color-primary-dark-2) !important;
  1503. }
  1504. .ui.basic.primary.button:focus,
  1505. .ui.basic.primary.buttons .button:focus {
  1506. box-shadow: inset 0 0 0 1px var(--color-primary-dark-3) !important;
  1507. }
  1508. .ui.basic.secondary.buttons .button,
  1509. .ui.basic.secondary.button {
  1510. color: var(--color-secondary-dark-6) !important;
  1511. }
  1512. .ui.basic.secondary.buttons .button:hover,
  1513. .ui.basic.secondary.button:hover,
  1514. .ui.basic.secondary.buttons .button:active,
  1515. .ui.basic.secondary.button:active {
  1516. color: var(--color-secondary-dark-8) !important;
  1517. }
  1518. .ui.primary.label,
  1519. .ui.primary.labels .label {
  1520. background-color: var(--color-primary) !important;
  1521. border-color: var(--color-primary-dark-2) !important;
  1522. }
  1523. .ui.basic.labels .primary.label,
  1524. .ui.ui.ui.basic.primary.label {
  1525. background: transparent !important;
  1526. border-color: var(--color-primary) !important;
  1527. color: var(--color-primary) !important;
  1528. }
  1529. .ui.basic.labels .label,
  1530. .ui.basic.label {
  1531. background: var(--color-light);
  1532. border-color: var(--color-light-border);
  1533. color: var(--color-text-light);
  1534. }
  1535. .ui.basic.labels a.label:hover,
  1536. a.ui.basic.label:hover {
  1537. color: var(--color-text);
  1538. border-color: var(--color-light-border);
  1539. background: var(--color-hover);
  1540. }
  1541. .ui.label > img {
  1542. width: auto !important;
  1543. vertical-align: middle;
  1544. height: 2.1666em !important;
  1545. }
  1546. .svg {
  1547. span.green & {
  1548. color: var(--color-green);
  1549. }
  1550. span.red & {
  1551. color: var(--color-red);
  1552. }
  1553. span.purple & {
  1554. color: var(--color-purple);
  1555. }
  1556. }
  1557. .migrate .svg.gitea-git {
  1558. color: #f05133; /* from https://upload.wikimedia.org/wikipedia/commons/e/e0/Git-logo.svg */
  1559. }
  1560. .ui.popup {
  1561. background-color: var(--color-body);
  1562. color: var(--color-secondary-dark-6);
  1563. border-color: var(--color-secondary);
  1564. }
  1565. .ui.popup::before {
  1566. box-shadow: 1px 1px 0 0 var(--color-secondary);
  1567. }
  1568. .ui.bottom.popup::before,
  1569. .ui.top.popup::before,
  1570. .ui.right.center.popup::before,
  1571. .ui.left.center.popup::before {
  1572. background-color: var(--color-body);
  1573. }
  1574. .ui.bottom.left.popup::before,
  1575. .ui.bottom.right.popup::before,
  1576. .ui.bottom.center.popup::before {
  1577. box-shadow: -1px -1px 0 0 var(--color-secondary);
  1578. }
  1579. .ui.left.center.popup::before {
  1580. box-shadow: 1px -1px 0 0 var(--color-secondary);
  1581. }
  1582. .ui.right.center.popup::before {
  1583. box-shadow: -1px 1px 0 0 var(--color-secondary);
  1584. }
  1585. .ui.popup .ui.label {
  1586. margin-bottom: .4em;
  1587. }
  1588. .color-icon {
  1589. display: inline-block;
  1590. border-radius: 100%;
  1591. height: 14px;
  1592. width: 14px;
  1593. }
  1594. .ui.label > .color-icon {
  1595. margin-left: 0;
  1596. }
  1597. .invisible {
  1598. visibility: hidden;
  1599. }
  1600. .ui.segment,
  1601. .ui.segments,
  1602. .ui.attached.segment {
  1603. background: var(--color-box-body);
  1604. color: var(--color-text);
  1605. border-color: var(--color-secondary);
  1606. }
  1607. .ui.segments > .segment {
  1608. border-color: var(--color-secondary);
  1609. }
  1610. .ui.secondary.segment {
  1611. background: var(--color-secondary-bg);
  1612. color: var(--color-text-light);
  1613. }
  1614. .ui.attached.header {
  1615. position: relative;
  1616. background: var(--color-box-header);
  1617. border-color: var(--color-secondary);
  1618. .right .button {
  1619. padding: 8px 10px;
  1620. font-weight: normal;
  1621. }
  1622. }
  1623. /* fix misaligned right buttons on box headers */
  1624. .ui.attached.header .right:not(.dropdown) {
  1625. position: absolute;
  1626. right: .78571429rem;
  1627. top: 0;
  1628. bottom: 0;
  1629. height: 30px;
  1630. margin-top: auto;
  1631. margin-bottom: auto;
  1632. }
  1633. /* https://github.com/go-gitea/gitea/issues/10210 */
  1634. .ui.attached.segment ~ .ui.top.attached.header {
  1635. margin-top: 1rem;
  1636. }
  1637. table th[data-sortt-asc],
  1638. table th[data-sortt-desc] {
  1639. &:hover {
  1640. background: rgba(0, 0, 0, .1) !important;
  1641. cursor: pointer !important;
  1642. }
  1643. .svg {
  1644. margin-left: .25rem;
  1645. }
  1646. }
  1647. /* fix up SVG dropdown triangles because fomantic thinks they are icon fonts */
  1648. /* see https://github.com/go-gitea/gitea/issues/14014 */
  1649. .ui.dropdown > .dropdown.icon,
  1650. .btn-review > .dropdown.icon {
  1651. height: auto !important;
  1652. margin-left: .5rem !important;
  1653. margin-top: -1px !important;
  1654. margin-bottom: -1px !important;
  1655. margin-right: -.5rem !important;
  1656. }
  1657. .ui.button.dropdown > .dropdown.icon,
  1658. .btn-review > .dropdown.icon {
  1659. float: right !important;
  1660. @media (max-width: 480px) {
  1661. display: none;
  1662. }
  1663. }
  1664. .ui.selection.dropdown > .search.icon,
  1665. .ui.selection.dropdown > .delete.icon,
  1666. .ui.selection.dropdown > .dropdown.icon {
  1667. top: 0 !important;
  1668. }
  1669. .ui.dropdown.no-text > .dropdown.icon {
  1670. margin-left: 0 !important;
  1671. margin-right: 0 !important;
  1672. }
  1673. /* limit width of all direct dropdown menu children */
  1674. /* https://github.com/go-gitea/gitea/pull/10835 */
  1675. .dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {
  1676. max-width: 300px;
  1677. overflow-x: hidden;
  1678. text-overflow: ellipsis;
  1679. }
  1680. .dropdown:not(.selection) > .menu.review-box > * {
  1681. @media (max-height: 700px) {
  1682. .CodeMirror,
  1683. .CodeMirror-scroll {
  1684. min-height: 100px;
  1685. }
  1686. }
  1687. }
  1688. .ui.dropdown .menu .item {
  1689. border-radius: 0;
  1690. }
  1691. .ui.dropdown .menu .item:first-of-type {
  1692. border-radius: var(--border-radius) var(--border-radius) 0 0;
  1693. }
  1694. .ui.dropdown .menu .item:last-of-type {
  1695. border-radius: 0 0 var(--border-radius) var(--border-radius);
  1696. }
  1697. .text-label {
  1698. display: inline-flex !important;
  1699. align-items: center !important;
  1700. }
  1701. .emoji,
  1702. .reaction {
  1703. font-size: 1.25em;
  1704. line-height: 1;
  1705. font-style: normal !important;
  1706. font-weight: normal !important;
  1707. vertical-align: -.075em;
  1708. @supports (-webkit-hyphens:none) {
  1709. body:not(.safari-above125) & {
  1710. font-size: inherit;
  1711. vertical-align: inherit;
  1712. img {
  1713. font-size: 1.25em;
  1714. vertical-align: -.225em !important;
  1715. }
  1716. }
  1717. }
  1718. }
  1719. .emoji img,
  1720. .reaction img {
  1721. border-width: 0 !important;
  1722. margin: 0 !important;
  1723. width: 1em !important;
  1724. height: 1em !important;
  1725. vertical-align: -.15em;
  1726. }
  1727. .labelspage {
  1728. list-style: none;
  1729. padding-top: 0;
  1730. .item {
  1731. margin-top: 0;
  1732. margin-right: -14px;
  1733. margin-left: -14px;
  1734. padding: 10px;
  1735. border-bottom: 1px solid var(--color-secondary);
  1736. border-top: none;
  1737. a {
  1738. font-size: 15px;
  1739. padding-top: 5px;
  1740. padding-right: 10px;
  1741. color: var(--color-text-light);
  1742. &:hover {
  1743. color: var(--color-primary-light-2);
  1744. }
  1745. &.open-issues {
  1746. margin-right: 30px;
  1747. }
  1748. }
  1749. .ui.label {
  1750. font-size: 1em;
  1751. }
  1752. }
  1753. .item:last-child {
  1754. border-bottom: none;
  1755. padding-bottom: 0;
  1756. }
  1757. .orglabel {
  1758. opacity: .7;
  1759. }
  1760. }
  1761. /* https://github.com/go-gitea/gitea/pull/11486 */
  1762. .ui.sub.header {
  1763. text-transform: none;
  1764. }
  1765. .ui.tabular.menu {
  1766. border-color: var(--color-secondary);
  1767. }
  1768. .ui.tabular.menu .item {
  1769. padding: 11px 12px;
  1770. color: var(--color-text-light-2);
  1771. }
  1772. .ui.tabular.menu .item:hover {
  1773. color: var(--color-text);
  1774. }
  1775. .ui.tabular.menu .active.item,
  1776. .ui.tabular.menu .active.item:hover {
  1777. background: var(--color-body);
  1778. border-color: var(--color-secondary);
  1779. color: var(--color-text);
  1780. margin-top: 1px; /* offset fomantic's margin-bottom: -1px */
  1781. }
  1782. .ui.segment .ui.tabular.menu .active.item,
  1783. .ui.segment .ui.tabular.menu .active.item:hover {
  1784. background: var(--color-box-body);
  1785. }
  1786. .ui.secondary.pointing.menu {
  1787. border-color: var(--color-secondary);
  1788. }
  1789. .ui.secondary.pointing.menu .item {
  1790. color: var(--color-text-light-2);
  1791. }
  1792. .ui.secondary.pointing.menu .active.item,
  1793. .ui.secondary.pointing.menu .active.item:hover,
  1794. .ui.secondary.pointing.menu .dropdown.item:hover,
  1795. .ui.secondary.pointing.menu .link.item:hover,
  1796. .ui.secondary.pointing.menu a.item:hover {
  1797. color: var(--color-text-dark);
  1798. }
  1799. .ui.header {
  1800. color: var(--color-text);
  1801. }
  1802. .ui.header .ui.label {
  1803. margin-left: .25rem;
  1804. }
  1805. .ui.header > .ui.label.compact {
  1806. margin-top: inherit;
  1807. }
  1808. .flash-error details code {
  1809. display: block;
  1810. text-align: left;
  1811. }
  1812. .truncated-item-container {
  1813. display: flex !important;
  1814. }
  1815. .ellipsis-button {
  1816. &:extend(.unselectable);
  1817. padding: 0 5px 8px !important;
  1818. display: inline-block !important;
  1819. font-weight: 600 !important;
  1820. line-height: 6px !important;
  1821. vertical-align: middle !important;
  1822. }
  1823. .truncated-item-name {
  1824. line-height: 2em;
  1825. white-space: nowrap;
  1826. overflow: hidden;
  1827. text-overflow: ellipsis;
  1828. margin-top: -.5em;
  1829. margin-bottom: -.5em;
  1830. }
  1831. .precolors {
  1832. padding-left: 0 !important;
  1833. padding-right: 0 !important;
  1834. margin: 3px 10px auto !important;
  1835. width: 120px !important;
  1836. .color {
  1837. float: left;
  1838. width: 15px;
  1839. height: 15px;
  1840. }
  1841. }
  1842. @media @mediaSm {
  1843. .ui.stackable.menu:not(.no-vertical-tabs) {
  1844. overflow-y: hidden;
  1845. overflow-x: auto;
  1846. flex-direction: row;
  1847. flex-wrap: nowrap !important;
  1848. .item {
  1849. width: initial !important;
  1850. }
  1851. }
  1852. }