_forms.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. @import "globals";
  2. /* FORM BUTTONS */
  3. .button, input[type="submit"], input[type="button"], .object-tools a {
  4. &, &:visited, &:hover {
  5. display: inline-block;
  6. background-color: $button-background-color;
  7. color: $button-text-color;
  8. border: 0;
  9. border-radius: 4px;
  10. height: 32px;
  11. line-height: 32px;
  12. outline: 0;
  13. font-size: 12px;
  14. font-weight: normal;
  15. text-align: center;
  16. padding: 0 10px;
  17. white-space: nowrap;
  18. text-overflow: ellipsis;
  19. overflow: hidden;
  20. max-width: 100%;
  21. -webkit-appearance: none;
  22. -moz-appearance: none;
  23. appearance: none;
  24. @include transition(background $transitions-duration);
  25. }
  26. &.default {
  27. font-weight: lighter;
  28. background-color: $primary-button-background-color;
  29. color: $primary-button-text-color;
  30. text-transform: uppercase;
  31. margin: 0 8px 0 0;
  32. padding: 0 20px;
  33. }
  34. &.transparent {
  35. background-color: transparent;
  36. }
  37. &:hover, &:focus {
  38. background-color: $button-hover-background-color;
  39. color: $button-hover-text-color;
  40. }
  41. &:active {
  42. background-color: $button-active-background-color;
  43. color: $button-active-text-color;
  44. }
  45. }
  46. .button[disabled], input[type=submit][disabled], input[type=button][disabled] {
  47. opacity: 0.4;
  48. }
  49. input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], textarea, .vTextField {
  50. border-radius: 4px;
  51. font-size: 13px;
  52. height: 32px;
  53. white-space: nowrap;
  54. outline: 0;
  55. box-sizing: border-box;
  56. margin: 0;
  57. background-color: $input-background-color;
  58. color: $input-text-color;
  59. border: 1px solid $input-border-color;
  60. padding: 0 12px;
  61. -webkit-appearance: none;
  62. -moz-appearance: none;
  63. appearance: none;
  64. @include transition(background $transitions-duration, box-shadow $transitions-duration, border $transitions-duration);
  65. @include placeholder {
  66. color: $input-placeholder-color;
  67. }
  68. &:focus {
  69. box-shadow: 0 0 4px 0 $input-shadow-color;
  70. border-color: $input-background-color;
  71. }
  72. }
  73. textarea {
  74. height: auto;
  75. line-height: normal;
  76. padding: 12px;
  77. white-space: pre-wrap;
  78. vertical-align: top;
  79. }
  80. select {
  81. color: $input-text-color;
  82. background-color: $input-background-color;
  83. border: 1px solid $input-border-color;
  84. border-radius: 4px;
  85. outline: 0;
  86. height: 32px;
  87. font-size: 13px;
  88. }
  89. .segmented-button {
  90. &, &:visited, &:hover {
  91. border: 0;
  92. height: 32px;
  93. line-height: 32px;
  94. font-size: 12px;
  95. text-align: center;
  96. background-color: $button-background-color;
  97. color: $button-text-color;
  98. padding: 0 10px;
  99. display: inline-block;
  100. text-transform: none;
  101. border-radius: 0;
  102. @include transition(background $transitions-duration);
  103. }
  104. &:hover, &:focus {
  105. background-color: $button-hover-background-color;
  106. color: $button-hover-text-color;
  107. }
  108. &:active {
  109. background-color: $button-active-background-color;
  110. color: $button-active-text-color;
  111. }
  112. &.disabled {
  113. background-color: $button-background-color !important;
  114. color: $button-text-color;
  115. opacity: 0.5;
  116. }
  117. &.left {
  118. border-radius: 4px 0 0 4px;
  119. }
  120. &.right {
  121. border-radius: 0 4px 4px 0;
  122. }
  123. }
  124. input[type=checkbox] {
  125. display: none;
  126. &#action-toggle {
  127. display: none !important;
  128. }
  129. + label:before {
  130. @include font-icon;
  131. color: $input-icon-color;
  132. font-size: 12px;
  133. content: $icon-checkbox-outline;
  134. letter-spacing: 5px;
  135. .action-checkbox-column & {
  136. color: $content-contrast2-text-color;
  137. }
  138. }
  139. &:checked + label:before {
  140. content: $icon-checkbox;
  141. }
  142. }
  143. /* SELECTOR */
  144. .selector {
  145. display: none;
  146. }