frame.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .frame {
  2. @bg: #f5f5f5;
  3. @btn_default: #05a;
  4. @lh: 24px;
  5. position: fixed;
  6. top: 0;
  7. right: 0;
  8. bottom: 0;
  9. left: 0;
  10. .overlay {
  11. position: absolute;
  12. z-index: -1;
  13. width: 100%;
  14. height: 100%;
  15. background: #000;
  16. opacity: 0.5;
  17. }
  18. .prompt {
  19. position: absolute;
  20. top: 50%;
  21. left: 50%;
  22. transform: translate(-50%, -50%);
  23. min-width: 300px;
  24. max-width: 600px;
  25. background: #fff;
  26. box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.1);
  27. .head {
  28. padding: 20px;
  29. font-size: 16px;
  30. background: @bg;
  31. //border-bottom: solid 1px #ccc;
  32. }
  33. .body {
  34. padding: 20px 20px;
  35. .ln {
  36. line-height: 30px;
  37. padding: 2px 0;
  38. .title {
  39. float: left;
  40. width: 100px;
  41. line-height: @lh;
  42. }
  43. .cnt {
  44. margin-left: 100px;
  45. line-height: 30px;
  46. input[type=text] {
  47. width: 240px;
  48. outline: none;
  49. padding: 4px 10px;
  50. }
  51. textarea {
  52. font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  53. }
  54. }
  55. .inform {
  56. color: #999;
  57. line-height: @lh;
  58. }
  59. }
  60. input {
  61. padding: 4px 4px;
  62. }
  63. input[type=password] {
  64. letter-spacing: 8px;
  65. width: 240px;
  66. outline: none;
  67. padding: 4px 10px;
  68. }
  69. }
  70. .foot {
  71. padding: 20px;
  72. background: @bg;
  73. text-align: right;
  74. .button {
  75. display: inline-block;
  76. background: #ccc;
  77. padding: 8px 20px;
  78. margin-left: 1em;
  79. cursor: pointer;
  80. &:hover {
  81. background: #ddd;
  82. }
  83. &.btn-default {
  84. background: @btn_default;
  85. color: #fff;
  86. &:hover {
  87. background: @btn_default * 1.4;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }