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.

540 lines
8.5 KiB

  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. #label-new,
  248. #milestone-new{
  249. > a {
  250. padding: 0 !important;
  251. button {
  252. height: 29px;
  253. }
  254. }
  255. }
  256. // issue list menu
  257. #issue-list-menu {
  258. padding: 16px 0 12px 0;
  259. border-bottom: 1px solid #BBB;
  260. margin-bottom: 12px;
  261. .mark {
  262. a {
  263. color: #AAA;
  264. &:hover {
  265. color: #444;
  266. }
  267. }
  268. &.hover {
  269. a {
  270. color: #222;
  271. font-weight: bold;
  272. }
  273. }
  274. }
  275. > .left {
  276. .mark {
  277. margin-right: 12px;
  278. }
  279. }
  280. > .right {
  281. .mark {
  282. margin-left: 12px;
  283. }
  284. }
  285. }
  286. // each issue list item
  287. #issue-list,
  288. #pull-list {
  289. .item {
  290. position: relative;
  291. padding-bottom: 12px;
  292. margin-bottom: 12px;
  293. border-bottom: 1px dashed #AAA;
  294. .title > .title-text {
  295. color: #444;
  296. font-size: 15px;
  297. margin: 0 6px;
  298. }
  299. }
  300. .comment {
  301. color: #666;
  302. position: absolute;
  303. top: 6px;
  304. right: 0;
  305. }
  306. .issue-label {
  307. a {
  308. color: #FFF;
  309. }
  310. }
  311. .desc {
  312. color: #999;
  313. a {
  314. color: #999;
  315. &:hover {
  316. color: #03a2ef;
  317. }
  318. }
  319. }
  320. }
  321. // issue list filter
  322. #issue-list-filter{
  323. .drop > a{
  324. width: 90px;
  325. padding: 0;
  326. margin-left: 12px;
  327. text-align: center;
  328. }
  329. .drop-down{
  330. z-index: 999;
  331. width: 236px;
  332. left:-158px; // 260 - 90 - 12
  333. top:22px;
  334. padding: 0 12px;
  335. h4{
  336. line-height: 40px;
  337. border-bottom: 1px solid #CCC;
  338. margin-bottom: 0;
  339. }
  340. li{
  341. line-height: 30px;
  342. border-bottom: 1px dashed #EEE;
  343. padding-left: 9px;
  344. &:hover{
  345. background-color: #fcffec;
  346. }
  347. }
  348. > ul > li > a{
  349. display: block;
  350. }
  351. }
  352. .labels{
  353. .color{
  354. margin-top: 8px;
  355. display: inline-block;
  356. width: 12px;
  357. height: 12px;
  358. background-color: red;
  359. margin-right: 9px;
  360. margin-left: 9px;
  361. }
  362. .name{
  363. vertical-align: top;
  364. display: inline-block;
  365. color: #444;
  366. }
  367. }
  368. .milestones{
  369. a{
  370. color: #444;
  371. font-weight: bold;
  372. }
  373. }
  374. }
  375. // issue list pager
  376. #issue-list-pager {
  377. margin: 18px 0 24px 0;
  378. font-size: 14px;
  379. line-height: 24px;
  380. }
  381. // labels numbers
  382. #labels-num {
  383. margin-right: 1em;
  384. }
  385. // labels list
  386. #label-list {
  387. a.right {
  388. margin-left: 1em;
  389. color: #999;
  390. i {
  391. margin-right: 3px;
  392. }
  393. line-height: 30px;
  394. &:hover {
  395. color: #444444;
  396. }
  397. }
  398. .num {
  399. margin-right: 3px;
  400. }
  401. .issue-num {
  402. margin-right: 4em;
  403. }
  404. .label {
  405. &:hover {
  406. color: #FFF;
  407. }
  408. i {
  409. margin-right: 6px;
  410. }
  411. }
  412. .item {
  413. height: 30px;
  414. padding-bottom: 12px;
  415. margin-bottom: 12px;
  416. border-bottom: 1px dashed #AAA;
  417. }
  418. }
  419. // label add form, label edit form
  420. #label-add-form,
  421. #label-edit-form,
  422. #label-delete-form{
  423. .ipt{
  424. font-size: 14px;
  425. }
  426. .ipt[name=name]{
  427. width: 300px;
  428. }
  429. .btn{
  430. height: 33px;
  431. font-size: 14px;
  432. margin-left: 12px;
  433. }
  434. }
  435. #label-add-form{
  436. padding: 18px 0;
  437. border-bottom: 1px solid #DDD;
  438. }
  439. #label-delete-form{
  440. span{
  441. line-height: 33px;
  442. }
  443. }
  444. // label color drop
  445. .label-color-drop{
  446. .ipt{
  447. width:100px;
  448. }
  449. .drop-down{
  450. width:128px !important;
  451. top:22px !important;
  452. left:50px !important;
  453. padding: 12px;
  454. line-height: 16px;
  455. a.color{
  456. width: 16px;
  457. height: 16px;
  458. display: inline-block;
  459. }
  460. }
  461. label{
  462. width: 24px;
  463. height: 24px;
  464. display: inline-block;
  465. margin: 0 1em;
  466. vertical-align: middle;
  467. }
  468. }
  469. // milestone items
  470. #milestone-list{
  471. padding-top: 6px;
  472. .title-text{
  473. font-size: 16px;
  474. }
  475. .desc {
  476. color: #999;
  477. line-height: 30px;
  478. }
  479. .content{
  480. width: 400px;
  481. }
  482. .item {
  483. padding-bottom: 18px;
  484. margin-bottom: 18px;
  485. border-bottom: 1px dashed #AAA;
  486. position: relative;
  487. }
  488. .action{
  489. position: absolute;
  490. top: 0;
  491. right: 0;
  492. }
  493. .status-bar {
  494. > .bar {
  495. margin: -2px 8px 0 8px;
  496. width: 360px;
  497. background-color: #DDD;
  498. height: 14px;
  499. vertical-align:middle;
  500. }
  501. .opening{
  502. background-color: #65ad4e;
  503. width: 40%;
  504. height: 14px;
  505. vertical-align: top;
  506. }
  507. }
  508. .action-bar{
  509. margin-top: 8px;
  510. a{
  511. margin-left: 12px;
  512. }
  513. }
  514. }
  515. .issues.list-group {
  516. margin: 10px 0 20px 0;
  517. > .list-group-item {
  518. background-color: #FFF;
  519. border: 1px solid #e5e5e5;
  520. display: block;
  521. padding: 10px 15px;
  522. margin-bottom: -1px;
  523. &:hover {
  524. background-color: rgba(19, 95, 215, 0.03);
  525. }
  526. > .title {
  527. margin-bottom: 16px;
  528. font-weight: bold;
  529. font-size: 1.2em;
  530. > a { color: #444; }
  531. }
  532. > .info span {
  533. margin-right: 12px;
  534. color: #888;
  535. line-height: 20px;
  536. > a { color: #444; }
  537. }
  538. }
  539. }