styles.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. @import 'styles/_variables.scss';
  2. .cbk-planner {
  3. &__body {
  4. padding: $spacing-small;
  5. &__planner {
  6. display: flex;
  7. min-height: 16rem;
  8. .week {
  9. display: flex;
  10. .day,
  11. .meal {
  12. flex: 1;
  13. display: flex;
  14. flex-direction: column;
  15. background-color: black;
  16. border-bottom: 1px solid black;
  17. min-width: 0;
  18. &-date,
  19. .meal-placeholder {
  20. flex-basis: 1rem;
  21. color: white;
  22. font-family: $font-family-display;
  23. h5 {
  24. padding: 0 $spacing-small/2;
  25. }
  26. }
  27. &-meal {
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: center;
  31. flex-basis: 5rem;
  32. background-color: white;
  33. box-sizing: border-box;
  34. margin: 0.5px;
  35. h5 {
  36. text-align: center;
  37. overflow: hidden;
  38. text-overflow: ellipsis;
  39. display: -webkit-box;
  40. -webkit-line-clamp: 2;
  41. -webkit-box-orient: vertical;
  42. }
  43. &--edit {
  44. justify-content: end;
  45. button {
  46. align-self: flex-end;
  47. }
  48. }
  49. }
  50. }
  51. .meal {
  52. max-width: $spacing-regular;
  53. flex-basis: $spacing-regular;
  54. &-placeholder {
  55. color: black!important;
  56. }
  57. &-name {
  58. flex-basis: 5rem;
  59. background-color: white;
  60. box-sizing: border-box;
  61. margin: 0.5px;
  62. padding: 0!important;
  63. &--style {
  64. writing-mode: vertical-lr;
  65. margin-top: $spacing-small/2;
  66. }
  67. }
  68. }
  69. }
  70. }
  71. }
  72. &-dnd__body {
  73. display: flex;
  74. margin: 1rem 0.5rem;
  75. &__backlog {
  76. margin: 0 0.5rem;
  77. flex-basis: 20%;
  78. }
  79. &__calendar {
  80. margin: 0 0.5rem;
  81. flex: 1;
  82. .container {
  83. display: flex;
  84. justify-content: space-between;
  85. background-color: white;
  86. .day-meals {
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: flex-end;
  91. > div {
  92. height: 5rem;
  93. }
  94. }
  95. .day-schedule {
  96. flex-basis: 14%;
  97. max-width: 14%;
  98. background-color:white;
  99. text-align: center;
  100. display: flex;
  101. flex-direction: column;
  102. &--meals {
  103. max-width: none;
  104. flex-basis: 2%;
  105. h5 {
  106. writing-mode: vertical-lr;
  107. text-orientation: mixed;
  108. margin: 0.5rem 0;
  109. }
  110. }
  111. &--date {
  112. height: 3rem;
  113. display: flex;
  114. flex-direction: column;
  115. justify-content: center;
  116. line-height: 2rem;
  117. }
  118. &--meal {
  119. height: 5rem;
  120. justify-content: center;
  121. align-items: center;
  122. border: 1px solid gainsboro;
  123. }
  124. &-content {
  125. width: inherit;
  126. height: 100%;
  127. display: flex;
  128. .meal-card {
  129. display: flex;
  130. flex-direction: column;
  131. width: 100%;
  132. align-items: center;
  133. &--actions {
  134. flex-basis: 30%;
  135. display: flex;
  136. width: 100%;
  137. justify-content: flex-end;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145. }
  146. .cbk-planner-mobile {
  147. &__body {
  148. &__calendar {
  149. padding: $spacing-small/2;
  150. .day-schedule {
  151. display: flex;
  152. margin-bottom: $spacing-small/2;
  153. &__day {
  154. writing-mode: vertical-rl;
  155. height: 5rem;
  156. background-color: $grey-900;
  157. color: $white;
  158. padding: 0.3rem;
  159. }
  160. &__meals {
  161. min-width: 0;
  162. width: 100%;
  163. border-top: 1px solid $grey-300;
  164. border-bottom: 1px solid $grey-300;
  165. border-right: 1px solid $grey-300;
  166. &--0,
  167. &--1 {
  168. border-bottom: 1px solid $grey-300;
  169. }
  170. &--0,
  171. &--1,
  172. &--2 {
  173. padding: 2px 4px;
  174. height: 1.5rem;
  175. h5 {
  176. overflow: hidden;
  177. white-space: nowrap;
  178. text-overflow: ellipsis;
  179. line-height: 1.5rem;
  180. }
  181. }
  182. }
  183. }
  184. }
  185. }
  186. }