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

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

    .content-tabs__item {
      padding: 10px;
      flex: 1;
      // border: 1px solid $theme-gray-lightest;
      color: $theme-gray-dark;
      background: linear-gradient($theme-gray-lightest 80%, darken($theme-gray-lightest, 3%));
      border-right: 1px solid $theme-gray-lighter;
      transition: background $theme-transition-time;

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

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

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

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

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

    .franz-form__input-wrapper {
      background: #FFF;
    }

    .franz-form__field:last-of-type {
      margin-bottom: 0;
    }
  }
}