_forms.scss 3.5 KB

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