您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370
  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 .dropdown.item:hover,
  272. .ui.menu a.item:hover,
  273. .ui.menu details.item summary:hover {
  274. color: var(--color-text);
  275. background: var(--color-hover);
  276. }
  277. /* slightly more contrast for filters on issue list */
  278. .ui.ui.menu .dropdown.item.disabled {
  279. color: var(--color-text-light-2);
  280. }
  281. .ui.dropdown .menu {
  282. background: var(--color-menu);
  283. border-color: var(--color-secondary);
  284. }
  285. .ui.dropdown .menu > .header:not(.ui) {
  286. color: var(--color-text);
  287. }
  288. .ui.dropdown .menu > .item {
  289. color: var(--color-text);
  290. }
  291. .ui.dropdown .menu > .item:hover {
  292. color: var(--color-text);
  293. background: var(--color-hover);
  294. }
  295. .ui.dropdown .menu > .item:active {
  296. color: var(--color-text);
  297. background: var(--color-active);
  298. }
  299. .ui.dropdown .menu .active.item {
  300. color: var(--color-text);
  301. background: var(--color-active);
  302. border-radius: 0;
  303. font-weight: var(--font-weight-normal);
  304. }
  305. /* fix misaligned images in webhook dropdown */
  306. .ui.dropdown .menu > .item > img {
  307. margin-top: -0.25rem;
  308. margin-bottom: -0.25rem;
  309. }
  310. .ui.dropdown .menu > .item > svg {
  311. margin-right: .78rem; /* use the same margin as for <img> */
  312. }
  313. .ui.selection.dropdown .menu > .item {
  314. border-color: var(--color-secondary);
  315. }
  316. .ui.selection.visible.dropdown > .text:not(.default) {
  317. color: var(--color-text);
  318. }
  319. .ui.dropdown.selected,
  320. .ui.dropdown .menu .selected.item {
  321. color: var(--color-text);
  322. background: var(--color-hover);
  323. }
  324. .ui.dropdown .menu > .message:not(.ui) {
  325. color: var(--color-text-light-2);
  326. }
  327. /* extend fomantic style '.ui.dropdown > .text > img' to include svg.img */
  328. .ui.dropdown > .text > .img {
  329. margin-left: 0;
  330. float: none;
  331. margin-right: 0.78571429rem;
  332. }
  333. .ui.dropdown > .text > .description,
  334. .ui.dropdown .menu > .item > .description {
  335. color: var(--color-text-light-2);
  336. }
  337. .ui.form textarea:not([rows]) {
  338. height: var(--min-height-textarea); /* override fomantic default 12em */
  339. min-height: var(--min-height-textarea); /* override fomantic default 8em */
  340. }
  341. /* styles from removed fomantic transition module */
  342. .hidden.transition {
  343. visibility: hidden;
  344. display: none;
  345. }
  346. .visible.transition {
  347. display: block !important;
  348. visibility: visible !important;
  349. }
  350. .ui.selection.active.dropdown,
  351. .ui.selection.active.dropdown:hover,
  352. .ui.selection.active.dropdown .menu,
  353. .ui.selection.active.dropdown:hover .menu {
  354. border-color: var(--color-primary);
  355. }
  356. .ui.pointing.dropdown > .menu:not(.hidden)::after {
  357. background: var(--color-menu);
  358. box-shadow: -1px -1px 0 0 var(--color-secondary);
  359. }
  360. .ui.pointing.upward.dropdown .menu::after,
  361. .ui.top.pointing.upward.dropdown .menu::after {
  362. box-shadow: 1px 1px 0 0 var(--color-secondary);
  363. }
  364. .ui.comments .comment .text {
  365. margin: 0;
  366. }
  367. .ui.comments .comment .text,
  368. .ui.comments .comment .author {
  369. color: var(--color-text);
  370. }
  371. .ui.comments .comment a.author:hover {
  372. color: var(--color-primary);
  373. }
  374. .ui.comments .comment .metadata {
  375. color: var(--color-text-light-2);
  376. }
  377. .ui.comments .comment .actions a {
  378. color: var(--color-text-light);
  379. }
  380. .ui.comments .comment .actions a.active,
  381. .ui.comments .comment .actions a:hover {
  382. color: var(--color-primary);
  383. }
  384. img.ui.avatar,
  385. .ui.avatar img,
  386. .ui.avatar svg {
  387. border-radius: var(--border-radius);
  388. object-fit: contain;
  389. aspect-ratio: 1;
  390. }
  391. .ui.error.message .header,
  392. .ui.warning.message .header {
  393. color: inherit;
  394. filter: saturate(2);
  395. }
  396. .full.height {
  397. flex-grow: 1;
  398. padding-bottom: 80px;
  399. }
  400. /* add margin below .secondary nav when it is the first child */
  401. .page-content > :first-child.secondary-nav {
  402. margin-bottom: 14px;
  403. }
  404. /* add margin to all pages when there is no .secondary.nav */
  405. .page-content > :first-child:not(.secondary-nav) {
  406. margin-top: var(--page-spacing);
  407. }
  408. /* if .ui.grid is the first child the first grid-column has 'padding-top: 1rem' which we need
  409. to compensate here */
  410. .page-content > :first-child.ui.grid {
  411. margin-top: calc(var(--page-spacing) - 1rem);
  412. }
  413. .ui.form .fields.error .field textarea,
  414. .ui.form .fields.error .field select,
  415. .ui.form .fields.error .field input:not([type]),
  416. .ui.form .fields.error .field input[type="date"],
  417. .ui.form .fields.error .field input[type="datetime-local"],
  418. .ui.form .fields.error .field input[type="email"],
  419. .ui.form .fields.error .field input[type="number"],
  420. .ui.form .fields.error .field input[type="password"],
  421. .ui.form .fields.error .field input[type="search"],
  422. .ui.form .fields.error .field input[type="tel"],
  423. .ui.form .fields.error .field input[type="time"],
  424. .ui.form .fields.error .field input[type="text"],
  425. .ui.form .fields.error .field input[type="file"],
  426. .ui.form .fields.error .field input[type="url"],
  427. .ui.form .fields.error .field .ui.dropdown,
  428. .ui.form .fields.error .field .ui.dropdown .item,
  429. .ui.form .field.error .ui.dropdown,
  430. .ui.form .field.error .ui.dropdown .text,
  431. .ui.form .field.error .ui.dropdown .item,
  432. .ui.form .field.error textarea,
  433. .ui.form .field.error select,
  434. .ui.form .field.error input:not([type]),
  435. .ui.form .field.error input[type="date"],
  436. .ui.form .field.error input[type="datetime-local"],
  437. .ui.form .field.error input[type="email"],
  438. .ui.form .field.error input[type="number"],
  439. .ui.form .field.error input[type="password"],
  440. .ui.form .field.error input[type="search"],
  441. .ui.form .field.error input[type="tel"],
  442. .ui.form .field.error input[type="time"],
  443. .ui.form .field.error input[type="text"],
  444. .ui.form .field.error input[type="file"],
  445. .ui.form .field.error input[type="url"],
  446. .ui.form .field.error select:focus,
  447. .ui.form .field.error input:not([type]):focus,
  448. .ui.form .field.error input[type="date"]:focus,
  449. .ui.form .field.error input[type="datetime-local"]:focus,
  450. .ui.form .field.error input[type="email"]:focus,
  451. .ui.form .field.error input[type="number"]:focus,
  452. .ui.form .field.error input[type="password"]:focus,
  453. .ui.form .field.error input[type="search"]:focus,
  454. .ui.form .field.error input[type="tel"]:focus,
  455. .ui.form .field.error input[type="time"]:focus,
  456. .ui.form .field.error input[type="text"]:focus,
  457. .ui.form .field.error input[type="file"]:focus,
  458. .ui.form .field.error input[type="url"]:focus {
  459. background-color: var(--color-error-bg);
  460. border-color: var(--color-error-border);
  461. color: var(--color-error-text);
  462. }
  463. .ui.form .fields.error .field .ui.dropdown,
  464. .ui.form .field.error .ui.dropdown,
  465. .ui.form .fields.error .field .ui.dropdown:hover,
  466. .ui.form .field.error .ui.dropdown:hover {
  467. border-color: var(--color-error-border) !important;
  468. }
  469. .ui.form .fields.error .field .ui.dropdown .menu .item:hover,
  470. .ui.form .field.error .ui.dropdown .menu .item:hover {
  471. background-color: var(--color-error-bg-hover);
  472. }
  473. .ui.form .fields.error .field .ui.dropdown .menu .active.item,
  474. .ui.form .field.error .ui.dropdown .menu .active.item {
  475. background-color: var(--color-error-bg-active) !important;
  476. }
  477. .ui.form .fields.error .dropdown .menu,
  478. .ui.form .field.error .dropdown .menu {
  479. border-color: var(--color-error-border) !important;
  480. }
  481. input:-webkit-autofill,
  482. input:-webkit-autofill:focus,
  483. input:-webkit-autofill:hover,
  484. input:-webkit-autofill:active,
  485. .ui.form .field.field input:-webkit-autofill,
  486. .ui.form .field.field input:-webkit-autofill:focus,
  487. .ui.form .field.field input:-webkit-autofill:hover,
  488. .ui.form .field.field input:-webkit-autofill:active {
  489. -webkit-background-clip: text;
  490. -webkit-text-fill-color: var(--color-text);
  491. box-shadow: 0 0 0 100px var(--color-primary-light-6) inset !important;
  492. border-color: var(--color-primary-light-4) !important;
  493. }
  494. .ui.form .field.muted {
  495. opacity: var(--opacity-disabled);
  496. }
  497. .text.primary {
  498. color: var(--color-primary) !important;
  499. }
  500. .text.red {
  501. color: var(--color-red) !important;
  502. }
  503. .text.orange {
  504. color: var(--color-orange) !important;
  505. }
  506. .text.yellow {
  507. color: var(--color-yellow) !important;
  508. }
  509. .text.olive {
  510. color: var(--color-olive) !important;
  511. }
  512. .text.green {
  513. color: var(--color-green) !important;
  514. }
  515. .text.teal {
  516. color: var(--color-teal) !important;
  517. }
  518. .text.blue {
  519. color: var(--color-blue) !important;
  520. }
  521. .text.violet {
  522. color: var(--color-violet) !important;
  523. }
  524. .text.purple {
  525. color: var(--color-purple) !important;
  526. }
  527. .text.pink {
  528. color: var(--color-pink) !important;
  529. }
  530. .text.brown {
  531. color: var(--color-brown) !important;
  532. }
  533. .text.black {
  534. color: var(--color-text) !important;
  535. }
  536. .text.grey {
  537. color: var(--color-text-light) !important;
  538. }
  539. .text.light {
  540. color: var(--color-text-light) !important;
  541. }
  542. .text.light-2 {
  543. color: var(--color-text-light-2) !important;
  544. }
  545. .text.light-3 {
  546. color: var(--color-text-light-3) !important;
  547. }
  548. .text.light.grey {
  549. color: var(--color-grey-light) !important;
  550. }
  551. .text.gold {
  552. color: var(--color-gold) !important;
  553. }
  554. .text.small {
  555. font-size: 0.75em;
  556. }
  557. /* popover box shadows */
  558. .ui.dropdown .menu,
  559. .ui.upward.dropdown > .menu,
  560. .ui.menu .dropdown.item .menu,
  561. .ui.selection.active.dropdown .menu,
  562. .ui.upward.selection.dropdown .menu,
  563. .ui.selection.active.dropdown:hover .menu,
  564. .ui.upward.active.selection.dropdown:hover .menu {
  565. box-shadow: 0 6px 18px var(--color-shadow);
  566. }
  567. .ui.floating.dropdown .menu {
  568. box-shadow: 0 6px 18px var(--color-shadow) !important;
  569. }
  570. .ui.dimmer {
  571. background: var(--color-overlay-backdrop);
  572. }
  573. .ui.dropdown .menu > .header {
  574. font-size: 0.8em;
  575. }
  576. .ui .text.left {
  577. text-align: left !important;
  578. }
  579. .ui .text.right {
  580. text-align: right !important;
  581. }
  582. .ui .text.normal {
  583. font-weight: var(--font-weight-normal);
  584. }
  585. .ui .text.italic {
  586. font-style: italic;
  587. }
  588. .ui .text.truncate {
  589. overflow-x: hidden;
  590. text-overflow: ellipsis;
  591. white-space: nowrap;
  592. display: inline-block;
  593. }
  594. .ui .text.thin {
  595. font-weight: var(--font-weight-normal);
  596. }
  597. .ui .text.middle {
  598. vertical-align: middle;
  599. }
  600. .ui .message.flash-message {
  601. text-align: center;
  602. }
  603. .ui .message > ul {
  604. margin-left: auto;
  605. margin-right: auto;
  606. display: table;
  607. text-align: left;
  608. }
  609. .ui .header > i + .content {
  610. padding-left: 0.75rem;
  611. vertical-align: middle;
  612. }
  613. .ui .form .autofill-dummy {
  614. position: absolute;
  615. width: 1px;
  616. height: 1px;
  617. overflow: hidden;
  618. z-index: -10000;
  619. }
  620. .ui .form .sub.field {
  621. margin-left: 25px;
  622. }
  623. .ui .sha.label {
  624. font-family: var(--fonts-monospace);
  625. font-size: 13px;
  626. font-weight: var(--font-weight-normal);
  627. margin: 0 6px;
  628. padding: 5px 10px;
  629. }
  630. .ui .sha.label .shortsha {
  631. display: inline-block; /* not sure whether it is still needed */
  632. }
  633. .ui .button.truncate {
  634. display: inline-block;
  635. max-width: 100%;
  636. overflow: hidden;
  637. text-overflow: ellipsis;
  638. vertical-align: top;
  639. white-space: nowrap;
  640. margin-right: 6px;
  641. }
  642. .ui.status.buttons .svg {
  643. margin-right: 4px;
  644. }
  645. .ui.inline.delete-button {
  646. padding: 8px 15px;
  647. font-weight: var(--font-weight-normal);
  648. }
  649. .ui .background.red {
  650. background-color: var(--color-red) !important;
  651. }
  652. .ui .background.blue {
  653. background-color: var(--color-blue) !important;
  654. }
  655. .ui .background.black {
  656. background-color: var(--color-black) !important;
  657. }
  658. .ui .background.grey {
  659. background-color: var(--color-grey) !important;
  660. }
  661. .ui .background.light.grey {
  662. background-color: var(--color-grey) !important;
  663. }
  664. .ui .background.green {
  665. background-color: var(--color-green) !important;
  666. }
  667. .ui .background.purple {
  668. background-color: var(--color-purple) !important;
  669. }
  670. .ui .background.yellow {
  671. background-color: var(--color-yellow) !important;
  672. }
  673. .ui .background.orange {
  674. background-color: var(--color-orange) !important;
  675. }
  676. .ui .background.gold {
  677. background-color: var(--color-gold) !important;
  678. }
  679. .ui .migrate {
  680. color: var(--color-text-light-2) !important;
  681. }
  682. .ui .migrate a {
  683. color: var(--color-text-light) !important;
  684. }
  685. .ui .migrate a:hover {
  686. color: var(--color-text) !important;
  687. }
  688. .ui .border {
  689. border: 1px solid;
  690. }
  691. .ui .border.red {
  692. border-color: var(--color-red) !important;
  693. }
  694. .ui .border.blue {
  695. border-color: var(--color-blue) !important;
  696. }
  697. .ui .border.black {
  698. border-color: var(--color-black) !important;
  699. }
  700. .ui .border.grey {
  701. border-color: var(--color-grey) !important;
  702. }
  703. .ui .border.light.grey {
  704. border-color: var(--color-grey) !important;
  705. }
  706. .ui .border.green {
  707. border-color: var(--color-green) !important;
  708. }
  709. .ui .border.purple {
  710. border-color: var(--color-purple) !important;
  711. }
  712. .ui .border.yellow {
  713. border-color: var(--color-yellow) !important;
  714. }
  715. .ui .border.orange {
  716. border-color: var(--color-orange) !important;
  717. }
  718. .ui .border.gold {
  719. border-color: var(--color-gold) !important;
  720. }
  721. .ui.floating.dropdown .overflow.menu .scrolling.menu.items {
  722. border-radius: 0 !important;
  723. box-shadow: none !important;
  724. border-bottom: 1px solid var(--color-secondary);
  725. }
  726. .user-menu > .item {
  727. width: 100%;
  728. border-radius: 0 !important;
  729. }
  730. .scrolling.menu .item.selected {
  731. font-weight: var(--font-weight-semibold) !important;
  732. }
  733. .ui.dropdown .scrolling.menu {
  734. border-color: var(--color-secondary);
  735. }
  736. .color-preview {
  737. display: inline-block;
  738. margin-left: 0.4em;
  739. height: 0.67em;
  740. width: 0.67em;
  741. border-radius: var(--border-radius);
  742. }
  743. .attention-icon {
  744. margin: 2px 6px 0 0;
  745. }
  746. blockquote.attention-note {
  747. border-left-color: var(--color-blue-dark-1);
  748. }
  749. strong.attention-note, svg.attention-note {
  750. color: var(--color-blue-dark-1);
  751. }
  752. blockquote.attention-tip {
  753. border-left-color: var(--color-success-text);
  754. }
  755. strong.attention-tip, svg.attention-tip {
  756. color: var(--color-success-text);
  757. }
  758. blockquote.attention-important {
  759. border-left-color: var(--color-violet-dark-1);
  760. }
  761. strong.attention-important, svg.attention-important {
  762. color: var(--color-violet-dark-1);
  763. }
  764. blockquote.attention-warning {
  765. border-left-color: var(--color-warning-text);
  766. }
  767. strong.attention-warning, svg.attention-warning {
  768. color: var(--color-warning-text);
  769. }
  770. blockquote.attention-caution {
  771. border-left-color: var(--color-red-dark-1);
  772. }
  773. strong.attention-caution, svg.attention-caution {
  774. color: var(--color-red-dark-1);
  775. }
  776. .center:not(.popup) {
  777. text-align: center;
  778. }
  779. overflow-menu {
  780. border-bottom: 1px solid var(--color-secondary) !important;
  781. display: flex;
  782. }
  783. overflow-menu .overflow-menu-items {
  784. display: flex;
  785. flex: 1;
  786. }
  787. overflow-menu .overflow-menu-items .item {
  788. margin-bottom: 0 !important; /* reset fomantic's margin, because the active menu has special bottom border */
  789. }
  790. overflow-menu .ui.label {
  791. margin-left: 7px !important; /* save some space */
  792. }
  793. .activity-bar-graph {
  794. background-color: var(--color-primary);
  795. color: var(--color-primary-contrast);
  796. }
  797. .activity-bar-graph-alt {
  798. color: var(--color-primary-contrast);
  799. }
  800. .archived-icon {
  801. color: var(--color-secondary-dark-2) !important;
  802. }
  803. .oauth2-authorize-application-box {
  804. margin-top: 3em !important;
  805. }
  806. /* multiple radio or checkboxes as inline element */
  807. .inline-grouped-list {
  808. display: inline-block;
  809. vertical-align: top;
  810. }
  811. .inline-grouped-list > .ui {
  812. display: block;
  813. margin-top: 5px;
  814. margin-bottom: 10px;
  815. }
  816. .inline-grouped-list > .ui:first-child {
  817. margin-top: 1px;
  818. }
  819. .lines-blame-btn {
  820. padding: 0 0 0 5px;
  821. display: flex;
  822. justify-content: center;
  823. }
  824. .lines-num {
  825. padding: 0 8px;
  826. text-align: right !important;
  827. color: var(--color-text-light-2);
  828. width: 1%;
  829. font-family: var(--fonts-monospace);
  830. }
  831. .lines-num span.bottom-line::after {
  832. border-bottom: 1px solid var(--color-secondary);
  833. }
  834. .lines-num span::after {
  835. content: attr(data-line-number);
  836. line-height: 20px !important;
  837. padding: 0 10px;
  838. display: block;
  839. }
  840. .code-view .lines-num span::after {
  841. cursor: pointer;
  842. }
  843. .lines-type-marker {
  844. vertical-align: top;
  845. }
  846. .lines-num,
  847. .lines-code {
  848. font-size: 12px;
  849. font-family: var(--fonts-monospace);
  850. line-height: 20px;
  851. padding-top: 0;
  852. padding-bottom: 0;
  853. vertical-align: top;
  854. }
  855. .lines-num pre,
  856. .lines-code pre,
  857. .lines-num ol,
  858. .lines-code ol {
  859. background-color: inherit;
  860. margin: 0;
  861. padding: 0 !important;
  862. }
  863. .lines-num pre li,
  864. .lines-code pre li,
  865. .lines-num ol li,
  866. .lines-code ol li {
  867. display: block;
  868. width: calc(100% - 1ch);
  869. padding-left: 1ch;
  870. }
  871. .lines-escape {
  872. width: 0;
  873. }
  874. .lines-code {
  875. padding-left: 5px;
  876. }
  877. .file-view tr.active {
  878. color: inherit !important;
  879. background: inherit !important;
  880. }
  881. .file-view tr.active .lines-num,
  882. .file-view tr.active .lines-code {
  883. background: var(--color-highlight-bg) !important;
  884. }
  885. .file-view tr.active:last-of-type .lines-code {
  886. border-bottom-right-radius: var(--border-radius);
  887. }
  888. .file-view tr.active .lines-num {
  889. position: relative;
  890. }
  891. .file-view tr.active .lines-num::before {
  892. content: "";
  893. position: absolute;
  894. left: 0;
  895. width: 2px;
  896. height: 100%;
  897. background: var(--color-highlight-fg);
  898. }
  899. .code-inner {
  900. font: 12px var(--fonts-monospace);
  901. white-space: pre-wrap;
  902. word-break: break-all;
  903. overflow-wrap: anywhere;
  904. line-height: inherit; /* needed for inline code preview in markup */
  905. }
  906. .blame .code-inner {
  907. white-space: pre-wrap;
  908. overflow-wrap: anywhere;
  909. }
  910. .lines-commit {
  911. vertical-align: top;
  912. color: var(--color-text-light-1);
  913. padding: 0 !important;
  914. width: 1%;
  915. }
  916. .lines-commit .blame-info {
  917. width: min(26vw, 300px);
  918. display: block;
  919. padding: 0 0 0 6px;
  920. line-height: 20px;
  921. box-sizing: content-box;
  922. }
  923. .lines-commit .blame-info .blame-data {
  924. display: flex;
  925. font-family: var(--fonts-regular);
  926. }
  927. .lines-commit .blame-info .blame-data .blame-message {
  928. flex-grow: 2;
  929. overflow: hidden;
  930. white-space: nowrap;
  931. text-overflow: ellipsis;
  932. }
  933. .lines-commit .blame-info .blame-data .blame-time,
  934. .lines-commit .blame-info .blame-data .blame-avatar {
  935. flex-shrink: 0;
  936. }
  937. .blame-avatar {
  938. display: flex;
  939. align-items: center;
  940. margin-right: 4px;
  941. }
  942. .top-line-blame {
  943. border-top: 1px solid var(--color-secondary);
  944. }
  945. .code-view tr.top-line-blame:first-of-type {
  946. border-top: none;
  947. }
  948. .lines-code .bottom-line,
  949. .lines-commit .bottom-line {
  950. border-bottom: 1px solid var(--color-secondary);
  951. }
  952. .code-view {
  953. background: var(--color-code-bg);
  954. border-radius: var(--border-radius);
  955. }
  956. .code-view table {
  957. width: 100%;
  958. }
  959. .migrate .svg.gitea-git {
  960. color: var(--color-git);
  961. }
  962. .color-icon {
  963. display: inline-block;
  964. border-radius: var(--border-radius-circle);
  965. height: 14px;
  966. width: 14px;
  967. }
  968. .rss-icon {
  969. display: inline-flex;
  970. color: var(--color-text-light-1);
  971. }
  972. table th[data-sortt-asc]:hover,
  973. table th[data-sortt-desc]:hover {
  974. background: var(--color-hover) !important;
  975. cursor: pointer !important;
  976. }
  977. table th[data-sortt-asc] .svg,
  978. table th[data-sortt-desc] .svg {
  979. margin-left: 0.25rem;
  980. }
  981. .ui.dropdown .menu .item {
  982. border-radius: 0;
  983. }
  984. .ui.dropdown .menu .item:first-of-type {
  985. border-radius: var(--border-radius) var(--border-radius) 0 0;
  986. }
  987. .ui.dropdown .menu .item:last-of-type {
  988. border-radius: 0 0 var(--border-radius) var(--border-radius);
  989. }
  990. .ui.multiple.dropdown > .label {
  991. box-shadow: 0 0 0 1px var(--color-secondary) inset;
  992. }
  993. .emoji {
  994. font-size: 1.25em;
  995. line-height: var(--line-height-default);
  996. font-style: normal !important;
  997. font-weight: var(--font-weight-normal) !important;
  998. vertical-align: -0.075em;
  999. }
  1000. .emoji img {
  1001. border-width: 0 !important;
  1002. margin: 0 !important;
  1003. width: 1em !important;
  1004. height: 1em !important;
  1005. vertical-align: -0.15em;
  1006. }
  1007. .ui.tabular.menu .item,
  1008. .ui.secondary.pointing.menu .item {
  1009. padding: 11.55px 12px !important; /* match .dashboard-navbar in height */
  1010. color: var(--color-text-light-2);
  1011. }
  1012. .ui.tabular.menu .item:hover,
  1013. .ui.secondary.pointing.menu a.item:hover {
  1014. color: var(--color-text);
  1015. }
  1016. .ui.tabular.menu .active.item,
  1017. .ui.secondary.pointing.menu .active.item,
  1018. .resize-for-semibold::before {
  1019. font-weight: var(--font-weight-semibold);
  1020. }
  1021. .resize-for-semibold::before {
  1022. content: attr(data-text);
  1023. visibility: hidden;
  1024. display: block;
  1025. height: 0;
  1026. }
  1027. .flash-error details code,
  1028. .flash-warning details code {
  1029. display: block;
  1030. text-align: left;
  1031. }
  1032. .truncated-item-container {
  1033. display: flex !important;
  1034. align-items: center;
  1035. }
  1036. .ellipsis-button {
  1037. padding: 0 5px 8px !important;
  1038. display: inline-block !important;
  1039. font-weight: var(--font-weight-semibold) !important;
  1040. line-height: 6px !important;
  1041. vertical-align: middle !important;
  1042. }
  1043. .truncated-item-name {
  1044. line-height: 2;
  1045. white-space: nowrap;
  1046. overflow: hidden;
  1047. text-overflow: ellipsis;
  1048. margin-top: -0.5em;
  1049. margin-bottom: -0.5em;
  1050. }
  1051. .precolors {
  1052. display: flex;
  1053. flex-direction: column;
  1054. justify-content: center;
  1055. margin-left: 1em;
  1056. }
  1057. .precolors .color {
  1058. display: inline-block;
  1059. width: 15px;
  1060. height: 15px;
  1061. }
  1062. .ui.dropdown:not(.button) {
  1063. 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 */
  1064. }
  1065. /* dropdown has some kinds of icons:
  1066. - "> .dropdown.icon": the arrow for opening the dropdown
  1067. - "> .remove.icon": the "x" icon for clearing the dropdown, only used in selection dropdown
  1068. - "> .ui.label > .delete.icon": the "x" icon for removing a label item in multiple selection dropdown
  1069. */
  1070. .ui.dropdown.mini.button,
  1071. .ui.dropdown.tiny.button {
  1072. padding-right: 20px;
  1073. }
  1074. .ui.dropdown.button {
  1075. padding-right: 22px;
  1076. }
  1077. .ui.dropdown.large.button {
  1078. padding-right: 24px;
  1079. }
  1080. /* Gitea uses SVG images instead of Fomantic builtin "<i>" font icons, so we need to reset the icon styles */
  1081. .ui.ui.dropdown > .icon.icon {
  1082. position: initial; /* plain dropdown and button dropdown use flex layout for icons */
  1083. padding: 0;
  1084. margin: 0;
  1085. height: auto;
  1086. }
  1087. .ui.ui.dropdown > .icon.icon:hover {
  1088. opacity: 1;
  1089. }
  1090. .ui.ui.button.dropdown > .icon.icon,
  1091. .ui.ui.selection.dropdown > .icon.icon {
  1092. position: absolute; /* selection dropdown uses absolute layout for icons */
  1093. top: 50%;
  1094. transform: translateY(-50%);
  1095. }
  1096. .ui.ui.dropdown > .dropdown.icon {
  1097. right: 0.5em;
  1098. }
  1099. .ui.ui.dropdown > .remove.icon {
  1100. right: 2em;
  1101. }
  1102. .btn,
  1103. .ui.ui.button,
  1104. .ui.ui.dropdown,
  1105. .flex-text-inline {
  1106. display: inline-flex;
  1107. align-items: center;
  1108. gap: .25rem;
  1109. vertical-align: middle;
  1110. min-width: 0;
  1111. }
  1112. .ui.dropdown .ui.label .svg {
  1113. vertical-align: middle;
  1114. }
  1115. .ui.ui.labeled.button {
  1116. gap: 0;
  1117. align-items: stretch;
  1118. }
  1119. .flex-items-block > .item,
  1120. .flex-text-block {
  1121. display: flex;
  1122. align-items: center;
  1123. gap: .25rem;
  1124. min-width: 0;
  1125. }
  1126. /* to override Fomantic's default display: block for ".menu .item", and use a slightly larger gap for menu item content */
  1127. .ui.dropdown .menu.flex-items-menu > .item {
  1128. display: flex !important;
  1129. align-items: center;
  1130. gap: .5rem;
  1131. min-width: 0;
  1132. }