summaryrefslogtreecommitdiffstats
path: root/docs/components/ui/Tabs/Tabs.css
blob: ddbef0e04260bea5c8e7bc4a9a8d6d86b2c4e8b5 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@scope(.horizontal-tabs,.vertical-tabs) {
  :scope {
    width: 100%;
    max-width: 36rem;
    margin: 10% auto;
    padding: 0.5rem;
  }

  .ui-tablist {
    display: flex;
    border-radius: 1rem;
    background-color: #6383dd;
    padding: 0.5rem;
    color: #111;
  }
  .ui-tablist > .ui-tab:not([hidden]) ~ .ui-tab:not([hidden]) {
    margin-left: 0.5rem;
  }
  .ui-tab {
    width: 100%;
    border-radius: 0.5rem;
    color: #222;
    background-color: rgb(255 255 255 / 0.7);
    padding: 0.75rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
  }
  .ui-tab:focus {
    outline: 2px solid rgb(255 255 255 / 0.8);
    outline-offset: 2px;
  }
  .ui-tab.ui-selected {
    background-color: white;
    color: black;
  }
  .ui-tab.ui-disabled {
    background-color: rgb(255 255 255 / 0.5);
    color: #666;
    cursor: default;
  }
  .ui-tab:hover:not(.ui-selected, .ui-disabled),
  .ui-tab:focus:not(.ui-selected, .ui-disabled) {
    background-color: rgb(255 255 255 / 0.8);
  }
  .ui-tabpanel {
    margin-top: 0.5rem;
    border-radius: 1rem;
    background-color: rgb(254 254 254);
    border: 2px solid rgb(59 130 246 / 0.8);
    padding: 0.1rem;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ui-tabpanel:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  .ui-tabpanel.ui-hidden {
    display: none;
  }
  .ui-tabpanel b {
    font-weight: bold;
  }

  .ui-tabselect {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border-width: 1px;
    border-color: rgb(209 213 219);
    background-color: rgb(249 250 251);
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.25rem;
    color: rgb(17 24 39);
    margin-bottom: 0.5rem;
  }
  .ui-tabselect:focus {
    border-color: rgb(59 130 246);
  }
  .ui-tabselect:is(.dark *) {
    border-color: rgb(75 85 99);
    background-color: rgb(55 65 81);
    color: rgb(255 255 255);
  }
  .ui-tabselect:is(.dark *)::-moz-placeholder {
    color: rgb(156 163 175);
  }
  .ui-tabselect:is(.dark *):-ms-input-placeholder {
    color: rgb(156 163 175);
  }
  .ui-tabselect:is(.dark *)::placeholder {
    color: rgb(156 163 175);
  }
  .ui-tabselect:is(.dark *):focus {
    border-color: rgb(59 130 246);
  }
}

@scope(.vertical-tabs) {
  .ui-tabgroup {
    display: flex;
  }
  .ui-tablist {
    flex-direction: column;
    width: 10rem;
    border-radius: 1rem 0 0 1rem;
    padding-right: 0;
  }
  .ui-tablist > .ui-tab:not([hidden]) ~ .ui-tab:not([hidden]) {
    margin: 0.5rem 0 0 0;
  }
  .ui-tab {
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 1rem;
  }
  .ui-tabpanel {
    margin: 0;
    border-radius: 0 1rem 1rem 0;
    padding: 2rem;
    min-width: 24rem;
  }
}