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 46KB

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