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.

textfield.scss 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // textfield-normal.css
  2. @mixin base-textfield($primaryStyleName : v-textfield) {
  3. .#{$primaryStyleName} {
  4. text-align: left; /* Force default alignment */
  5. }
  6. .v-textarea {
  7. resize: none;
  8. white-space: pre-wrap;
  9. }
  10. .#{$primaryStyleName}-focus,
  11. .v-textarea-focus {
  12. }
  13. input.#{$primaryStyleName}-prompt,
  14. textarea.v-textarea-prompt {
  15. color: #999;
  16. font-style: italic;
  17. }
  18. input.#{$primaryStyleName}-readonly,
  19. textarea.v-textarea-readonly {
  20. background: transparent;
  21. border: none;
  22. resize: none;
  23. }
  24. input.v-disabled,
  25. textarea.v-disabled {
  26. resize: none;
  27. }
  28. input.#{$primaryStyleName}-readonly:focus,
  29. textarea.v-textarea-readonly:focus {
  30. outline: none;
  31. }
  32. /* Disabled by default
  33. .v-textarea-error,
  34. .#{$primaryStyleName}-error,
  35. .v-richtextarea-error iframe.gwt-RichTextArea {
  36. background: #FFE0E0;
  37. }
  38. */
  39. /* Disabled by default
  40. .v-textarea-required,
  41. .#{$primaryStyleName}-required,
  42. .v-richtextarea-required iframe.gwt-RichTextArea {
  43. background: #FFE0E0;
  44. }
  45. */
  46. /* Safari focus glow fix */
  47. .v-sa & input:focus,
  48. .v-sa & textarea:focus {
  49. outline-width: medium;
  50. }
  51. }
  52. // richtext.css
  53. @mixin base-richtextarea {
  54. .v-richtextarea {
  55. border: 1px solid #aaa;
  56. overflow: hidden;
  57. }
  58. .v-richtextarea .gwt-RichTextArea {
  59. background: #fff;
  60. border: none;
  61. }
  62. .v-richtextarea .gwt-HTML {
  63. height: 100%;
  64. font-size: $font-size;
  65. }
  66. .v-richtextarea .gwt-RichTextToolbar {
  67. white-space: nowrap;
  68. background: #959595 url(img/richtext-toolbar-bg.png) repeat-x 0 -42px;
  69. border-bottom: 1px solid #7d7d7d;
  70. padding: 2px;
  71. overflow: hidden;
  72. }
  73. .v-richtextarea .gwt-RichTextToolbar-top {
  74. padding-bottom: 1px;
  75. overflow: hidden;
  76. white-space: normal;
  77. }
  78. .v-richtextarea .gwt-RichTextToolbar-bottom {
  79. clear: left;
  80. overflow: hidden;
  81. white-space: nowrap;
  82. }
  83. .v-richtextarea .gwt-RichTextToolbar .gwt-ToggleButton,
  84. .v-richtextarea .gwt-RichTextToolbar .gwt-PushButton {
  85. float: left;
  86. display: inline;
  87. width: 22px;
  88. height: 21px;
  89. overflow: hidden;
  90. background: transparent url(img/richtext-toolbar-bg.png) repeat-x;
  91. cursor: pointer;
  92. margin-right: 2px;
  93. text-align: center;
  94. }
  95. .v-richtextarea .gwt-RichTextToolbar .gwt-ToggleButton-down,
  96. .v-richtextarea .gwt-RichTextToolbar .gwt-PushButton-down,
  97. .v-richtextarea .gwt-RichTextToolbar .gwt-ToggleButton-down-hovering,
  98. .v-richtextarea .gwt-RichTextToolbar .gwt-PushButton-down-hovering {
  99. background-position: 0 -21px;
  100. }
  101. .v-richtextarea .gwt-RichTextToolbar .gwt-ToggleButton img,
  102. .v-richtextarea .gwt-RichTextToolbar .gwt-PushButton img {
  103. }
  104. .v-richtextarea .gwt-RichTextToolbar .gwt-ListBox {
  105. width: 24.5%;
  106. margin-right: 2px;
  107. }
  108. .v-richtextarea-readonly {
  109. border: none;
  110. }
  111. }