Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_repository.less 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506
  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: 400;
  22. font-size: 1.7rem;
  23. }
  24. .fork-flag {
  25. margin-left: @mega-octicon-width + 8px;
  26. margin-top: 3px;
  27. display: block;
  28. font-size: 12px;
  29. white-space: nowrap;
  30. }
  31. .octicon.octicon-repo-forked {
  32. margin-top: -1px;
  33. font-size: 15px;
  34. }
  35. }
  36. .tabs {
  37. .navbar {
  38. justify-content: initial;
  39. }
  40. }
  41. .navbar {
  42. display: flex;
  43. justify-content: space-between;
  44. .ui.label {
  45. margin-top: -2px;
  46. margin-left: 7px;
  47. padding: 3px 5px;
  48. }
  49. }
  50. .owner.dropdown {
  51. min-width: 40% !important;
  52. }
  53. .metas {
  54. .menu {
  55. max-height: 300px;
  56. overflow-x: auto;
  57. }
  58. .ui.list {
  59. .hide {
  60. display: none!important;
  61. }
  62. .item {
  63. padding: 0px;
  64. }
  65. .label.color {
  66. padding: 0 8px;
  67. margin-right: 5px;
  68. }
  69. a {
  70. margin: 2px 0;
  71. .text {
  72. color: #444;
  73. &:hover {
  74. color: #000;
  75. }
  76. }
  77. }
  78. }
  79. }
  80. .header-wrapper {
  81. background-color: #FAFAFA;
  82. margin-top: -15px;
  83. padding-top: 15px;
  84. .ui.tabs.divider {
  85. border-bottom: none;
  86. }
  87. .ui.tabular .octicon {
  88. margin-right: 5px;
  89. }
  90. }
  91. .filter.menu {
  92. .label.color {
  93. border-radius: 3px;
  94. margin-left: 15px;
  95. padding: 0 8px;
  96. }
  97. .octicon {
  98. float: left;
  99. margin-left: -5px;
  100. margin-right: -7px;
  101. }
  102. .menu {
  103. max-height: 300px;
  104. overflow-x: auto;
  105. right: 0!important;
  106. left: auto!important;
  107. }
  108. .dropdown.item {
  109. margin: 1px;
  110. padding-right: 0;
  111. }
  112. }
  113. .ui.tabs {
  114. &.container {
  115. margin-top: 14px;
  116. margin-bottom: 0px;
  117. .ui.menu {
  118. border-bottom: none;
  119. }
  120. }
  121. &.divider {
  122. margin-top: 0;
  123. margin-bottom: 20px;
  124. }
  125. }
  126. #clone-panel {
  127. margin-top: -8px;
  128. margin-left: 5px;
  129. width: 350px;
  130. input {
  131. border-radius: 0;
  132. padding: 5px 10px;
  133. }
  134. .clone.button {
  135. font-size: 13px;
  136. padding: 0 5px;
  137. &:first-child {
  138. border-radius: .28571429rem 0 0 .28571429rem;
  139. }
  140. }
  141. .icon.button {
  142. padding: 0 10px;
  143. }
  144. .dropdown .menu {
  145. right: 0!important;
  146. left: auto!important;
  147. }
  148. }
  149. &.file.list {
  150. #repo-desc {
  151. font-size: 1.2em;
  152. }
  153. .choose.reference {
  154. .header .icon {
  155. font-size: 1.4em;
  156. }
  157. }
  158. #file-buttons {
  159. font-weight: normal;
  160. .ui.button {
  161. padding: 8px 10px;
  162. font-weight: normal;
  163. }
  164. }
  165. #repo-files-table {
  166. thead {
  167. th {
  168. padding-top: 8px;
  169. padding-bottom: 5px;
  170. font-weight: normal;
  171. &:first-child {
  172. display: block;
  173. position: relative;
  174. width: 325%;
  175. }
  176. }
  177. .ui.avatar {
  178. margin-bottom: 5px;
  179. }
  180. }
  181. tbody {
  182. .octicon {
  183. margin-left: 3px;
  184. margin-right: 5px;
  185. color: #777;
  186. &.octicon-mail-reply {
  187. margin-right: 10px;
  188. }
  189. &.octicon-file-directory, &.octicon-file-submodule {
  190. color: #1e70bf;
  191. }
  192. }
  193. }
  194. td {
  195. padding-top: 8px;
  196. padding-bottom: 8px;
  197. }
  198. td.message .isSigned {
  199. cursor: default;
  200. }
  201. tr:hover {
  202. background-color: #ffffEE;
  203. }
  204. .jumpable-path {
  205. color: #888;
  206. }
  207. }
  208. #file-content {
  209. .header {
  210. .icon {
  211. font-size: 1em;
  212. margin-top: -2px;
  213. }
  214. .file-actions {
  215. padding-left: 20px;
  216. .btn-octicon {
  217. display: inline-block;
  218. padding: 5px;
  219. margin-left: 5px;
  220. line-height: 1;
  221. color: #767676;
  222. vertical-align: middle;
  223. background: transparent;
  224. border: 0;
  225. outline: none;
  226. }
  227. .btn-octicon:hover {
  228. color: #4078c0;
  229. }
  230. .btn-octicon-danger:hover {
  231. color: #bd2c00;
  232. }
  233. .btn-octicon.disabled {
  234. color: #bbb;
  235. cursor: default;
  236. }
  237. #delete-file-form {
  238. display: inline-block;
  239. }
  240. }
  241. }
  242. .view-raw {
  243. padding: 5px;
  244. * {
  245. max-width: 100%;
  246. }
  247. img {
  248. padding: 5px 5px 0 5px;
  249. }
  250. }
  251. .code-view {
  252. * {
  253. font-size: 12px;
  254. font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  255. line-height: 20px;
  256. }
  257. table {
  258. width: 100%;
  259. }
  260. .lines-num {
  261. vertical-align: top;
  262. text-align: right;
  263. color: #999;
  264. background: #f5f5f5;
  265. width: 1%;
  266. -moz-user-select: none;
  267. -ms-user-select: none;
  268. -webkit-user-select: none;
  269. user-select: none;
  270. span {
  271. line-height: 20px;
  272. padding: 0 10px;
  273. cursor: pointer;
  274. display: block;
  275. }
  276. }
  277. .lines-num,
  278. .lines-code {
  279. padding: 0;
  280. pre,
  281. ol,
  282. .hljs {
  283. background-color: white;
  284. margin: 0;
  285. padding: 0 !important;
  286. li {
  287. display: block;
  288. width: 100%;
  289. &.active {
  290. background: #ffffdd;
  291. }
  292. &:before {
  293. content: ' ';
  294. }
  295. }
  296. }
  297. }
  298. }
  299. }
  300. .sidebar {
  301. padding-left: 0;
  302. .octicon {
  303. width: 16px;
  304. }
  305. }
  306. }
  307. &.file.editor {
  308. .treepath {
  309. width: 100%;
  310. input {
  311. vertical-align: middle;
  312. box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 2px inset;
  313. width: inherit;
  314. padding: 7px 8px;
  315. margin-right: 5px;
  316. }
  317. }
  318. .tabular.menu {
  319. .octicon {
  320. margin-right: 5px;
  321. }
  322. }
  323. .commit-form-wrapper {
  324. padding-left: 64px;
  325. .commit-avatar {
  326. float: left;
  327. margin-left: -64px;
  328. width: 3em;
  329. height: auto;
  330. }
  331. .commit-form {
  332. position: relative;
  333. padding: 15px;
  334. margin-bottom: 10px;
  335. border: 1px solid #ddd;
  336. border-radius: 3px;
  337. #avatar-arrow;
  338. &:after {
  339. border-right-color: #fff;
  340. }
  341. .quick-pull-choice {
  342. .branch-name {
  343. display: inline-block;
  344. padding: 3px 6px;
  345. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  346. color: rgba(0,0,0,0.65);
  347. background-color: rgba(209,227,237,0.45);
  348. border-radius: 3px;
  349. }
  350. .new-branch-name-input {
  351. position: relative;
  352. margin-left: 25px;
  353. input {
  354. width: 240px !important;
  355. padding-left: 26px !important;
  356. }
  357. }
  358. .octicon-git-branch {
  359. position: absolute;
  360. top: 9px;
  361. left: 10px;
  362. color: #b0c4ce;
  363. }
  364. }
  365. }
  366. }
  367. }
  368. &.options {
  369. #interval {
  370. width: 100px!important;
  371. min-width: 100px;
  372. }
  373. .danger {
  374. .item {
  375. padding: 20px 15px;
  376. }
  377. .ui.divider {
  378. margin: 0;
  379. }
  380. }
  381. }
  382. @comment-avatar-width: 3em;
  383. &.new.issue {
  384. .comment.form {
  385. .comment {
  386. .avatar {
  387. width: @comment-avatar-width;
  388. }
  389. }
  390. .content {
  391. margin-left: 4em;
  392. #avatar-arrow;
  393. &:after {
  394. border-right-color: #fff;
  395. }
  396. .markdown {
  397. font-size: 14px;
  398. }
  399. }
  400. .metas {
  401. min-width: 220px;
  402. .filter.menu {
  403. max-height: 300px;
  404. overflow-x: auto;
  405. }
  406. }
  407. }
  408. }
  409. &.view.issue {
  410. .title {
  411. padding-bottom: 0!important;
  412. h1 {
  413. font-weight: 300;
  414. font-size: 2.3rem;
  415. margin-bottom: 5px;
  416. .ui.input {
  417. font-size: 0.5em;
  418. vertical-align: top;
  419. width: 50%;
  420. min-width: 600px;
  421. input {
  422. font-size: 1.5em;
  423. padding: 6px 10px;
  424. }
  425. }
  426. }
  427. .index {
  428. font-weight: 300;
  429. color: #aaa;
  430. letter-spacing: -1px;
  431. }
  432. .label {
  433. margin-right: 10px;
  434. }
  435. .edit-zone {
  436. margin-top: 10px;
  437. }
  438. }
  439. .pull-desc {
  440. code {
  441. color: #0166E6;
  442. }
  443. }
  444. .pull {
  445. &.tabular.menu {
  446. margin-bottom: 10px;
  447. .octicon {
  448. margin-right: 5px;
  449. }
  450. }
  451. &.tab.segment {
  452. border: none;
  453. padding: 0;
  454. padding-top: 10px;
  455. box-shadow: none;
  456. background-color: inherit;
  457. }
  458. .merge.box {
  459. .avatar {
  460. margin-left: 10px;
  461. margin-top: 10px;
  462. }
  463. }
  464. }
  465. .comment-list {
  466. &:before {
  467. display: block;
  468. content: "";
  469. position: absolute;
  470. margin-top: 12px;
  471. margin-bottom: 14px;
  472. top: 0;
  473. bottom: 0;
  474. left: 96px;
  475. width: 2px;
  476. background-color: #f3f3f3;
  477. z-index: -1;
  478. }
  479. .comment {
  480. .avatar {
  481. width: @comment-avatar-width;
  482. }
  483. .tag {
  484. color: #767676;
  485. margin-top: 3px;
  486. padding: 2px 5px;
  487. font-size: 12px;
  488. border: 1px solid rgba(0,0,0,0.1);
  489. border-radius: 3px;
  490. }
  491. .actions {
  492. .item {
  493. float: left;
  494. &.tag {
  495. margin-right: 5px;
  496. }
  497. &.action {
  498. margin-top: 6px;
  499. margin-left: 10px;
  500. }
  501. }
  502. }
  503. .content {
  504. margin-left: 4em;
  505. .header {
  506. #avatar-arrow;
  507. font-weight: normal;
  508. padding: auto 15px;
  509. position: relative;
  510. color: #767676;
  511. background-color: #f7f7f7;
  512. border-bottom: 1px solid #eee;
  513. border-top-left-radius: 3px;
  514. border-top-right-radius: 3px;
  515. .text {
  516. max-width: 78%;
  517. padding-top: 10px;
  518. padding-bottom: 10px;
  519. }
  520. }
  521. .markdown {
  522. font-size: 14px;
  523. }
  524. .no-content {
  525. color: #767676;
  526. font-style: italic;
  527. }
  528. > .bottom.segment {
  529. background: #f3f4f5;
  530. .ui.images::after {
  531. clear: both;
  532. content: ' ';
  533. display: block;
  534. }
  535. a {
  536. display: block;
  537. float: left;
  538. margin: 5px;
  539. padding: 5px;
  540. height: 150px;
  541. border: solid 1px #eee;
  542. border-radius: 3px;
  543. max-width: 150px;
  544. background-color: #fff;
  545. &:before {
  546. content:' ';
  547. display: inline-block;
  548. height: 100%;
  549. vertical-align: middle;
  550. }
  551. }
  552. .ui.image {
  553. max-height: 100%;
  554. width: auto;
  555. margin: 0;
  556. vertical-align: middle;
  557. }
  558. span.ui.image {
  559. font-size: 8vw;
  560. color: #000000;
  561. }
  562. span.ui.image:hover {
  563. color: #000000;
  564. }
  565. }
  566. }
  567. .ui.form {
  568. .field:first-child {
  569. clear: none;
  570. }
  571. .tab.segment {
  572. border: none;
  573. padding: 0;
  574. padding-top: 10px;
  575. }
  576. textarea {
  577. height: 200px;
  578. font-family: "Consolas", monospace;
  579. }
  580. }
  581. .edit.buttons {
  582. margin-top: 10px;
  583. }
  584. }
  585. .event {
  586. position: relative;
  587. margin: 15px 0 15px 79px;
  588. padding-left: 25px;
  589. .octicon {
  590. width: 30px;
  591. float: left;
  592. text-align: center;
  593. &.octicon-circle-slash {
  594. margin-top: 5px;
  595. margin-left: -34.5px;
  596. font-size: 20px;
  597. color: #bd2c00;
  598. }
  599. &.octicon-primitive-dot {
  600. margin-left: -28.5px;
  601. margin-right: -1px;
  602. font-size: 30px;
  603. color: #6cc644;
  604. }
  605. &.octicon-bookmark {
  606. margin-top: 3px;
  607. margin-left: -31px;
  608. margin-right: -1px;
  609. font-size: 25px;
  610. }
  611. }
  612. .detail {
  613. font-size: 0.9rem;
  614. margin-top: 5px;
  615. margin-left: 35px;
  616. .octicon {
  617. &.octicon-git-commit {
  618. margin-top: 2px;
  619. }
  620. }
  621. }
  622. }
  623. }
  624. .ui.segment.metas {
  625. margin-top: -3px;
  626. }
  627. .ui.participants {
  628. img {
  629. margin-top: 5px;
  630. margin-right: 5px;
  631. }
  632. }
  633. }
  634. .comment.form {
  635. .ui.comments {
  636. margin-top: -12px;
  637. max-width: 100%;
  638. }
  639. .content {
  640. .field:first-child {
  641. clear: none;
  642. }
  643. .form {
  644. #avatar-arrow;
  645. &:after {
  646. border-right-color: #fff;
  647. }
  648. }
  649. .tab.segment {
  650. border: none;
  651. padding: 0;
  652. padding-top: 10px;
  653. }
  654. textarea {
  655. height: 200px;
  656. font-family: "Consolas", monospace;
  657. }
  658. }
  659. }
  660. .label.list {
  661. list-style: none;
  662. padding-top: 15px;
  663. .item {
  664. padding-top: 10px;
  665. padding-bottom: 10px;
  666. border-bottom: 1px dashed #AAA;
  667. a {
  668. font-size: 15px;
  669. padding-top: 5px;
  670. padding-right: 10px;
  671. color: #666;
  672. &:hover {
  673. color: #000;
  674. }
  675. &.open-issues {
  676. margin-right: 30px;
  677. }
  678. }
  679. .ui.label {
  680. font-size: 1em;
  681. }
  682. }
  683. }
  684. .milestone.list {
  685. list-style: none;
  686. padding-top: 15px;
  687. > .item {
  688. padding-top: 10px;
  689. padding-bottom: 10px;
  690. border-bottom: 1px dashed #AAA;
  691. > a {
  692. padding-top: 5px;
  693. padding-right: 10px;
  694. color: #000;
  695. &:hover {
  696. color: #4078c0;
  697. }
  698. }
  699. .ui.progress {
  700. width: 40%;
  701. padding: 0;
  702. border: 0;
  703. margin: 0;
  704. .bar {
  705. height: 20px;
  706. }
  707. }
  708. .meta {
  709. color: #999;
  710. padding-top: 5px;
  711. .issue-stats .octicon{
  712. padding-left: 5px;
  713. }
  714. .overdue {
  715. color: red;
  716. }
  717. }
  718. .operate {
  719. margin-top: -15px;
  720. > a {
  721. font-size: 15px;
  722. padding-top: 5px;
  723. padding-right: 10px;
  724. color: #666;
  725. &:hover {
  726. color: #000;
  727. }
  728. }
  729. }
  730. .content {
  731. padding-top: 10px;
  732. }
  733. }
  734. }
  735. &.new.milestone {
  736. textarea {
  737. height: 200px;
  738. }
  739. #deadline {
  740. width: 150px;
  741. }
  742. }
  743. &.compare.pull {
  744. .choose.branch {
  745. .octicon {
  746. padding-right: 10px;
  747. }
  748. }
  749. .comment.form {
  750. .content {
  751. #avatar-arrow;
  752. &:after {
  753. border-right-color: #fff;
  754. }
  755. }
  756. }
  757. }
  758. .filter.dropdown .menu {
  759. margin-top: 1px!important;
  760. }
  761. &.commits {
  762. .header {
  763. .ui.right {
  764. .search {
  765. input {
  766. font-weight: normal;
  767. padding: 5px 10px;
  768. }
  769. }
  770. }
  771. }
  772. }
  773. #commits-table {
  774. thead {
  775. th:first-of-type {
  776. padding-left: 15px;
  777. }
  778. .sha {
  779. text-align: center;
  780. width: 140px;
  781. }
  782. }
  783. td.sha .sha.label {
  784. margin: 0;
  785. }
  786. &.ui.basic.striped.table tbody tr:nth-child(2n) {
  787. background-color: rgba(0, 0, 0, .02)!important;
  788. }
  789. }
  790. #commits-table td.sha .sha.label, #repo-files-table .sha.label{
  791. &.isSigned{
  792. border: 1px solid #BBB;
  793. .detail.icon{
  794. background: #FAFAFA;
  795. margin: -6px -10px -4px 0px;
  796. padding: 5px 3px 5px 6px;
  797. border-left: 1px solid #BBB;
  798. border-top-left-radius: 0;
  799. border-bottom-left-radius: 0;
  800. }
  801. }
  802. &.isSigned.isVerified{
  803. border: 1px solid #21BA45;
  804. background: #21BA4518;
  805. .detail.icon{
  806. border-left: 1px solid #21BA4580;
  807. }
  808. }
  809. }
  810. .diff-detail-box {
  811. margin: 15px 0;
  812. line-height: 30px;
  813. ol {
  814. clear: both;
  815. padding-left: 0;
  816. margin-top: 5px;
  817. margin-bottom: 28px;
  818. li {
  819. list-style: none;
  820. padding-bottom: 4px;
  821. margin-bottom: 4px;
  822. border-bottom: 1px dashed #DDD;
  823. padding-left: 6px;
  824. }
  825. }
  826. span.status{
  827. display: inline-block;
  828. width: 12px;
  829. height: 12px;
  830. margin-right: 8px;
  831. vertical-align: middle;
  832. &.modify {
  833. background-color: #f0db88;
  834. }
  835. &.add {
  836. background-color: #b4e2b4;
  837. }
  838. &.del {
  839. background-color: #e9aeae;
  840. }
  841. &.rename {
  842. background-color: #dad8ff;
  843. }
  844. }
  845. }
  846. .diff-box {
  847. .count {
  848. margin-right: 12px;
  849. font-size: 13px;
  850. .bar {
  851. background-color: #bd2c00;
  852. height: 12px;
  853. width: 40px;
  854. display: inline-block;
  855. margin: 2px 4px 0 4px;
  856. vertical-align: text-top;
  857. .add {
  858. background-color: #55a532;
  859. height: 12px;
  860. }
  861. }
  862. }
  863. .file {
  864. color: #888;
  865. }
  866. }
  867. .diff-file-box {
  868. .header {
  869. background-color: #f7f7f7;
  870. }
  871. .file-body.file-code {
  872. .lines-num {
  873. text-align: right;
  874. color: #A7A7A7;
  875. background: #fafafa;
  876. width: 1%;
  877. span.fold {
  878. display: block;
  879. text-align: center;
  880. }
  881. }
  882. .lines-num-old {
  883. border-right: 1px solid #DDD;
  884. }
  885. }
  886. .code-diff {
  887. font-size: 12px;
  888. td {
  889. padding: 0;
  890. padding-left: 10px;
  891. border-top: none;
  892. }
  893. pre {
  894. margin: 0;
  895. }
  896. .lines-num {
  897. border-right: 1px solid #d4d4d5;
  898. padding: 0 5px;
  899. }
  900. tbody {
  901. tr {
  902. td.halfwidth {
  903. width: 50%;
  904. }
  905. &.tag-code td, td.tag-code {
  906. background-color: #F0F0F0 !important;
  907. border-color: #D2CECE !important;
  908. padding-top: 8px;
  909. padding-bottom: 8px;
  910. // td.selected-line, td.selected-line pre {
  911. // background-color: #ffffdd !important;
  912. // }
  913. }
  914. // &.same-code {
  915. // td.selected-line, td.selected-line pre {
  916. // background-color: #ffffdd !important;
  917. // }
  918. // }
  919. .removed-code {
  920. background-color: #ff9999;
  921. }
  922. .added-code {
  923. background-color: #99ff99;
  924. }
  925. }
  926. }
  927. }
  928. .code-diff-unified tbody tr {
  929. &.del-code td {
  930. background-color: #ffe0e0 !important;
  931. border-color: #f1c0c0 !important;
  932. }
  933. &.add-code td {
  934. background-color: #d6fcd6 !important;
  935. border-color: #c1e9c1 !important;
  936. }
  937. }
  938. .code-diff-split tbody tr {
  939. // light gray for empty lines before / after commit
  940. &.add-code td:nth-child(1), &.add-code td:nth-child(2),
  941. &.del-code td:nth-child(3), &.del-code td:nth-child(4) {
  942. background-color: #fafafa;
  943. }
  944. &.del-code td:nth-child(1), &.del-code td:nth-child(2),
  945. td.del-code {
  946. background-color: #ffe0e0 !important;
  947. border-color: #f1c0c0 !important;
  948. }
  949. &.add-code td:nth-child(3), &.add-code td:nth-child(4),
  950. td.add-code{
  951. background-color: #d6fcd6 !important;
  952. border-color: #c1e9c1 !important;
  953. }
  954. }
  955. &.file-content {
  956. img {
  957. max-width: 100%;
  958. padding: 5px 5px 0 5px;
  959. }
  960. }
  961. }
  962. .code-view {
  963. overflow: auto;
  964. overflow-x: auto;
  965. overflow-y: hidden;
  966. }
  967. &.quickstart {
  968. .guide {
  969. .item {
  970. padding: 1em;
  971. small {
  972. font-weight: normal;
  973. }
  974. }
  975. .clone.button:first-child {
  976. border-radius: .28571429rem 0 0 .28571429rem;
  977. }
  978. .ui.action.small.input {
  979. width: 100%;
  980. }
  981. #repo-clone-url {
  982. border-radius: 0;
  983. padding: 5px 10px;
  984. font-size: 1.2em;
  985. }
  986. }
  987. }
  988. &.release {
  989. #release-list {
  990. border-top: 1px solid #DDD;
  991. margin-top: 20px;
  992. padding-top: 15px;
  993. >li {
  994. list-style: none;
  995. .meta,
  996. .detail {
  997. padding-top: 30px;
  998. padding-bottom: 40px;
  999. }
  1000. .meta {
  1001. text-align: right;
  1002. position: relative;
  1003. .tag:not(.icon) {
  1004. display: block;
  1005. margin-top: 15px;
  1006. }
  1007. .commit {
  1008. display: block;
  1009. margin-top: 10px;
  1010. }
  1011. }
  1012. .detail {
  1013. border-left: 1px solid #DDD;
  1014. .author {
  1015. img {
  1016. margin-bottom: -3px;
  1017. }
  1018. }
  1019. .download {
  1020. margin-top: 20px;
  1021. >a {
  1022. .octicon {
  1023. margin-left: 5px;
  1024. margin-right: 5px;
  1025. }
  1026. }
  1027. .list {
  1028. padding-left: 0;
  1029. border-top: 1px solid #eee;
  1030. li {
  1031. list-style: none;
  1032. display: block;
  1033. padding-top: 8px;
  1034. padding-bottom: 8px;
  1035. border-bottom: 1px solid #eee;
  1036. }
  1037. }
  1038. }
  1039. .dot {
  1040. width: 9px;
  1041. height: 9px;
  1042. background-color: #ccc;
  1043. z-index: 999;
  1044. position: absolute;
  1045. display: block;
  1046. left: -5px;
  1047. top: 40px;
  1048. border-radius: 6px;
  1049. border: 1px solid #FFF;
  1050. }
  1051. }
  1052. }
  1053. }
  1054. }
  1055. &.new.release {
  1056. .target {
  1057. min-width: 500px;
  1058. #tag-name {
  1059. margin-top: -4px;
  1060. }
  1061. .at {
  1062. margin-left: -5px;
  1063. margin-right: 5px;
  1064. }
  1065. .dropdown.icon {
  1066. margin: 0;
  1067. padding-top: 3px;
  1068. }
  1069. .selection.dropdown {
  1070. padding-top: 10px;
  1071. padding-bottom: 10px;
  1072. }
  1073. }
  1074. .prerelease.field {
  1075. margin-bottom: 0;
  1076. }
  1077. }
  1078. &.forks {
  1079. .list {
  1080. margin-top: 0;
  1081. .item {
  1082. padding-top: 10px;
  1083. padding-bottom: 10px;
  1084. border-bottom: 1px solid #DDD;
  1085. .ui.avatar {
  1086. float: left;
  1087. margin-right: 5px;
  1088. }
  1089. .link {
  1090. padding-top: 5px;
  1091. }
  1092. }
  1093. }
  1094. }
  1095. &.wiki {
  1096. &.start {
  1097. .ui.segment {
  1098. padding-top: 70px;
  1099. padding-bottom: 100px;
  1100. .mega-octicon {
  1101. font-size: 48px;
  1102. }
  1103. }
  1104. }
  1105. &.new {
  1106. .CodeMirror {
  1107. .CodeMirror-code {
  1108. font-family: "Consolas", monospace;
  1109. .cm-comment {
  1110. background: inherit;
  1111. }
  1112. }
  1113. }
  1114. .editor-preview {
  1115. background-color: white;
  1116. }
  1117. }
  1118. &.view {
  1119. .choose.page {
  1120. margin-top: -5px;
  1121. }
  1122. .ui.sub.header {
  1123. text-transform: none;
  1124. }
  1125. >.markdown {
  1126. padding: 15px 30px;
  1127. h1, h2, h3, h4, h5, h6 {
  1128. &:first-of-type {
  1129. margin-top: 0;
  1130. }
  1131. }
  1132. }
  1133. }
  1134. }
  1135. &.settings {
  1136. &.collaboration {
  1137. .collaborator.list {
  1138. padding: 0;
  1139. >.item {
  1140. margin: 0;
  1141. line-height: 2em;
  1142. &:not(:last-child) {
  1143. border-bottom: 1px solid #DDD;
  1144. }
  1145. }
  1146. }
  1147. #repo-collab-form {
  1148. #search-user-box {
  1149. .results {
  1150. left: 7px;
  1151. }
  1152. }
  1153. .ui.button {
  1154. margin-left: 5px;
  1155. margin-top: -3px;
  1156. }
  1157. }
  1158. }
  1159. &.webhook {
  1160. .events {
  1161. .column {
  1162. padding-bottom: 0;
  1163. }
  1164. .help {
  1165. font-size: 13px;
  1166. margin-left: 26px;
  1167. padding-top: 0;
  1168. }
  1169. }
  1170. }
  1171. }
  1172. .ui.attached.isSigned.isVerified{
  1173. &:not(.positive){
  1174. border-left: 1px solid #A3C293;
  1175. border-right: 1px solid #A3C293;
  1176. }
  1177. &.top:not(.positive){
  1178. border-top: 1px solid #A3C293;
  1179. }
  1180. &:not(.positive):last-child {
  1181. border-bottom: 1px solid #A3C293;
  1182. }
  1183. }
  1184. }
  1185. // End of .repository
  1186. &.user-cards {
  1187. .list {
  1188. padding: 0;
  1189. .item {
  1190. list-style: none;
  1191. width: 32%;
  1192. margin: 10px 10px 10px 0;
  1193. padding-bottom: 14px;
  1194. float: left;
  1195. .avatar {
  1196. width: 48px;
  1197. height: 48px;
  1198. float: left;
  1199. display: block;
  1200. margin-right: 10px;
  1201. }
  1202. .name {
  1203. margin-top: 0;
  1204. margin-bottom: 0;
  1205. font-weight: normal;
  1206. }
  1207. .meta {
  1208. margin-top: 5px;
  1209. }
  1210. }
  1211. }
  1212. }
  1213. #search-repo-box,
  1214. #search-user-box {
  1215. .results {
  1216. padding: 0;
  1217. position: absolute;
  1218. .item {
  1219. padding: 10px 15px;
  1220. border-bottom: 1px solid #DDD;
  1221. cursor: pointer;
  1222. &:hover {
  1223. background: rgba(0,0,0,.05)!important;
  1224. color: rgba(0,0,0,.95)!important;
  1225. }
  1226. img {
  1227. margin-right: 8px;
  1228. }
  1229. }
  1230. }
  1231. }
  1232. .issue-actions {
  1233. display: none;
  1234. }
  1235. .issue.list {
  1236. list-style: none;
  1237. padding-top: 15px;
  1238. >.item {
  1239. padding-top: 15px;
  1240. padding-bottom: 10px;
  1241. border-bottom: 1px dashed #AAA;
  1242. .title {
  1243. color: #444;
  1244. font-size: 15px;
  1245. font-weight: bold;
  1246. margin: 0 6px;
  1247. &:hover {
  1248. color: #000;
  1249. }
  1250. }
  1251. .comment {
  1252. padding-right: 10px;
  1253. color: #666;
  1254. }
  1255. .desc {
  1256. padding-top: 5px;
  1257. color: #999;
  1258. a.milestone {
  1259. padding-left: 5px;
  1260. color: #999!important;
  1261. &:hover {
  1262. color: #000!important;
  1263. }
  1264. }
  1265. .assignee {
  1266. margin-top: -5px;
  1267. margin-right: 5px;
  1268. }
  1269. }
  1270. }
  1271. }
  1272. .page.buttons {
  1273. padding-top: 15px;
  1274. }
  1275. .ui.form {
  1276. .dropzone {
  1277. width: 100%;
  1278. margin-bottom: 10px;
  1279. border: 2px dashed #0087F7;
  1280. box-shadow: none!important;
  1281. .dz-error-message {
  1282. top: 140px;
  1283. }
  1284. }
  1285. }
  1286. .settings {
  1287. .content {
  1288. margin-top: 2px;
  1289. >.header,
  1290. .segment {
  1291. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  1292. }
  1293. }
  1294. .list {
  1295. > .item {
  1296. .green {
  1297. color: #21BA45 !important;
  1298. }
  1299. &:not(:first-child) {
  1300. border-top: 1px solid #eaeaea;
  1301. padding:1rem;
  1302. margin: 15px -1rem -1rem -1rem;
  1303. }
  1304. > .mega-octicon {
  1305. display: table-cell;
  1306. }
  1307. > .mega-octicon + .content {
  1308. display: table-cell;
  1309. padding: 0 0 0 .5em;
  1310. vertical-align: top;
  1311. }
  1312. .info {
  1313. margin-top: 10px;
  1314. .tab.segment {
  1315. border: none;
  1316. padding: 10px 0 0;
  1317. }
  1318. }
  1319. }
  1320. &.key{
  1321. .meta {
  1322. padding-top: 5px;
  1323. color: #666;
  1324. }
  1325. }
  1326. &.email {
  1327. > .item:not(:first-child) {
  1328. min-height: 60px;
  1329. }
  1330. }
  1331. &.collaborator {
  1332. > .item {
  1333. padding: 0;
  1334. }
  1335. }
  1336. }
  1337. }
  1338. .ui.vertical.menu {
  1339. .header.item {
  1340. font-size: 1.1em;
  1341. background: #f0f0f0;
  1342. }
  1343. }
  1344. .edit-label.modal,
  1345. .new-label.segment {
  1346. .form {
  1347. .column {
  1348. padding-right: 0;
  1349. }
  1350. .buttons {
  1351. margin-left: auto;
  1352. padding-top: 15px;
  1353. }
  1354. .color.picker.column {
  1355. width: auto;
  1356. .color-picker {
  1357. height: 35px;
  1358. width: auto;
  1359. padding-left: 30px;
  1360. }
  1361. }
  1362. .minicolors-swatch.minicolors-sprite {
  1363. top: 10px;
  1364. left: 10px;
  1365. width: 15px;
  1366. height: 15px;
  1367. }
  1368. .precolors {
  1369. padding-left: 0;
  1370. padding-right: 0;
  1371. margin: 3px 10px auto 10px;
  1372. width: 120px;
  1373. .color {
  1374. float: left;
  1375. width: 15px;
  1376. height: 15px;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. #avatar-arrow {
  1382. &:before, &:after {
  1383. right: 100%;
  1384. top: 20px;
  1385. border: solid transparent;
  1386. content: " ";
  1387. height: 0;
  1388. width: 0;
  1389. position: absolute;
  1390. pointer-events: none;
  1391. }
  1392. &:before {
  1393. border-right-color: #D4D4D5;
  1394. border-width: 9px;
  1395. margin-top: -9px;
  1396. }
  1397. &:after {
  1398. border-right-color: #f7f7f7;
  1399. border-width: 8px;
  1400. margin-top: -8px;
  1401. }
  1402. }
  1403. #transfer-repo-modal,
  1404. #delete-repo-modal {
  1405. .ui.message {
  1406. width: 100%!important;
  1407. }
  1408. }
  1409. // generate .tab-size-{i} from 1 to 16
  1410. .generate-tab-size(16);
  1411. .generate-tab-size(@n, @i: 1) when (@i =< @n) {
  1412. .tab-size-@{i} {
  1413. tab-size: @i !important;
  1414. -moz-tab-size: @i !important;
  1415. }
  1416. .generate-tab-size(@n, (@i + 1));
  1417. }