issue.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  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. }
  299. .comment {
  300. color: #666;
  301. position: absolute;
  302. top: 6px;
  303. right: 0;
  304. }
  305. .issue-label {
  306. a {
  307. color: #FFF;
  308. }
  309. }
  310. .desc {
  311. color: #999;
  312. a {
  313. color: #999;
  314. &:hover {
  315. color: #03a2ef;
  316. }
  317. }
  318. }
  319. }
  320. // issue list filter
  321. #issue-list-filter{
  322. .drop > a{
  323. width: 90px;
  324. padding: 0;
  325. margin-left: 12px;
  326. text-align: center;
  327. }
  328. .drop-down{
  329. z-index: 999;
  330. width: 236px;
  331. left:-158px; // 260 - 90 - 12
  332. top:22px;
  333. padding: 0 12px;
  334. h4{
  335. line-height: 40px;
  336. border-bottom: 1px solid #CCC;
  337. margin-bottom: 0;
  338. }
  339. li{
  340. line-height: 30px;
  341. border-bottom: 1px dashed #EEE;
  342. padding-left: 9px;
  343. &:hover{
  344. background-color: #fcffec;
  345. }
  346. }
  347. > ul > li > a{
  348. display: block;
  349. }
  350. }
  351. .labels{
  352. .color{
  353. margin-top: 8px;
  354. display: inline-block;
  355. width: 12px;
  356. height: 12px;
  357. background-color: red;
  358. margin-right: 9px;
  359. margin-left: 9px;
  360. }
  361. .name{
  362. vertical-align: top;
  363. display: inline-block;
  364. color: #444;
  365. }
  366. }
  367. .milestones{
  368. a{
  369. color: #444;
  370. font-weight: bold;
  371. }
  372. }
  373. }
  374. // issue list pager
  375. #issue-list-pager {
  376. margin: 18px 0 24px 0;
  377. font-size: 14px;
  378. line-height: 24px;
  379. }
  380. // labels numbers
  381. #labels-num {
  382. margin-right: 1em;
  383. }
  384. // labels list
  385. #label-list {
  386. .right {
  387. margin-left: 1em;
  388. color: #999;
  389. i {
  390. margin-right: 3px;
  391. }
  392. line-height: 30px;
  393. &:hover {
  394. color: #444444;
  395. }
  396. }
  397. .num {
  398. margin-right: 3px;
  399. }
  400. .issue-num {
  401. margin-right: 4em;
  402. }
  403. .label {
  404. &:hover {
  405. color: #FFF;
  406. }
  407. i {
  408. margin-right: 6px;
  409. }
  410. }
  411. .item {
  412. height: 30px;
  413. padding-bottom: 12px;
  414. margin-bottom: 12px;
  415. border-bottom: 1px dashed #AAA;
  416. }
  417. }
  418. // milestone items
  419. #milestone-list{
  420. padding-top: 6px;
  421. .title-text{
  422. font-size: 16px;
  423. }
  424. .desc {
  425. color: #999;
  426. line-height: 30px;
  427. }
  428. .content{
  429. width: 400px;
  430. }
  431. .item {
  432. padding-bottom: 18px;
  433. margin-bottom: 18px;
  434. border-bottom: 1px dashed #AAA;
  435. position: relative;
  436. }
  437. .action{
  438. position: absolute;
  439. top: 0;
  440. right: 0;
  441. }
  442. .status-bar {
  443. > .bar {
  444. margin: -2px 8px 0 8px;
  445. width: 360px;
  446. background-color: #DDD;
  447. height: 14px;
  448. vertical-align:middle;
  449. }
  450. .opening{
  451. background-color: #65ad4e;
  452. width: 40%;
  453. height: 14px;
  454. vertical-align: top;
  455. }
  456. }
  457. .action-bar{
  458. margin-top: 8px;
  459. a{
  460. margin-left: 12px;
  461. }
  462. }
  463. }