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

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