aboutsummaryrefslogtreecommitdiff
path: root/assets/sass/_partial/_post/_reward.scss
blob: 3a03a9f31f3de5b99e6e55fbb02a24b82ea68b54 (plain)
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
.post-reward {
  margin-top: 20px;
  padding-top: 10px;
  text-align: center;
  border-top: 1px dashed $light-gray;

  .reward-button {
    margin: 15px 0;
    padding: 3px 7px;
    display: inline-block;
    color: $theme-color;
    border: 1px solid $theme-color;
    border-radius: 5px;
    cursor: pointer;

    &:hover {
      color: $white;
      background-color: $theme-color;
      transition: 0.5s;
    }
  }

  #reward:checked {
    & ~ .qr-code {
      display: block;
    }

    & ~ .reward-button {
      display: none;
    }
  }

  .qr-code {
    display: none;

    .qr-code-image {
      display: inline-block;
      min-width: 200px;
      width: 40%;
      margin-top: 15px;

      span {
        display: inline-block;
        width: 100%;
        margin: 8px 0;
      }
    }

    .image {
      width: 200px;
      height: 200px;
    }
  }
}