input.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @import '../common/base.scss';
  2. .m-input-default{
  3. display: inline-block;
  4. .demo-input{
  5. display: inline-block;
  6. position: relative;
  7. input{
  8. width:220px;
  9. height:40px;
  10. font-size:14px;
  11. outline:none;
  12. border:0;
  13. margin:0;
  14. padding:10px;
  15. border:1px solid #dcdfe6f6;
  16. border-radius:4px;
  17. box-sizing: border-box;
  18. color:#606266;
  19. background-color: transparent;
  20. transition: all .2s ease;
  21. &:focus{
  22. border-color: $primary;
  23. }
  24. }
  25. .m-input-leftIcon{
  26. padding-left: 30px;
  27. }
  28. .m-input-rightIcon {
  29. padding-right: 30px;
  30. }
  31. // 禁用
  32. .m-input-disabled{
  33. background-color: #f5f7fa;
  34. border-color: #e4e7ed;
  35. color: #c0c4cc;
  36. cursor: not-allowed;
  37. }
  38. // 可清空
  39. .icon-close{
  40. width: 20px;
  41. height: 20px;
  42. line-height: 20px;
  43. text-align: center;
  44. position:absolute;
  45. right:10px;
  46. top:10px;
  47. color:#94969b;
  48. transition: all .2s ease;
  49. cursor: pointer;
  50. }
  51. .left-icon{
  52. position: absolute;
  53. left: 10px;
  54. top: 13px;
  55. color: #94969b;
  56. }
  57. .right-icon{
  58. position: absolute;
  59. right: 10px;
  60. top: 13px;
  61. color: #94969b;
  62. }
  63. .password-icon{
  64. position: absolute;
  65. right: 10px;
  66. top: 13px;
  67. color: #94969b;
  68. cursor: pointer;
  69. }
  70. .m-input--medium{
  71. font-size: 14px;
  72. height: 36px;
  73. line-height: 36px;
  74. }
  75. .m-input--small{
  76. font-size: 13px;
  77. height: 32px;
  78. line-height: 32px;
  79. }
  80. .m-input--mini{
  81. font-size: 12px;
  82. height: 28px;
  83. line-height: 28px;
  84. }
  85. }
  86. .m-slot-prepend,.m-slot-append{
  87. display: inline-block;
  88. }
  89. .m-input-group__prepend{
  90. .m-input{
  91. border-top-left-radius: 0 ;
  92. border-bottom-left-radius: 0;
  93. }
  94. }
  95. .m-input-group__append{
  96. margin-right: 0;
  97. .m-input{
  98. border-top-right-radius: 0 ;
  99. border-bottom-right-radius: 0;
  100. }
  101. }
  102. }
  103. .input-new-tag {
  104. width: 90px;
  105. margin-left: 10px;
  106. margin-top: 0;
  107. vertical-align: bottom;
  108. .demo-input{
  109. width: 100%;
  110. input{
  111. width: 100%;
  112. }
  113. }
  114. }