styles.scss 3.4 KB

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