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

_base.less 14 kB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
10 years ago
10 years ago
10 years ago
10 years ago
Pull request review/approval and comment on code (#3748) * Initial ui components for pull request review * Add Review Add IssueComment types Signed-off-by: Jonas Franz <info@jonasfranz.software> (cherry picked from commit 2b4daab) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Replace ReviewComment with Content Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add load functions Add ReviewID to findComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add create review comment implementation Add migration for review Other small changes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Simplified create and find functions for review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved "Pending" to first position Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add GetCurrentReview to simplify fetching current review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Preview for listing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Move new comment form to its own file Signed-off-by: Jonas Franz <info@jonasfranz.software> * Implement Review form Show Review comments on comment stream Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for single comments Showing buttons in context Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add pending tag to pending review comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add unit tests for Review Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fetch all review ids at once Add unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved comment rendering in "Files" view by adding Comments to DiffLine Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for invalidating comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Switched back to code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Moved review migration from v64 to v65 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Rebuild css Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improve translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests by updating fixtures and updating outdated test Signed-off-by: Jonas Franz <info@jonasfranz.software> * Comments will be shown at the right place now Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for deleting CodeComments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems caused by files in subdirectories Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for showing code comments of reviews in conversation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for "Show/Hide outdated" Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update code.gitea.io/git Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add support for new webhooks Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update comparison Signed-off-by: Jonas Franz <info@jonasfranz.software> * Resolve conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Minor UI improvements * update code.gitea.io/git * Fix ui bug reported by @lunny causing wrong position of add button Add functionality to "Cancel" button Add scale effects to add button Hide "Cancel" button for existing comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Prepare solving conflicts Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show add button only if no comments already exist for the line Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing vendor files Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if reviewer is nil Signed-off-by: Jonas Franz <info@jonasfranz.software> * Show forms only to users who are logged in Signed-off-by: Jonas Franz <info@jonasfranz.software> * Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Save patch in comment Render patch for code comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add link to comment in code Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add reply form to comment list Show forms only to signed in users Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add 'Reply' as translatable Add CODE_COMMENT_LINES setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix problems introduced by checking for singed in user Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add v70 Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update generated stylesheet Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix preview Beginn with new review comment patch system Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add new algo to generate diff for line range Remove old algo used for cutting big diffs (it was very buggy) * Add documentation and example for CutDiffAroundLine * Fix example of CutDiffAroundLine * Fix some comment UI rendering bugs * Add code comment edit mode * Send notifications / actions to users until review gets published Fix diff generation bug Fix wrong hashtag * Fix vet errors * Send notifications also for single comments * Fix some notification bugs, fix link * Fix: add comment icon is only shown on code lines * Add lint comment * Add unit tests for git diff * Add more error messages * Regenerated css Signed-off-by: Jonas Franz <info@jonasfranz.software> * fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Regenerated CSS with latest less version Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix test by updating comment type to new ID Signed-off-by: Jonas Franz <info@jonasfranz.software> * Introducing CodeComments as type for map[string]map[int64][]*Comment Other minor code improvements Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix data-tab issues Signed-off-by: Jonas Franz <info@jonasfranz.software> * Remove unnecessary change Signed-off-by: Jonas Franz <info@jonasfranz.software> * refactored checkForInvalidation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Append comments instead of setting Signed-off-by: Jonas Franz <info@jonasfranz.software> * Use HeadRepo instead of BaseRepo Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update migration Signed-off-by: Jonas Franz <info@jonasfranz.de> * Regenerated CSS Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add copyright Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update index.css Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. @footer-margin: 40px;
  2. body {
  3. font-family: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
  4. background-color: #fff;
  5. overflow-y: scroll;
  6. -webkit-font-smoothing: antialiased;
  7. }
  8. img {
  9. border-radius: 3px;
  10. }
  11. table {
  12. border-collapse: collapse;
  13. }
  14. a {
  15. cursor: pointer;
  16. }
  17. .rounded {
  18. border-radius: .28571429rem !important;
  19. }
  20. pre, code {
  21. font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
  22. &.raw {
  23. padding: 7px 12px;
  24. margin: 10px 0;
  25. background-color: #f8f8f8;
  26. border: 1px solid #ddd;
  27. border-radius: 3px;
  28. font-size: 13px;
  29. line-height: 1.5;
  30. overflow: auto;
  31. }
  32. }
  33. /* Wrap long lines of code. This will also apply to Markdown code boxes. */
  34. pre > code {
  35. white-space: pre-wrap !important;
  36. word-break: break-all !important;
  37. overflow-wrap: break-word !important;
  38. }
  39. .dont-break-out {
  40. overflow-wrap: break-word;
  41. word-break: break-all;
  42. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  43. -ms-hyphens: auto;
  44. -moz-hyphens: auto;
  45. -webkit-hyphens: auto;
  46. hyphens: auto;
  47. }
  48. .full.height {
  49. padding: 0;
  50. margin: 0 0 calc(-@footer-margin - 2px) 0;
  51. min-height: 100%;
  52. }
  53. .following.bar {
  54. z-index: 900;
  55. left: 0;
  56. width: 100%;
  57. margin: 0;
  58. &.light {
  59. background-color: white;
  60. border-bottom: 1px solid #DDDDDD;
  61. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  62. }
  63. .column .menu {
  64. margin-top: 0;
  65. }
  66. .top.menu a.item.brand {
  67. padding-left: 0;
  68. }
  69. .brand .ui.mini.image {
  70. width: 30px;
  71. }
  72. .top.menu a.item:hover,
  73. .top.menu .dropdown.item:hover,
  74. .top.menu .dropdown.item.active {
  75. background-color: transparent;
  76. }
  77. .top.menu a.item:hover {
  78. color: rgba(0,0,0,.45);
  79. }
  80. .top.menu .menu {
  81. z-index: 900;
  82. }
  83. .octicon {
  84. &.fitted {
  85. margin-right: 0;
  86. }
  87. margin-right: .75em;
  88. }
  89. .searchbox {
  90. background-color: rgb(244, 244, 244) !important;
  91. &:focus {
  92. background-color: rgb(233, 233, 233) !important;
  93. }
  94. }
  95. .text .octicon {
  96. width: 16px;
  97. text-align: center;
  98. }
  99. #navbar {
  100. width: 100vw;
  101. padding: 0 .5rem;
  102. }
  103. #navbar .brand {
  104. margin: 0;
  105. }
  106. @media only screen and (max-width: 767px) {
  107. #navbar:not(.shown) > *:not(:first-child) {
  108. display: none;
  109. }
  110. }
  111. }
  112. .right.stackable.menu {
  113. // responsive fix: this makes sure that the right menu when the page
  114. // is on mobile view will have elements stacked on top of each other.
  115. // no, stackable won't work on right menus.
  116. margin-left: auto;
  117. display: flex;
  118. display: -ms-flexbox;
  119. -ms-flex-align: inherit;
  120. align-items: inherit;
  121. -ms-flex-direction: inherit;
  122. flex-direction: inherit;
  123. }
  124. .ui {
  125. &.left {
  126. float: left;
  127. }
  128. &.right {
  129. float: right;
  130. }
  131. &.button, &.menu .item {
  132. -moz-user-select: auto;
  133. -ms-user-select: auto;
  134. -webkit-user-select: auto;
  135. user-select: auto;
  136. }
  137. &.container {
  138. &.fluid {
  139. &.padded {
  140. padding: 0 10px 0 10px;
  141. }
  142. }
  143. }
  144. &.form {
  145. .ui.button {
  146. font-weight: normal;
  147. }
  148. }
  149. &.floating.label {
  150. z-index: 10;
  151. }
  152. &.transparent.label {
  153. background-color: transparent;
  154. }
  155. &.menu,
  156. &.vertical.menu,
  157. &.segment {
  158. box-shadow: none;
  159. }
  160. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  161. /* This fixes the commit graph button on the commits page */
  162. .menu:not(.vertical) .item > .button.compact {
  163. padding: .58928571em 1.125em;
  164. }
  165. .menu:not(.vertical) .item > .button.small {
  166. font-size: .92857143rem;
  167. }
  168. &.dropdown .menu>.item>.floating.label {
  169. z-index: 11;
  170. }
  171. &.dropdown .menu .menu>.item>.floating.label {
  172. z-index: 21;
  173. }
  174. .text {
  175. &.red {
  176. color: #d95c5c !important;
  177. a {
  178. color: #d95c5c !important;
  179. &:hover {
  180. color: #E67777 !important;
  181. }
  182. }
  183. }
  184. &.blue {
  185. color: #428bca !important;
  186. a {
  187. color: #15c !important;
  188. &:hover {
  189. color: #428bca !important;
  190. }
  191. }
  192. }
  193. &.black {
  194. color: #444;
  195. &:hover {
  196. color: #000;
  197. }
  198. }
  199. &.grey {
  200. color: #767676 !important;
  201. a {
  202. color: #444 !important;
  203. &:hover {
  204. color: #000 !important;
  205. }
  206. }
  207. }
  208. &.light.grey {
  209. color: #888 !important;
  210. }
  211. &.green {
  212. color: #6cc644 !important;
  213. }
  214. &.purple {
  215. color: #6e5494 !important;
  216. }
  217. &.yellow {
  218. color: #FBBD08 !important;
  219. }
  220. &.gold {
  221. color: #a1882b !important;
  222. }
  223. &.left {
  224. text-align: left !important;
  225. }
  226. &.right {
  227. text-align: right !important;
  228. }
  229. &.small {
  230. font-size: 0.75em;
  231. }
  232. &.normal {
  233. font-weight: normal;
  234. }
  235. &.bold {
  236. font-weight: bold;
  237. }
  238. &.italic {
  239. font-style: italic;
  240. }
  241. &.truncate {
  242. overflow: hidden;
  243. text-overflow: ellipsis;
  244. white-space: nowrap;
  245. display: inline-block;
  246. }
  247. &.thin {
  248. font-weight: normal;
  249. }
  250. &.middle {
  251. vertical-align: middle;
  252. }
  253. }
  254. .message {
  255. text-align: center;
  256. }
  257. &.bottom.attached.message {
  258. font-weight: bold;
  259. text-align: left;
  260. color: black;
  261. .pull-right {
  262. color: black;
  263. }
  264. &>span, .pull-right>span{
  265. color:#21ba45;
  266. }
  267. }
  268. .header > i + .content {
  269. padding-left: 0.75rem;
  270. vertical-align: middle;
  271. }
  272. .warning {
  273. &.header {
  274. background-color: #F9EDBE !important;
  275. border-color: #F0C36D;
  276. }
  277. &.segment {
  278. border-color: #F0C36D;
  279. }
  280. }
  281. .info {
  282. &.segment {
  283. border: 1px solid #c5d5dd;
  284. &.top {
  285. background-color: #e6f1f6 !important;
  286. h3, h4 {
  287. margin-top: 0;
  288. }
  289. h3:last-child {
  290. margin-top: 4px;
  291. }
  292. > :last-child {
  293. margin-bottom: 0;
  294. }
  295. }
  296. }
  297. }
  298. .normal.header {
  299. font-weight: normal;
  300. }
  301. .avatar.image {
  302. border-radius: 3px;
  303. }
  304. .form {
  305. .fake {
  306. display: none !important;
  307. }
  308. .sub.field {
  309. margin-left: 25px;
  310. }
  311. }
  312. .sha.label {
  313. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  314. font-size: 13px;
  315. padding: 6px 10px 4px 10px;
  316. font-weight: normal;
  317. margin: 0 6px;
  318. }
  319. &.status.buttons {
  320. .octicon {
  321. margin-right: 4px;
  322. }
  323. }
  324. &.inline.delete-button {
  325. padding: 8px 15px;
  326. font-weight: normal;
  327. }
  328. .background {
  329. &.red {
  330. background-color: #d95c5c !important;
  331. }
  332. &.blue {
  333. background-color: #428bca !important;
  334. }
  335. &.black {
  336. background-color: #444;
  337. }
  338. &.grey {
  339. background-color: #767676 !important;
  340. }
  341. &.light.grey {
  342. background-color: #888 !important;
  343. }
  344. &.green {
  345. background-color: #6cc644 !important;
  346. }
  347. &.purple {
  348. background-color: #6e5494 !important;
  349. }
  350. &.yellow {
  351. background-color: #FBBD08 !important;
  352. }
  353. &.gold {
  354. background-color: #a1882b !important;
  355. }
  356. }
  357. .branch-tag-choice {
  358. line-height: 20px;
  359. }
  360. }
  361. .file-comment {
  362. font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace;
  363. color: rgba(0,0,0,.87);
  364. }
  365. .overflow.menu {
  366. .items {
  367. max-height: 300px;
  368. overflow-y: auto;
  369. .item {
  370. position: relative;
  371. cursor: pointer;
  372. display: block;
  373. border: none;
  374. height: auto;
  375. border-top: none;
  376. line-height: 1em;
  377. color: rgba(0,0,0,.8);
  378. padding: .71428571em 1.14285714em !important;
  379. font-size: 1rem;
  380. text-transform: none;
  381. font-weight: 400;
  382. box-shadow: none;
  383. -webkit-touch-callout: none;
  384. &.active {
  385. font-weight: 700;
  386. }
  387. &:hover {
  388. background: rgba(0,0,0,.05);
  389. color: rgba(0,0,0,.8);
  390. z-index: 13;
  391. }
  392. }
  393. }
  394. }
  395. .user-menu > .item {
  396. width: 100%;
  397. border-radius: 0 !important;
  398. }
  399. .scrolling.menu {
  400. .item.selected {
  401. font-weight: 700 !important;
  402. }
  403. }
  404. footer {
  405. position: absolute;
  406. background-color: white;
  407. border-top: 1px solid #d6d6d6;
  408. clear: both;
  409. width: 100%;
  410. color: #888888;
  411. .container {
  412. width: 100vw !important;
  413. padding: 0 .5rem;
  414. .fa {
  415. width: 16px;
  416. text-align: center;
  417. color: #428bca;
  418. }
  419. .links >* {
  420. border-left: 1px solid #d6d6d6;
  421. padding-left: 8px;
  422. margin-left: 5px;
  423. &:first-child {
  424. border-left: none;
  425. }
  426. }
  427. }
  428. .ui.language .menu {
  429. max-height: 500px;
  430. overflow-y: auto;
  431. margin-bottom: 7px;
  432. }
  433. .ui {
  434. &.left, &.right {
  435. line-height: 40px;
  436. }
  437. }
  438. }
  439. .hide {
  440. display: none;
  441. &.show-outdated {
  442. display: none !important;
  443. }
  444. &.hide-outdated {
  445. display: none !important;
  446. }
  447. }
  448. .center {
  449. text-align: center;
  450. }
  451. .generate-img(16);
  452. .generate-img(@n, @i: 1) when (@i =< @n) {
  453. .img-@{i} {
  454. width: (2px * @i) !important;
  455. height: (2px * @i) !important;
  456. }
  457. .generate-img(@n, (@i + 1));
  458. }
  459. // Conditional display
  460. @media only screen and (min-width: 768px) {
  461. .mobile-only, .ui.button.mobile-only {
  462. display: none;
  463. }
  464. // has the same behaviour of sr-only, hiding the content for
  465. // non-screenreaders, but is shown on mobile devices.
  466. .sr-mobile-only {
  467. .sr-only();
  468. }
  469. }
  470. @media only screen and (max-width: 767px) {
  471. .not-mobile {
  472. display: none;
  473. }
  474. }
  475. // Accessibility
  476. .sr-only {
  477. position: absolute;
  478. width: 1px;
  479. height: 1px;
  480. padding: 0;
  481. margin: -1px;
  482. overflow: hidden;
  483. clip: rect(0, 0, 0, 0);
  484. border: 0;
  485. }
  486. .sr-only-focusable:active,
  487. .sr-only-focusable:focus {
  488. position: static;
  489. width: auto;
  490. height: auto;
  491. margin: 0;
  492. overflow: visible;
  493. clip: auto;
  494. }
  495. @media only screen and (max-width: 991px) and (min-width: 768px) {
  496. .ui.container {
  497. width: 95%;
  498. }
  499. }
  500. /* Overrides some styles of the Highlight.js plugin */
  501. .hljs {
  502. background: inherit !important;
  503. padding: 0 !important;
  504. }
  505. .ui.menu.new-menu {
  506. justify-content: center !important;
  507. padding-top: 15px !important;
  508. margin-top: -15px !important;
  509. margin-bottom: 15px !important;
  510. background-color: #FAFAFA !important;
  511. border-width: 1px !important;
  512. }
  513. @media only screen and (max-width: 1200px) {
  514. .ui.menu.new-menu {
  515. overflow-x: auto !important;
  516. justify-content: left !important;
  517. padding-bottom: 5px;
  518. }
  519. .ui.menu.new-menu::-webkit-scrollbar {
  520. height: 8px;
  521. display: none;
  522. }
  523. .ui.menu.new-menu:hover::-webkit-scrollbar {
  524. display: block;
  525. }
  526. .ui.menu.new-menu::-webkit-scrollbar-track {
  527. background: rgba(0,0,0,0.01);
  528. }
  529. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  530. background:rgba(0,0,0,0.2);
  531. }
  532. .ui.menu.new-menu:after {
  533. position: absolute;
  534. margin-top: -15px;
  535. display: block;
  536. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  537. content: ' ';
  538. right: 0;
  539. height: 53px;
  540. z-index: 1000;
  541. width: 60px;
  542. clear: none;
  543. visibility: visible;
  544. }
  545. .ui.menu.new-menu a.item:last-child {
  546. padding-right: 30px !important;
  547. }
  548. }
  549. [v-cloak] {
  550. display: none !important;
  551. }
  552. .repos-search {
  553. padding-bottom: 0 !important;
  554. }
  555. .repos-filter {
  556. margin-top: 0 !important;
  557. border-bottom-width: 0 !important;
  558. margin-bottom: 2px !important;
  559. }
  560. #user-heatmap {
  561. width: 107%; // Fixes newest contributions not showing
  562. text-align: center;
  563. svg:not(:root) {
  564. overflow: inherit;
  565. padding: 0 !important;
  566. }
  567. @media only screen and (max-width: 1200px) {
  568. & {
  569. display: none;
  570. }
  571. }
  572. }
  573. .heatmap-color-0 {
  574. background-color: #f4f4f4;
  575. }
  576. .heatmap-color-1 {
  577. background-color: #d7e5db;
  578. }
  579. .heatmap-color-2 {
  580. background-color: #adc7ab;
  581. }
  582. .heatmap-color-3 {
  583. background-color: #83a87b;
  584. }
  585. .heatmap-color-4 {
  586. background-color: #598a4b;
  587. }
  588. .heatmap-color-5 {
  589. background-color: #2f6b1b;
  590. }
  591. .archived-icon{
  592. color: lighten(#000, 70%) !important;
  593. }
  594. .archived-icon{
  595. color: lighten(#000, 70%) !important;
  596. }