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

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