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.

658 lines
14 KiB

9 years ago
9 years ago
9 years ago
9 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>
6 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>
6 years ago
9 years ago
9 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>
6 years ago
9 years ago
  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. &.wrap {
  33. white-space: pre-wrap; /* CSS 3 */
  34. // white-space: -moz-normal; /* Mozilla, since 1999 */
  35. // white-space: -normal; /* Opera 4-6 */
  36. // white-space: -o-normal; /* Opera 7 */
  37. -ms-word-break: break-all;
  38. word-break: break-all;
  39. /* These are technically the same, but use both */
  40. overflow-wrap: break-word;
  41. word-wrap: break-word;
  42. }
  43. }
  44. .dont-break-out {
  45. /* These are technically the same, but use both */
  46. overflow-wrap: break-word;
  47. word-wrap: break-word;
  48. -ms-word-break: break-all;
  49. word-break: break-all;
  50. /* Adds a hyphen where the word breaks, if supported (No Blink) */
  51. hyphens: auto;
  52. }
  53. .full.height {
  54. padding: 0;
  55. margin: 0 0 calc(-@footer-margin - 2px) 0;
  56. min-height: 100%;
  57. }
  58. .following.bar {
  59. z-index: 900;
  60. left: 0;
  61. width: 100%;
  62. margin: 0;
  63. &.light {
  64. background-color: white;
  65. border-bottom: 1px solid #DDDDDD;
  66. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
  67. }
  68. .column .menu {
  69. margin-top: 0;
  70. }
  71. .top.menu a.item.brand {
  72. padding-left: 0;
  73. }
  74. .brand .ui.mini.image {
  75. width: 30px;
  76. }
  77. .top.menu a.item:hover,
  78. .top.menu .dropdown.item:hover,
  79. .top.menu .dropdown.item.active {
  80. background-color: transparent;
  81. }
  82. .top.menu a.item:hover {
  83. color: rgba(0,0,0,.45);
  84. }
  85. .top.menu .menu {
  86. z-index: 900;
  87. }
  88. .octicon {
  89. &.fitted {
  90. margin-right: 0;
  91. }
  92. margin-right: .75em;
  93. }
  94. .searchbox {
  95. background-color: rgb(244, 244, 244) !important;
  96. &:focus {
  97. background-color: rgb(233, 233, 233) !important;
  98. }
  99. }
  100. .text .octicon {
  101. width: 16px;
  102. text-align: center;
  103. }
  104. #navbar {
  105. width: 100vw;
  106. padding: 0 .5rem;
  107. }
  108. #navbar .brand {
  109. margin: 0;
  110. }
  111. @media only screen and (max-width: 767px) {
  112. #navbar:not(.shown) > *:not(:first-child) {
  113. display: none;
  114. }
  115. }
  116. }
  117. .right.stackable.menu {
  118. // responsive fix: this makes sure that the right menu when the page
  119. // is on mobile view will have elements stacked on top of each other.
  120. // no, stackable won't work on right menus.
  121. margin-left: auto;
  122. display: flex;
  123. align-items: inherit;
  124. flex-direction: inherit;
  125. }
  126. .ui {
  127. &.left {
  128. float: left;
  129. }
  130. &.right {
  131. float: right;
  132. }
  133. &.button, &.menu .item {
  134. user-select: auto;
  135. }
  136. &.container {
  137. &.fluid {
  138. &.padded {
  139. padding: 0 10px 0 10px;
  140. }
  141. }
  142. }
  143. &.form {
  144. .ui.button {
  145. font-weight: normal;
  146. }
  147. }
  148. &.floating.label {
  149. z-index: 10;
  150. }
  151. &.transparent.label {
  152. background-color: transparent;
  153. }
  154. &.menu,
  155. &.vertical.menu,
  156. &.segment {
  157. box-shadow: none;
  158. }
  159. /* Overide semantic selector '.ui.menu:not(.vertical) .item > .button' */
  160. /* This fixes the commit graph button on the commits page */
  161. .menu:not(.vertical) .item > .button.compact {
  162. padding: .58928571em 1.125em;
  163. }
  164. .menu:not(.vertical) .item > .button.small {
  165. font-size: .92857143rem;
  166. }
  167. &.dropdown .menu>.item>.floating.label {
  168. z-index: 11;
  169. }
  170. &.dropdown .menu .menu>.item>.floating.label {
  171. z-index: 21;
  172. }
  173. .text {
  174. &.red {
  175. color: #d95c5c !important;
  176. a {
  177. color: #d95c5c !important;
  178. &:hover {
  179. color: #E67777 !important;
  180. }
  181. }
  182. }
  183. &.blue {
  184. color: #428bca !important;
  185. a {
  186. color: #15c !important;
  187. &:hover {
  188. color: #428bca !important;
  189. }
  190. }
  191. }
  192. &.black {
  193. color: #444;
  194. &:hover {
  195. color: #000;
  196. }
  197. }
  198. &.grey {
  199. color: #767676 !important;
  200. a {
  201. color: #444 !important;
  202. &:hover {
  203. color: #000 !important;
  204. }
  205. }
  206. }
  207. &.light.grey {
  208. color: #888 !important;
  209. }
  210. &.green {
  211. color: #6cc644 !important;
  212. }
  213. &.purple {
  214. color: #6e5494 !important;
  215. }
  216. &.yellow {
  217. color: #FBBD08 !important;
  218. }
  219. &.gold {
  220. color: #a1882b !important;
  221. }
  222. &.left {
  223. text-align: left !important;
  224. }
  225. &.right {
  226. text-align: right !important;
  227. }
  228. &.small {
  229. font-size: 0.75em;
  230. }
  231. &.normal {
  232. font-weight: normal;
  233. }
  234. &.bold {
  235. font-weight: bold;
  236. }
  237. &.italic {
  238. font-style: italic;
  239. }
  240. &.truncate {
  241. overflow: hidden;
  242. text-overflow: ellipsis;
  243. white-space: nowrap;
  244. display: inline-block;
  245. }
  246. &.thin {
  247. font-weight: normal;
  248. }
  249. &.middle {
  250. vertical-align: middle;
  251. }
  252. }
  253. .message {
  254. text-align: center;
  255. }
  256. &.bottom.attached.message {
  257. font-weight: bold;
  258. text-align: left;
  259. color: black;
  260. .pull-right {
  261. color: black;
  262. }
  263. &>span, .pull-right>span{
  264. color:#21ba45;
  265. }
  266. }
  267. .header > i + .content {
  268. padding-left: 0.75rem;
  269. vertical-align: middle;
  270. }
  271. .warning {
  272. &.header {
  273. background-color: #F9EDBE !important;
  274. border-color: #F0C36D;
  275. }
  276. &.segment {
  277. border-color: #F0C36D;
  278. }
  279. }
  280. .info {
  281. &.segment {
  282. border: 1px solid #c5d5dd;
  283. &.top {
  284. background-color: #e6f1f6 !important;
  285. h3, h4 {
  286. margin-top: 0;
  287. }
  288. h3:last-child {
  289. margin-top: 4px;
  290. }
  291. > :last-child {
  292. margin-bottom: 0;
  293. }
  294. }
  295. }
  296. }
  297. .normal.header {
  298. font-weight: normal;
  299. }
  300. .avatar.image {
  301. border-radius: 3px;
  302. }
  303. .form {
  304. .fake {
  305. display: none !important;
  306. }
  307. .sub.field {
  308. margin-left: 25px;
  309. }
  310. }
  311. .sha.label {
  312. font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
  313. font-size: 13px;
  314. padding: 6px 10px 4px 10px;
  315. font-weight: normal;
  316. margin: 0 6px;
  317. }
  318. &.status.buttons {
  319. .octicon {
  320. margin-right: 4px;
  321. }
  322. }
  323. &.inline.delete-button {
  324. padding: 8px 15px;
  325. font-weight: normal;
  326. }
  327. .background {
  328. &.red {
  329. background-color: #d95c5c !important;
  330. }
  331. &.blue {
  332. background-color: #428bca !important;
  333. }
  334. &.black {
  335. background-color: #444;
  336. }
  337. &.grey {
  338. background-color: #767676 !important;
  339. }
  340. &.light.grey {
  341. background-color: #888 !important;
  342. }
  343. &.green {
  344. background-color: #6cc644 !important;
  345. }
  346. &.purple {
  347. background-color: #6e5494 !important;
  348. }
  349. &.yellow {
  350. background-color: #FBBD08 !important;
  351. }
  352. &.gold {
  353. background-color: #a1882b !important;
  354. }
  355. }
  356. .branch-tag-choice {
  357. line-height: 20px;
  358. }
  359. }
  360. .file-comment {
  361. font: 12px Consolas,"Liberation Mono",Menlo,Courier,monospace;
  362. color: rgba(0,0,0,.87);
  363. }
  364. .overflow.menu {
  365. .items {
  366. max-height: 300px;
  367. overflow-y: auto;
  368. .item {
  369. position: relative;
  370. cursor: pointer;
  371. display: block;
  372. border: none;
  373. height: auto;
  374. border-top: none;
  375. line-height: 1em;
  376. color: rgba(0,0,0,.8);
  377. padding: .71428571em 1.14285714em !important;
  378. font-size: 1rem;
  379. text-transform: none;
  380. font-weight: 400;
  381. box-shadow: none;
  382. -webkit-touch-callout: none;
  383. &.active {
  384. font-weight: 700;
  385. }
  386. &:hover {
  387. background: rgba(0,0,0,.05);
  388. color: rgba(0,0,0,.8);
  389. z-index: 13;
  390. }
  391. }
  392. }
  393. }
  394. .user-menu > .item {
  395. width: 100%;
  396. border-radius: 0 !important;
  397. }
  398. .scrolling.menu {
  399. .item.selected {
  400. font-weight: 700 !important;
  401. }
  402. }
  403. footer {
  404. position: absolute;
  405. background-color: white;
  406. border-top: 1px solid #d6d6d6;
  407. clear: both;
  408. width: 100%;
  409. color: #888888;
  410. .container {
  411. width: 100vw !important;
  412. padding: 0 .5rem;
  413. .fa {
  414. width: 16px;
  415. text-align: center;
  416. color: #428bca;
  417. }
  418. .links >* {
  419. border-left: 1px solid #d6d6d6;
  420. padding-left: 8px;
  421. margin-left: 5px;
  422. &:first-child {
  423. border-left: none;
  424. }
  425. }
  426. }
  427. .ui.language .menu {
  428. max-height: 500px;
  429. overflow-y: auto;
  430. margin-bottom: 7px;
  431. }
  432. .ui {
  433. &.left, &.right {
  434. line-height: 40px;
  435. }
  436. }
  437. }
  438. .hide {
  439. display: none;
  440. &.show-outdated {
  441. display: none !important;
  442. }
  443. &.hide-outdated {
  444. display: none !important;
  445. }
  446. }
  447. .center {
  448. text-align: center;
  449. }
  450. .generate-img(16);
  451. .generate-img(@n, @i: 1) when (@i =< @n) {
  452. .img-@{i} {
  453. width: (2px * @i) !important;
  454. height: (2px * @i) !important;
  455. }
  456. .generate-img(@n, (@i + 1));
  457. }
  458. // Conditional display
  459. @media only screen and (min-width: 768px) {
  460. .mobile-only, .ui.button.mobile-only {
  461. display: none;
  462. }
  463. // has the same behaviour of sr-only, hiding the content for
  464. // non-screenreaders, but is shown on mobile devices.
  465. .sr-mobile-only {
  466. .sr-only();
  467. }
  468. }
  469. @media only screen and (max-width: 767px) {
  470. .not-mobile {
  471. display: none;
  472. }
  473. }
  474. // Accessibility
  475. .sr-only {
  476. position: absolute;
  477. width: 1px;
  478. height: 1px;
  479. padding: 0;
  480. margin: -1px;
  481. overflow: hidden;
  482. clip: rect(0, 0, 0, 0);
  483. border: 0;
  484. }
  485. .sr-only-focusable:active,
  486. .sr-only-focusable:focus {
  487. position: static;
  488. width: auto;
  489. height: auto;
  490. margin: 0;
  491. overflow: visible;
  492. clip: auto;
  493. }
  494. @media only screen and (max-width: 991px) and (min-width: 768px) {
  495. .ui.container {
  496. width: 95%;
  497. }
  498. }
  499. /* Overrides some styles of the Highlight.js plugin */
  500. .hljs {
  501. background: inherit !important;
  502. padding: 0 !important;
  503. }
  504. .ui.menu.new-menu {
  505. justify-content: center !important;
  506. padding-top: 15px !important;
  507. margin-top: -15px !important;
  508. margin-bottom: 15px !important;
  509. background-color: #FAFAFA !important;
  510. border-width: 1px !important;
  511. }
  512. @media only screen and (max-width: 1200px) {
  513. .ui.menu.new-menu {
  514. overflow-x: auto !important;
  515. justify-content: left !important;
  516. padding-bottom: 5px;
  517. }
  518. .ui.menu.new-menu::-webkit-scrollbar {
  519. height: 8px;
  520. display: none;
  521. }
  522. .ui.menu.new-menu:hover::-webkit-scrollbar {
  523. display: block;
  524. }
  525. .ui.menu.new-menu::-webkit-scrollbar-track {
  526. background: rgba(0,0,0,0.01);
  527. }
  528. .ui.menu.new-menu::-webkit-scrollbar-thumb {
  529. background:rgba(0,0,0,0.2);
  530. }
  531. .ui.menu.new-menu:after {
  532. position: absolute;
  533. margin-top: -15px;
  534. display: block;
  535. background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  536. content: ' ';
  537. right: 0;
  538. height: 53px;
  539. z-index: 1000;
  540. width: 60px;
  541. clear: none;
  542. visibility: visible;
  543. }
  544. .ui.menu.new-menu a.item:last-child {
  545. padding-right: 30px !important;
  546. }
  547. }
  548. [v-cloak] {
  549. display: none !important;
  550. }
  551. .repos-search {
  552. padding-bottom: 0 !important;
  553. }
  554. .repos-filter {
  555. margin-top: 0 !important;
  556. border-bottom-width: 0 !important;
  557. margin-bottom: 2px !important;
  558. }
  559. #user-heatmap {
  560. width: 107%; // Fixes newest contributions not showing
  561. text-align: center;
  562. svg:not(:root) {
  563. overflow: inherit;
  564. padding: 0 !important;
  565. }
  566. @media only screen and (max-width: 1200px) {
  567. & {
  568. display: none;
  569. }
  570. }
  571. }
  572. .heatmap-color-0 {
  573. background-color: #f4f4f4;
  574. }
  575. .heatmap-color-1 {
  576. background-color: #d7e5db;
  577. }
  578. .heatmap-color-2 {
  579. background-color: #adc7ab;
  580. }
  581. .heatmap-color-3 {
  582. background-color: #83a87b;
  583. }
  584. .heatmap-color-4 {
  585. background-color: #598a4b;
  586. }
  587. .heatmap-color-5 {
  588. background-color: #2f6b1b;
  589. }
  590. .archived-icon{
  591. color: lighten(#000, 70%) !important;
  592. }
  593. .archived-icon{
  594. color: lighten(#000, 70%) !important;
  595. }