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

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