_repository.less 26 KB

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