editormd.form.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. @charset "UTF-8";
  2. // Form
  3. #{$prefix}form {
  4. color: $color;
  5. label {
  6. float: left;
  7. display: block;
  8. width: 75px;
  9. text-align: left;
  10. padding: 7px 0 15px 5px;
  11. margin: 0 0 2px;
  12. font-weight: normal;
  13. }
  14. br {
  15. clear: both;
  16. }
  17. iframe {
  18. display: none;
  19. }
  20. input:focus {
  21. outline: 0;
  22. }
  23. input[type="text"], input[type="number"] {
  24. color: #999;
  25. padding: 8px;
  26. border: 1px solid $borderColor;
  27. }
  28. input[type="number"] {
  29. width: 40px;
  30. display: inline-block;
  31. padding: 6px 8px;
  32. }
  33. input[type="text"] {
  34. display: inline-block;
  35. width: 264px;
  36. }
  37. .fa-btns {
  38. display: inline-block;
  39. a {
  40. color: #999;
  41. padding: 7px 10px 0 0;
  42. display: inline-block;
  43. text-decoration: none;
  44. text-align: center;
  45. }
  46. .fa {
  47. font-size: 1.3em;
  48. }
  49. label {
  50. float: none;
  51. display: inline-block;
  52. width: auto;
  53. text-align: left;
  54. padding: 0 0 0 5px;
  55. cursor: pointer;
  56. }
  57. }
  58. }
  59. #{$prefix}form,
  60. #{$prefix}dialog-container,
  61. #{$prefix}dialog-footer {
  62. input[type="submit"], #{$prefix}btn, button {
  63. color: $color;
  64. min-width: 75px;
  65. cursor: pointer;
  66. background: #fff;
  67. padding: 7px 10px;
  68. border: 1px solid #ddd;
  69. @include border-radius(3px);
  70. @include transition(background 300ms ease-out);
  71. &:hover {
  72. background: #eee;
  73. }
  74. }
  75. #{$prefix}btn {
  76. padding: 5px 8px 4px\0;
  77. }
  78. #{$prefix}btn + #{$prefix}btn {
  79. margin-left: 8px;
  80. }
  81. }
  82. #{$prefix}file-input {
  83. width: 75px;
  84. height: 32px;
  85. margin-left: 8px;
  86. position: relative;
  87. display: inline-block;
  88. input[type="file"] {
  89. width: 75px;
  90. height: 32px;
  91. opacity: 0;
  92. cursor: pointer;
  93. background: #000;
  94. display: inline-block;
  95. position: absolute;
  96. top: 0;
  97. right: 0;
  98. &::-webkit-file-upload-button {
  99. visibility: hidden;
  100. }
  101. }
  102. input[type="submit"] {
  103. }
  104. &:hover input[type="submit"] {
  105. background: #eee;
  106. }
  107. }