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