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.

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