Skip to content

Commit 92ddaa5

Browse files
committed
fix: fix Paul comments
1 parent 2a77a39 commit 92ddaa5

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

front/src/styles/scss/applications/operationalStudies/_scenario.scss

+24-24
Original file line numberDiff line numberDiff line change
@@ -334,17 +334,6 @@
334334
margin-left: 8px;
335335
position: relative;
336336
line-height: 24px;
337-
338-
&::after {
339-
content: '';
340-
position: absolute;
341-
top: 0;
342-
right: -24px;
343-
width: 24px;
344-
height: 22px;
345-
background: linear-gradient(270deg, rgba(247, 246, 238, 0), rgba(247, 246, 238, 1));
346-
z-index: 1;
347-
}
348337
}
349338

350339
.no-train {
@@ -526,16 +515,24 @@
526515
/* Trick to hide the image if too narrow */
527516
.rolling-stock-img {
528517
overflow: hidden;
529-
height: 22px;
530-
531-
&::before {
532-
content: '';
533-
display: inline-block;
534-
height: 11.2px;
535-
}
536-
img {
518+
height: 24px;
519+
position: relative;
520+
521+
&::before {
522+
content: '';
523+
position: absolute;
524+
top: 0;
525+
left: 0;
526+
width: 24px;
527+
height: 22px;
528+
background: linear-gradient(270deg, rgba(247, 246, 238, 0), rgba(247, 246, 238, 1));
529+
z-index: 1;
530+
}
531+
532+
img {
533+
max-width: 108px;
537534
min-width: 40px;
538-
height: 11.2px;
535+
height: 16px;
539536
object-fit: cover;
540537
object-position: left;
541538
transform: scaleX(-1);
@@ -621,7 +618,6 @@
621618
justify-content: center;
622619
align-items: center;
623620
padding-right: 8px;
624-
backdrop-filter: blur(2px);
625621

626622
button {
627623
padding: 3px 8px;
@@ -651,7 +647,7 @@
651647
&.selected:not(.invalid) {
652648
background-color: var(--selection20);
653649
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.25);
654-
.checkbox-title::after {
650+
.rolling-stock-img::before {
655651
background: linear-gradient(
656652
270deg,
657653
rgba(255, 242, 179, 0),
@@ -683,14 +679,18 @@
683679
}
684680

685681
&:hover:not(.modified) {
686-
.rolling-stock {
687-
opacity: 0.3;
682+
.train-time {
683+
color: var(--grey20)
688684
}
689685
.action-buttons {
690686
display: flex;
691687
z-index: 1;
692688
}
693689
}
690+
691+
&:hover:not(.selected, .mofied, .invalid) {
692+
background-color: var(--ambiantB15);
693+
}
694694
}
695695

696696
&:not(.with-details) {

0 commit comments

Comments
 (0)