_repository.less 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290
  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.image {
  393. max-height: 150px;
  394. }
  395. }
  396. }
  397. .ui.form {
  398. .field:first-child {
  399. clear: none;
  400. }
  401. .tab.segment {
  402. border: none;
  403. padding: 0;
  404. padding-top: 10px;
  405. }
  406. textarea {
  407. height: 200px;
  408. }
  409. }
  410. .edit.buttons {
  411. margin-top: 10px;
  412. }
  413. }
  414. .event {
  415. position: relative;
  416. margin: 15px 0 15px 79px;
  417. padding-left: 25px;
  418. .octicon {
  419. width: 30px;
  420. float: left;
  421. margin-left: -36px;
  422. text-align: center;
  423. &.octicon-circle-slash {
  424. margin-top: 5px;
  425. font-size: 20px;
  426. color: #bd2c00;
  427. }
  428. &.octicon-primitive-dot {
  429. font-size: 30px;
  430. color: #6cc644;
  431. }
  432. &.octicon-bookmark {
  433. margin-top: 3px;
  434. font-size: 25px;
  435. }
  436. }
  437. .detail {
  438. font-size: 0.9rem;
  439. margin-top: 5px;
  440. margin-left: 35px;
  441. .octicon {
  442. &.octicon-git-commit {
  443. margin-top: 2px;
  444. }
  445. }
  446. }
  447. }
  448. }
  449. .ui.segment.metas {
  450. margin-top: -3px;
  451. }
  452. .ui.participants {
  453. img {
  454. margin-top: 5px;
  455. margin-right: 5px;
  456. }
  457. }
  458. }
  459. .comment.form {
  460. .ui.comments {
  461. margin-top: -12px;
  462. max-width: 100%;
  463. }
  464. .content {
  465. .field:first-child {
  466. clear: none;
  467. }
  468. .form {
  469. #avatar-arrow;
  470. &:after {
  471. border-right-color: #fff;
  472. }
  473. }
  474. .tab.segment {
  475. border: none;
  476. padding: 0;
  477. padding-top: 10px;
  478. }
  479. textarea {
  480. height: 200px;
  481. }
  482. }
  483. }
  484. .label.list {
  485. list-style: none;
  486. padding-top: 15px;
  487. .item {
  488. padding-top: 10px;
  489. padding-bottom: 10px;
  490. border-bottom: 1px dashed #AAA;
  491. a {
  492. font-size: 15px;
  493. padding-top: 5px;
  494. padding-right: 10px;
  495. color: #666;
  496. &:hover {
  497. color: #000;
  498. }
  499. &.open-issues {
  500. margin-right: 30px;
  501. }
  502. }
  503. }
  504. }
  505. .milestone.list {
  506. list-style: none;
  507. padding-top: 15px;
  508. > .item {
  509. padding-top: 10px;
  510. padding-bottom: 10px;
  511. border-bottom: 1px dashed #AAA;
  512. > a {
  513. padding-top: 5px;
  514. padding-right: 10px;
  515. color: #000;
  516. &:hover {
  517. color: #4078c0;
  518. }
  519. }
  520. .ui.progress {
  521. width: 40%;
  522. padding: 0;
  523. border: 0;
  524. margin: 0;
  525. .bar {
  526. height: 20px;
  527. }
  528. }
  529. .meta {
  530. color: #999;
  531. padding-top: 5px;
  532. .issue-stats .octicon{
  533. padding-left: 5px;
  534. }
  535. .overdue {
  536. color: red;
  537. }
  538. }
  539. .operate {
  540. margin-top: -15px;
  541. > a {
  542. font-size: 15px;
  543. padding-top: 5px;
  544. padding-right: 10px;
  545. color: #666;
  546. &:hover {
  547. color: #000;
  548. }
  549. }
  550. }
  551. .content {
  552. padding-top: 10px;
  553. }
  554. }
  555. }
  556. &.new.milestone {
  557. textarea {
  558. height: 200px;
  559. }
  560. #deadline {
  561. width: 150px;
  562. }
  563. }
  564. &.compare.pull {
  565. .choose.branch {
  566. .octicon {
  567. padding-right: 10px;
  568. }
  569. }
  570. .comment.form {
  571. .content {
  572. #avatar-arrow;
  573. &:after {
  574. border-right-color: #fff;
  575. }
  576. }
  577. }
  578. }
  579. .filter.dropdown .menu {
  580. margin-top: 1px!important;
  581. }
  582. &.commits {
  583. .header {
  584. .ui.right {
  585. .search {
  586. input {
  587. font-weight: normal;
  588. padding: 5px 10px;
  589. }
  590. }
  591. }
  592. }
  593. }
  594. #commits-table {
  595. thead {
  596. th:first-of-type {
  597. padding-left: 15px;
  598. }
  599. .sha {
  600. font-size: 13px;
  601. padding: 6px 40px 4px 35px;
  602. }
  603. }
  604. &.ui.basic.striped.table tbody tr:nth-child(2n) {
  605. background-color: rgba(0, 0, 0, .02)!important;
  606. }
  607. }
  608. .diff-detail-box {
  609. margin: 15px 0;
  610. line-height: 30px;
  611. ol {
  612. clear: both;
  613. padding-left: 0;
  614. margin-top: 5px;
  615. margin-bottom: 28px;
  616. li {
  617. list-style: none;
  618. padding-bottom: 4px;
  619. margin-bottom: 4px;
  620. border-bottom: 1px dashed #DDD;
  621. padding-left: 6px;
  622. }
  623. }
  624. span.status{
  625. display: inline-block;
  626. width: 12px;
  627. height: 12px;
  628. margin-right: 8px;
  629. vertical-align: middle;
  630. &.modify {
  631. background-color: #f0db88;
  632. }
  633. &.add {
  634. background-color: #b4e2b4;
  635. }
  636. &.del {
  637. background-color: #e9aeae;
  638. }
  639. &.rename {
  640. background-color: #dad8ff;
  641. }
  642. }
  643. }
  644. .diff-box {
  645. .count {
  646. margin-right: 12px;
  647. font-size: 13px;
  648. .bar {
  649. background-color: #bd2c00;
  650. height: 12px;
  651. width: 40px;
  652. display: inline-block;
  653. margin: 2px 4px 0 4px;
  654. vertical-align: text-top;
  655. .add {
  656. background-color: #55a532;
  657. height: 12px;
  658. }
  659. }
  660. }
  661. .file {
  662. color: #888;
  663. }
  664. }
  665. .diff-file-box {
  666. .header {
  667. background-color: #f7f7f7;
  668. }
  669. .file-body.file-code {
  670. .lines-num {
  671. text-align: right;
  672. color: #A7A7A7;
  673. background: #fafafa;
  674. width: 1%;
  675. span.fold {
  676. display: block;
  677. text-align: center;
  678. }
  679. }
  680. .lines-num-old {
  681. border-right: 1px solid #DDD;
  682. }
  683. }
  684. .code-diff {
  685. font-size: 12px;
  686. td {
  687. padding: 0;
  688. padding-left: 10px;
  689. border-top: none;
  690. }
  691. pre {
  692. margin: 0;
  693. }
  694. .lines-num {
  695. border-right: 1px solid #d4d4d5;
  696. padding: 0 5px;
  697. }
  698. tbody {
  699. tr {
  700. &.tag-code {
  701. td, pre {
  702. background-color: #F0F0F0 !important;
  703. border-color: #D2CECE!important;
  704. padding-top: 4px;
  705. padding-bottom: 4px;
  706. }
  707. td.halfwidth {
  708. width: 50%;
  709. }
  710. // td.selected-line, td.selected-line pre {
  711. // background-color: #ffffdd !important;
  712. // }
  713. }
  714. // &.same-code {
  715. // td.selected-line, td.selected-line pre {
  716. // background-color: #ffffdd !important;
  717. // }
  718. // }
  719. &.del-code {
  720. // Duplicate here to enforce add code color.
  721. td.add-code {
  722. background-color: #eaffea !important;
  723. border-color: #c1e9c1 !important;
  724. pre {
  725. background-color: #eaffea !important;
  726. border-color: #c1e9c1 !important;
  727. }
  728. }
  729. td, pre {
  730. background-color: #ffecec !important;
  731. border-color: #f1c0c0 !important;
  732. }
  733. td.halfwidth {
  734. width: 50%;
  735. }
  736. // td.selected-line, td.selected-line pre {
  737. // background-color: #ffffdd !important;
  738. // }
  739. }
  740. &.add-code {
  741. td, pre {
  742. background-color: #eaffea !important;
  743. border-color: #c1e9c1 !important;
  744. }
  745. td.halfwidth {
  746. width: 50%;
  747. }
  748. // td.selected-line, td.selected-line pre {
  749. // background-color: #ffffdd !important;
  750. // }
  751. }
  752. .removed-code {
  753. background-color: #ff9999;
  754. }
  755. .added-code {
  756. background-color: #99ff99;
  757. }
  758. }
  759. }
  760. }
  761. &.file-content {
  762. img {
  763. max-width: 100%;
  764. padding: 5px 5px 0 5px;
  765. }
  766. }
  767. }
  768. .code-view {
  769. overflow: auto;
  770. overflow-x: auto;
  771. overflow-y: hidden;
  772. }
  773. &.quickstart {
  774. .guide {
  775. .item {
  776. padding: 1em;
  777. small {
  778. font-weight: normal;
  779. }
  780. }
  781. .clone.button:first-child {
  782. border-radius: .28571429rem 0 0 .28571429rem;
  783. }
  784. .ui.action.small.input {
  785. width: 100%;
  786. }
  787. #repo-clone-url {
  788. border-radius: 0;
  789. padding: 5px 10px;
  790. font-size: 1.2em;
  791. }
  792. }
  793. }
  794. &.release {
  795. #release-list {
  796. border-top: 1px solid #DDD;
  797. margin-top: 20px;
  798. padding-top: 15px;
  799. >li {
  800. list-style: none;
  801. .meta,
  802. .detail {
  803. padding-top: 30px;
  804. padding-bottom: 40px;
  805. }
  806. .meta {
  807. text-align: right;
  808. position: relative;
  809. .tag:not(.icon) {
  810. display: block;
  811. margin-top: 15px;
  812. }
  813. .commit {
  814. display: block;
  815. margin-top: 10px;
  816. }
  817. }
  818. .detail {
  819. border-left: 1px solid #DDD;
  820. .author {
  821. img {
  822. margin-bottom: -3px;
  823. }
  824. }
  825. .download {
  826. margin-top: 20px;
  827. >a {
  828. .octicon {
  829. margin-left: 5px;
  830. margin-right: 5px;
  831. }
  832. }
  833. .list {
  834. padding-left: 0;
  835. border-top: 1px solid #eee;
  836. li {
  837. list-style: none;
  838. display: block;
  839. padding-top: 8px;
  840. padding-bottom: 8px;
  841. border-bottom: 1px solid #eee;
  842. }
  843. }
  844. }
  845. .dot {
  846. width: 9px;
  847. height: 9px;
  848. background-color: #ccc;
  849. z-index: 999;
  850. position: absolute;
  851. display: block;
  852. left: -5px;
  853. top: 40px;
  854. border-radius: 6px;
  855. border: 1px solid #FFF;
  856. }
  857. }
  858. }
  859. }
  860. }
  861. &.new.release {
  862. .target {
  863. min-width: 500px;
  864. .at {
  865. margin-left: -5px;
  866. margin-right: 5px;
  867. }
  868. .dropdown.icon {
  869. margin: 0;
  870. padding-top: 3px;
  871. }
  872. .selection.dropdown {
  873. padding-top: 10px;
  874. padding-bottom: 10px;
  875. }
  876. }
  877. .prerelease.field {
  878. margin-bottom: 0;
  879. }
  880. }
  881. &.forks {
  882. .list {
  883. margin-top: 0;
  884. .item {
  885. padding-top: 10px;
  886. padding-bottom: 10px;
  887. border-bottom: 1px solid #DDD;
  888. .ui.avatar {
  889. float: left;
  890. margin-right: 5px;
  891. }
  892. .link {
  893. padding-top: 5px;
  894. }
  895. }
  896. }
  897. }
  898. &.wiki {
  899. &.start {
  900. .ui.segment {
  901. padding-top: 70px;
  902. padding-bottom: 100px;
  903. .mega-octicon {
  904. font-size: 48px;
  905. }
  906. }
  907. }
  908. &.new {
  909. .CodeMirror {
  910. .CodeMirror-code .cm-comment {
  911. background: inherit;
  912. }
  913. }
  914. .editor-preview {
  915. background-color: white;
  916. }
  917. }
  918. &.view {
  919. .choose.page {
  920. margin-top: -5px;
  921. }
  922. .ui.sub.header {
  923. text-transform: none;
  924. }
  925. .markdown {
  926. padding: 15px 30px;
  927. h1, h2, h3, h4, h5, h6 {
  928. &:first-of-type {
  929. margin-top: 0;
  930. }
  931. }
  932. }
  933. }
  934. }
  935. &.settings {
  936. &.collaboration {
  937. .collaborator.list {
  938. padding: 0;
  939. .item {
  940. padding: 10px 20px;
  941. &:not(:last-child) {
  942. border-bottom: 1px solid #DDD;
  943. }
  944. }
  945. }
  946. #repo-collab-form {
  947. #search-user-box {
  948. .results {
  949. left: 7px;
  950. }
  951. }
  952. .ui.button {
  953. margin-left: 5px;
  954. margin-top: -3px;
  955. }
  956. }
  957. }
  958. }
  959. }
  960. // End of .repository
  961. &.user-cards {
  962. .list {
  963. padding: 0;
  964. .item {
  965. list-style: none;
  966. width: 32%;
  967. margin: 10px 10px 10px 0;
  968. padding-bottom: 14px;
  969. float: left;
  970. .avatar {
  971. width: 48px;
  972. height: 48px;
  973. float: left;
  974. display: block;
  975. margin-right: 10px;
  976. }
  977. .name {
  978. margin-top: 0;
  979. margin-bottom: 0;
  980. font-weight: normal;
  981. }
  982. .meta {
  983. margin-top: 5px;
  984. }
  985. }
  986. }
  987. }
  988. #search-repo-box,
  989. #search-user-box {
  990. .results {
  991. padding: 0;
  992. position: absolute;
  993. .item {
  994. padding: 10px 15px;
  995. border-bottom: 1px solid #DDD;
  996. cursor: pointer;
  997. &:hover {
  998. background: rgba(0,0,0,.05)!important;
  999. color: rgba(0,0,0,.95)!important;
  1000. }
  1001. img {
  1002. margin-right: 8px;
  1003. }
  1004. }
  1005. }
  1006. }
  1007. .issue.list {
  1008. list-style: none;
  1009. padding-top: 15px;
  1010. >.item {
  1011. padding-top: 15px;
  1012. padding-bottom: 10px;
  1013. border-bottom: 1px dashed #AAA;
  1014. .title {
  1015. color: #444;
  1016. font-size: 15px;
  1017. font-weight: bold;
  1018. margin: 0 6px;
  1019. &:hover {
  1020. color: #000;
  1021. }
  1022. }
  1023. .comment {
  1024. padding-right: 10px;
  1025. color: #666;
  1026. }
  1027. .desc {
  1028. padding-top: 5px;
  1029. color: #999;
  1030. a.milestone {
  1031. padding-left: 5px;
  1032. color: #999!important;
  1033. &:hover {
  1034. color: #000!important;
  1035. }
  1036. }
  1037. .assignee {
  1038. margin-top: -5px;
  1039. margin-right: 5px;
  1040. }
  1041. }
  1042. }
  1043. }
  1044. .page.buttons {
  1045. padding-top: 15px;
  1046. }
  1047. .ui.comments {
  1048. .dropzone {
  1049. width: 100%;
  1050. margin-bottom: 10px;
  1051. border: 2px dashed #0087F7;
  1052. box-shadow: none!important;
  1053. .dz-error-message {
  1054. top: 140px;
  1055. }
  1056. }
  1057. }
  1058. .settings {
  1059. .content {
  1060. margin-top: 2px;
  1061. >.header,
  1062. .segment {
  1063. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  1064. }
  1065. }
  1066. .key.list {
  1067. .item:not(:first-child) {
  1068. border-top: 1px solid #eaeaea;
  1069. }
  1070. .ssh-key-state-indicator {
  1071. float: left;
  1072. color: gray;
  1073. padding-left: 10px;
  1074. padding-top: 10px;
  1075. &.active {
  1076. color: #6cc644;
  1077. }
  1078. }
  1079. .meta {
  1080. padding-top: 5px;
  1081. }
  1082. .print {
  1083. color: #767676;
  1084. }
  1085. .activity {
  1086. color: #666;
  1087. }
  1088. }
  1089. .hook.list {
  1090. > .item:not(:first-child) {
  1091. border-top: 1px solid #eaeaea;
  1092. }
  1093. .item {
  1094. padding: 10px 20px;
  1095. .octicon,
  1096. .fa {
  1097. width: 20px;
  1098. text-align: center;
  1099. }
  1100. }
  1101. }
  1102. .hook.history.list {
  1103. .item {
  1104. padding-left: 13px;
  1105. .meta {
  1106. .ui.right {
  1107. margin-top: 5px;
  1108. .time {
  1109. font-size: 12px;
  1110. }
  1111. }
  1112. }
  1113. .info {
  1114. margin-top: 10px;
  1115. .tabular.menu {
  1116. .item {
  1117. font-weight: 500;
  1118. }
  1119. }
  1120. .tab.segment {
  1121. border: none;
  1122. padding: 0;
  1123. padding-top: 10px;
  1124. box-shadow: none;
  1125. > * {
  1126. color: #666;
  1127. }
  1128. pre {
  1129. word-wrap: break-word;
  1130. .hljs {
  1131. padding: 0;
  1132. background-color: inherit;
  1133. }
  1134. }
  1135. }
  1136. }
  1137. }
  1138. }
  1139. }
  1140. .ui.vertical.menu {
  1141. .header.item {
  1142. font-size: 1.1em;
  1143. background: #f0f0f0;
  1144. }
  1145. }
  1146. .edit-label.modal,
  1147. .new-label.segment {
  1148. .form {
  1149. .column {
  1150. padding-right: 0;
  1151. }
  1152. .buttons {
  1153. margin-left: auto;
  1154. padding-top: 15px;
  1155. }
  1156. .color.picker.column {
  1157. width: auto;
  1158. .color-picker {
  1159. height: 35px;
  1160. width: auto;
  1161. padding-left: 30px;
  1162. }
  1163. }
  1164. .minicolors-swatch.minicolors-sprite {
  1165. top: 10px;
  1166. left: 10px;
  1167. width: 15px;
  1168. height: 15px;
  1169. }
  1170. .precolors {
  1171. padding-left: 0;
  1172. padding-right: 0;
  1173. margin: 3px 10px auto 10px;
  1174. width: 120px;
  1175. .color {
  1176. float: left;
  1177. width: 15px;
  1178. height: 15px;
  1179. }
  1180. }
  1181. }
  1182. }
  1183. #avatar-arrow {
  1184. &:before, &:after {
  1185. right: 100%;
  1186. top: 20px;
  1187. border: solid transparent;
  1188. content: " ";
  1189. height: 0;
  1190. width: 0;
  1191. position: absolute;
  1192. pointer-events: none;
  1193. }
  1194. &:before {
  1195. border-right-color: #D4D4D5;
  1196. border-width: 9px;
  1197. margin-top: -9px;
  1198. }
  1199. &:after {
  1200. border-right-color: #f7f7f7;
  1201. border-width: 8px;
  1202. margin-top: -8px;
  1203. }
  1204. }
  1205. #transfer-repo-modal,
  1206. #delete-repo-modal {
  1207. .ui.message {
  1208. width: 100%!important;
  1209. }
  1210. }