Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

_repository.less 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. .repository {
  2. @mega-octicon-width: 30px;
  3. padding-top: 15px;
  4. padding-bottom: @footer-margin * 2;
  5. .head {
  6. .column {
  7. padding-top: 5px!important;
  8. padding-bottom: 5px!important;
  9. }
  10. .ui.compact.menu {
  11. margin-left: 1rem;
  12. }
  13. .ui.header {
  14. margin-top: 0;
  15. }
  16. .mega-octicon {
  17. width: @mega-octicon-width;
  18. font-size: 30px;
  19. }
  20. .ui.huge.breadcrumb {
  21. font-weight: 300;
  22. font-size: 1.7rem;
  23. }
  24. .fork-flag {
  25. margin-left: @mega-octicon-width + 8px;
  26. display: block;
  27. font-size: 11px;
  28. line-height: 10px;
  29. white-space: nowrap;
  30. }
  31. }
  32. .metas {
  33. .menu {
  34. max-height: 300px;
  35. overflow-x: auto;
  36. }
  37. .ui.list {
  38. .hide {
  39. display: none!important;
  40. }
  41. .label.color {
  42. padding: 0 8px;
  43. margin-right: 5px;
  44. }
  45. a {
  46. padding-top: 5px;
  47. padding-right: 10px;
  48. .text {
  49. color: #444;
  50. &:hover {
  51. color: #000;
  52. }
  53. }
  54. }
  55. }
  56. }
  57. .filter.menu {
  58. .label.color {
  59. margin-left: 15px;
  60. padding: 0 8px;
  61. }
  62. .octicon {
  63. float: left;
  64. margin-left: -5px;
  65. margin-right: -7px;
  66. }
  67. .menu {
  68. max-height: 300px;
  69. overflow-x: auto;
  70. right: 0!important;
  71. left: auto!important;
  72. }
  73. .dropdown.item {
  74. margin: 1px;
  75. padding-right: 0;
  76. }
  77. }
  78. @comment-avatar-width: 3em;
  79. &.new.issue {
  80. .comment.form {
  81. .comment {
  82. .avatar {
  83. width: @comment-avatar-width;
  84. }
  85. }
  86. .content {
  87. margin-left: 4em;
  88. .markdown {
  89. font-size: 14px;
  90. }
  91. }
  92. .metas {
  93. min-width: 220px;
  94. .filter.menu {
  95. max-height: 300px;
  96. overflow-x: auto;
  97. }
  98. }
  99. }
  100. }
  101. &.view.issue {
  102. .title {
  103. padding-bottom: 0!important;
  104. h1 {
  105. font-weight: 300;
  106. font-size: 3rem;
  107. margin-bottom: 5px;
  108. .ui.input {
  109. font-size: 0.5em;
  110. vertical-align: top;
  111. width: 50%;
  112. min-width: 600px;
  113. input {
  114. font-size: 1.5em;
  115. padding: 6px 10px;
  116. }
  117. }
  118. }
  119. .index {
  120. font-weight: 300;
  121. color: #aaa;
  122. letter-spacing: -1px;
  123. }
  124. .label {
  125. margin-right: 10px;
  126. }
  127. .edit-zone {
  128. margin-top: 10px;
  129. }
  130. }
  131. .comment-list {
  132. &:before {
  133. display: block;
  134. content: "";
  135. position: absolute;
  136. margin-top: 12px;
  137. margin-bottom: 14px;
  138. top: 0;
  139. bottom: 0;
  140. left: 96px;
  141. width: 2px;
  142. background-color: #f3f3f3;
  143. z-index: -1;
  144. }
  145. .comment {
  146. .avatar {
  147. width: @comment-avatar-width;
  148. }
  149. .tag {
  150. color: #767676;
  151. margin-top: 3px;
  152. padding: 2px 5px;
  153. font-size: 12px;
  154. border: 1px solid rgba(0,0,0,0.1);
  155. border-radius: 3px;
  156. }
  157. .actions {
  158. .item {
  159. float: left;
  160. }
  161. a.item {
  162. margin-top: 6px;
  163. margin-left: 10px;
  164. }
  165. }
  166. .content {
  167. margin-left: 4em;
  168. .header {
  169. font-weight: normal;
  170. padding: auto 15px;
  171. color: #767676;
  172. background-color: #f7f7f7;
  173. border-bottom: 1px solid #eee;
  174. border-top-left-radius: 3px;
  175. border-top-right-radius: 3px;
  176. .text {
  177. max-width: 78%;
  178. padding-top: 10px;
  179. padding-bottom: 10px;
  180. }
  181. }
  182. .markdown {
  183. font-size: 14px;
  184. }
  185. .no-content {
  186. color: #767676;
  187. font-style: italic;
  188. }
  189. > .bottom.segment {
  190. background: #f3f4f5;
  191. .ui.image {
  192. max-height: 150px;
  193. }
  194. }
  195. }
  196. .ui.form {
  197. .field:first-child {
  198. clear: none;
  199. }
  200. .tab.segment {
  201. border: none;
  202. padding: 0;
  203. padding-top: 10px;
  204. }
  205. textarea {
  206. height: 200px;
  207. }
  208. }
  209. .edit.buttons {
  210. margin-top: 10px;
  211. }
  212. }
  213. .event {
  214. position: relative;
  215. margin: 15px 0 15px 79px;
  216. padding-left: 25px;
  217. .octicon {
  218. width: 30px;
  219. float: left;
  220. margin-left: -36px;
  221. text-align: center;
  222. &.octicon-circle-slash {
  223. margin-top: 5px;
  224. font-size: 20px;
  225. color: #bd2c00;
  226. }
  227. &.octicon-primitive-dot {
  228. font-size: 35px;
  229. color: #6cc644;
  230. }
  231. }
  232. }
  233. }
  234. .ui.segment.metas {
  235. margin-top: -3px;
  236. }
  237. }
  238. .comment.form {
  239. .ui.comments {
  240. margin-top: -12px;
  241. max-width: 100%;
  242. }
  243. .content {
  244. .field:first-child {
  245. clear: none;
  246. }
  247. .tab.segment {
  248. border: none;
  249. padding: 0;
  250. padding-top: 10px;
  251. }
  252. textarea {
  253. height: 200px;
  254. }
  255. }
  256. }
  257. .label.list {
  258. list-style: none;
  259. padding-top: 15px;
  260. .item {
  261. padding-top: 10px;
  262. padding-bottom: 10px;
  263. border-bottom: 1px dashed #AAA;
  264. a {
  265. font-size: 15px;
  266. padding-top: 5px;
  267. padding-right: 10px;
  268. color: #666;
  269. &:hover {
  270. color: #000;
  271. }
  272. &.open-issues {
  273. margin-right: 30px;
  274. }
  275. }
  276. }
  277. }
  278. .milestone.list {
  279. list-style: none;
  280. padding-top: 15px;
  281. > .item {
  282. padding-top: 10px;
  283. padding-bottom: 10px;
  284. border-bottom: 1px dashed #AAA;
  285. > a {
  286. padding-top: 5px;
  287. padding-right: 10px;
  288. color: #000;
  289. &:hover {
  290. color: #4078c0;
  291. }
  292. }
  293. .ui.progress {
  294. width: 40%;
  295. padding: 0;
  296. border: 0;
  297. margin: 0;
  298. .bar {
  299. height: 20px;
  300. }
  301. }
  302. .meta {
  303. color: #999;
  304. padding-top: 5px;
  305. .issue-stats .octicon{
  306. padding-left: 5px;
  307. }
  308. .overdue {
  309. color: red;
  310. }
  311. }
  312. .operate {
  313. margin-top: -15px;
  314. > a {
  315. font-size: 15px;
  316. padding-top: 5px;
  317. padding-right: 10px;
  318. color: #666;
  319. &:hover {
  320. color: #000;
  321. }
  322. }
  323. }
  324. .content {
  325. padding-top: 10px;
  326. }
  327. }
  328. }
  329. &.new.milestone {
  330. textarea {
  331. height: 200px;
  332. }
  333. #deadline {
  334. width: 150px;
  335. }
  336. }
  337. &.compare.pull {
  338. .choose.branch {
  339. .octicon {
  340. padding-right: 10px;
  341. }
  342. }
  343. }
  344. .filter.dropdown .menu {
  345. margin-top: 1px!important;
  346. .items {
  347. max-height: 300px;
  348. overflow-y: auto;
  349. .item {
  350. position: relative;
  351. cursor: pointer;
  352. display: block;
  353. border: none;
  354. height: auto;
  355. border-top: none;
  356. line-height: 1em;
  357. color: rgba(0,0,0,.8);
  358. padding: .71428571em 1.14285714em!important;
  359. font-size: 1rem;
  360. text-transform: none;
  361. font-weight: 400;
  362. box-shadow: none;
  363. -webkit-touch-callout: none;
  364. &.active {
  365. font-weight: 700;
  366. }
  367. &:hover {
  368. background: rgba(0,0,0,.05);
  369. color: rgba(0,0,0,.8);
  370. z-index: 13;
  371. }
  372. }
  373. }
  374. }
  375. &.commits {
  376. .header {
  377. .ui.right {
  378. .search {
  379. input {
  380. font-weight: normal;
  381. padding: 5px 10px;
  382. }
  383. }
  384. .button {
  385. float: right;
  386. margin-left: 5px;
  387. margin-top: 1px;
  388. }
  389. }
  390. }
  391. }
  392. .commits.table {
  393. font-size: 13px;
  394. th, td {
  395. &:first-child {
  396. padding-left: 15px;
  397. }
  398. }
  399. td {
  400. line-height: 15px;
  401. }
  402. .author {
  403. min-width: 180px;
  404. }
  405. .message span {
  406. max-width: 500px;
  407. }
  408. .date {
  409. width: 120px;
  410. }
  411. }
  412. .sha.label {
  413. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  414. font-size: 14px;
  415. padding: 6px 10px 4px 10px;
  416. font-weight: normal;
  417. }
  418. .diff-detail-box {
  419. margin: 15px 0;
  420. line-height: 30px;
  421. ol {
  422. clear: both;
  423. padding-left: 0;
  424. margin-top: 5px;
  425. margin-bottom: 28px;
  426. li {
  427. list-style: none;
  428. padding-bottom: 4px;
  429. margin-bottom: 4px;
  430. border-bottom: 1px dashed #DDD;
  431. padding-left: 6px;
  432. }
  433. }
  434. span.status{
  435. display: inline-block;
  436. width: 12px;
  437. height: 12px;
  438. margin-right: 8px;
  439. vertical-align: middle;
  440. &.modify {
  441. background-color: #f0db88;
  442. }
  443. &.add {
  444. background-color: #b4e2b4;
  445. }
  446. &.del {
  447. background-color: #e9aeae;
  448. }
  449. &.rename {
  450. background-color: #dad8ff;
  451. }
  452. }
  453. }
  454. .diff-box {
  455. .count {
  456. margin-right: 12px;
  457. .bar {
  458. background-color: #e75316;
  459. height: 12px;
  460. width: 40px;
  461. display: inline-block;
  462. margin: 2px 4px 0 4px;
  463. vertical-align: text-top;
  464. .add {
  465. background-color: #77c64a;
  466. height: 12px;
  467. }
  468. }
  469. }
  470. .file {
  471. color: #888;
  472. }
  473. }
  474. .diff-file-box {
  475. .header {
  476. border-bottom: 1px solid #d4d4d5!important;
  477. }
  478. .file-body.file-code {
  479. .lines-num {
  480. text-align: right;
  481. color: #999;
  482. background: #fafafa;
  483. width: 1%;
  484. }
  485. .lines-num-old {
  486. border-right: 1px solid #DDD;
  487. }
  488. }
  489. .code-diff {
  490. font-size: 13px;
  491. td {
  492. padding: 0;
  493. border-top: none;
  494. }
  495. pre {
  496. margin: 0;
  497. }
  498. .lines-num {
  499. border-right: 1px solid #d4d4d5;
  500. padding: 0 5px;
  501. }
  502. tbody {
  503. tr {
  504. &.tag-code {
  505. td, pre {
  506. background-color: #E0E0E0 !important;
  507. border-color: #ADADAD!important;
  508. }
  509. // td.selected-line, td.selected-line pre {
  510. // background-color: #ffffdd !important;
  511. // }
  512. }
  513. // &.same-code {
  514. // td.selected-line, td.selected-line pre {
  515. // background-color: #ffffdd !important;
  516. // }
  517. // }
  518. &.del-code {
  519. td, pre {
  520. background-color: #ffe2dd !important;
  521. border-color: #e9aeae !important;
  522. }
  523. // td.selected-line, td.selected-line pre {
  524. // background-color: #ffffdd !important;
  525. // }
  526. }
  527. &.add-code {
  528. td, pre {
  529. background-color: #d1ffd6 !important;
  530. border-color: #b4e2b4 !important;
  531. }
  532. // td.selected-line, td.selected-line pre {
  533. // background-color: #ffffdd !important;
  534. // }
  535. }
  536. &:hover {
  537. td {
  538. background-color: #FFF8D2 !important;
  539. border-color: #F0DB88 !important;
  540. }
  541. pre {
  542. background-color: transparent !important;
  543. }
  544. }
  545. }
  546. }
  547. }
  548. }
  549. .code-view {
  550. overflow: auto;
  551. overflow-x: auto;
  552. overflow-y: hidden;
  553. }
  554. }
  555. .issue.list {
  556. list-style: none;
  557. padding-top: 15px;
  558. >.item {
  559. padding-top: 15px;
  560. padding-bottom: 10px;
  561. border-bottom: 1px dashed #AAA;
  562. .title {
  563. color: #444;
  564. font-size: 15px;
  565. font-weight: bold;
  566. margin: 0 6px;
  567. &:hover {
  568. color: #000;
  569. }
  570. }
  571. .comment {
  572. padding-right: 10px;
  573. color: #666;
  574. }
  575. .desc {
  576. padding-top: 5px;
  577. color: #999;
  578. a.milestone {
  579. padding-left: 5px;
  580. color: #999!important;
  581. &:hover {
  582. color: #000!important;
  583. }
  584. }
  585. .assignee {
  586. margin-top: -5px;
  587. margin-right: 5px;
  588. }
  589. }
  590. }
  591. }
  592. .page.buttons {
  593. padding-top: 15px;
  594. }
  595. .ui.comments {
  596. .dropzone {
  597. width: 100%;
  598. margin-bottom: 10px;
  599. border: 2px dashed #0087F7;
  600. box-shadow: none!important;
  601. .dz-error-message {
  602. top: 140px;
  603. }
  604. }
  605. }
  606. .settings {
  607. .content {
  608. margin-top: 2px;
  609. .header,
  610. .segment {
  611. box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
  612. }
  613. }
  614. .key.list {
  615. .item:not(:first-child) {
  616. border-top: 1px solid #eaeaea;
  617. }
  618. .ssh-key-state-indicator {
  619. float: left;
  620. color: gray;
  621. padding-left: 10px;
  622. padding-top: 10px;
  623. &.active {
  624. color: #6cc644;
  625. }
  626. }
  627. .meta {
  628. padding-top: 5px;
  629. }
  630. .print {
  631. color: #767676;
  632. }
  633. .activity {
  634. color: #666;
  635. }
  636. }
  637. }
  638. .ui.vertical.menu {
  639. .header.item {
  640. font-size: 1.1em;
  641. background: #f0f0f0;
  642. }
  643. }
  644. .edit-label.modal,
  645. .new-label.segment {
  646. .form {
  647. .column {
  648. padding-right: 0;
  649. }
  650. .buttons {
  651. margin-left: auto;
  652. padding-top: 15px;
  653. }
  654. .color.picker.column {
  655. width: auto;
  656. .color-picker {
  657. height: 35px;
  658. width: auto;
  659. padding-left: 30px;
  660. }
  661. }
  662. .minicolors-swatch.minicolors-sprite {
  663. top: 10px;
  664. left: 10px;
  665. width: 15px;
  666. height: 15px;
  667. }
  668. .precolors {
  669. padding-left: 0;
  670. padding-right: 0;
  671. margin: 3px 10px auto 10px;
  672. width: 120px;
  673. .color {
  674. float: left;
  675. width: 15px;
  676. height: 15px;
  677. }
  678. }
  679. }
  680. }