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

_repository.less 20KB

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