Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

_repository.less 23KB

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