You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

_repository.less 25 kB

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