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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  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. .ui.label {
  859. padding: .3em .5em;
  860. }
  861. .ui.label > .detail .icons {
  862. margin-right: .25em;
  863. }
  864. .ui.label > .detail .icons .icon {
  865. margin-right: 0;
  866. }
  867. .lines-num {
  868. text-align: right !important;
  869. color: #999999;
  870. background: #f5f5f5;
  871. width: 1%;
  872. user-select: none;
  873. span {
  874. &.bottom-line {
  875. &:after {
  876. border-bottom: 1px solid #eaecef;
  877. }
  878. }
  879. &:after {
  880. content: attr(data-line-number);
  881. line-height: 20px !important;
  882. padding: 0 10px;
  883. cursor: pointer;
  884. display: block;
  885. }
  886. }
  887. }
  888. .lines-num,
  889. .lines-code {
  890. padding: 0 !important;
  891. vertical-align: top;
  892. pre,
  893. ol,
  894. .hljs {
  895. background-color: white;
  896. margin: 0;
  897. padding: 0 !important;
  898. li {
  899. display: block;
  900. width: calc(100% - 1ch);
  901. padding-left: 1ch;
  902. }
  903. }
  904. }
  905. .lines-commit {
  906. vertical-align: top;
  907. color: #999999;
  908. padding: 0 !important;
  909. background: #f5f5f5;
  910. width: 1%;
  911. -moz-user-select: none;
  912. -ms-user-select: none;
  913. -webkit-user-select: none;
  914. user-select: none;
  915. .blame-info {
  916. width: 350px;
  917. max-width: 350px;
  918. display: block;
  919. user-select: none;
  920. padding: 0 0 0 10px;
  921. .blame-data {
  922. display: flex;
  923. font-family: @default-fonts;
  924. .blame-message {
  925. flex-grow: 2;
  926. overflow: hidden;
  927. white-space: nowrap;
  928. text-overflow: ellipsis;
  929. line-height: 20px;
  930. }
  931. .blame-time,
  932. .blame-avatar {
  933. flex-shrink: 0;
  934. }
  935. }
  936. }
  937. .ui.avatar.image {
  938. height: 18px;
  939. width: 18px;
  940. }
  941. }
  942. .lines-code,
  943. .lines-commit {
  944. .bottom-line {
  945. border-bottom: 1px solid #eaecef;
  946. }
  947. }
  948. .code-view {
  949. overflow: auto;
  950. overflow-x: auto;
  951. overflow-y: hidden;
  952. &.has-context-menu {
  953. overflow: visible;
  954. overflow-x: visible;
  955. overflow-y: visible;
  956. }
  957. *:not(.fa):not(.svg):not(.icon) {
  958. font-size: 12px;
  959. font-family: @monospaced-fonts, monospace;
  960. line-height: 20px;
  961. }
  962. table {
  963. width: 100%;
  964. }
  965. .lines-code .active {
  966. background: #fff6af;
  967. }
  968. }
  969. .octicon-tiny {
  970. font-size: .85714286rem;
  971. }
  972. .ui.basic.blue.button,
  973. .ui.basic.blue.buttons .button {
  974. box-shadow: inset 0 0 0 1px #1678c2 !important;
  975. color: #1678c2 !important;
  976. }
  977. .ui.label > img {
  978. width: auto !important;
  979. vertical-align: middle;
  980. height: 2.1666em !important;
  981. }
  982. .svg {
  983. span.green & {
  984. color: #21ba45;
  985. }
  986. span.red & {
  987. color: #db2828;
  988. }
  989. span.purple & {
  990. color: #a333c8;
  991. }
  992. }
  993. .ui.popup .ui.label {
  994. margin-bottom: .4em;
  995. }
  996. .color-icon {
  997. margin-right: .5em;
  998. margin-left: .5em;
  999. display: inline-block;
  1000. border: 0 solid rgba(0, 0, 0, .2);
  1001. border-radius: 100%;
  1002. height: 14px;
  1003. width: 14px;
  1004. position: relative;
  1005. top: 2px;
  1006. }
  1007. .ui.label > .color-icon {
  1008. margin-left: 0;
  1009. }
  1010. .invisible {
  1011. visibility: hidden;
  1012. }
  1013. /* https://github.com/go-gitea/gitea/issues/10210 */
  1014. .ui.attached.segment ~ .ui.top.attached.header {
  1015. margin-top: 1rem;
  1016. }
  1017. /* limit width of all direct dropdown menu children */
  1018. /* https://github.com/go-gitea/gitea/pull/10835 */
  1019. .dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {
  1020. max-width: 300px;
  1021. overflow-x: hidden;
  1022. text-overflow: ellipsis;
  1023. }
  1024. .dropdown:not(.selection) > .menu.review-box > * {
  1025. @media only screen and (max-height: 700px) {
  1026. .CodeMirror,
  1027. .CodeMirror-scroll {
  1028. min-height: 100px;
  1029. }
  1030. }
  1031. }
  1032. .text-label {
  1033. display: inline-flex !important;
  1034. align-items: center !important;
  1035. }
  1036. .text-label .color-icon {
  1037. position: static !important;
  1038. }
  1039. .emoji,
  1040. .reaction {
  1041. font-size: 1.5em;
  1042. line-height: 1.2;
  1043. font-style: normal !important;
  1044. font-weight: normal !important;
  1045. vertical-align: middle;
  1046. }
  1047. #issue-title > .emoji {
  1048. font-size: 1em;
  1049. }
  1050. .commit-summary > .emoji {
  1051. font-size: 1em;
  1052. }
  1053. .label > .emoji {
  1054. font-size: 1em;
  1055. }
  1056. .dropdown .emoji {
  1057. font-size: 1em;
  1058. }
  1059. .emoji img,
  1060. .reaction img {
  1061. border-width: 0 !important;
  1062. margin: 0 !important;
  1063. width: 1em !important;
  1064. height: 1em !important;
  1065. vertical-align: middle !important;
  1066. }
  1067. /* https://github.com/go-gitea/gitea/pull/11486 */
  1068. .ui.sub.header {
  1069. text-transform: none;
  1070. }