File size: 1,739 Bytes
03d9a71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import { Theme, css } from 'antd-style';

export default (token: Theme) => css`
  .tabitem,
  .gradio-tabitem {
    padding: 16px !important;
    background: ${token.colorBgContainer};
    border: none !important;
    border-radius: ${token.borderRadius}px;
  }

  #tabs {
    > .tabitem.gradio-tabitem {
      background: transparent !important;
    }
  }

  .tab-nav {
    gap: 8px;
    margin-bottom: 8px;
    border: none !important;

    button {
      cursor: pointer;

      display: block;
      flex: 1 !important;

      min-width: 100px;
      padding: 8px !important;

      font-size: 14px;

      background: ${token.colorFillTertiary} !important;
      border: none !important;
      border-radius: 4px !important;

      transition: all 0.2s ease-in-out;

      &:hover {
        color: ${token.colorText} !important;
        background: ${token.colorFill} !important;
        border: none !important;
      }

      &.selected {
        font-weight: 600;
        color: ${token.colorText} !important;

        background: ${token.colorFillSecondary} !important;
        border: none !important;
        border-bottom: 2px solid ${token.colorPrimary} !important;
        border-bottom-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
      }
    }
  }

  #tab_settings .tab-nav {
    button {
      background: transparent !important;
      border-radius: 0 !important;

      &:hover {
        background: transparent !important;
        border-radius: 0 !important;
      }

      &.selected {
        background: transparent !important;
        border: none !important;
        border-left: 2px solid var(--color-primary) !important;
        border-radius: 0 !important;
      }
    }
  }
`;