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.

_repository.less 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. .repository {
  2. @mega-octicon-width: 30px;
  3. padding-top: 15px;
  4. padding-bottom: @footer-margin * 2;
  5. .head {
  6. .column {
  7. padding-top: 5px!important;
  8. padding-bottom: 5px!important;
  9. }
  10. .ui.compact.menu {
  11. margin-left: 1rem;
  12. }
  13. .ui.header {
  14. margin-top: 0;
  15. }
  16. .mega-octicon {
  17. width: @mega-octicon-width;
  18. font-size: 30px;
  19. }
  20. .ui.huge.breadcrumb {
  21. font-weight: 300;
  22. font-size: 1.7rem;
  23. }
  24. .fork-flag {
  25. margin-left: @mega-octicon-width + 8px;
  26. display: block;
  27. font-size: 11px;
  28. line-height: 10px;
  29. white-space: nowrap;
  30. }
  31. }
  32. .metas {
  33. .menu {
  34. max-height: 300px;
  35. overflow-x: auto;
  36. }
  37. .ui.list {
  38. .hide {
  39. display: none!important;
  40. }
  41. .label.color {
  42. padding: 0 8px;
  43. margin-right: 5px;
  44. }
  45. a {
  46. padding-top: 5px;
  47. padding-right: 10px;
  48. .text {
  49. color: #444;
  50. &:hover {
  51. color: #000;
  52. }
  53. }
  54. }
  55. }
  56. }
  57. .filter.menu {
  58. .label.color {
  59. margin-left: 15px;
  60. padding: 0 8px;
  61. }
  62. .octicon {
  63. float: left;
  64. margin-left: -5px;
  65. margin-right: -7px;
  66. }
  67. .menu {
  68. max-height: 300px;
  69. overflow-x: auto;
  70. right: 0!important;
  71. left: auto!important;
  72. }
  73. .dropdown.item {
  74. margin: 1px;
  75. padding-right: 0;
  76. }
  77. }
  78. @comment-avatar-width: 3em;
  79. &.new.issue {
  80. .comment.form {
  81. .comment {
  82. .avatar {
  83. width: @comment-avatar-width;
  84. }
  85. }
  86. .content {
  87. margin-left: 4em;
  88. .markdown {
  89. font-size: 14px;
  90. }
  91. }
  92. .metas {
  93. min-width: 220px;
  94. .filter.menu {
  95. max-height: 300px;
  96. overflow-x: auto;
  97. }
  98. }
  99. }
  100. }
  101. &.view.issue {
  102. .title {
  103. padding-bottom: 0!important;
  104. h1 {
  105. font-weight: 300;
  106. font-size: 3rem;
  107. margin-bottom: 5px;
  108. .ui.input {
  109. font-size: 0.5em;
  110. vertical-align: top;
  111. width: 50%;
  112. min-width: 600px;
  113. input {
  114. font-size: 1.5em;
  115. padding: 6px 10px;
  116. }
  117. }
  118. }
  119. .index {
  120. font-weight: 300;
  121. color: #aaa;
  122. letter-spacing: -1px;
  123. }
  124. .label {
  125. margin-right: 10px;
  126. }
  127. .edit-zone {
  128. margin-top: 10px;
  129. }
  130. }
  131. .comment-list {
  132. &:before {
  133. display: block;
  134. content: "";
  135. position: absolute;
  136. margin-top: 12px;
  137. margin-bottom: 14px;
  138. top: 0;
  139. bottom: 0;
  140. left: 96px;
  141. width: 2px;
  142. background-color: #f3f3f3;
  143. z-index: -1;
  144. }
  145. .comment {
  146. .avatar {
  147. width: @comment-avatar-width;
  148. }
  149. .tag {
  150. color: #767676;
  151. margin-top: 3px;
  152. padding: 2px 5px;
  153. font-size: 12px;
  154. border: 1px solid rgba(0,0,0,0.1);
  155. border-radius: 3px;
  156. }
  157. .actions {
  158. .item {
  159. float: left;
  160. }
  161. a.item {
  162. margin-top: 6px;
  163. margin-left: 10px;
  164. }
  165. }
  166. .content {
  167. margin-left: 4em;
  168. .header {
  169. font-weight: normal;
  170. padding: auto 15px;
  171. color: #767676;
  172. background-color: #f7f7f7;
  173. border-bottom: 1px solid #eee;
  174. border-top-left-radius: 3px;
  175. border-top-right-radius: 3px;
  176. .text {
  177. max-width: 78%;
  178. padding-top: 10px;
  179. padding-bottom: 10px;
  180. }
  181. }
  182. .markdown {
  183. font-size: 14px;
  184. }
  185. .no-content {
  186. color: #767676;
  187. font-style: italic;
  188. }
  189. > .bottom.segment {
  190. background: #f3f4f5;
  191. .ui.image {
  192. max-height: 150px;
  193. }
  194. }
  195. }
  196. .ui.form {
  197. .field:first-child {
  198. clear: none;
  199. }
  200. .tab.segment {
  201. border: none;
  202. padding: 0;
  203. padding-top: 10px;
  204. }
  205. textarea {
  206. height: 200px;
  207. }
  208. }
  209. .edit.buttons {
  210. margin-top: 10px;
  211. }
  212. }
  213. .event {
  214. position: relative;
  215. margin: 15px 0 15px 79px;
  216. padding-left: 25px;
  217. .octicon {
  218. width: 30px;
  219. float: left;
  220. margin-left: -36px;
  221. text-align: center;
  222. &.octicon-circle-slash {
  223. margin-top: 5px;
  224. font-size: 20px;
  225. color: #bd2c00;
  226. }
  227. &.octicon-primitive-dot {
  228. font-size: 30px;
  229. color: #6cc644;
  230. }
  231. &.octicon-bookmark {
  232. margin-top: 3px;
  233. font-size: 25px;
  234. }
  235. }
  236. .detail {
  237. font-size: 0.9rem;
  238. margin-top: 5px;
  239. margin-left: 35px;
  240. .octicon {
  241. &.octicon-git-commit {
  242. margin-top: 2px;
  243. }
  244. }
  245. }
  246. }
  247. }
  248. .ui.segment.metas {
  249. margin-top: -3px;
  250. }
  251. }
  252. .comment.form {
  253. .ui.comments {
  254. margin-top: -12px;
  255. max-width: 100%;
  256. }
  257. .content {
  258. .field:first-child {
  259. clear: none;
  260. }
  261. .tab.segment {
  262. border: none;
  263. padding: 0;
  264. padding-top: 10px;
  265. }
  266. textarea {
  267. height: 200px;
  268. }
  269. }
  270. }
  271. .label.list {
  272. list-style: none;
  273. padding-top: 15px;
  274. .item {
  275. padding-top: 10px;
  276. padding-bottom: 10px;
  277. border-bottom: 1px dashed #AAA;
  278. a {
  279. font-size: 15px;
  280. padding-top: 5px;
  281. padding-right: 10px;
  282. color: #666;
  283. &:hover {
  284. color: #000;
  285. }
  286. &.open-issues {
  287. margin-right: 30px;
  288. }
  289. }
  290. }
  291. }
  292. .milestone.list {
  293. list-style: none;
  294. padding-top: 15px;
  295. > .item {
  296. padding-top: 10px;
  297. padding-bottom: 10px;
  298. border-bottom: 1px dashed #AAA;
  299. > a {
  300. padding-top: 5px;
  301. padding-right: 10px;
  302. color: #000;
  303. &:hover {
  304. color: #4078c0;
  305. }
  306. }
  307. .ui.progress {
  308. width: 40%;
  309. padding: 0;
  310. border: 0;
  311. margin: 0;
  312. .bar {
  313. height: 20px;
  314. }
  315. }
  316. .meta {
  317. color: #999;
  318. padding-top: 5px;
  319. .issue-stats .octicon{
  320. padding-left: 5px;
  321. }
  322. .overdue {
  323. color: red;
  324. }
  325. }
  326. .operate {
  327. margin-top: -15px;
  328. > a {
  329. font-size: 15px;
  330. padding-top: 5px;
  331. padding-right: 10px;
  332. color: #666;
  333. &:hover {
  334. color: #000;
  335. }
  336. }
  337. }
  338. .content {
  339. padding-top: 10px;
  340. }
  341. }
  342. }
  343. &.new.milestone {
  344. textarea {
  345. height: 200px;
  346. }
  347. #deadline {
  348. width: 150px;
  349. }
  350. }
  351. &.compare.pull {
  352. .choose.branch {
  353. .octicon {
  354. padding-right: 10px;
  355. }
  356. }
  357. }
  358. .filter.dropdown .menu {
  359. margin-top: 1px!important;
  360. }
  361. &.commits {
  362. .header {
  363. .ui.right {
  364. .search {
  365. input {
  366. font-weight: normal;
  367. padding: 5px 10px;
  368. }
  369. }
  370. .button {
  371. float: right;
  372. margin-left: 5px;
  373. margin-top: 1px;
  374. }
  375. }
  376. }
  377. }
  378. .commits.table {
  379. font-size: 13px;
  380. th, td {
  381. &:first-child {
  382. padding-left: 15px;
  383. }
  384. }
  385. td {
  386. line-height: 15px;
  387. }
  388. .author {
  389. min-width: 180px;
  390. }
  391. .message span {
  392. max-width: 500px;
  393. }
  394. .date {
  395. width: 120px;
  396. }
  397. }
  398. .sha.label {
  399. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  400. font-size: 14px;
  401. padding: 6px 10px 4px 10px;
  402. font-weight: normal;
  403. }
  404. .diff-detail-box {
  405. margin: 15px 0;
  406. line-height: 30px;
  407. ol {
  408. clear: both;
  409. padding-left: 0;
  410. margin-top: 5px;
  411. margin-bottom: 28px;
  412. li {
  413. list-style: none;
  414. padding-bottom: 4px;
  415. margin-bottom: 4px;
  416. border-bottom: 1px dashed #DDD;
  417. padding-left: 6px;
  418. }
  419. }
  420. span.status{
  421. display: inline-block;
  422. width: 12px;
  423. height: 12px;
  424. margin-right: 8px;
  425. vertical-align: middle;
  426. &.modify {
  427. background-color: #f0db88;
  428. }
  429. &.add {
  430. background-color: #b4e2b4;
  431. }
  432. &.del {
  433. background-color: #e9aeae;
  434. }
  435. &.rename {
  436. background-color: #dad8ff;
  437. }
  438. }
  439. }
  440. .diff-box {
  441. .count {
  442. margin-right: 12px;
  443. .bar {
  444. background-color: #e75316;
  445. height: 12px;
  446. width: 40px;
  447. display: inline-block;
  448. margin: 2px 4px 0 4px;
  449. vertical-align: text-top;
  450. .add {
  451. background-color: #77c64a;
  452. height: 12px;
  453. }
  454. }
  455. }
  456. .file {
  457. color: #888;
  458. }
  459. }
  460. .diff-file-box {
  461. .header {
  462. border-bottom: 1px solid #d4d4d5!important;
  463. }
  464. .file-body.file-code {
  465. .lines-num {
  466. text-align: right;
  467. color: #999;
  468. background: #fafafa;
  469. width: 1%;
  470. }
  471. .lines-num-old {
  472. border-right: 1px solid #DDD;
  473. }
  474. }
  475. .code-diff {
  476. font-size: 13px;
  477. td {
  478. padding: 0;
  479. border-top: none;
  480. }
  481. pre {
  482. margin: 0;
  483. }
  484. .lines-num {
  485. border-right: 1px solid #d4d4d5;
  486. padding: 0 5px;
  487. }
  488. tbody {
  489. tr {
  490. &.tag-code {
  491. td, pre {
  492. background-color: #E0E0E0 !important;
  493. border-color: #ADADAD!important;
  494. }
  495. // td.selected-line, td.selected-line pre {
  496. // background-color: #ffffdd !important;
  497. // }
  498. }
  499. // &.same-code {
  500. // td.selected-line, td.selected-line pre {
  501. // background-color: #ffffdd !important;
  502. // }
  503. // }
  504. &.del-code {
  505. td, pre {
  506. background-color: #ffe2dd !important;
  507. border-color: #e9aeae !important;
  508. }
  509. // td.selected-line, td.selected-line pre {
  510. // background-color: #ffffdd !important;
  511. // }
  512. }
  513. &.add-code {
  514. td, pre {
  515. background-color: #d1ffd6 !important;
  516. border-color: #b4e2b4 !important;
  517. }
  518. // td.selected-line, td.selected-line pre {
  519. // background-color: #ffffdd !important;
  520. // }
  521. }
  522. &:hover {
  523. td {
  524. background-color: #FFF8D2 !important;
  525. border-color: #F0DB88 !important;
  526. }
  527. pre {
  528. background-color: transparent !important;
  529. }
  530. }
  531. }
  532. }
  533. }
  534. }
  535. .code-view {
  536. overflow: auto;
  537. overflow-x: auto;
  538. overflow-y: hidden;
  539. }
  540. }
  541. .issue.list {
  542. list-style: none;
  543. padding-top: 15px;
  544. >.item {
  545. padding-top: 15px;
  546. padding-bottom: 10px;
  547. border-bottom: 1px dashed #AAA;
  548. .title {
  549. color: #444;
  550. font-size: 15px;
  551. font-weight: bold;
  552. margin: 0 6px;
  553. &:hover {
  554. color: #000;
  555. }
  556. }
  557. .comment {
  558. padding-right: 10px;
  559. color: #666;
  560. }
  561. .desc {
  562. padding-top: 5px;
  563. color: #999;
  564. a.milestone {
  565. padding-left: 5px;
  566. color: #999!important;
  567. &:hover {
  568. color: #000!important;
  569. }
  570. }
  571. .assignee {
  572. margin-top: -5px;
  573. margin-right: 5px;
  574. }
  575. }
  576. }
  577. }
  578. .page.buttons {
  579. padding-top: 15px;
  580. }
  581. .ui.comments {
  582. .dropzone {
  583. width: 100%;
  584. margin-bottom: 10px;
  585. border: 2px dashed #0087F7;
  586. box-shadow: none!important;
  587. .dz-error-message {
  588. top: 140px;
  589. }
  590. }
  591. }
  592. .settings {
  593. .content {
  594. margin-top: 2px;
  595. .header,
  596. .segment {
  597. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  598. }
  599. }
  600. .key.list {
  601. .item:not(:first-child) {
  602. border-top: 1px solid #eaeaea;
  603. }
  604. .ssh-key-state-indicator {
  605. float: left;
  606. color: gray;
  607. padding-left: 10px;
  608. padding-top: 10px;
  609. &.active {
  610. color: #6cc644;
  611. }
  612. }
  613. .meta {
  614. padding-top: 5px;
  615. }
  616. .print {
  617. color: #767676;
  618. }
  619. .activity {
  620. color: #666;
  621. }
  622. }
  623. .hook.list {
  624. > .item:not(:first-child) {
  625. border-top: 1px solid #eaeaea;
  626. }
  627. .item {
  628. padding: 10px 20px;
  629. .octicon,
  630. .fa {
  631. width: 20px;
  632. text-align: center;
  633. }
  634. }
  635. }
  636. .hook.history.list {
  637. .item {
  638. padding-left: 13px;
  639. .meta {
  640. .ui.right {
  641. margin-top: 5px;
  642. .time {
  643. font-size: 12px;
  644. }
  645. }
  646. }
  647. .info {
  648. margin-top: 10px;
  649. .tabular.menu {
  650. .item {
  651. font-weight: 500;
  652. }
  653. }
  654. .tab.segment {
  655. border: none;
  656. padding: 0;
  657. padding-top: 10px;
  658. box-shadow: none;
  659. > * {
  660. color: #666;
  661. }
  662. pre {
  663. word-wrap: break-word;
  664. .hljs {
  665. padding: 0;
  666. background-color: inherit;
  667. }
  668. }
  669. }
  670. }
  671. }
  672. }
  673. }
  674. .ui.vertical.menu {
  675. .header.item {
  676. font-size: 1.1em;
  677. background: #f0f0f0;
  678. }
  679. }
  680. .edit-label.modal,
  681. .new-label.segment {
  682. .form {
  683. .column {
  684. padding-right: 0;
  685. }
  686. .buttons {
  687. margin-left: auto;
  688. padding-top: 15px;
  689. }
  690. .color.picker.column {
  691. width: auto;
  692. .color-picker {
  693. height: 35px;
  694. width: auto;
  695. padding-left: 30px;
  696. }
  697. }
  698. .minicolors-swatch.minicolors-sprite {
  699. top: 10px;
  700. left: 10px;
  701. width: 15px;
  702. height: 15px;
  703. }
  704. .precolors {
  705. padding-left: 0;
  706. padding-right: 0;
  707. margin: 3px 10px auto 10px;
  708. width: 120px;
  709. .color {
  710. float: left;
  711. width: 15px;
  712. height: 15px;
  713. }
  714. }
  715. }
  716. }