Skip to content

Commit

Permalink
fix: fix Paul comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriel-Sautron committed Feb 5, 2025
1 parent 2a77a39 commit 92ddaa5
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,6 @@
margin-left: 8px;
position: relative;
line-height: 24px;

&::after {
content: '';
position: absolute;
top: 0;
right: -24px;
width: 24px;
height: 22px;
background: linear-gradient(270deg, rgba(247, 246, 238, 0), rgba(247, 246, 238, 1));
z-index: 1;
}
}

.no-train {
Expand Down Expand Up @@ -526,16 +515,24 @@
/* Trick to hide the image if too narrow */
.rolling-stock-img {
overflow: hidden;
height: 22px;

&::before {
content: '';
display: inline-block;
height: 11.2px;
}
img {
height: 24px;
position: relative;

&::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 24px;
height: 22px;
background: linear-gradient(270deg, rgba(247, 246, 238, 0), rgba(247, 246, 238, 1));
z-index: 1;
}

img {
max-width: 108px;
min-width: 40px;
height: 11.2px;
height: 16px;
object-fit: cover;
object-position: left;
transform: scaleX(-1);
Expand Down Expand Up @@ -621,7 +618,6 @@
justify-content: center;
align-items: center;
padding-right: 8px;
backdrop-filter: blur(2px);

button {
padding: 3px 8px;
Expand Down Expand Up @@ -651,7 +647,7 @@
&.selected:not(.invalid) {
background-color: var(--selection20);
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.25);
.checkbox-title::after {
.rolling-stock-img::before {
background: linear-gradient(
270deg,
rgba(255, 242, 179, 0),
Expand Down Expand Up @@ -683,14 +679,18 @@
}

&:hover:not(.modified) {
.rolling-stock {
opacity: 0.3;
.train-time {
color: var(--grey20)
}
.action-buttons {
display: flex;
z-index: 1;
}
}

&:hover:not(.selected, .mofied, .invalid) {
background-color: var(--ambiantB15);
}
}

&:not(.with-details) {
Expand Down

0 comments on commit 92ddaa5

Please sign in to comment.