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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287
  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. border-radius: 3px;
  465. }
  466. .form {
  467. .fake {
  468. display: none !important;
  469. }
  470. .sub.field {
  471. margin-left: 25px;
  472. }
  473. }
  474. .sha.label {
  475. font-family: @monospaced-fonts, monospace;
  476. font-size: 13px;
  477. padding: 6px 10px 4px;
  478. font-weight: normal;
  479. margin: 0 6px;
  480. }
  481. .button.truncate {
  482. display: inline-block;
  483. max-width: 100%;
  484. overflow: hidden;
  485. text-overflow: ellipsis;
  486. vertical-align: top;
  487. white-space: nowrap;
  488. margin-right: 6px;
  489. }
  490. &.status.buttons {
  491. .svg {
  492. margin-right: 4px;
  493. }
  494. }
  495. &.inline.delete-button {
  496. padding: 8px 15px;
  497. font-weight: normal;
  498. }
  499. .background {
  500. &.red {
  501. background-color: #d95c5c !important;
  502. }
  503. &.blue {
  504. background-color: #428bca !important;
  505. }
  506. &.black {
  507. background-color: #444444;
  508. }
  509. &.grey {
  510. background-color: #767676 !important;
  511. }
  512. &.light.grey {
  513. background-color: #888888 !important;
  514. }
  515. &.green {
  516. background-color: #6cc644 !important;
  517. }
  518. &.purple {
  519. background-color: #6e5494 !important;
  520. }
  521. &.yellow {
  522. background-color: #fbbf09 !important;
  523. }
  524. &.orange {
  525. background-color: #f2711c !important;
  526. }
  527. &.gold {
  528. background-color: #a1882b !important;
  529. }
  530. }
  531. .migrate {
  532. color: #888888 !important;
  533. opacity: .5;
  534. a {
  535. color: #444444 !important;
  536. &:hover {
  537. color: #000000 !important;
  538. }
  539. }
  540. }
  541. .border {
  542. border: 1px solid;
  543. &.red {
  544. border-color: #d95c5c !important;
  545. }
  546. &.blue {
  547. border-color: #428bca !important;
  548. }
  549. &.black {
  550. border-color: #444444;
  551. }
  552. &.grey {
  553. border-color: #767676 !important;
  554. }
  555. &.light.grey {
  556. border-color: #888888 !important;
  557. }
  558. &.green {
  559. border-color: #6cc644 !important;
  560. }
  561. &.purple {
  562. border-color: #6e5494 !important;
  563. }
  564. &.yellow {
  565. border-color: #fbbd08 !important;
  566. }
  567. &.orange {
  568. border-color: #f2711c !important;
  569. }
  570. &.gold {
  571. border-color: #a1882b !important;
  572. }
  573. }
  574. .branch-tag-choice {
  575. line-height: 20px;
  576. }
  577. &.pagination.menu {
  578. @media only screen and (max-width: 767px) {
  579. .item:not(.active):not(.navigation),
  580. .item.navigation span.navigation_label {
  581. display: none;
  582. }
  583. }
  584. &.narrow .item {
  585. padding-left: 8px;
  586. padding-right: 8px;
  587. min-width: 1em;
  588. text-align: center;
  589. .icon {
  590. margin-right: 0;
  591. }
  592. }
  593. }
  594. }
  595. .file-comment {
  596. font: 12px @monospaced-fonts, monospace;
  597. color: rgba(0, 0, 0, .87);
  598. }
  599. .ui.floating.dropdown {
  600. .overflow.menu {
  601. .scrolling.menu.items {
  602. border-radius: 0 !important;
  603. box-shadow: none !important;
  604. border-bottom: 1px solid rgba(34, 36, 38, .15);
  605. }
  606. }
  607. }
  608. .user-menu > .item {
  609. width: 100%;
  610. border-radius: 0 !important;
  611. }
  612. .scrolling.menu {
  613. .item.selected {
  614. font-weight: 700 !important;
  615. }
  616. }
  617. footer {
  618. background-color: white;
  619. border-top: 1px solid #d6d6d6;
  620. width: 100%;
  621. flex-basis: 40px;
  622. color: #888888;
  623. .container {
  624. width: 100vw !important;
  625. padding: 0 .5rem;
  626. max-width: calc(100vw - 1rem) !important;
  627. .fa {
  628. width: 16px;
  629. text-align: center;
  630. color: #428bca;
  631. }
  632. .links > * {
  633. border-left: 1px solid #d6d6d6;
  634. padding-left: 8px;
  635. margin-left: 5px;
  636. &:first-child {
  637. border-left: 0;
  638. }
  639. }
  640. }
  641. .ui.language .menu {
  642. max-height: 500px;
  643. overflow-y: auto;
  644. margin-bottom: 7px;
  645. }
  646. .ui {
  647. &.left,
  648. &.right {
  649. line-height: 40px;
  650. }
  651. }
  652. }
  653. .hide {
  654. display: none;
  655. &.show-outdated {
  656. display: none !important;
  657. }
  658. &.hide-outdated {
  659. display: none !important;
  660. }
  661. }
  662. .center {
  663. text-align: center;
  664. }
  665. .generate-img(16);
  666. .generate-img(@n, @i: 1) when (@i =< @n) {
  667. .img-@{i} {
  668. width: (2px * @i) !important;
  669. height: (2px * @i) !important;
  670. }
  671. .generate-img(@n, (@i + 1));
  672. }
  673. // Conditional display
  674. @media only screen and (min-width: 768px) {
  675. .mobile-only,
  676. .ui.button.mobile-only {
  677. display: none;
  678. }
  679. // has the same behaviour of sr-only, hiding the content for
  680. // non-screenreaders, but is shown on mobile devices.
  681. .sr-mobile-only {
  682. .sr-only();
  683. }
  684. }
  685. @media only screen and (max-width: 767px) {
  686. .not-mobile {
  687. display: none;
  688. }
  689. }
  690. // Accessibility
  691. .sr-only {
  692. position: absolute;
  693. width: 1px;
  694. height: 1px;
  695. padding: 0;
  696. margin: -1px;
  697. overflow: hidden;
  698. clip: rect(0, 0, 0, 0);
  699. border: 0;
  700. }
  701. .sr-only-focusable:active,
  702. .sr-only-focusable:focus {
  703. position: static;
  704. width: auto;
  705. height: auto;
  706. margin: 0;
  707. overflow: visible;
  708. clip: auto;
  709. }
  710. @media only screen and (max-width: 991px) and (min-width: 768px) {
  711. .ui.container {
  712. width: 95%;
  713. }
  714. }
  715. /* Overrides some styles of the Highlight.js plugin */
  716. .hljs {
  717. background: inherit !important;
  718. padding: 0 !important;
  719. }
  720. .ui.menu.new-menu {
  721. justify-content: center !important;
  722. padding-top: 15px !important;
  723. margin-top: -15px !important;
  724. margin-bottom: 15px !important;
  725. background-color: #fafafa !important;
  726. border-width: 1px !important;
  727. }
  728. @media only screen and (max-width: 1200px) {
  729. .ui.menu.new-menu {
  730. overflow-x: auto !important;
  731. justify-content: left !important;
  732. padding-bottom: 5px;
  733. }
  734. .ui.menu.new-menu::-webkit-scrollbar {
  735. height: 8px;
  736. display: none;
  737. }
  738. .ui.menu.new-menu:hover::-webkit-scrollbar {
  739. display: block;
  740. }
  741. .ui.menu.new-menu::-webkit-scrollbar-track {
  742. background: rgba(0, 0, 0, .01);
  743. }
  744. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  745. background: rgba(0, 0, 0, .2);
  746. }
  747. .ui.menu.new-menu:after {
  748. position: absolute;
  749. margin-top: -15px;
  750. display: block;
  751. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  752. content: ' ';
  753. right: 0;
  754. height: 53px;
  755. z-index: 1000;
  756. width: 60px;
  757. clear: none;
  758. visibility: visible;
  759. }
  760. .ui.menu.new-menu a.item:last-child {
  761. padding-right: 30px !important;
  762. }
  763. }
  764. [v-cloak] {
  765. display: none !important;
  766. }
  767. .repos-search {
  768. padding-bottom: 0 !important;
  769. }
  770. .repos-filter {
  771. margin-top: 0 !important;
  772. border-bottom-width: 0 !important;
  773. margin-bottom: 2px !important;
  774. }
  775. #user-heatmap {
  776. width: 107%; // Fixes newest contributions not showing
  777. text-align: center;
  778. svg:not(:root) {
  779. overflow: inherit;
  780. padding: 0 !important;
  781. }
  782. @media only screen and (max-width: 1200px) {
  783. & {
  784. display: none;
  785. }
  786. }
  787. .total-contributions {
  788. text-align: left;
  789. font-weight: 500;
  790. margin-top: 0;
  791. }
  792. }
  793. .heatmap-color-0 {
  794. background-color: #f4f4f4;
  795. }
  796. .heatmap-color-1 {
  797. background-color: #d8efbf;
  798. }
  799. .heatmap-color-2 {
  800. background-color: #9fdb81;
  801. }
  802. .heatmap-color-3 {
  803. background-color: #66c74b;
  804. }
  805. .heatmap-color-4 {
  806. background-color: #609926;
  807. }
  808. .heatmap-color-5 {
  809. background-color: #025900;
  810. }
  811. .activity-bar-graph {
  812. background-color: #6cc644;
  813. color: #000000;
  814. }
  815. .activity-bar-graph-alt {
  816. color: #000000;
  817. }
  818. .archived-icon {
  819. color: lighten(#000000, 70%) !important;
  820. }
  821. .oauth2-authorize-application-box {
  822. margin-top: 3em !important;
  823. }
  824. /* Tab color tweaks */
  825. .ui.tabular.menu .item {
  826. color: rgba(0, 0, 0, .5);
  827. }
  828. .ui.tabular.menu .item:hover {
  829. color: rgba(0, 0, 0, .8);
  830. }
  831. .ui.tabular.menu .item.active {
  832. color: rgba(0, 0, 0, .9);
  833. }
  834. /* multiple radio or checkboxes as inline element */
  835. .inline-grouped-list {
  836. display: inline-block;
  837. vertical-align: top;
  838. > .ui {
  839. display: block;
  840. margin-top: 5px;
  841. margin-bottom: 10px;
  842. &:first-child {
  843. margin-top: 1px;
  844. }
  845. }
  846. }
  847. i.icons .icon:first-child {
  848. margin-right: 0;
  849. }
  850. i.icon.centerlock {
  851. top: 1.45em;
  852. }
  853. .ui.label {
  854. padding: .3em .5em;
  855. }
  856. .ui.label > .detail .icons {
  857. margin-right: .25em;
  858. }
  859. .ui.label > .detail .icons .icon {
  860. margin-right: 0;
  861. }
  862. .lines-num {
  863. vertical-align: top;
  864. text-align: right !important;
  865. color: #999999;
  866. background: #f5f5f5;
  867. width: 1%;
  868. user-select: none;
  869. span {
  870. &:before {
  871. content: attr(data-line-number);
  872. line-height: 20px !important;
  873. padding: 0 10px;
  874. cursor: pointer;
  875. display: block;
  876. }
  877. }
  878. }
  879. .lines-num,
  880. .lines-code {
  881. padding: 0 !important;
  882. pre,
  883. ol,
  884. .hljs {
  885. background-color: white;
  886. margin: 0;
  887. padding: 0 !important;
  888. li {
  889. display: block;
  890. width: calc(100% - 1ch);
  891. margin-left: 1ch;
  892. }
  893. }
  894. }
  895. .lines-commit {
  896. vertical-align: top;
  897. color: #999999;
  898. padding: 0 !important;
  899. background: #f5f5f5;
  900. width: 1%;
  901. -moz-user-select: none;
  902. -ms-user-select: none;
  903. -webkit-user-select: none;
  904. user-select: none;
  905. .blame-info {
  906. width: 350px;
  907. max-width: 350px;
  908. display: block;
  909. user-select: none;
  910. padding: 0 0 0 10px;
  911. .blame-data {
  912. display: flex;
  913. font-family: @default-fonts;
  914. .blame-message {
  915. flex-grow: 2;
  916. overflow: hidden;
  917. white-space: nowrap;
  918. text-overflow: ellipsis;
  919. line-height: 20px;
  920. }
  921. .blame-time,
  922. .blame-avatar {
  923. flex-shrink: 0;
  924. }
  925. }
  926. }
  927. .ui.avatar.image {
  928. height: 18px;
  929. width: 18px;
  930. }
  931. }
  932. .lines-num,
  933. .lines-code,
  934. .lines-commit {
  935. .bottom-line {
  936. border-bottom: 1px solid #eaecef;
  937. }
  938. }
  939. .code-view {
  940. overflow: auto;
  941. overflow-x: auto;
  942. overflow-y: hidden;
  943. &.has-context-menu {
  944. overflow: visible;
  945. overflow-x: visible;
  946. overflow-y: visible;
  947. }
  948. *:not(.fa):not(.svg):not(.icon) {
  949. font-size: 12px;
  950. font-family: @monospaced-fonts, monospace;
  951. line-height: 20px;
  952. }
  953. table {
  954. width: 100%;
  955. }
  956. .lines-code .active {
  957. background: #fff6af;
  958. }
  959. }
  960. .octicon-tiny {
  961. font-size: .85714286rem;
  962. }
  963. .ui.basic.blue.button,
  964. .ui.basic.blue.buttons .button {
  965. box-shadow: inset 0 0 0 1px #1678c2 !important;
  966. color: #1678c2 !important;
  967. }
  968. .ui.label > img {
  969. width: auto !important;
  970. vertical-align: middle;
  971. height: 2.1666em !important;
  972. }
  973. .svg {
  974. span.green & {
  975. color: #21ba45;
  976. }
  977. span.red & {
  978. color: #db2828;
  979. }
  980. span.purple & {
  981. color: #a333c8;
  982. }
  983. }
  984. .ui.popup .ui.label {
  985. margin-bottom: .4em;
  986. }
  987. .color-icon {
  988. margin-right: .5em;
  989. margin-left: .5em;
  990. display: inline-block;
  991. border: 0 solid rgba(0, 0, 0, .2);
  992. border-radius: 100%;
  993. height: 14px;
  994. width: 14px;
  995. position: relative;
  996. top: 2px;
  997. }
  998. .ui.label > .color-icon {
  999. margin-left: 0;
  1000. }
  1001. .invisible {
  1002. visibility: hidden;
  1003. }
  1004. /* https://github.com/go-gitea/gitea/issues/10210 */
  1005. .ui.attached.segment ~ .ui.top.attached.header {
  1006. margin-top: 1rem;
  1007. }
  1008. /* limit width of all direct dropdown menu children */
  1009. /* https://github.com/go-gitea/gitea/pull/10835 */
  1010. .dropdown:not(.selection) > .menu:not(.review-box) > * {
  1011. max-width: 300px;
  1012. overflow-x: hidden;
  1013. text-overflow: ellipsis;
  1014. }
  1015. .dropdown:not(.selection) > .menu.review-box > * {
  1016. @media only screen and (max-height: 700px) {
  1017. .CodeMirror,
  1018. .CodeMirror-scroll {
  1019. min-height: 100px;
  1020. }
  1021. }
  1022. }
  1023. .text-label {
  1024. display: inline-flex !important;
  1025. align-items: center !important;
  1026. }
  1027. .text-label .color-icon {
  1028. position: static !important;
  1029. }
  1030. .emoji,
  1031. .reaction {
  1032. font-size: 1.5em;
  1033. line-height: 1.2;
  1034. font-weight: 400;
  1035. vertical-align: middle;
  1036. font-style: normal;
  1037. }
  1038. #issue-title > .emoji {
  1039. font-size: 1em;
  1040. }
  1041. .commit-summary > .emoji {
  1042. font-size: 1em;
  1043. }
  1044. .label > .emoji {
  1045. font-size: 1em;
  1046. }
  1047. .dropdown .emoji {
  1048. font-size: 1em;
  1049. }
  1050. .emoji img,
  1051. .reaction img {
  1052. border-width: 0 !important;
  1053. margin: 0 !important;
  1054. width: 1em !important;
  1055. height: 1em !important;
  1056. vertical-align: middle !important;
  1057. }