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.

base.css 33KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559
  1. :root {
  2. /* fonts */
  3. --fonts-proportional: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial;
  4. --fonts-monospace: ui-monospace, SFMono-Regular, "SF Mono", 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. /* font weights - use between 400 and 600 for general purposes. Avoid 700 as it is perceived too bold */
  7. --font-weight-light: 300;
  8. --font-weight-normal: 400;
  9. --font-weight-medium: 500;
  10. --font-weight-semibold: 600;
  11. --font-weight-bold: 700;
  12. /* line-height: use the default value as "modules/normalize.css" */
  13. --line-height-default: normal;
  14. /* images */
  15. --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>');
  16. --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>');
  17. --octicon-chevron-right: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"></path></svg>');
  18. /* other variables */
  19. --border-radius: 4px;
  20. --border-radius-medium: 6px;
  21. --border-radius-circle: 50%;
  22. --opacity-disabled: 0.55;
  23. --height-loading: 16rem;
  24. --min-height-textarea: 132px; /* padding + 6 lines + border = calc(1.57142em + 6lh + 2px), but lh is not fully supported */
  25. --tab-size: 4;
  26. --checkbox-size: 15px; /* height and width of checkbox and radio inputs */
  27. --page-spacing: 16px; /* space between page elements */
  28. --page-margin-x: 32px; /* minimum space on left and right side of page */
  29. }
  30. @media (min-width: 768px) and (max-width: 1200px) {
  31. :root {
  32. --page-margin-x: 16px;
  33. }
  34. }
  35. @media (max-width: 767.98px) {
  36. :root {
  37. --page-margin-x: 8px;
  38. }
  39. }
  40. :root * {
  41. --fonts-regular: var(--fonts-override, var(--fonts-proportional)), "Noto Sans", "Liberation Sans", sans-serif, var(--fonts-emoji);
  42. }
  43. *, ::before, ::after {
  44. /* these are needed for tailwind borders to work because we do not load tailwind's base
  45. https://github.com/tailwindlabs/tailwindcss/blob/master/src/css/preflight.css */
  46. border-width: 0;
  47. border-style: solid;
  48. border-color: currentcolor;
  49. }
  50. html, body {
  51. height: 100%;
  52. font-size: 14px;
  53. }
  54. body {
  55. line-height: 20px;
  56. font-family: var(--fonts-regular);
  57. color: var(--color-text);
  58. background-color: var(--color-body);
  59. tab-size: var(--tab-size);
  60. display: flex;
  61. flex-direction: column;
  62. overflow-x: visible;
  63. overflow-wrap: break-word;
  64. }
  65. textarea {
  66. font-family: var(--fonts-regular);
  67. }
  68. pre,
  69. code,
  70. kbd,
  71. samp {
  72. font-family: var(--fonts-monospace);
  73. }
  74. pre,
  75. code,
  76. kbd,
  77. samp,
  78. .tw-font-mono {
  79. font-size: 0.95em; /* compensate for monospace fonts being usually slightly larger */
  80. }
  81. b,
  82. strong,
  83. h1,
  84. h2,
  85. h3,
  86. h4,
  87. h5,
  88. h6 {
  89. font-weight: var(--font-weight-semibold);
  90. }
  91. h1,
  92. h2,
  93. h3,
  94. h4,
  95. h5 {
  96. line-height: 1.28571429;
  97. margin: calc(2rem - 0.1428571428571429em) 0 1rem;
  98. font-weight: var(--font-weight-medium);
  99. padding: 0;
  100. }
  101. h1 {
  102. min-height: 1rem;
  103. font-size: 2rem;
  104. }
  105. h2 {
  106. font-size: 1.71428571rem;
  107. }
  108. h3 {
  109. font-size: 1.28571429rem;
  110. }
  111. h4 {
  112. font-size: 1.07142857rem;
  113. }
  114. h5 {
  115. font-size: 1rem;
  116. }
  117. h1:first-child,
  118. h2:first-child,
  119. h3:first-child,
  120. h4:first-child,
  121. h5:first-child {
  122. margin-top: 0;
  123. }
  124. h1:last-child,
  125. h2:last-child,
  126. h3:last-child,
  127. h4:last-child,
  128. h5:last-child {
  129. margin-bottom: 0;
  130. }
  131. p {
  132. margin: 0 0 1em;
  133. line-height: 1.4285;
  134. }
  135. p:first-child {
  136. margin-top: 0;
  137. }
  138. p:last-child {
  139. margin-bottom: 0;
  140. }
  141. table {
  142. border-collapse: collapse;
  143. }
  144. button {
  145. cursor: pointer;
  146. }
  147. details summary {
  148. cursor: pointer;
  149. }
  150. details summary > * {
  151. display: inline;
  152. }
  153. progress {
  154. background: var(--color-secondary-dark-1);
  155. border-radius: var(--border-radius);
  156. border: none;
  157. overflow: hidden;
  158. }
  159. progress::-webkit-progress-bar {
  160. background: var(--color-secondary-dark-1);
  161. }
  162. progress::-webkit-progress-value {
  163. background-color: var(--color-accent);
  164. }
  165. progress::-moz-progress-bar {
  166. background-color: var(--color-accent);
  167. }
  168. * {
  169. caret-color: var(--color-caret);
  170. }
  171. ::file-selector-button {
  172. border: 1px solid var(--color-light-border);
  173. color: var(--color-text-light);
  174. background: var(--color-light);
  175. border-radius: var(--border-radius);
  176. }
  177. ::file-selector-button:hover {
  178. color: var(--color-text);
  179. background: var(--color-hover);
  180. }
  181. ::selection {
  182. background: var(--color-primary-light-1);
  183. color: var(--color-white);
  184. }
  185. ::placeholder,
  186. .ui.dropdown:not(.button) > .default.text,
  187. .ui.default.dropdown:not(.button) > .text {
  188. color: var(--color-placeholder-text) !important;
  189. opacity: 1 !important;
  190. }
  191. .unselectable,
  192. .button,
  193. .lines-num,
  194. .lines-commit,
  195. .lines-commit .blame-info,
  196. .ellipsis-button {
  197. -webkit-touch-callout: none;
  198. -webkit-user-select: none;
  199. user-select: none;
  200. }
  201. a {
  202. color: var(--color-primary);
  203. cursor: pointer;
  204. text-decoration-line: none;
  205. text-decoration-skip-ink: all;
  206. }
  207. a:hover {
  208. text-decoration-line: underline;
  209. }
  210. /* a = always colored, underlined on hover */
  211. /* a.muted = colored on hover, underlined on hover */
  212. /* a.suppressed = never colored, underlined on hover */
  213. /* a.silenced = never colored, never underlined */
  214. a.muted,
  215. a.suppressed,
  216. a.silenced,
  217. .muted-links a {
  218. color: inherit;
  219. }
  220. a:hover,
  221. a.suppressed:hover,
  222. a.muted:hover,
  223. a.muted:hover [class*="color-text"],
  224. .muted-links a:hover {
  225. color: var(--color-primary);
  226. }
  227. a.silenced:hover,
  228. a.suppressed:hover {
  229. color: inherit;
  230. }
  231. a.silenced:hover {
  232. text-decoration-line: none;
  233. }
  234. a.label,
  235. .ui.search .results a,
  236. .ui .menu a,
  237. .ui.cards a.card,
  238. .issue-keyword a {
  239. text-decoration-line: none !important;
  240. }
  241. .ui.search > .results {
  242. background: var(--color-body);
  243. border-color: var(--color-secondary);
  244. overflow-wrap: anywhere; /* allow text to wrap as fomantic limits this to 18em width */
  245. }
  246. .ui.search > .results .result {
  247. background: var(--color-body);
  248. border-color: var(--color-secondary);
  249. display: flex;
  250. align-items: center;
  251. }
  252. .ui.search > .results .result .title {
  253. color: var(--color-text-dark);
  254. }
  255. .ui.search > .results .result .description {
  256. color: var(--color-text-light-2);
  257. }
  258. .ui.search > .results .result .image {
  259. width: auto;
  260. height: auto;
  261. }
  262. .ui.search > .results .result:hover,
  263. .ui.category.search > .results .category .result:hover {
  264. background: var(--color-hover);
  265. }
  266. .inline-code-block {
  267. padding: 2px 4px;
  268. border-radius: .24em;
  269. background-color: var(--color-label-bg);
  270. }
  271. .ui.menu {
  272. display: flex;
  273. }
  274. .ui.menu,
  275. .ui.vertical.menu {
  276. background: var(--color-menu);
  277. border-color: var(--color-secondary);
  278. box-shadow: none;
  279. }
  280. .ui.menu .item {
  281. color: var(--color-text);
  282. user-select: auto;
  283. line-height: var(--line-height-default); /* fomantic uses "1" which causes overflow problems because "1" doesn't consider the descent part */
  284. }
  285. .ui.menu .item > .svg {
  286. margin-right: 0.35em;
  287. }
  288. .ui.menu .dropdown.item:hover,
  289. .ui.menu a.item:hover,
  290. .ui.menu details.item summary:hover {
  291. color: var(--color-text);
  292. background: var(--color-hover);
  293. }
  294. .ui.menu .active.item,
  295. .ui.menu .active.item:hover,
  296. .ui.vertical.menu .active.item,
  297. .ui.vertical.menu .active.item:hover {
  298. color: var(--color-text);
  299. background: var(--color-active);
  300. }
  301. .ui.menu a.item:active {
  302. color: var(--color-text);
  303. background: none;
  304. }
  305. .ui.ui.menu .item.disabled {
  306. color: var(--color-text-light-3);
  307. }
  308. .ui.menu .item::before, .ui.vertical.menu .item::before {
  309. background: var(--color-secondary);
  310. }
  311. /* sub menu of vertical menu */
  312. .ui.vertical.menu .item .menu .item {
  313. color: var(--color-text-light-2);
  314. text-indent: 16px;
  315. }
  316. .ui.vertical.menu .item .menu .item:hover,
  317. .ui.vertical.menu .item .menu a.item:hover {
  318. color: var(--color-text-light-1);
  319. }
  320. .ui.vertical.menu .item .menu .active.item {
  321. color: var(--color-text);
  322. }
  323. /* slightly more contrast for filters on issue list */
  324. .ui.ui.menu .dropdown.item.disabled {
  325. color: var(--color-text-light-2);
  326. }
  327. .ui.dropdown .menu {
  328. background: var(--color-menu);
  329. border-color: var(--color-secondary);
  330. }
  331. .ui.dropdown .menu > .header:not(.ui) {
  332. color: var(--color-text);
  333. }
  334. .ui.dropdown .menu > .item {
  335. color: var(--color-text);
  336. }
  337. .ui.dropdown .menu > .item:hover {
  338. color: var(--color-text);
  339. background: var(--color-hover);
  340. }
  341. .ui.dropdown .menu > .item:active {
  342. color: var(--color-text);
  343. background: var(--color-active);
  344. }
  345. .ui.dropdown .menu .active.item {
  346. color: var(--color-text);
  347. background: var(--color-active);
  348. border-radius: 0;
  349. font-weight: var(--font-weight-normal);
  350. }
  351. /* fix misaligned images in webhook dropdown */
  352. .ui.dropdown .menu > .item > img {
  353. margin-top: -0.25rem;
  354. margin-bottom: -0.25rem;
  355. }
  356. .ui.dropdown .menu > .item > svg {
  357. margin-right: .78rem; /* use the same margin as for <img> */
  358. }
  359. .ui.selection.dropdown .menu > .item {
  360. border-color: var(--color-secondary);
  361. }
  362. .ui.selection.visible.dropdown > .text:not(.default) {
  363. color: var(--color-text);
  364. }
  365. .ui.dropdown.selected,
  366. .ui.dropdown .menu .selected.item {
  367. color: var(--color-text);
  368. background: var(--color-hover);
  369. }
  370. .ui.menu .ui.dropdown .menu > .selected.item {
  371. color: var(--color-text) !important;
  372. background: var(--color-hover) !important;
  373. }
  374. .ui.dropdown .menu > .message:not(.ui) {
  375. color: var(--color-text-light-2);
  376. }
  377. /* extend fomantic style '.ui.dropdown > .text > img' to include svg.img */
  378. .ui.dropdown > .text > .img {
  379. margin-left: 0;
  380. float: none;
  381. margin-right: 0.78571429rem;
  382. }
  383. .ui.dropdown > .text > .description,
  384. .ui.dropdown .menu > .item > .description {
  385. color: var(--color-text-light-2);
  386. }
  387. /* replace item margin on secondary menu items with gap and remove both the
  388. negative margins on the menu as well as margin on the items */
  389. .ui.secondary.menu {
  390. margin-left: 0;
  391. margin-right: 0;
  392. gap: .35714286em;
  393. }
  394. .ui.secondary.menu .item {
  395. margin-left: 0;
  396. margin-right: 0;
  397. }
  398. .ui.secondary.menu .dropdown.item:hover,
  399. .ui.secondary.menu a.item:hover {
  400. color: var(--color-text);
  401. background: var(--color-hover);
  402. }
  403. .ui.secondary.menu .active.item,
  404. .ui.secondary.menu .active.item:hover {
  405. color: var(--color-text);
  406. background: var(--color-active);
  407. }
  408. .ui.secondary.menu.tight .item {
  409. padding-left: 0.85714286em;
  410. padding-right: 0.85714286em;
  411. }
  412. /* remove the menu clearfix so that it won't add undesired gaps when using "gap" */
  413. .ui.menu::after {
  414. content: normal;
  415. }
  416. .ui.menu .dropdown.item .menu {
  417. background: var(--color-body);
  418. }
  419. .ui.menu .ui.dropdown .menu > .item {
  420. color: var(--color-text) !important;
  421. }
  422. .ui.menu .ui.dropdown .menu > .item:hover {
  423. color: var(--color-text) !important;
  424. background: var(--color-hover) !important;
  425. }
  426. .ui.menu .ui.dropdown .menu > .active.item {
  427. color: var(--color-text) !important;
  428. background: var(--color-active) !important;
  429. }
  430. .ui.form textarea:not([rows]) {
  431. height: var(--min-height-textarea); /* override fomantic default 12em */
  432. min-height: var(--min-height-textarea); /* override fomantic default 8em */
  433. }
  434. /* styles from removed fomantic transition module */
  435. .hidden.transition {
  436. visibility: hidden;
  437. display: none;
  438. }
  439. .visible.transition {
  440. display: block !important;
  441. visibility: visible !important;
  442. }
  443. .ui.selection.active.dropdown,
  444. .ui.selection.active.dropdown:hover,
  445. .ui.selection.active.dropdown .menu,
  446. .ui.selection.active.dropdown:hover .menu {
  447. border-color: var(--color-primary);
  448. }
  449. .ui.pointing.dropdown > .menu:not(.hidden)::after {
  450. background: var(--color-menu);
  451. box-shadow: -1px -1px 0 0 var(--color-secondary);
  452. }
  453. .ui.pointing.upward.dropdown .menu::after,
  454. .ui.top.pointing.upward.dropdown .menu::after {
  455. box-shadow: 1px 1px 0 0 var(--color-secondary);
  456. }
  457. .ui.comments .comment .text {
  458. margin: 0;
  459. }
  460. .ui.comments .comment .text,
  461. .ui.comments .comment .author {
  462. color: var(--color-text);
  463. }
  464. .ui.comments .comment a.author:hover {
  465. color: var(--color-primary);
  466. }
  467. .ui.comments .comment .metadata {
  468. color: var(--color-text-light-2);
  469. }
  470. .ui.comments .comment .actions a {
  471. color: var(--color-text-light);
  472. }
  473. .ui.comments .comment .actions a.active,
  474. .ui.comments .comment .actions a:hover {
  475. color: var(--color-primary);
  476. }
  477. img.ui.avatar,
  478. .ui.avatar img,
  479. .ui.avatar svg {
  480. border-radius: var(--border-radius);
  481. object-fit: contain;
  482. aspect-ratio: 1;
  483. }
  484. .ui.error.message .header,
  485. .ui.warning.message .header {
  486. color: inherit;
  487. filter: saturate(2);
  488. }
  489. .full.height {
  490. flex-grow: 1;
  491. padding-bottom: 80px;
  492. }
  493. /* add margin below .secondary nav when it is the first child */
  494. .page-content > :first-child.secondary-nav {
  495. margin-bottom: 14px;
  496. }
  497. /* add margin to all pages when there is no .secondary.nav */
  498. .page-content > :first-child:not(.secondary-nav) {
  499. margin-top: var(--page-spacing);
  500. }
  501. /* if .ui.grid is the first child the first grid-column has 'padding-top: 1rem' which we need
  502. to compensate here */
  503. .page-content > :first-child.ui.grid {
  504. margin-top: calc(var(--page-spacing) - 1rem);
  505. }
  506. .ui.pagination.menu .active.item {
  507. color: var(--color-text);
  508. background: var(--color-active);
  509. }
  510. .ui.form .fields.error .field textarea,
  511. .ui.form .fields.error .field select,
  512. .ui.form .fields.error .field input:not([type]),
  513. .ui.form .fields.error .field input[type="date"],
  514. .ui.form .fields.error .field input[type="datetime-local"],
  515. .ui.form .fields.error .field input[type="email"],
  516. .ui.form .fields.error .field input[type="number"],
  517. .ui.form .fields.error .field input[type="password"],
  518. .ui.form .fields.error .field input[type="search"],
  519. .ui.form .fields.error .field input[type="tel"],
  520. .ui.form .fields.error .field input[type="time"],
  521. .ui.form .fields.error .field input[type="text"],
  522. .ui.form .fields.error .field input[type="file"],
  523. .ui.form .fields.error .field input[type="url"],
  524. .ui.form .fields.error .field .ui.dropdown,
  525. .ui.form .fields.error .field .ui.dropdown .item,
  526. .ui.form .field.error .ui.dropdown,
  527. .ui.form .field.error .ui.dropdown .text,
  528. .ui.form .field.error .ui.dropdown .item,
  529. .ui.form .field.error textarea,
  530. .ui.form .field.error select,
  531. .ui.form .field.error input:not([type]),
  532. .ui.form .field.error input[type="date"],
  533. .ui.form .field.error input[type="datetime-local"],
  534. .ui.form .field.error input[type="email"],
  535. .ui.form .field.error input[type="number"],
  536. .ui.form .field.error input[type="password"],
  537. .ui.form .field.error input[type="search"],
  538. .ui.form .field.error input[type="tel"],
  539. .ui.form .field.error input[type="time"],
  540. .ui.form .field.error input[type="text"],
  541. .ui.form .field.error input[type="file"],
  542. .ui.form .field.error input[type="url"],
  543. .ui.form .field.error select:focus,
  544. .ui.form .field.error input:not([type]):focus,
  545. .ui.form .field.error input[type="date"]:focus,
  546. .ui.form .field.error input[type="datetime-local"]:focus,
  547. .ui.form .field.error input[type="email"]:focus,
  548. .ui.form .field.error input[type="number"]:focus,
  549. .ui.form .field.error input[type="password"]:focus,
  550. .ui.form .field.error input[type="search"]:focus,
  551. .ui.form .field.error input[type="tel"]:focus,
  552. .ui.form .field.error input[type="time"]:focus,
  553. .ui.form .field.error input[type="text"]:focus,
  554. .ui.form .field.error input[type="file"]:focus,
  555. .ui.form .field.error input[type="url"]:focus {
  556. background-color: var(--color-error-bg);
  557. border-color: var(--color-error-border);
  558. color: var(--color-error-text);
  559. }
  560. .ui.form .fields.error .field .ui.dropdown,
  561. .ui.form .field.error .ui.dropdown,
  562. .ui.form .fields.error .field .ui.dropdown:hover,
  563. .ui.form .field.error .ui.dropdown:hover {
  564. border-color: var(--color-error-border) !important;
  565. }
  566. .ui.form .fields.error .field .ui.dropdown .menu .item:hover,
  567. .ui.form .field.error .ui.dropdown .menu .item:hover {
  568. background-color: var(--color-error-bg-hover);
  569. }
  570. .ui.form .fields.error .field .ui.dropdown .menu .active.item,
  571. .ui.form .field.error .ui.dropdown .menu .active.item {
  572. background-color: var(--color-error-bg-active) !important;
  573. }
  574. .ui.form .fields.error .dropdown .menu,
  575. .ui.form .field.error .dropdown .menu {
  576. border-color: var(--color-error-border) !important;
  577. }
  578. input:-webkit-autofill,
  579. input:-webkit-autofill:focus,
  580. input:-webkit-autofill:hover,
  581. input:-webkit-autofill:active,
  582. .ui.form .field.field input:-webkit-autofill,
  583. .ui.form .field.field input:-webkit-autofill:focus,
  584. .ui.form .field.field input:-webkit-autofill:hover,
  585. .ui.form .field.field input:-webkit-autofill:active {
  586. -webkit-background-clip: text;
  587. -webkit-text-fill-color: var(--color-text);
  588. box-shadow: 0 0 0 100px var(--color-primary-light-6) inset !important;
  589. border-color: var(--color-primary-light-4) !important;
  590. }
  591. .ui.form .field.muted {
  592. opacity: var(--opacity-disabled);
  593. }
  594. .text.primary {
  595. color: var(--color-primary) !important;
  596. }
  597. .text.red {
  598. color: var(--color-red) !important;
  599. }
  600. .text.orange {
  601. color: var(--color-orange) !important;
  602. }
  603. .text.yellow {
  604. color: var(--color-yellow) !important;
  605. }
  606. .text.olive {
  607. color: var(--color-olive) !important;
  608. }
  609. .text.green {
  610. color: var(--color-green) !important;
  611. }
  612. .text.teal {
  613. color: var(--color-teal) !important;
  614. }
  615. .text.blue {
  616. color: var(--color-blue) !important;
  617. }
  618. .text.violet {
  619. color: var(--color-violet) !important;
  620. }
  621. .text.purple {
  622. color: var(--color-purple) !important;
  623. }
  624. .text.pink {
  625. color: var(--color-pink) !important;
  626. }
  627. .text.brown {
  628. color: var(--color-brown) !important;
  629. }
  630. .text.black {
  631. color: var(--color-text) !important;
  632. }
  633. .text.grey {
  634. color: var(--color-text-light) !important;
  635. }
  636. .text.light {
  637. color: var(--color-text-light) !important;
  638. }
  639. .text.light-2 {
  640. color: var(--color-text-light-2) !important;
  641. }
  642. .text.light-3 {
  643. color: var(--color-text-light-3) !important;
  644. }
  645. .text.light.grey {
  646. color: var(--color-grey-light) !important;
  647. }
  648. .text.gold {
  649. color: var(--color-gold) !important;
  650. }
  651. .text.small {
  652. font-size: 0.75em;
  653. }
  654. .ui.form .ui.button {
  655. font-weight: var(--font-weight-normal);
  656. }
  657. /* replace fomantic popover box shadows */
  658. .ui.dropdown .menu,
  659. .ui.upward.dropdown > .menu,
  660. .ui.menu .dropdown.item .menu,
  661. .ui.selection.active.dropdown .menu,
  662. .ui.upward.selection.dropdown .menu,
  663. .ui.selection.active.dropdown:hover .menu,
  664. .ui.upward.active.selection.dropdown:hover .menu {
  665. box-shadow: 0 6px 18px var(--color-shadow);
  666. }
  667. .ui.floating.dropdown .menu {
  668. box-shadow: 0 6px 18px var(--color-shadow) !important;
  669. }
  670. .ui.dimmer {
  671. background: var(--color-overlay-backdrop);
  672. }
  673. /* Override semantic selector '.ui.menu:not(.vertical) .item > .button' */
  674. /* This fixes the commit graph button on the commits page */
  675. /* modal svg icons, copied from fomantic except width and height */
  676. /* center text in fomantic modal dialogs */
  677. .ui .menu:not(.vertical) .item > .button.compact {
  678. padding: 0.58928571em 1.125em;
  679. }
  680. .ui .menu:not(.vertical) .item > .button.small {
  681. font-size: 0.92857143rem;
  682. }
  683. .ui.menu .ui.dropdown.item .menu .item {
  684. width: 100%;
  685. }
  686. .ui.dropdown .menu > .header {
  687. font-size: 0.8em;
  688. }
  689. .ui .text.left {
  690. text-align: left !important;
  691. }
  692. .ui .text.right {
  693. text-align: right !important;
  694. }
  695. .ui .text.normal {
  696. font-weight: var(--font-weight-normal);
  697. }
  698. .ui .text.italic {
  699. font-style: italic;
  700. }
  701. .ui .text.truncate {
  702. overflow-x: hidden;
  703. text-overflow: ellipsis;
  704. white-space: nowrap;
  705. display: inline-block;
  706. }
  707. .ui .text.thin {
  708. font-weight: var(--font-weight-normal);
  709. }
  710. .ui .text.middle {
  711. vertical-align: middle;
  712. }
  713. .ui .message.flash-message {
  714. text-align: center;
  715. }
  716. .ui .message > ul {
  717. margin-left: auto;
  718. margin-right: auto;
  719. display: table;
  720. text-align: left;
  721. }
  722. .ui .header > i + .content {
  723. padding-left: 0.75rem;
  724. vertical-align: middle;
  725. }
  726. .ui .form .autofill-dummy {
  727. position: absolute;
  728. width: 1px;
  729. height: 1px;
  730. overflow: hidden;
  731. z-index: -10000;
  732. }
  733. .ui .form .sub.field {
  734. margin-left: 25px;
  735. }
  736. .ui .sha.label {
  737. font-family: var(--fonts-monospace);
  738. font-size: 13px;
  739. font-weight: var(--font-weight-normal);
  740. margin: 0 6px;
  741. padding: 5px 10px;
  742. }
  743. .ui .sha.label .shortsha {
  744. display: inline-block; /* not sure whether it is still needed */
  745. }
  746. .ui .button.truncate {
  747. display: inline-block;
  748. max-width: 100%;
  749. overflow: hidden;
  750. text-overflow: ellipsis;
  751. vertical-align: top;
  752. white-space: nowrap;
  753. margin-right: 6px;
  754. }
  755. .ui.status.buttons .svg {
  756. margin-right: 4px;
  757. }
  758. .ui.inline.delete-button {
  759. padding: 8px 15px;
  760. font-weight: var(--font-weight-normal);
  761. }
  762. .ui .background.red {
  763. background-color: var(--color-red) !important;
  764. }
  765. .ui .background.blue {
  766. background-color: var(--color-blue) !important;
  767. }
  768. .ui .background.black {
  769. background-color: var(--color-black) !important;
  770. }
  771. .ui .background.grey {
  772. background-color: var(--color-grey) !important;
  773. }
  774. .ui .background.light.grey {
  775. background-color: var(--color-grey) !important;
  776. }
  777. .ui .background.green {
  778. background-color: var(--color-green) !important;
  779. }
  780. .ui .background.purple {
  781. background-color: var(--color-purple) !important;
  782. }
  783. .ui .background.yellow {
  784. background-color: var(--color-yellow) !important;
  785. }
  786. .ui .background.orange {
  787. background-color: var(--color-orange) !important;
  788. }
  789. .ui .background.gold {
  790. background-color: var(--color-gold) !important;
  791. }
  792. .ui .migrate {
  793. color: var(--color-text-light-2) !important;
  794. }
  795. .ui .migrate a {
  796. color: var(--color-text-light) !important;
  797. }
  798. .ui .migrate a:hover {
  799. color: var(--color-text) !important;
  800. }
  801. .ui .border {
  802. border: 1px solid;
  803. }
  804. .ui .border.red {
  805. border-color: var(--color-red) !important;
  806. }
  807. .ui .border.blue {
  808. border-color: var(--color-blue) !important;
  809. }
  810. .ui .border.black {
  811. border-color: var(--color-black) !important;
  812. }
  813. .ui .border.grey {
  814. border-color: var(--color-grey) !important;
  815. }
  816. .ui .border.light.grey {
  817. border-color: var(--color-grey) !important;
  818. }
  819. .ui .border.green {
  820. border-color: var(--color-green) !important;
  821. }
  822. .ui .border.purple {
  823. border-color: var(--color-purple) !important;
  824. }
  825. .ui .border.yellow {
  826. border-color: var(--color-yellow) !important;
  827. }
  828. .ui .border.orange {
  829. border-color: var(--color-orange) !important;
  830. }
  831. .ui .border.gold {
  832. border-color: var(--color-gold) !important;
  833. }
  834. @media (max-width: 767.98px) {
  835. .ui.pagination.menu .item:not(.active,.navigation),
  836. .ui.pagination.menu .item.navigation span.navigation_label {
  837. display: none;
  838. }
  839. }
  840. .ui.pagination.menu.narrow .item {
  841. padding-left: 8px;
  842. padding-right: 8px;
  843. min-width: 1em;
  844. text-align: center;
  845. }
  846. .ui.pagination.menu.narrow .item .icon {
  847. margin-right: 0;
  848. }
  849. .ui.floating.dropdown .overflow.menu .scrolling.menu.items {
  850. border-radius: 0 !important;
  851. box-shadow: none !important;
  852. border-bottom: 1px solid var(--color-secondary);
  853. }
  854. .user-menu > .item {
  855. width: 100%;
  856. border-radius: 0 !important;
  857. }
  858. .scrolling.menu .item.selected {
  859. font-weight: var(--font-weight-semibold) !important;
  860. }
  861. .ui.dropdown .scrolling.menu {
  862. border-color: var(--color-secondary);
  863. }
  864. .color-preview {
  865. display: inline-block;
  866. margin-left: 0.4em;
  867. height: 0.67em;
  868. width: 0.67em;
  869. border-radius: var(--border-radius);
  870. }
  871. .attention-icon {
  872. margin: 2px 6px 0 0;
  873. }
  874. blockquote.attention-note {
  875. border-left-color: var(--color-blue-dark-1);
  876. }
  877. strong.attention-note, svg.attention-note {
  878. color: var(--color-blue-dark-1);
  879. }
  880. blockquote.attention-tip {
  881. border-left-color: var(--color-success-text);
  882. }
  883. strong.attention-tip, svg.attention-tip {
  884. color: var(--color-success-text);
  885. }
  886. blockquote.attention-important {
  887. border-left-color: var(--color-violet-dark-1);
  888. }
  889. strong.attention-important, svg.attention-important {
  890. color: var(--color-violet-dark-1);
  891. }
  892. blockquote.attention-warning {
  893. border-left-color: var(--color-warning-text);
  894. }
  895. strong.attention-warning, svg.attention-warning {
  896. color: var(--color-warning-text);
  897. }
  898. blockquote.attention-caution {
  899. border-left-color: var(--color-red-dark-1);
  900. }
  901. strong.attention-caution, svg.attention-caution {
  902. color: var(--color-red-dark-1);
  903. }
  904. .center:not(.popup) {
  905. text-align: center;
  906. }
  907. overflow-menu {
  908. border-bottom: 1px solid var(--color-secondary) !important;
  909. display: flex;
  910. }
  911. overflow-menu .overflow-menu-items {
  912. display: flex;
  913. flex: 1;
  914. }
  915. overflow-menu .overflow-menu-items .item {
  916. margin-bottom: 0 !important; /* reset fomantic's margin, because the active menu has special bottom border */
  917. }
  918. overflow-menu .ui.label {
  919. margin-left: 7px !important; /* save some space */
  920. }
  921. .activity-bar-graph {
  922. background-color: var(--color-primary);
  923. color: var(--color-primary-contrast);
  924. }
  925. .activity-bar-graph-alt {
  926. color: var(--color-primary-contrast);
  927. }
  928. .archived-icon {
  929. color: var(--color-secondary-dark-2) !important;
  930. }
  931. .oauth2-authorize-application-box {
  932. margin-top: 3em !important;
  933. }
  934. /* multiple radio or checkboxes as inline element */
  935. .inline-grouped-list {
  936. display: inline-block;
  937. vertical-align: top;
  938. }
  939. .inline-grouped-list > .ui {
  940. display: block;
  941. margin-top: 5px;
  942. margin-bottom: 10px;
  943. }
  944. .inline-grouped-list > .ui:first-child {
  945. margin-top: 1px;
  946. }
  947. .ui.menu .item > .label {
  948. background: var(--color-label-bg);
  949. color: var(--color-label-text);
  950. }
  951. .lines-blame-btn {
  952. padding: 0 0 0 5px;
  953. display: flex;
  954. justify-content: center;
  955. }
  956. .lines-num {
  957. padding: 0 8px;
  958. text-align: right !important;
  959. color: var(--color-text-light-2);
  960. width: 1%;
  961. font-family: var(--fonts-monospace);
  962. }
  963. .lines-num span.bottom-line::after {
  964. border-bottom: 1px solid var(--color-secondary);
  965. }
  966. .lines-num span::after {
  967. content: attr(data-line-number);
  968. line-height: 20px !important;
  969. padding: 0 10px;
  970. display: block;
  971. }
  972. .code-view .lines-num span::after {
  973. cursor: pointer;
  974. }
  975. .lines-type-marker {
  976. vertical-align: top;
  977. }
  978. .lines-num,
  979. .lines-code {
  980. font-size: 12px;
  981. font-family: var(--fonts-monospace);
  982. line-height: 20px;
  983. padding-top: 0;
  984. padding-bottom: 0;
  985. vertical-align: top;
  986. }
  987. .lines-num pre,
  988. .lines-code pre,
  989. .lines-num ol,
  990. .lines-code ol {
  991. background-color: inherit;
  992. margin: 0;
  993. padding: 0 !important;
  994. }
  995. .lines-num pre li,
  996. .lines-code pre li,
  997. .lines-num ol li,
  998. .lines-code ol li {
  999. display: block;
  1000. width: calc(100% - 1ch);
  1001. padding-left: 1ch;
  1002. }
  1003. .lines-escape {
  1004. width: 0;
  1005. }
  1006. .lines-code {
  1007. padding-left: 5px;
  1008. }
  1009. .file-view tr.active {
  1010. color: inherit !important;
  1011. background: inherit !important;
  1012. }
  1013. .file-view tr.active .lines-num,
  1014. .file-view tr.active .lines-code {
  1015. background: var(--color-highlight-bg) !important;
  1016. }
  1017. .file-view tr.active:last-of-type .lines-code {
  1018. border-bottom-right-radius: var(--border-radius);
  1019. }
  1020. .file-view tr.active .lines-num {
  1021. position: relative;
  1022. }
  1023. .file-view tr.active .lines-num::before {
  1024. content: "";
  1025. position: absolute;
  1026. left: 0;
  1027. width: 2px;
  1028. height: 100%;
  1029. background: var(--color-highlight-fg);
  1030. }
  1031. .code-inner {
  1032. font: 12px var(--fonts-monospace);
  1033. white-space: pre-wrap;
  1034. word-break: break-all;
  1035. overflow-wrap: anywhere;
  1036. line-height: inherit; /* needed for inline code preview in markup */
  1037. }
  1038. .blame .code-inner {
  1039. white-space: pre-wrap;
  1040. overflow-wrap: anywhere;
  1041. }
  1042. .lines-commit {
  1043. vertical-align: top;
  1044. color: var(--color-text-light-1);
  1045. padding: 0 !important;
  1046. width: 1%;
  1047. }
  1048. .lines-commit .blame-info {
  1049. width: min(26vw, 300px);
  1050. display: block;
  1051. padding: 0 0 0 6px;
  1052. line-height: 20px;
  1053. box-sizing: content-box;
  1054. }
  1055. .lines-commit .blame-info .blame-data {
  1056. display: flex;
  1057. font-family: var(--fonts-regular);
  1058. }
  1059. .lines-commit .blame-info .blame-data .blame-message {
  1060. flex-grow: 2;
  1061. overflow: hidden;
  1062. white-space: nowrap;
  1063. text-overflow: ellipsis;
  1064. }
  1065. .lines-commit .blame-info .blame-data .blame-time,
  1066. .lines-commit .blame-info .blame-data .blame-avatar {
  1067. flex-shrink: 0;
  1068. }
  1069. .blame-avatar {
  1070. display: flex;
  1071. align-items: center;
  1072. margin-right: 4px;
  1073. }
  1074. .top-line-blame {
  1075. border-top: 1px solid var(--color-secondary);
  1076. }
  1077. .code-view tr.top-line-blame:first-of-type {
  1078. border-top: none;
  1079. }
  1080. .lines-code .bottom-line,
  1081. .lines-commit .bottom-line {
  1082. border-bottom: 1px solid var(--color-secondary);
  1083. }
  1084. .code-view {
  1085. background: var(--color-code-bg);
  1086. border-radius: var(--border-radius);
  1087. }
  1088. .code-view table {
  1089. width: 100%;
  1090. }
  1091. .migrate .svg.gitea-git {
  1092. color: var(--color-git);
  1093. }
  1094. .color-icon {
  1095. display: inline-block;
  1096. border-radius: var(--border-radius-circle);
  1097. height: 14px;
  1098. width: 14px;
  1099. }
  1100. .rss-icon {
  1101. display: inline-flex;
  1102. color: var(--color-text-light-1);
  1103. }
  1104. table th[data-sortt-asc]:hover,
  1105. table th[data-sortt-desc]:hover {
  1106. background: var(--color-hover) !important;
  1107. cursor: pointer !important;
  1108. }
  1109. table th[data-sortt-asc] .svg,
  1110. table th[data-sortt-desc] .svg {
  1111. margin-left: 0.25rem;
  1112. }
  1113. .ui.dropdown .menu .item {
  1114. border-radius: 0;
  1115. }
  1116. .ui.dropdown .menu .item:first-of-type {
  1117. border-radius: var(--border-radius) var(--border-radius) 0 0;
  1118. }
  1119. .ui.dropdown .menu .item:last-of-type {
  1120. border-radius: 0 0 var(--border-radius) var(--border-radius);
  1121. }
  1122. .ui.multiple.dropdown > .label {
  1123. box-shadow: 0 0 0 1px var(--color-secondary) inset;
  1124. }
  1125. .emoji {
  1126. font-size: 1.25em;
  1127. line-height: var(--line-height-default);
  1128. font-style: normal !important;
  1129. font-weight: var(--font-weight-normal) !important;
  1130. vertical-align: -0.075em;
  1131. }
  1132. .emoji img {
  1133. border-width: 0 !important;
  1134. margin: 0 !important;
  1135. width: 1em !important;
  1136. height: 1em !important;
  1137. vertical-align: -0.15em;
  1138. }
  1139. .ui.tabular.menu {
  1140. border-color: var(--color-secondary);
  1141. }
  1142. .ui.tabular.menu .active.item,
  1143. .ui.tabular.menu .active.item:hover {
  1144. background: var(--color-body);
  1145. border-color: var(--color-secondary);
  1146. color: var(--color-text);
  1147. }
  1148. .ui.segment .ui.tabular.menu .active.item,
  1149. .ui.segment .ui.tabular.menu .active.item:hover {
  1150. background: var(--color-box-body);
  1151. }
  1152. .ui.secondary.pointing.menu {
  1153. border-color: var(--color-secondary);
  1154. }
  1155. .ui.tabular.menu .item,
  1156. .ui.secondary.pointing.menu .item {
  1157. padding: 11.55px 12px !important; /* match .dashboard-navbar in height */
  1158. color: var(--color-text-light-2);
  1159. }
  1160. .ui.tabular.menu .item:hover,
  1161. .ui.secondary.pointing.menu a.item:hover {
  1162. color: var(--color-text);
  1163. }
  1164. .ui.secondary.pointing.menu .active.item,
  1165. .ui.secondary.pointing.menu .active.item:hover,
  1166. .ui.secondary.pointing.menu .dropdown.item:hover {
  1167. color: var(--color-text-dark);
  1168. }
  1169. .ui.tabular.menu .active.item,
  1170. .ui.secondary.pointing.menu .active.item,
  1171. .resize-for-semibold::before {
  1172. font-weight: var(--font-weight-semibold);
  1173. }
  1174. .resize-for-semibold::before {
  1175. content: attr(data-text);
  1176. visibility: hidden;
  1177. display: block;
  1178. height: 0;
  1179. }
  1180. .flash-error details code,
  1181. .flash-warning details code {
  1182. display: block;
  1183. text-align: left;
  1184. }
  1185. .truncated-item-container {
  1186. display: flex !important;
  1187. align-items: center;
  1188. }
  1189. .ellipsis-button {
  1190. padding: 0 5px 8px !important;
  1191. display: inline-block !important;
  1192. font-weight: var(--font-weight-semibold) !important;
  1193. line-height: 6px !important;
  1194. vertical-align: middle !important;
  1195. }
  1196. .truncated-item-name {
  1197. line-height: 2;
  1198. white-space: nowrap;
  1199. overflow: hidden;
  1200. text-overflow: ellipsis;
  1201. margin-top: -0.5em;
  1202. margin-bottom: -0.5em;
  1203. }
  1204. .precolors {
  1205. display: flex;
  1206. flex-direction: column;
  1207. justify-content: center;
  1208. margin-left: 1em;
  1209. }
  1210. .precolors .color {
  1211. display: inline-block;
  1212. width: 15px;
  1213. height: 15px;
  1214. }
  1215. .ui.dropdown:not(.button) {
  1216. line-height: var(--line-height-default); /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */
  1217. }
  1218. /* dropdown has some kinds of icons:
  1219. - "> .dropdown.icon": the arrow for opening the dropdown
  1220. - "> .remove.icon": the "x" icon for clearing the dropdown, only used in selection dropdown
  1221. - "> .ui.label > .delete.icon": the "x" icon for removing a label item in multiple selection dropdown
  1222. */
  1223. .ui.dropdown.mini.button,
  1224. .ui.dropdown.tiny.button {
  1225. padding-right: 20px;
  1226. }
  1227. .ui.dropdown.button {
  1228. padding-right: 22px;
  1229. }
  1230. .ui.dropdown.large.button {
  1231. padding-right: 24px;
  1232. }
  1233. /* Gitea uses SVG images instead of Fomantic builtin "<i>" font icons, so we need to reset the icon styles */
  1234. .ui.ui.dropdown > .icon.icon {
  1235. position: initial; /* plain dropdown and button dropdown use flex layout for icons */
  1236. padding: 0;
  1237. margin: 0;
  1238. height: auto;
  1239. }
  1240. .ui.ui.dropdown > .icon.icon:hover {
  1241. opacity: 1;
  1242. }
  1243. .ui.ui.button.dropdown > .icon.icon,
  1244. .ui.ui.selection.dropdown > .icon.icon {
  1245. position: absolute; /* selection dropdown uses absolute layout for icons */
  1246. top: 50%;
  1247. transform: translateY(-50%);
  1248. }
  1249. .ui.ui.dropdown > .dropdown.icon {
  1250. right: 0.5em;
  1251. }
  1252. .ui.ui.dropdown > .remove.icon {
  1253. right: 2em;
  1254. }
  1255. .btn,
  1256. .ui.ui.button,
  1257. .ui.ui.dropdown,
  1258. .flex-text-inline {
  1259. display: inline-flex;
  1260. align-items: center;
  1261. gap: .25rem;
  1262. vertical-align: middle;
  1263. }
  1264. .ui.ui.button {
  1265. justify-content: center;
  1266. }
  1267. .ui.dropdown .ui.label .svg {
  1268. vertical-align: middle;
  1269. }
  1270. .ui.ui.labeled.button {
  1271. gap: 0;
  1272. align-items: stretch;
  1273. }
  1274. .flex-items-block > .item,
  1275. .flex-text-block {
  1276. display: flex;
  1277. align-items: center;
  1278. gap: .25rem;
  1279. }
  1280. /* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content */
  1281. .ui.dropdown .menu.flex-items-menu > .item {
  1282. display: flex !important;
  1283. align-items: center;
  1284. gap: .5rem;
  1285. }