aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/recipes.scss
blob: 57587a5139ada73bcb3187daad5a92af34ab0445 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@import './config.scss';

.theme__dark .recipe-teaser {
  background-color: $dark-theme-gray-dark;
  color: $dark-theme-text-color;

  &:hover {
    background-color: $dark-theme-gray;
  }
}

.recipes {
  .recipes__list {
    align-content: flex-start;
    display: flex;
    flex-flow: row wrap;
    height: auto;
    // min-height: 70%;

    &.recipes__list--disabled {
      filter: grayscale(100%);
      opacity: 0.3;
      pointer-events: none;
    }
  }

  &__service-request {
    float: right;
  }
}

.recipes__navigation {
  height: auto;
  margin-bottom: 25px;

  .badge {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  &.recipes__navigation--disabled {
    filter: grayscale(100%);
    opacity: 0.3;
    pointer-events: none;
  }
}

.recipe-teaser {
  background-color: $theme-gray-lightest;
  border-radius: $theme-border-radius;
  height: 120px;
  margin: 0 20px 20px 0;
  overflow: hidden;
  position: relative;
  @media (prefers-reduced-motion: no-preference) {
    transition: background $theme-transition-time;
  }
  width: calc(25% - 20px);

  &:hover {
    background-color: $theme-gray-lighter;
  }

  .recipe-teaser__icon {
    margin-bottom: 10px;
    width: 50px;
  }

  .recipe-teaser__label {
    display: block;
  }

  .recipe-teaser__alias_label {
    display: block;
    font-size: x-small;
  }

  h2 {
    z-index: 10;
  }

  &__dev-badge {
    background: $theme-brand-warning;
    box-shadow: 0 0 4px rgba(black, 0.2);
    color: #fff;
    font-size: 10px;
    position: absolute;
    right: -13px;
    top: 5px;
    transform: rotateZ(45deg);
    width: 50px;
  }
}