_repository.less 26 KB

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