_repository.less 27 KB

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