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

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