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 25 kB

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