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 21KB

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