You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

_repository.less 40 kB

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