_repository.less 23 KB

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