Skip to content

Commit fdae8ef

Browse files
committed
Clean up the tabbed fieldsets CSS a bit
1 parent e18eb2e commit fdae8ef

File tree

2 files changed

+22
-45
lines changed

2 files changed

+22
-45
lines changed

content_editor/static/content_editor/content_editor.css

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,11 @@ html {
33
overflow-x: hidden;
44
}
55

6-
.tabs.regions {
7-
display: flex;
8-
}
9-
106
.machine-collapse {
117
order: 1;
128
margin-left: auto;
139
}
1410

15-
.tabs > .tab {
16-
text-transform: none;
17-
letter-spacing: 0;
18-
float: left;
19-
padding: 10px 15px;
20-
margin: 0 4px 0 0;
21-
cursor: pointer;
22-
font-weight: bold;
23-
font-size: 13px;
24-
color: var(--body-quiet-color, #666);
25-
background: var(--darkened-bg, #f8f8f8);
26-
border: 1px solid var(--hairline-color, #e8e8e8);
27-
border-bottom: none;
28-
user-select: none;
29-
transition: 0.15s background, 0.15s color;
30-
}
31-
32-
.tabs > .active {
33-
background: var(--button-bg, #79aec8);
34-
color: white;
35-
}
36-
37-
.tabs > .active:hover {
38-
background: var(--button-hover-bg, #609ab6);
39-
}
40-
41-
.tabs > [data-region^="_unknown_"],
42-
.tabs > .has-error {
43-
border-color: var(--error-fg, #ba2121);
44-
color: var(--error-fg, #ba2121);
45-
background: var(--darkened-bg, #f8f8f8);
46-
}
47-
4811
.order-machine-wrapper {
4912
clear: both;
5013
position: relative;

content_editor/static/content_editor/tabbed_fieldsets.css

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,48 @@
2020
margin-bottom: 30px;
2121
}
2222

23+
.tabs {
24+
display: flex;
25+
}
26+
2327
.tabs > .tab {
2428
text-transform: none;
2529
letter-spacing: 0;
2630
float: left;
2731
padding: 10px 15px;
2832
margin: 0 4px 0 0;
2933
cursor: pointer;
30-
border: 1px solid #e8e8e8;
34+
font-weight: bold;
35+
font-size: 13px;
36+
color: var(--body-quiet-color, #666);
37+
background: var(--darkened-bg, #f8f8f8);
38+
border: 1px solid var(--hairline-color, #e8e8e8);
3139
border-bottom: none;
32-
background: #f8f8f8;
33-
border-radius: 4px 4px 0 0;
40+
user-select: none;
41+
transition: 0.15s background, 0.15s color;
3442
}
3543

3644
.tabs > .tab:hover {
3745
background: #f0f0f0;
3846
}
3947

40-
.tabs > .tab.active {
41-
background: white;
48+
.tabs > .active {
49+
background: var(--button-bg, #79aec8);
50+
color: white;
4251
border-color: #e8e8e8;
4352
border-bottom: 1px solid white;
4453
margin-bottom: -1px;
4554
}
4655

56+
.tabs > .active:hover {
57+
background: var(--button-hover-bg, #609ab6);
58+
}
59+
60+
.tabs > [data-region^="_unknown_"],
4761
.tabs > .has-error {
48-
border-color: #ba2121;
49-
color: #ba2121;
50-
background: #f8f8f8;
62+
border-color: var(--error-fg, #ba2121);
63+
color: var(--error-fg, #ba2121);
64+
background: var(--darkened-bg, #f8f8f8);
5165
}
5266

5367
.clearfix::after {

0 commit comments

Comments
 (0)