Skip to content

Commit efb9267

Browse files
committed
Fix style for lumino drag & drop image
1 parent 93f0f51 commit efb9267

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

src/styles/cylc/_workflow.scss

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,32 @@
3939
flex: 1 1 auto;
4040
.lm-TabBar-content {
4141
padding-left: 0;
42-
43-
.lm-TabBar-tab {
44-
display: flex;
45-
align-items: center;
46-
border-bottom: 1px solid #C0C0C0;
47-
}
48-
49-
.lm-TabBar-tabLabel {
50-
font-family: settings.$body-font-family;
51-
font-size: 1rem;
52-
}
53-
54-
.lm-TabBar-tabCloseIcon {
55-
color: inherit;
56-
cursor: pointer;
57-
}
58-
59-
.lm-TabBar-tabCloseIcon:before {
60-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' style='width:24px;height:24px' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E");
61-
display: block;
62-
width: 1rem;
63-
height: 1rem;
64-
}
6542
}
6643
}
6744
}
45+
}
6846

47+
.lm-TabBar-tab {
48+
display: flex;
49+
align-items: center;
50+
border-bottom: 1px solid #C0C0C0;
51+
}
52+
.lm-TabBar-tabLabel {
53+
font-family: settings.$body-font-family;
54+
font-size: 1rem;
55+
}
56+
.lm-TabBar-tabCloseIcon {
57+
color: inherit;
58+
cursor: pointer;
59+
}
60+
.lm-TabBar-tabCloseIcon:before {
61+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' style='width:24px;height:24px' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E") !important;
62+
display: block;
63+
width: 1rem;
64+
height: 1rem;
65+
}
66+
// Workaround https://github.com/jupyterlab/lumino/issues/593:
67+
.lm-mod-drag-image {
68+
top: -10px;
69+
left: -60px;
6970
}

0 commit comments

Comments
 (0)