styles.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @import 'styles/_variables.scss';
  2. .cbk-scale-tool {
  3. &__actions {
  4. display: flex;
  5. justify-content: center;
  6. flex-wrap: wrap;
  7. button {
  8. @media #{$small-device} {
  9. margin: $spacing-xs 0;
  10. }
  11. }
  12. }
  13. &__ingredients {
  14. font-weight: normal;
  15. display: flex;
  16. justify-content: center;
  17. padding: $spacing-small 0;
  18. $ingredients: &;
  19. flex-wrap: wrap;
  20. ul {
  21. display: flex;
  22. flex-direction: column;
  23. flex-grow: 1;
  24. margin: $spacing-small $spacing-xs;
  25. &:last-child {
  26. margin-bottom: 0;
  27. }
  28. }
  29. li {
  30. @include display();
  31. display: flex;
  32. flex-wrap: nowrap;
  33. margin-bottom: 0.875rem;
  34. &:last-child {
  35. margin-bottom: 0;
  36. }
  37. #{$ingredients}__unit {
  38. margin-left: 1ch;
  39. }
  40. #{$ingredients}__name {
  41. margin-left: 1ch;
  42. &__notes {
  43. font-style: italic;
  44. font-weight: 500;
  45. }
  46. }
  47. &#{$ingredients}__title {
  48. border-bottom: 1px dashed black;
  49. }
  50. &.stick-ingredient {
  51. .cbk-light-input {
  52. width: auto;
  53. margin: 0;
  54. }
  55. display: flex;
  56. background-color: #eec71a ;
  57. input {
  58. @include display();
  59. padding: 0;
  60. }
  61. }
  62. }
  63. }
  64. }