_ui.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. $box-shadow: 0 2px 2px 0 rgba(0,0,0,.16), 0 0 2px 0 rgba(0,0,0,.12);
  2. $phone: "(max-width: 839px)";
  3. @mixin button-reset {
  4. border: none;
  5. font: inherit;
  6. color: inherit;
  7. background-color: transparent;
  8. cursor: pointer;
  9. box-shadow: 0;
  10. outline: 0;
  11. }
  12. @mixin lightInput() {
  13. width: 100%;
  14. position: relative;
  15. margin-bottom: $spacing-regular;
  16. input,
  17. textarea {
  18. width: 100%;
  19. border: 0;
  20. padding: 4px 0;
  21. border-bottom: 1px solid #ccc;
  22. background-color: transparent;
  23. resize: vertical;
  24. }
  25. span {
  26. position: absolute;
  27. display: block;
  28. width: 100%;
  29. height: 100%;
  30. top: 0;
  31. left: 0;
  32. pointer-events: none;
  33. }
  34. span::before {
  35. content: "";
  36. display: block;
  37. position: absolute;
  38. bottom: 0px;
  39. left: 0;
  40. width: 0;
  41. height: 1px;
  42. -webkit-transition: all 0.4s;
  43. -o-transition: all 0.4s;
  44. -moz-transition: all 0.4s;
  45. transition: all 0.4s;
  46. background: #7f7f7f;
  47. }
  48. input:focus + span::before,
  49. textarea:focus + span::before {
  50. width: 100%;
  51. }
  52. input.has-value + span::before,
  53. textarea.has-value + span::before {
  54. width: 100%;
  55. }
  56. }
  57. @mixin solidBoxShadow($color: #eec71a) {
  58. border: 3px solid #000;
  59. box-shadow: 4px 4px 0 0 $color;
  60. }
  61. @mixin box($color: #000000) {
  62. border: 3px solid $color;
  63. background-color: white;
  64. }