issue.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. @import "../ui/var";
  2. .repo-issue-wrapper {
  3. padding: 18px 0;
  4. position: relative;
  5. }
  6. // pull request main content
  7. .pr-main {
  8. margin-right: 100px;
  9. }
  10. // right bar in pull request page
  11. .pr-sidebar {
  12. border-left: 1px solid #DDD;
  13. box-sizing: border-box;
  14. position: absolute;
  15. right:0;
  16. top:12px;
  17. }
  18. .pr-title {
  19. .pr-num {
  20. font-weight: normal;
  21. color: #888;
  22. }
  23. padding: 4px 0;
  24. }
  25. .pr-meta {
  26. color: #888;
  27. padding: 4px 0 8px 0;
  28. .pr-author {
  29. margin: 0 8px;
  30. color: #444;
  31. &:hover {
  32. text-decoration: underline;
  33. }
  34. }
  35. .pr-branch {
  36. margin: 0 4px;
  37. font-size: 12px;
  38. padding: 4px 6px;
  39. }
  40. }
  41. .pr-nav {
  42. border-bottom: 1px solid #DDD;
  43. margin-top: 16px;
  44. margin-bottom: 16px;
  45. .octicon {
  46. margin-right: 4px;
  47. }
  48. li > a {
  49. padding: 3px 9px !important;
  50. border: 1px solid transparent;
  51. border-bottom: none;
  52. .label {
  53. padding: 1px 5px;
  54. font-size: 12px;
  55. margin-left: 4px;
  56. }
  57. border-top-left-radius: .2em;
  58. border-top-right-radius: .2em;
  59. }
  60. li.js-tab-nav-show {
  61. > a {
  62. background-color: #FFF;
  63. border-color: #E6E6E6;
  64. }
  65. }
  66. }
  67. .diff-bar {
  68. .diff-add {
  69. color: @btnGreenColor;
  70. }
  71. .diff-delete {
  72. color: @btnRedColor;
  73. }
  74. .diff-status {
  75. width: 50px;
  76. background-color: @btnRedColor;
  77. height: 10px;
  78. margin-top: 7px;
  79. margin-left: 4px;
  80. margin-right: 4px;
  81. border-radius: .2em;
  82. }
  83. .diff-status-inner {
  84. width: 45%;
  85. background-color: @btnGreenColor;
  86. height: 10px;
  87. border-top-left-radius: .2em;
  88. border-bottom-left-radius: .2em;
  89. }
  90. }
  91. #pr-commit,
  92. #pr-file-diff,
  93. #issue-add-comment-preview {
  94. display: none;
  95. }
  96. #pr-conversation-list {
  97. padding-right: 30px;
  98. box-sizing: border-box;
  99. }
  100. .issue-comment,
  101. .issue-commit,
  102. .issue-line,
  103. .issue-merge,
  104. .issue-add-comment {
  105. margin-bottom: 24px;
  106. }
  107. .issue-comment {
  108. .author-avatar {
  109. img {
  110. margin-right: 12px;
  111. }
  112. }
  113. .panel {
  114. margin-left: 60px;
  115. margin-top: -40px;
  116. }
  117. .panel-header {
  118. font-size: 13px;
  119. }
  120. .author-name {
  121. font-weight: bold;
  122. }
  123. .date {
  124. margin-left: 4px;
  125. font-style: italic;
  126. color: #888;
  127. }
  128. .action {
  129. > * {
  130. margin-left: 4px;
  131. font-size: 12px;
  132. }
  133. i {
  134. font-size: 13px;
  135. }
  136. }
  137. }
  138. .issue-commit {
  139. line-height: 32px;
  140. i, .author-avatar img {
  141. margin-right: 16px;
  142. }
  143. .sha {
  144. margin-left: 24px;
  145. }
  146. .message {
  147. display: block;
  148. margin-left: 88px;
  149. padding-top: 4px;
  150. line-height: 24px;
  151. }
  152. }
  153. .issue-merge {
  154. .ico {
  155. width: 40px;
  156. height: 40px;
  157. text-align: center;
  158. color: #FFF;
  159. i {
  160. margin-top: 8px;
  161. font-size: 24px;
  162. }
  163. margin-right: 12px;
  164. }
  165. .panel {
  166. margin-left: 60px;
  167. margin-top: -40px;
  168. }
  169. .panel-header {
  170. font-size: 13px;
  171. }
  172. }
  173. .issue-merge-ok {
  174. .ico {
  175. background-color: #65AD4E;
  176. }
  177. .panel,
  178. .panel-content,
  179. .panel-header {
  180. border-color: #65AD4E;
  181. background-color: #FFF;
  182. }
  183. .panel-header {
  184. color: darken(#65AD4E, 10%);
  185. }
  186. }
  187. .issue-line {
  188. height: 4px;
  189. background-color: #E6E6E6;
  190. }
  191. .issue-add-comment {
  192. .panel {
  193. margin-left: 60px;
  194. margin-top: -40px;
  195. }
  196. .panel-header {
  197. font-size: 13px;
  198. padding-bottom: 0;
  199. }
  200. .add-nav {
  201. > li {
  202. > a {
  203. padding: 4px 12px;
  204. color: #444;
  205. border: 1px solid #CCC;
  206. margin-bottom: -1px;
  207. font-size: 14px;
  208. border-top-left-radius: .3em;
  209. border-top-right-radius: .3em;
  210. &:hover {
  211. background-color: #FFF;
  212. }
  213. }
  214. &.js-tab-nav-show {
  215. > a {
  216. background-color: #FFF;
  217. }
  218. }
  219. }
  220. }
  221. }
  222. textarea#issue-add-content {
  223. width: 100%;
  224. box-sizing: border-box;
  225. height: 120px;
  226. resize: vertical;
  227. }