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

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