Skip to content

Commit 7e13934

Browse files
correct style
1 parent efd7f89 commit 7e13934

File tree

5 files changed

+241
-69
lines changed

5 files changed

+241
-69
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@use '../scss/modules/react-dyn-tabs' as m;
2+
@include m.main;

style/react-dyn-tabs.css

Lines changed: 93 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style/react-dyn-tabs.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
@mixin main {
2+
.rc-dyn-tabs-panellist {
3+
padding: 6px 12px;
4+
5+
.rc-dyn-tabs-panel {
6+
display: none;
7+
}
8+
9+
.rc-dyn-tabs-panel.rc-dyn-tabs-selected {
10+
display: block;
11+
}
12+
}
13+
14+
.rc-dyn-tabs-panellist.rc-dyn-tabs-ltr.rc-dyn-tabs-vertical {
15+
float: left;
16+
}
17+
18+
.rc-dyn-tabs-panellist.rc-dyn-tabs-rtl.rc-dyn-tabs-vertical {
19+
float: right;
20+
}
21+
22+
.rc-dyn-tabs-panellist.rc-dyn-tabs-rtl {
23+
.rc-dyn-tabs-panel {
24+
direction: rtl;
25+
text-align: right;
26+
}
27+
}
28+
29+
.rc-dyn-tabs-panellist.rc-dyn-tabs-ltr {
30+
.rc-dyn-tabs-panel {
31+
direction: ltr;
32+
text-align: left;
33+
}
34+
}
35+
36+
.rc-dyn-tabs-tablist {
37+
list-style-type: none;
38+
margin: 0;
39+
padding: 0;
40+
overflow: hidden;
41+
float: none;
42+
position: relative;
43+
44+
.rc-dyn-tabs-tab {
45+
display: list-item;
46+
list-style: none;
47+
text-align: center;
48+
padding: 0px;
49+
text-decoration: none;
50+
position: relative;
51+
pointer-events: visible;
52+
opacity: 1;
53+
54+
& > .rc-dyn-tabs-title {
55+
position: relative;
56+
display: flex;
57+
align-items: center;
58+
overflow: hidden;
59+
text-decoration: none;
60+
cursor: pointer;
61+
white-space: nowrap;
62+
padding: 0.5em 1em;
63+
font-weight: 500;
64+
outline: none;
65+
justify-content: center;
66+
67+
& > .rc-dyn-tabs-icon {
68+
display: inline-block;
69+
}
70+
}
71+
72+
& > .rc-dyn-tabs-close {
73+
position: absolute;
74+
top: 1px;
75+
cursor: pointer;
76+
}
77+
}
78+
79+
.rc-dyn-tabs-tab.rc-dyn-tabs-disable {
80+
pointer-events: none;
81+
opacity: 0.7;
82+
}
83+
}
84+
85+
.rc-dyn-tabs-tablist.rc-dyn-tabs-ltr {
86+
& > .rc-dyn-tabs-tab {
87+
float: left;
88+
89+
& > .rc-dyn-tabs-title {
90+
direction: rtl;
91+
92+
& > .rc-dyn-tabs-icon {
93+
padding-right: 0.4em;
94+
}
95+
}
96+
97+
& > .rc-dyn-tabs-close {
98+
right: 4px;
99+
left: auto;
100+
}
101+
}
102+
}
103+
104+
.rc-dyn-tabs-tablist.rc-dyn-tabs-rtl {
105+
& > .rc-dyn-tabs-tab {
106+
float: right;
107+
108+
& > .rc-dyn-tabs-title {
109+
direction: ltr;
110+
111+
& > .rc-dyn-tabs-icon {
112+
padding-left: 0.4em;
113+
}
114+
}
115+
116+
& > .rc-dyn-tabs-close {
117+
left: 4px;
118+
right: auto;
119+
}
120+
}
121+
}
122+
123+
.rc-dyn-tabs-tablist.rc-dyn-tabs-vertical {
124+
width: 200px;
125+
float: left;
126+
height: 100%;
127+
128+
& > .rc-dyn-tabs-tab {
129+
float: none;
130+
131+
& > .rc-dyn-tabs-title {
132+
display: block;
133+
width: 100%;
134+
}
135+
136+
& > .rc-dyn-tabs-close {
137+
top: 50%;
138+
transform: translateY(-50%);
139+
line-height: 0px;
140+
}
141+
}
142+
}
143+
}

style/scss/react-dyn-tabs.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@use 'modules/react-dyn-tabs' as m;
2+
@include m.main;

0 commit comments

Comments
 (0)