Update path styling

This commit is contained in:
Alessio Davoli 2023-12-10 16:17:53 +01:00
parent e61c66169a
commit 4f8e727bad
2 changed files with 25 additions and 54 deletions

View file

@ -11,7 +11,6 @@
</div> </div>
<div class="route-card-center"> <div class="route-card-center">
<div class="name"> <div class="name">
<div>Percorsi</div>
<div class="bold">{name}</div> <div class="bold">{name}</div>
</div> </div>
</div> </div>
@ -22,69 +21,40 @@
a { a {
text-decoration: inherit; text-decoration: inherit;
color: inherit; color: inherit;
cursor: auto; cursor: pointer;
}
.bold {
font-weight: bold;
}
.route-card {
text-decoration: none;
display: block;
flex: 1;
--route-card-radius: 45px;
border-radius: var(--route-card-radius);
box-shadow: 0 0 27px #ccc;
margin: 0 auto;
margin-top: 10px;
margin-bottom: 10px;
width: 90%;
display: flex;
background-color: var(--card-background-color);
}
.route-card-center {
font-size: 18px;
}
.route-card > * {
flex: 1;
}
.route-card-left {
flex: 0 1 20%;
border-top-left-radius: var(--route-card-radius);
border-bottom-left-radius: var(--route-card-radius);
display: grid; display: grid;
place-items: center; grid-template-columns: 100px auto 100px;
max-width: 30%; max-width: 100%;
width: calc(100% - 20px);
margin: 0 auto;
} }
.route-card-left img {
display: block;
max-width: 55%;
height: auto;
}
.route-card-right { .route-card-right {
flex: 0 1 20%; border-top-right-radius: 45px;
border-top-right-radius: var(--route-card-radius); border-bottom-right-radius: 45px;
border-bottom-right-radius: var(--route-card-radius);
background-image: url('/images/test-1.jpg'); background-image: url('/images/test-1.jpg');
background-position: center; background-position: center;
background-size: cover; background-size: cover;
max-width: 30%;
} }
.route-card .name { .route-card-left {
border-top-left-radius: 45px;
border-bottom-left-radius: 45px;
display: grid; display: grid;
height: 100%; place-content: center;
align-content: center;
padding: 0;
margin-left: 10px;
margin-right:10px;
font-size: 27px;
} }
.route-card .name > * { .route-card-left img {
flex: 1; width: 100%;
}
.route-card-center {
display: grid;
place-content: center;
font-weight: bold;
font-size: 20px;
padding: 4px;
max-width: 100%;
text-overflow: ellipsis;
text-align: center;
} }
</style> </style>

View file

@ -48,5 +48,6 @@
grid-row-end: 7; grid-row-end: 7;
display: grid; display: grid;
width: 100%; width: 100%;
gap: 5px;
} }
</style> </style>