aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/content-tabs.scss
blob: 41bd2c251da2f4b1c719e3014303b559ba7f9cdb (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
@import './config.scss';

.theme__dark {
  .content-tabs {
    .content-tabs__content {
      background: $dark-theme-gray-darker;
    }

    .content-tabs__tabs {
      .content-tabs__item {
        background: $dark-theme-gray;
        color: #fff;
        border: 0;
      }
    }
  }
}

.content-tabs {
  .content-tabs__tabs {
    border-top-left-radius: $theme-border-radius-small;
    border-top-right-radius: $theme-border-radius-small;
    display: flex;
    overflow: hidden;

    .content-tabs__item {
      background: linear-gradient(
        $theme-gray-lightest 80%,
        darken($theme-gray-lightest, 3%)
      );
      border-right: 1px solid $theme-gray-lighter;
      color: $theme-gray-dark;
      flex: 1;
      padding: 10px;
      @media (prefers-reduced-motion: no-preference) {
        transition: background $theme-transition-time;
      }

      &:last-of-type {
        border-right: 0;
      }

      &.is-active {
        background: $theme-brand-primary;
        box-shadow: none;
        color: #fff;
      }
    }
  }

  .content-tabs__content {
    background: $theme-gray-lightest;
    border-bottom-left-radius: $theme-border-radius-small;
    border-bottom-right-radius: $theme-border-radius-small;
    padding: 20px 20px;

    .content-tabs__item {
      display: none;
      top: 0;

      &.is-active {
        display: block;
      }
    }

    .franz-form__input-wrapper {
      background: #fff;
    }
    .franz-form__field:last-of-type {
      margin-bottom: 0;
    }
  }
}