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

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