aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/content-tabs.scss
blob: aa3c8594bfd34cbab5395bc7a6d367c5e7f9e50c (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
@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: $theme-gray-lightest;
      border-bottom: 1px solid $theme-gray-lighter;
      box-shadow: inset 0px -3px 10px rgba(black, 0.05);
      transition: all $theme-transition-time;

      &.is-active {
        background: $theme-brand-primary;
        color: #FFF;
        border-bottom: 1px solid $theme-brand-primary;
        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;
    }
  }
}