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 26KB

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