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

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