_repository.less 25 KB

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