MyFrame.less 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. :global {
  2. .frame {
  3. @bg: #f5f5f5;
  4. @btn_default: #05a;
  5. @lh: 28px;
  6. text-align: center;
  7. white-space: nowrap;
  8. &:before {
  9. content: '';
  10. display: inline-block;
  11. height: 100%;
  12. vertical-align: middle;
  13. width: 0;
  14. }
  15. h3 {
  16. font-size: 14px;
  17. margin: 0;
  18. padding: 0;
  19. }
  20. .ant-modal {
  21. display: inline-block;
  22. vertical-align: middle;
  23. top: 0;
  24. //top: 50%;
  25. //left: 50%;
  26. //transform: translate(-50%, -50%);
  27. padding-bottom: 0;
  28. text-align: left;
  29. .prompt-body {
  30. //padding: 20px 20px;
  31. .ln {
  32. line-height: @lh;
  33. padding: 2px 0;
  34. margin-bottom: 10px;
  35. white-space: normal;
  36. .title {
  37. float: left;
  38. width: 100px;
  39. line-height: @lh;
  40. }
  41. .cnt {
  42. margin-left: 100px;
  43. line-height: @lh;
  44. input[type=text] {
  45. width: 240px;
  46. outline: none;
  47. padding: 4px 10px;
  48. }
  49. textarea {
  50. font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  51. }
  52. }
  53. .inform {
  54. color: #aaa;
  55. line-height: 20px;
  56. margin-bottom: 5px;
  57. }
  58. }
  59. input[type=password] {
  60. letter-spacing: 8px;
  61. }
  62. }
  63. }
  64. }
  65. .frame.sudo-prompt {
  66. .ant-modal {
  67. width: 300px;
  68. }
  69. }
  70. }