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.less 25KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310
  1. /* roboto-regular - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  2. @font-face {
  3. font-family: 'Roboto';
  4. font-style: normal;
  5. font-weight: 400;
  6. src:
  7. local('Roboto'),
  8. local('Roboto-Regular'),
  9. /* Chrome 26+, Opera 23+, Firefox 39+ */
  10. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-regular.woff2') format('woff2');
  11. }
  12. /* roboto-italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  13. @font-face {
  14. font-family: 'Roboto';
  15. font-style: italic;
  16. font-weight: 400;
  17. src:
  18. local('Roboto Italic'),
  19. local('Roboto-Italic'),
  20. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-italic.woff2') format('woff2');
  21. }
  22. /* roboto-700 - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  23. @font-face {
  24. font-family: 'Roboto';
  25. font-style: normal;
  26. font-weight: 700;
  27. src:
  28. local('Roboto Bold'),
  29. local('Roboto-Bold'),
  30. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700.woff2') format('woff2');
  31. }
  32. /* roboto-700italic - latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext */
  33. @font-face {
  34. font-family: 'Roboto';
  35. font-style: italic;
  36. font-weight: 700;
  37. src:
  38. local('Roboto Bold Italic'),
  39. local('Roboto-BoldItalic'),
  40. url('../vendor/assets/roboto-fonts/roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext-700italic.woff2') format('woff2');
  41. }
  42. @font-face {
  43. font-family: 'Yu Gothic';
  44. src: local('Yu Gothic Medium');
  45. font-weight: 400;
  46. }
  47. @font-face {
  48. font-family: 'Yu Gothic';
  49. src: local('Yu Gothic Bold');
  50. font-weight: 700;
  51. }
  52. @font-face {
  53. font-family: 'Noto Color Emoji';
  54. src:
  55. local('Noto Color Emoji'),
  56. local('Noto-Color-Emoji'),
  57. url('../vendor/assets/noto-color-emoji/NotoColorEmoji.ttf') format('truetype');
  58. }
  59. @default-fonts: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  60. @monospaced-fonts: 'SF Mono', Consolas, Menlo, 'Liberation Mono', Monaco, 'Lucida Console';
  61. .override-fonts(@fonts) {
  62. textarea {
  63. font-family: @fonts, sans-serif;
  64. }
  65. .markdown:not(code) {
  66. font-family: @fonts, sans-serif;
  67. }
  68. /* We're going to just override the semantic fonts here */
  69. h1,
  70. h2,
  71. h3,
  72. h4,
  73. h5 {
  74. font-family: Roboto, @fonts, sans-serif;
  75. }
  76. .home .hero h1,
  77. .home .hero h2 {
  78. font-family: 'PT Sans Narrow', Roboto, @fonts, sans-serif;
  79. }
  80. .ui.accordion .title:not(.ui),
  81. .ui.button,
  82. .ui.card > .content > .header.ui.card > .content > .header,
  83. .ui.category.search > .results .category > .name,
  84. .ui.form input:not([type]),
  85. .ui.form input[type="date"],
  86. .ui.form input[type="datetime-local"],
  87. .ui.form input[type="email"],
  88. .ui.form input[type="file"],
  89. .ui.form input[type="number"],
  90. .ui.form input[type="password"],
  91. .ui.form input[type="search"],
  92. .ui.form input[type="tel"],
  93. .ui.form input[type="text"],
  94. .ui.form input[type="time"],
  95. .ui.form input[type="url"],
  96. .ui.header,
  97. .ui.items > .item > .content > .header,
  98. .ui.list .list > .item .header,
  99. .ui.list > .item .header,
  100. .ui.menu,
  101. .ui.message .header,
  102. .ui.modal > .header,
  103. .ui.popup > .header,
  104. .ui.search > .results .result .title,
  105. .ui.search > .results > .message .header,
  106. body,
  107. .ui.input > input,
  108. .ui.input input,
  109. .ui.statistics .statistic > .value,
  110. .ui.statistic > .value,
  111. .ui.statistics .statistic > .label,
  112. .ui.statistic > .label,
  113. .ui.steps .step .title,
  114. .ui.text.container,
  115. .ui.language > .menu > .item& {
  116. font-family: Roboto, @fonts, sans-serif;
  117. }
  118. }
  119. .override-fonts(@default-fonts);
  120. body {
  121. background-color: #ffffff;
  122. overflow-y: auto;
  123. -webkit-font-smoothing: antialiased;
  124. display: flex;
  125. flex-direction: column;
  126. }
  127. @ja-fonts: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Source Han Sans JP', 'Noto Sans CJK JP', 'Droid Sans Japanese', 'Meiryo', 'MS PGothic';
  128. :lang(ja) {
  129. .override-fonts(@default-fonts, @ja-fonts;);
  130. }
  131. @zh-CN-fonts: 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Heiti SC', SimHei;
  132. :lang(zh-CN) {
  133. .override-fonts(@default-fonts, @zh-CN-fonts;);
  134. }
  135. @zh-TW-fonts: 'PingFang TC', 'Hiragino Sans TC', 'Source Han Sans TW', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU;
  136. :lang(zh-TW) {
  137. .override-fonts(@default-fonts, @zh-TW-fonts;);
  138. }
  139. @zh-HK-fonts: 'PingFang HK', 'Hiragino Sans TC', 'Source Han Sans HK', 'Source Han Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', PMingLiU_HKSCS, PMingLiU;
  140. :lang(zh-HK) {
  141. .override-fonts(@default-fonts, @zh-HK-fonts;);
  142. }
  143. @ko-fonts: 'Apple SD Gothic Neo', 'NanumBarunGothic', 'Malgun Gothic', 'Gulim', 'Dotum', 'Nanum Gothic', 'Source Han Sans KR', 'Noto Sans CJK KR';
  144. :lang(ko) {
  145. .override-fonts(@default-fonts, @ko-fonts;);
  146. }
  147. img {
  148. border-radius: 3px;
  149. }
  150. table {
  151. border-collapse: collapse;
  152. }
  153. a {
  154. cursor: pointer;
  155. }
  156. .rounded {
  157. border-radius: .28571429rem !important;
  158. }
  159. .wrap {
  160. word-wrap: break-word;
  161. word-break: break-all;
  162. }
  163. pre,
  164. code,
  165. .mono {
  166. font: 12px @monospaced-fonts, monospace;
  167. &.raw {
  168. padding: 7px 12px;
  169. margin: 10px 0;
  170. background-color: #f8f8f8;
  171. border: 1px solid #dddddd;
  172. border-radius: 3px;
  173. font-size: 13px;
  174. line-height: 1.5;
  175. overflow: auto;
  176. }
  177. &.wrap {
  178. white-space: pre-wrap;
  179. word-break: break-all;
  180. overflow-wrap: break-word;
  181. word-wrap: break-word;
  182. }
  183. }
  184. .dont-break-out {
  185. overflow-wrap: break-word;
  186. word-wrap: break-word;
  187. word-break: break-all;
  188. hyphens: auto;
  189. }
  190. .full.height {
  191. flex-grow: 1;
  192. padding-bottom: 80px;
  193. }
  194. .following.bar {
  195. z-index: 900;
  196. left: 0;
  197. margin: 0 !important;
  198. &.light {
  199. background-color: white;
  200. border-bottom: 1px solid #dddddd;
  201. box-shadow: 0 2px 3px rgba(0, 0, 0, .04);
  202. }
  203. .column .menu {
  204. margin-top: 0;
  205. }
  206. .top.menu a.item.brand {
  207. padding-left: 0;
  208. }
  209. .brand .ui.mini.image {
  210. width: 30px;
  211. }
  212. .top.menu a.item:hover,
  213. .top.menu .dropdown.item:hover,
  214. .top.menu .dropdown.item.active {
  215. background-color: transparent;
  216. }
  217. .top.menu a.item:hover {
  218. color: rgba(0, 0, 0, .45);
  219. }
  220. .top.menu .menu {
  221. z-index: 900;
  222. }
  223. .fitted .svg {
  224. margin-right: 0;
  225. }
  226. .svg {
  227. margin-right: .75em;
  228. }
  229. .searchbox {
  230. background-color: #f4f4f4 !important;
  231. &:focus {
  232. background-color: #e9e9e9 !important;
  233. }
  234. }
  235. .text .svg {
  236. width: 16px;
  237. text-align: center;
  238. }
  239. #navbar {
  240. width: 100vw;
  241. min-height: 52px;
  242. padding: 0 .5rem;
  243. }
  244. #navbar .brand {
  245. margin: 0;
  246. }
  247. @media only screen and (max-width: 767px) {
  248. #navbar:not(.shown) > *:not(:first-child) {
  249. display: none;
  250. }
  251. }
  252. }
  253. .right.stackable.menu {
  254. // responsive fix: this makes sure that the right menu when the page
  255. // is on mobile view will have elements stacked on top of each other.
  256. // no, stackable won't work on right menus.
  257. margin-left: auto;
  258. display: flex;
  259. align-items: inherit;
  260. flex-direction: inherit;
  261. }
  262. .ui {
  263. &.left:not(.action) {
  264. float: left;
  265. }
  266. &.right:not(.action) {
  267. float: right;
  268. }
  269. &.button,
  270. &.menu .item {
  271. user-select: auto;
  272. }
  273. &.container {
  274. &.fluid {
  275. &.padded {
  276. padding: 0 10px;
  277. }
  278. }
  279. }
  280. &.form {
  281. .ui.button {
  282. font-weight: normal;
  283. }
  284. }
  285. &.floating.label {
  286. z-index: 10;
  287. }
  288. &.transparent.label {
  289. background-color: transparent;
  290. }
  291. &.nopadding {
  292. padding: 0;
  293. }
  294. &.menu,
  295. &.vertical.menu,
  296. &.segment {
  297. box-shadow: none;
  298. }
  299. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  300. /* This fixes the commit graph button on the commits page */
  301. .menu:not(.vertical) .item > .button.compact {
  302. padding: .58928571em 1.125em;
  303. }
  304. .menu:not(.vertical) .item > .button.small {
  305. font-size: .92857143rem;
  306. }
  307. &.menu .ui.dropdown.item .menu .item {
  308. width: 100%;
  309. }
  310. &.dropdown .menu > .item > .floating.label {
  311. z-index: 11;
  312. }
  313. &.dropdown .menu .menu > .item > .floating.label {
  314. z-index: 21;
  315. }
  316. &.dropdown .menu > .header {
  317. font-size: .8em;
  318. }
  319. .text {
  320. &.red {
  321. color: #d95c5c !important;
  322. a {
  323. color: #d95c5c !important;
  324. &:hover {
  325. color: #e67777 !important;
  326. }
  327. }
  328. }
  329. &.blue {
  330. color: #428bca !important;
  331. a {
  332. color: #1155cc !important;
  333. &:hover {
  334. color: #428bca !important;
  335. }
  336. }
  337. }
  338. &.black {
  339. color: #444444;
  340. &:hover {
  341. color: #000000;
  342. }
  343. }
  344. &.grey {
  345. color: #767676 !important;
  346. a {
  347. color: #444444 !important;
  348. &:hover {
  349. color: #000000 !important;
  350. }
  351. }
  352. }
  353. &.light.grey {
  354. color: #888888 !important;
  355. }
  356. &.green {
  357. color: #6cc644 !important;
  358. }
  359. &.purple {
  360. color: #6e5494 !important;
  361. }
  362. &.yellow {
  363. color: #fbbd08 !important;
  364. }
  365. &.orange {
  366. color: #f2711c !important;
  367. }
  368. &.gold {
  369. color: #a1882b !important;
  370. }
  371. &.left {
  372. text-align: left !important;
  373. }
  374. &.right {
  375. text-align: right !important;
  376. }
  377. &.small {
  378. font-size: .75em;
  379. }
  380. &.normal {
  381. font-weight: normal;
  382. }
  383. &.bold {
  384. font-weight: bold;
  385. }
  386. &.italic {
  387. font-style: italic;
  388. }
  389. &.truncate {
  390. overflow: hidden;
  391. text-overflow: ellipsis;
  392. white-space: nowrap;
  393. display: inline-block;
  394. }
  395. &.thin {
  396. font-weight: normal;
  397. }
  398. &.middle {
  399. vertical-align: middle;
  400. }
  401. &.nopadding {
  402. padding: 0;
  403. }
  404. &.nomargin {
  405. margin: 0;
  406. }
  407. }
  408. .message {
  409. text-align: center;
  410. }
  411. .message > ul {
  412. margin-left: auto;
  413. margin-right: auto;
  414. display: table;
  415. text-align: left;
  416. }
  417. &.bottom.attached.message {
  418. font-weight: bold;
  419. text-align: left;
  420. color: black;
  421. .pull-right {
  422. color: black;
  423. }
  424. & > span,
  425. .pull-right > span {
  426. color: #21ba45;
  427. }
  428. }
  429. .header > i + .content {
  430. padding-left: .75rem;
  431. vertical-align: middle;
  432. }
  433. .warning {
  434. &.header {
  435. background-color: #f9edbe !important;
  436. border-color: #efc16b;
  437. }
  438. &.segment {
  439. border-color: #efc16b;
  440. }
  441. }
  442. .info {
  443. &.segment {
  444. border: 1px solid #c5d5dd;
  445. &.top {
  446. background-color: #e6f1f6 !important;
  447. h3,
  448. h4 {
  449. margin-top: 0;
  450. }
  451. h3:last-child {
  452. margin-top: 4px;
  453. }
  454. > :last-child {
  455. margin-bottom: 0;
  456. }
  457. }
  458. }
  459. }
  460. .normal.header {
  461. font-weight: normal;
  462. }
  463. .avatar.image,
  464. .avatar.image img,
  465. .avatar.image svg,
  466. .avatar.images .image,
  467. .avatar.images img,
  468. .avatar.images svg {
  469. border-radius: 3px;
  470. }
  471. .form {
  472. .fake {
  473. display: none !important;
  474. }
  475. .sub.field {
  476. margin-left: 25px;
  477. }
  478. }
  479. .sha.label {
  480. font-family: @monospaced-fonts, monospace;
  481. font-size: 13px;
  482. padding: 6px 10px 4px;
  483. font-weight: normal;
  484. margin: 0 6px;
  485. }
  486. .button.truncate {
  487. display: inline-block;
  488. max-width: 100%;
  489. overflow: hidden;
  490. text-overflow: ellipsis;
  491. vertical-align: top;
  492. white-space: nowrap;
  493. margin-right: 6px;
  494. }
  495. &.status.buttons {
  496. .svg {
  497. margin-right: 4px;
  498. }
  499. }
  500. &.inline.delete-button {
  501. padding: 8px 15px;
  502. font-weight: normal;
  503. }
  504. .background {
  505. &.red {
  506. background-color: #d95c5c !important;
  507. }
  508. &.blue {
  509. background-color: #428bca !important;
  510. }
  511. &.black {
  512. background-color: #444444;
  513. }
  514. &.grey {
  515. background-color: #767676 !important;
  516. }
  517. &.light.grey {
  518. background-color: #888888 !important;
  519. }
  520. &.green {
  521. background-color: #6cc644 !important;
  522. }
  523. &.purple {
  524. background-color: #6e5494 !important;
  525. }
  526. &.yellow {
  527. background-color: #fbbf09 !important;
  528. }
  529. &.orange {
  530. background-color: #f2711c !important;
  531. }
  532. &.gold {
  533. background-color: #a1882b !important;
  534. }
  535. }
  536. .migrate {
  537. color: #888888 !important;
  538. opacity: .5;
  539. a {
  540. color: #444444 !important;
  541. &:hover {
  542. color: #000000 !important;
  543. }
  544. }
  545. }
  546. .border {
  547. border: 1px solid;
  548. &.red {
  549. border-color: #d95c5c !important;
  550. }
  551. &.blue {
  552. border-color: #428bca !important;
  553. }
  554. &.black {
  555. border-color: #444444;
  556. }
  557. &.grey {
  558. border-color: #767676 !important;
  559. }
  560. &.light.grey {
  561. border-color: #888888 !important;
  562. }
  563. &.green {
  564. border-color: #6cc644 !important;
  565. }
  566. &.purple {
  567. border-color: #6e5494 !important;
  568. }
  569. &.yellow {
  570. border-color: #fbbd08 !important;
  571. }
  572. &.orange {
  573. border-color: #f2711c !important;
  574. }
  575. &.gold {
  576. border-color: #a1882b !important;
  577. }
  578. }
  579. .branch-tag-choice {
  580. line-height: 20px;
  581. }
  582. &.pagination.menu {
  583. @media only screen and (max-width: 767px) {
  584. .item:not(.active):not(.navigation),
  585. .item.navigation span.navigation_label {
  586. display: none;
  587. }
  588. }
  589. &.narrow .item {
  590. padding-left: 8px;
  591. padding-right: 8px;
  592. min-width: 1em;
  593. text-align: center;
  594. .icon {
  595. margin-right: 0;
  596. }
  597. }
  598. }
  599. }
  600. .file-comment {
  601. font: 12px @monospaced-fonts, monospace;
  602. color: rgba(0, 0, 0, .87);
  603. }
  604. .ui.floating.dropdown {
  605. .overflow.menu {
  606. .scrolling.menu.items {
  607. border-radius: 0 !important;
  608. box-shadow: none !important;
  609. border-bottom: 1px solid rgba(34, 36, 38, .15);
  610. }
  611. }
  612. }
  613. .user-menu > .item {
  614. width: 100%;
  615. border-radius: 0 !important;
  616. }
  617. .scrolling.menu {
  618. .item.selected {
  619. font-weight: 700 !important;
  620. }
  621. }
  622. footer {
  623. background-color: white;
  624. border-top: 1px solid #d6d6d6;
  625. width: 100%;
  626. flex-basis: 40px;
  627. color: #888888;
  628. .container {
  629. width: 100vw !important;
  630. padding: 0 .5rem;
  631. max-width: calc(100vw - 1rem) !important;
  632. .fa {
  633. width: 16px;
  634. text-align: center;
  635. color: #428bca;
  636. }
  637. .links > * {
  638. border-left: 1px solid #d6d6d6;
  639. padding-left: 8px;
  640. margin-left: 5px;
  641. &:first-child {
  642. border-left: 0;
  643. }
  644. }
  645. }
  646. .ui.language .menu {
  647. max-height: 500px;
  648. overflow-y: auto;
  649. margin-bottom: 7px;
  650. }
  651. .ui {
  652. &.left,
  653. &.right {
  654. line-height: 40px;
  655. }
  656. }
  657. }
  658. .hide {
  659. display: none;
  660. &.show-outdated {
  661. display: none !important;
  662. }
  663. &.hide-outdated {
  664. display: none !important;
  665. }
  666. }
  667. .center {
  668. text-align: center;
  669. }
  670. .generate-img(16);
  671. .generate-img(@n, @i: 1) when (@i =< @n) {
  672. .img-@{i} {
  673. width: (2px * @i) !important;
  674. height: (2px * @i) !important;
  675. }
  676. .generate-img(@n, (@i + 1));
  677. }
  678. // Conditional display
  679. @media only screen and (min-width: 768px) {
  680. .mobile-only,
  681. .ui.button.mobile-only {
  682. display: none;
  683. }
  684. // has the same behaviour of sr-only, hiding the content for
  685. // non-screenreaders, but is shown on mobile devices.
  686. .sr-mobile-only {
  687. .sr-only();
  688. }
  689. }
  690. @media only screen and (max-width: 767px) {
  691. .not-mobile {
  692. display: none;
  693. }
  694. }
  695. // Accessibility
  696. .sr-only {
  697. position: absolute;
  698. width: 1px;
  699. height: 1px;
  700. padding: 0;
  701. margin: -1px;
  702. overflow: hidden;
  703. clip: rect(0, 0, 0, 0);
  704. border: 0;
  705. }
  706. .sr-only-focusable:active,
  707. .sr-only-focusable:focus {
  708. position: static;
  709. width: auto;
  710. height: auto;
  711. margin: 0;
  712. overflow: visible;
  713. clip: auto;
  714. }
  715. @media only screen and (max-width: 991px) and (min-width: 768px) {
  716. .ui.container {
  717. width: 95%;
  718. }
  719. }
  720. /* Overrides some styles of the Highlight.js plugin */
  721. .hljs {
  722. background: inherit !important;
  723. padding: 0 !important;
  724. }
  725. .ui.menu.new-menu {
  726. justify-content: center !important;
  727. padding-top: 15px !important;
  728. margin-top: -15px !important;
  729. margin-bottom: 15px !important;
  730. background-color: #fafafa !important;
  731. border-width: 1px !important;
  732. }
  733. @media only screen and (max-width: 1200px) {
  734. .ui.menu.new-menu {
  735. overflow-x: auto !important;
  736. justify-content: left !important;
  737. padding-bottom: 5px;
  738. }
  739. .ui.menu.new-menu::-webkit-scrollbar {
  740. height: 8px;
  741. display: none;
  742. }
  743. .ui.menu.new-menu:hover::-webkit-scrollbar {
  744. display: block;
  745. }
  746. .ui.menu.new-menu::-webkit-scrollbar-track {
  747. background: rgba(0, 0, 0, .01);
  748. }
  749. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  750. background: rgba(0, 0, 0, .2);
  751. }
  752. .ui.menu.new-menu:after {
  753. position: absolute;
  754. margin-top: -15px;
  755. display: block;
  756. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  757. content: ' ';
  758. right: 0;
  759. height: 53px;
  760. z-index: 1000;
  761. width: 60px;
  762. clear: none;
  763. visibility: visible;
  764. }
  765. .ui.menu.new-menu a.item:last-child {
  766. padding-right: 30px !important;
  767. }
  768. }
  769. [v-cloak] {
  770. display: none !important;
  771. }
  772. .repos-search {
  773. padding-bottom: 0 !important;
  774. }
  775. .repos-filter {
  776. margin-top: 0 !important;
  777. border-bottom-width: 0 !important;
  778. margin-bottom: 2px !important;
  779. }
  780. #user-heatmap {
  781. width: 107%; // Fixes newest contributions not showing
  782. text-align: center;
  783. svg:not(:root) {
  784. overflow: inherit;
  785. padding: 0 !important;
  786. }
  787. @media only screen and (max-width: 1200px) {
  788. & {
  789. display: none;
  790. }
  791. }
  792. .total-contributions {
  793. text-align: left;
  794. font-weight: 500;
  795. margin-top: 0;
  796. }
  797. }
  798. .heatmap-color-0 {
  799. background-color: #f4f4f4;
  800. }
  801. .heatmap-color-1 {
  802. background-color: #d8efbf;
  803. }
  804. .heatmap-color-2 {
  805. background-color: #9fdb81;
  806. }
  807. .heatmap-color-3 {
  808. background-color: #66c74b;
  809. }
  810. .heatmap-color-4 {
  811. background-color: #609926;
  812. }
  813. .heatmap-color-5 {
  814. background-color: #025900;
  815. }
  816. .activity-bar-graph {
  817. background-color: #6cc644;
  818. color: #000000;
  819. }
  820. .activity-bar-graph-alt {
  821. color: #000000;
  822. }
  823. .archived-icon {
  824. color: lighten(#000000, 70%) !important;
  825. }
  826. .oauth2-authorize-application-box {
  827. margin-top: 3em !important;
  828. }
  829. /* Tab color tweaks */
  830. .ui.tabular.menu .item {
  831. color: rgba(0, 0, 0, .5);
  832. }
  833. .ui.tabular.menu .item:hover {
  834. color: rgba(0, 0, 0, .8);
  835. }
  836. .ui.tabular.menu .item.active {
  837. color: rgba(0, 0, 0, .9);
  838. }
  839. /* multiple radio or checkboxes as inline element */
  840. .inline-grouped-list {
  841. display: inline-block;
  842. vertical-align: top;
  843. > .ui {
  844. display: block;
  845. margin-top: 5px;
  846. margin-bottom: 10px;
  847. &:first-child {
  848. margin-top: 1px;
  849. }
  850. }
  851. }
  852. i.icons .icon:first-child {
  853. margin-right: 0;
  854. }
  855. i.icon.centerlock {
  856. top: 1em;
  857. }
  858. // temporary workaround for fomantic 2.8.5 bug
  859. // https://github.com/go-gitea/gitea/pull/11767
  860. i.icon,
  861. i.icons {
  862. vertical-align: unset;
  863. line-height: unset;
  864. }
  865. .ui.label {
  866. padding: .3em .5em;
  867. }
  868. .ui.label > .detail .icons {
  869. margin-right: .25em;
  870. }
  871. .ui.label > .detail .icons .icon {
  872. margin-right: 0;
  873. }
  874. .lines-num {
  875. text-align: right !important;
  876. color: #999999;
  877. background: #f5f5f5;
  878. width: 1%;
  879. user-select: none;
  880. span {
  881. &.bottom-line {
  882. &:after {
  883. border-bottom: 1px solid #eaecef;
  884. }
  885. }
  886. &:after {
  887. content: attr(data-line-number);
  888. line-height: 20px !important;
  889. padding: 0 10px;
  890. cursor: pointer;
  891. display: block;
  892. }
  893. }
  894. }
  895. .lines-num,
  896. .lines-code {
  897. padding: 0 !important;
  898. vertical-align: top;
  899. pre,
  900. ol,
  901. .hljs {
  902. background-color: white;
  903. margin: 0;
  904. padding: 0 !important;
  905. li {
  906. display: block;
  907. width: calc(100% - 1ch);
  908. padding-left: 1ch;
  909. }
  910. }
  911. }
  912. .lines-commit {
  913. vertical-align: top;
  914. color: #999999;
  915. padding: 0 !important;
  916. background: #f5f5f5;
  917. width: 1%;
  918. -moz-user-select: none;
  919. -ms-user-select: none;
  920. -webkit-user-select: none;
  921. user-select: none;
  922. .blame-info {
  923. width: 350px;
  924. max-width: 350px;
  925. display: block;
  926. user-select: none;
  927. padding: 0 0 0 10px;
  928. .blame-data {
  929. display: flex;
  930. font-family: @default-fonts;
  931. .blame-message {
  932. flex-grow: 2;
  933. overflow: hidden;
  934. white-space: nowrap;
  935. text-overflow: ellipsis;
  936. line-height: 20px;
  937. }
  938. .blame-time,
  939. .blame-avatar {
  940. flex-shrink: 0;
  941. }
  942. }
  943. }
  944. .ui.avatar.image {
  945. height: 18px;
  946. width: 18px;
  947. }
  948. }
  949. .lines-code,
  950. .lines-commit {
  951. .bottom-line {
  952. border-bottom: 1px solid #eaecef;
  953. }
  954. }
  955. .code-view {
  956. overflow: auto;
  957. overflow-x: auto;
  958. overflow-y: hidden;
  959. &.has-context-menu {
  960. overflow: visible;
  961. overflow-x: visible;
  962. overflow-y: visible;
  963. }
  964. *:not(.fa):not(.svg):not(.icon) {
  965. font-size: 12px;
  966. font-family: @monospaced-fonts, monospace;
  967. line-height: 20px;
  968. }
  969. table {
  970. width: 100%;
  971. }
  972. .lines-code .active {
  973. background: #fff6af;
  974. }
  975. }
  976. .octicon-tiny {
  977. font-size: .85714286rem;
  978. }
  979. .ui.basic.blue.button,
  980. .ui.basic.blue.buttons .button {
  981. box-shadow: inset 0 0 0 1px #1678c2 !important;
  982. color: #1678c2 !important;
  983. }
  984. .ui.label > img {
  985. width: auto !important;
  986. vertical-align: middle;
  987. height: 2.1666em !important;
  988. }
  989. .svg {
  990. span.green & {
  991. color: #21ba45;
  992. }
  993. span.red & {
  994. color: #db2828;
  995. }
  996. span.purple & {
  997. color: #a333c8;
  998. }
  999. }
  1000. .ui.popup .ui.label {
  1001. margin-bottom: .4em;
  1002. }
  1003. .color-icon {
  1004. margin-right: .5em;
  1005. margin-left: .5em;
  1006. display: inline-block;
  1007. border: 0 solid rgba(0, 0, 0, .2);
  1008. border-radius: 100%;
  1009. height: 14px;
  1010. width: 14px;
  1011. position: relative;
  1012. top: 2px;
  1013. }
  1014. .ui.label > .color-icon {
  1015. margin-left: 0;
  1016. }
  1017. .invisible {
  1018. visibility: hidden;
  1019. }
  1020. /* https://github.com/go-gitea/gitea/issues/10210 */
  1021. .ui.attached.segment ~ .ui.top.attached.header {
  1022. margin-top: 1rem;
  1023. }
  1024. /* limit width of all direct dropdown menu children */
  1025. /* https://github.com/go-gitea/gitea/pull/10835 */
  1026. .dropdown:not(.selection) > .menu:not(.review-box) > * {
  1027. max-width: 300px;
  1028. overflow-x: hidden;
  1029. text-overflow: ellipsis;
  1030. }
  1031. .dropdown:not(.selection) > .menu.review-box > * {
  1032. @media only screen and (max-height: 700px) {
  1033. .CodeMirror,
  1034. .CodeMirror-scroll {
  1035. min-height: 100px;
  1036. }
  1037. }
  1038. }
  1039. .text-label {
  1040. display: inline-flex !important;
  1041. align-items: center !important;
  1042. }
  1043. .text-label .color-icon {
  1044. position: static !important;
  1045. }
  1046. .emoji,
  1047. .reaction {
  1048. font-size: 1.5em;
  1049. line-height: 1.2;
  1050. font-style: normal !important;
  1051. font-weight: normal !important;
  1052. vertical-align: middle;
  1053. }
  1054. #issue-title > .emoji {
  1055. font-size: 1em;
  1056. }
  1057. .commit-summary > .emoji {
  1058. font-size: 1em;
  1059. }
  1060. .label > .emoji {
  1061. font-size: 1em;
  1062. }
  1063. .dropdown .emoji {
  1064. font-size: 1em;
  1065. }
  1066. .emoji img,
  1067. .reaction img {
  1068. border-width: 0 !important;
  1069. margin: 0 !important;
  1070. width: 1em !important;
  1071. height: 1em !important;
  1072. vertical-align: middle !important;
  1073. }
  1074. /* https://github.com/go-gitea/gitea/pull/11486 */
  1075. .ui.sub.header {
  1076. text-transform: none;
  1077. }