issue.less 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. @import "../ui/var";
  2. // pull request main content
  3. .pr-main {
  4. margin-right: 100px;
  5. }
  6. // right bar in pull request page
  7. .pr-sidebar {
  8. border-left: 1px solid #DDD;
  9. box-sizing: border-box;
  10. position: absolute;
  11. right: 0;
  12. top: 12px;
  13. }
  14. .pr-title {
  15. .pr-num {
  16. font-weight: normal;
  17. color: #888;
  18. }
  19. padding: 4px 0;
  20. }
  21. .pr-meta {
  22. color: #888;
  23. padding: 4px 0 8px 0;
  24. .pr-author {
  25. margin: 0 8px;
  26. color: #444;
  27. &:hover {
  28. text-decoration: underline;
  29. }
  30. }
  31. .pr-branch {
  32. margin: 0 4px;
  33. font-size: 12px;
  34. padding: 4px 6px;
  35. }
  36. }
  37. .pr-nav {
  38. border-bottom: 1px solid #DDD;
  39. margin-top: 16px;
  40. margin-bottom: 16px;
  41. .octicon {
  42. margin-right: 4px;
  43. }
  44. li > a {
  45. padding: 3px 9px !important;
  46. border: 1px solid transparent;
  47. border-bottom: none;
  48. .label {
  49. padding: 1px 5px;
  50. font-size: 12px;
  51. margin-left: 4px;
  52. }
  53. border-top-left-radius: .2em;
  54. border-top-right-radius: .2em;
  55. }
  56. li.js-tab-nav-show {
  57. > a {
  58. background-color: #FFF;
  59. border-color: #E6E6E6;
  60. }
  61. }
  62. }
  63. .diff-bar {
  64. .diff-add {
  65. color: @btnGreenColor;
  66. }
  67. .diff-delete {
  68. color: @btnRedColor;
  69. }
  70. .diff-status {
  71. width: 50px;
  72. background-color: @btnRedColor;
  73. height: 10px;
  74. margin-top: 7px;
  75. margin-left: 4px;
  76. margin-right: 4px;
  77. border-radius: .2em;
  78. }
  79. .diff-status-inner {
  80. width: 45%;
  81. background-color: @btnGreenColor;
  82. height: 10px;
  83. border-top-left-radius: .2em;
  84. border-bottom-left-radius: .2em;
  85. }
  86. }
  87. #pr-commit,
  88. #pr-file-diff,
  89. #issue-add-comment-preview {
  90. display: none;
  91. }
  92. #pr-conversation-list {
  93. padding-right: 30px;
  94. box-sizing: border-box;
  95. }
  96. .issue-comment,
  97. .issue-commit,
  98. .issue-line,
  99. .issue-merge,
  100. .issue-add-comment {
  101. margin-bottom: 24px;
  102. }
  103. .issue-comment {
  104. .author-avatar {
  105. img {
  106. margin-right: 12px;
  107. }
  108. }
  109. .panel {
  110. margin-left: 60px;
  111. margin-top: -40px;
  112. }
  113. .panel-header {
  114. font-size: 13px;
  115. }
  116. .author-name {
  117. font-weight: bold;
  118. }
  119. .date {
  120. margin-left: 4px;
  121. font-style: italic;
  122. color: #888;
  123. }
  124. .action {
  125. > * {
  126. margin-left: 4px;
  127. font-size: 12px;
  128. }
  129. i {
  130. font-size: 13px;
  131. }
  132. }
  133. }
  134. .issue-commit {
  135. line-height: 32px;
  136. i, .author-avatar img {
  137. margin-right: 16px;
  138. }
  139. .sha {
  140. margin-left: 24px;
  141. }
  142. .message {
  143. display: block;
  144. margin-left: 88px;
  145. padding-top: 4px;
  146. line-height: 24px;
  147. }
  148. }
  149. .issue-merge {
  150. .ico {
  151. width: 40px;
  152. height: 40px;
  153. text-align: center;
  154. color: #FFF;
  155. i {
  156. margin-top: 8px;
  157. font-size: 24px;
  158. }
  159. margin-right: 12px;
  160. }
  161. .panel {
  162. margin-left: 60px;
  163. margin-top: -40px;
  164. }
  165. .panel-header {
  166. font-size: 13px;
  167. }
  168. }
  169. .issue-merge-ok {
  170. .ico {
  171. background-color: #65AD4E;
  172. }
  173. .panel,
  174. .panel-content,
  175. .panel-header {
  176. border-color: #65AD4E;
  177. background-color: #FFF;
  178. }
  179. .panel-header {
  180. color: darken(#65AD4E, 10%);
  181. }
  182. }
  183. .issue-line {
  184. height: 4px;
  185. background-color: #E6E6E6;
  186. }
  187. .issue-add-comment {
  188. .panel {
  189. margin-left: 60px;
  190. margin-top: -40px;
  191. }
  192. .panel-header {
  193. font-size: 13px;
  194. padding-bottom: 0;
  195. }
  196. .add-nav {
  197. > li {
  198. > a {
  199. padding: 4px 12px;
  200. color: #444;
  201. border: 1px solid #CCC;
  202. margin-bottom: -1px;
  203. font-size: 14px;
  204. border-top-left-radius: .3em;
  205. border-top-right-radius: .3em;
  206. &:hover {
  207. background-color: #FFF;
  208. }
  209. }
  210. &.js-tab-nav-show {
  211. > a {
  212. background-color: #FFF;
  213. }
  214. }
  215. }
  216. }
  217. }
  218. textarea#issue-add-content {
  219. width: 100%;
  220. box-sizing: border-box;
  221. height: 120px;
  222. resize: vertical;
  223. }
  224. // #issue list navigator
  225. #issue-list-nav {
  226. border-bottom: 1px solid #DDD;
  227. padding-bottom: 12px;
  228. li {
  229. > a {
  230. font-size: 13px;
  231. font-weight: bold;
  232. padding: .2em .8em;
  233. }
  234. }
  235. li.current {
  236. > a {
  237. background-color: #0079bc;
  238. color: #FAFAFA;
  239. }
  240. }
  241. li.right {
  242. margin-left: 4px;
  243. }
  244. }
  245. // new issue button
  246. #issue-new,
  247. #milestone-new{
  248. > a {
  249. padding: 0 !important;
  250. button {
  251. height: 29px;
  252. }
  253. }
  254. }
  255. // issue list menu
  256. #issue-list-menu {
  257. padding: 16px 0 12px 0;
  258. border-bottom: 1px solid #BBB;
  259. margin-bottom: 12px;
  260. .mark {
  261. a {
  262. color: #AAA;
  263. &:hover {
  264. color: #444;
  265. }
  266. }
  267. &.hover {
  268. a {
  269. color: #222;
  270. font-weight: bold;
  271. }
  272. }
  273. }
  274. > .left {
  275. .mark {
  276. margin-right: 12px;
  277. }
  278. }
  279. > .right {
  280. .mark {
  281. margin-left: 12px;
  282. }
  283. }
  284. }
  285. // each issue list item
  286. #issue-list,
  287. #pull-list {
  288. .item {
  289. position: relative;
  290. padding-bottom: 12px;
  291. margin-bottom: 12px;
  292. border-bottom: 1px dashed #AAA;
  293. .title > .title-text {
  294. color: #444;
  295. font-size: 15px;
  296. margin: 0 6px;
  297. }
  298. .index-num {
  299. padding: .25em .6em;
  300. }
  301. }
  302. .comment {
  303. color: #666;
  304. position: absolute;
  305. top: 6px;
  306. right: 0;
  307. }
  308. .issue-label {
  309. padding: .25em .6em;
  310. a {
  311. color: #FFF;
  312. }
  313. }
  314. .desc {
  315. color: #999;
  316. a {
  317. color: #999;
  318. &:hover {
  319. color: #03a2ef;
  320. }
  321. }
  322. }
  323. }
  324. // issue list pager
  325. #issue-list-pager {
  326. margin: 18px 0 24px 0;
  327. font-size: 14px;
  328. line-height: 24px;
  329. }
  330. // labels numbers
  331. #labels-num {
  332. margin-right: 1em;
  333. }
  334. // labels list
  335. #label-list {
  336. .right {
  337. margin-left: 1em;
  338. color: #999;
  339. i {
  340. margin-right: 3px;
  341. }
  342. line-height: 30px;
  343. &:hover {
  344. color: #444444;
  345. }
  346. }
  347. .num {
  348. margin-right: 3px;
  349. }
  350. .issue-num {
  351. margin-right: 4em;
  352. }
  353. .label {
  354. &:hover {
  355. color: #FFF;
  356. }
  357. i {
  358. margin-right: 6px;
  359. }
  360. }
  361. .item {
  362. height: 30px;
  363. padding-bottom: 12px;
  364. margin-bottom: 12px;
  365. border-bottom: 1px dashed #AAA;
  366. }
  367. }
  368. // milestone items
  369. #milestone-list{
  370. padding-top: 6px;
  371. .title-text{
  372. font-size: 16px;
  373. }
  374. .desc {
  375. color: #999;
  376. line-height: 30px;
  377. }
  378. .content{
  379. width: 400px;
  380. }
  381. .item {
  382. padding-bottom: 18px;
  383. margin-bottom: 18px;
  384. border-bottom: 1px dashed #AAA;
  385. position: relative;
  386. }
  387. .action{
  388. position: absolute;
  389. top: 0;
  390. right: 0;
  391. }
  392. .status-bar {
  393. > .bar {
  394. margin: -2px 8px 0 8px;
  395. width: 360px;
  396. background-color: #DDD;
  397. height: 14px;
  398. vertical-align:middle;
  399. }
  400. .opening{
  401. background-color: #65ad4e;
  402. width: 40%;
  403. height: 14px;
  404. vertical-align: top;
  405. }
  406. }
  407. .action-bar{
  408. margin-top: 8px;
  409. a{
  410. margin-left: 12px;
  411. }
  412. }
  413. }