| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- @import 'styles/_variables.scss';
- .cbk-recipe-form {
- width: 100%;
-
- input {
- width: 100%;
- border: 0;
- padding: 4px 0;
- border-bottom: 1px solid #ccc;
- background-color: transparent;
- }
- .subrecipe-tabs {
- ul.tab-header {
- display: flex;
- width: 100%;
- justify-content: space-evenly;
- .tab {
- padding: 0 $spacing-small;
- width: 100%;
- display: flex;
- justify-content: space-between;
- cursor: pointer;
- align-self: center;
- position: relative;
- @include ripple($grey-200, $grey-300);
-
- &--selected {
- background-color: $grey-200;
- }
- &--selected.tab span::before {
- width: 100%;
- }
- span {
- position: absolute;
- display: block;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- pointer-events: none;
- }
- span::before {
- content: "";
- display: block;
- position: absolute;
- bottom: -2px;
- left: 0;
- width: 0;
- height: 2px;
-
- -webkit-transition: all 0.4s;
- -o-transition: all 0.4s;
- -moz-transition: all 0.4s;
- transition: all 0.4s;
-
- background: $grey-600;
- }
- input {
- @include button();
- line-height: 1rem;
- font-family: 'Roboto';
- border-bottom: 0;
- }
- &__content {
- flex-basis: 90%;
- width: 100;
- cursor: pointer;
- line-height: 2.5rem;
- }
- &--add {
- flex-basis: 0;
- }
- &--add:hover {
- background: transparent;
- }
- button.remove {
- align-self: center;
- --mdc-ripple-fg-size: 14px;
- --mdc-ripple-left: 5px;
- --mdc-ripple-top: 5px;
- width: 24px;
- height: 24px;
- padding: 6px;
- font-size: 12px;
-
- .material-icons {
- font-size: 12px;
- }
- }
- }
- }
-
- }
- .ingredients-form {
- min-height: 400px;
-
- &-header {
- color: $grey-600;
- & > * {
- @include button();
- }
- }
- &-item {
- .ingredient-detail {
- align-items: end;
- }
- input {
- line-height: 1.5rem;
- width: 100%;
- }
- select {
- width: 100%;
- height: 1.5rem;
- }
- input:disabled {
- font-style: italic
- }
- .ingredient-suggestions {
- height: .7rem;
- margin-bottom: 12px;
- button {
- @include button-reset();
- text-transform: uppercase;
- font-size: .6rem;
- letter-spacing: .2px;
- color: $grey-600;
- @include ripple($grey-200, $grey-300);
- }
- }
- button.remove {
- align-self: center;
- --mdc-ripple-fg-size: 14px;
- --mdc-ripple-left: 5px;
- --mdc-ripple-top: 5px;
- width: 24px;
- height: 24px;
- padding: 6px;
- font-size: 12px;
- .material-icons {
- font-size: 12px;
- }
- }
- }
- }
- }
|