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

_repository.less 47KB

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