_forms.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // forms - very custom form styling (hide honeypots etc.)
  2. // ======================================================================
  3. .checkbox {
  4. &-input {
  5. @extend %visuallyhidden;
  6. }
  7. &-label {
  8. @include spacing-inner(l 1.3);
  9. position: relative;
  10. cursor: pointer;
  11. .question__ofwhat & {
  12. @include font-size(small);
  13. }
  14. &::before {
  15. @include absolute(t .1, l 0);
  16. @include border-color(default);
  17. border-style: solid;
  18. border-width: 1px;
  19. display: block;
  20. content: '';
  21. width: 20px;
  22. height: 20px;
  23. }
  24. }
  25. }
  26. .response-option {
  27. @include spacing(b .1);
  28. &__label {
  29. @extend %button--wide;
  30. @include color(default);
  31. &__text {
  32. @include spacing(r $width-icon);
  33. display: inline-block;
  34. }
  35. &--initial {
  36. .response-option__label__text {
  37. @include spacing(l $width-icon);
  38. }
  39. }
  40. &--correct {
  41. @include color(correct);
  42. }
  43. &--incorrect {
  44. @include color(error);
  45. }
  46. }
  47. }
  48. .form-item {
  49. @include spacing(b 3);
  50. text-align: center;
  51. &--mt {
  52. @include spacing(t 3);
  53. }
  54. &__label {
  55. @include spacing(b .75);
  56. }
  57. &__input {
  58. @include center;
  59. position: relative;
  60. max-width: 300px;
  61. &--currency {
  62. @include absolute(r .4, t .3);
  63. @include color(axis);
  64. @include font-size(small);
  65. }
  66. }
  67. &__select {
  68. @include spacing(h .5);
  69. width: 120px;
  70. &-wrapper {
  71. position: relative;
  72. }
  73. }
  74. }