_repository.less 20 KB

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