本站源代码
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1090 lines
22KB

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