Skip to content

Commit 58b1a5c

Browse files
Jorgen-5Jorgen-5
andauthored
Update tabs (#613)
Co-authored-by: Jorgen-5 <rlj@ssb.no>
1 parent 7656190 commit 58b1a5c

3 files changed

Lines changed: 1684 additions & 1678 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
dependencies = [
1515
"arrow>=1.3.0",
1616
"dapla-toolbelt-metadata>=0.14.0",
17-
"dash<4",
17+
"dash>=4.0.0",
1818
"dash-bootstrap-components>=1.1.0",
1919
"flask-healthz>=0.0.3",
2020
"gunicorn>=23.0.0",

src/datadoc_editor/assets/controlbar_style.css

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
margin-top: 1.5rem;
1717
}
1818

19-
.jsx-4017309047.tab-container.ssb-tabs{
19+
.tab-container.ssb-tabs{
2020
display: flex;
2121
flex-direction: row;
22+
justify-content: flex-start;
2223
border-bottom: 2px solid #274247;
2324
}
2425

25-
.jsx-3468109796.tab.workspace-tab{
26+
.tab.workspace-tab{
2627
font-size: 1rem;
2728
font-weight: bold;
2829
align-items: center;
@@ -42,16 +43,17 @@
4243
text-decoration: none;
4344
transition: background 0.2s;
4445
width: fit-content;
46+
flex: 0 0 auto;
4547
}
4648

47-
.jsx-3468109796.tab.workspace-tab:not(:last-of-type){
49+
.tab.workspace-tab:not(:last-of-type){
4850
margin-right: 40px;
4951
}
5052

51-
.jsx-4017309047.tab-container.ssb-tabs >.tab.jsx-3468109796:last-of-type{
53+
.tab-container.ssb-tabs > .tab.workspace-tab:last-of-type{
5254
border: unset;
5355
}
54-
.jsx-3468109796.tab.workspace-tab::before{
56+
.tab.workspace-tab::before{
5557
background: #274247;
5658
bottom: 0;
5759
content: "";
@@ -63,17 +65,18 @@
6365
width: 100%;
6466
}
6567

66-
.jsx-3468109796.tab.workspace-tab:hover::before{
68+
.tab.workspace-tab:hover::before{
6769
height: 4px;
6870
}
69-
.jsx-3468109796.tab.workspace-tab:focus::before{
71+
.tab.workspace-tab:focus::before{
7072
height: 4px;
7173
}
72-
.jsx-4017309047.tab-container.ssb-tabs > .jsx-3468109796.tab.workspace-tab.tab--selected {
74+
.tab-container.ssb-tabs > .tab.workspace-tab.tab--selected {
75+
border-top: none !important;
7376
border-bottom: 4px solid #1a9d49;
7477
}
7578

76-
.jsx-4017309047.tab-container.ssb-tabs > .jsx-3468109796.tab.workspace-tab.tab--selected:hover::before{
79+
.tab-container.ssb-tabs > .tab.workspace-tab.tab--selected:hover::before{
7780
height: unset;
7881
}
7982
@media screen and (min-width: 800px){

0 commit comments

Comments
 (0)