styles.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. @import 'styles/_variables.scss';
  2. .cbk-recipe-form {
  3. width: 100%;
  4. input {
  5. width: 100%;
  6. border: 0;
  7. padding: 4px 0;
  8. border-bottom: 1px solid #ccc;
  9. background-color: transparent;
  10. }
  11. .subrecipe-tabs {
  12. ul.tab-header {
  13. display: flex;
  14. width: 100%;
  15. justify-content: space-evenly;
  16. .tab {
  17. padding: 0 $spacing-small;
  18. width: 100%;
  19. display: flex;
  20. justify-content: space-between;
  21. cursor: pointer;
  22. align-self: center;
  23. position: relative;
  24. @include ripple($grey-200, $grey-300);
  25. &--selected {
  26. background-color: $grey-200;
  27. }
  28. &--selected.tab span::before {
  29. width: 100%;
  30. }
  31. span {
  32. position: absolute;
  33. display: block;
  34. width: 100%;
  35. height: 100%;
  36. top: 0;
  37. left: 0;
  38. pointer-events: none;
  39. }
  40. span::before {
  41. content: "";
  42. display: block;
  43. position: absolute;
  44. bottom: -2px;
  45. left: 0;
  46. width: 0;
  47. height: 2px;
  48. -webkit-transition: all 0.4s;
  49. -o-transition: all 0.4s;
  50. -moz-transition: all 0.4s;
  51. transition: all 0.4s;
  52. background: $grey-600;
  53. }
  54. input {
  55. @include button();
  56. line-height: 1rem;
  57. font-family: 'Roboto';
  58. border-bottom: 0;
  59. }
  60. &__content {
  61. flex-basis: 90%;
  62. width: 100;
  63. cursor: pointer;
  64. line-height: 2.5rem;
  65. }
  66. &--add {
  67. flex-basis: 0;
  68. }
  69. &--add:hover {
  70. background: transparent;
  71. }
  72. button.remove {
  73. align-self: center;
  74. --mdc-ripple-fg-size: 14px;
  75. --mdc-ripple-left: 5px;
  76. --mdc-ripple-top: 5px;
  77. width: 24px;
  78. height: 24px;
  79. padding: 6px;
  80. font-size: 12px;
  81. .material-icons {
  82. font-size: 12px;
  83. }
  84. }
  85. }
  86. }
  87. }
  88. .ingredients-form {
  89. min-height: 400px;
  90. &-header {
  91. color: $grey-600;
  92. & > * {
  93. @include button();
  94. }
  95. }
  96. &-item {
  97. .ingredient-detail {
  98. align-items: end;
  99. }
  100. input {
  101. line-height: 1.5rem;
  102. width: 100%;
  103. }
  104. select {
  105. width: 100%;
  106. height: 1.5rem;
  107. }
  108. input:disabled {
  109. font-style: italic
  110. }
  111. .ingredient-suggestions {
  112. height: .7rem;
  113. margin-bottom: 12px;
  114. button {
  115. @include button-reset();
  116. text-transform: uppercase;
  117. font-size: .6rem;
  118. letter-spacing: .2px;
  119. color: $grey-600;
  120. @include ripple($grey-200, $grey-300);
  121. }
  122. }
  123. button.remove {
  124. align-self: center;
  125. --mdc-ripple-fg-size: 14px;
  126. --mdc-ripple-left: 5px;
  127. --mdc-ripple-top: 5px;
  128. width: 24px;
  129. height: 24px;
  130. padding: 6px;
  131. font-size: 12px;
  132. .material-icons {
  133. font-size: 12px;
  134. }
  135. }
  136. }
  137. }
  138. }