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