_repository.less 23 KB

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