mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-18 12:54:27 +01:00
fix images' size and ratio
This commit is contained in:
parent
b74570c778
commit
54cb9ab152
@ -243,8 +243,10 @@
|
|||||||
|
|
||||||
&.picture {
|
&.picture {
|
||||||
height: 250px;
|
height: 250px;
|
||||||
background-size: cover;
|
background-size: contain;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
@include transition(opacity 0.5s ease);
|
@include transition(opacity 0.5s ease);
|
||||||
|
|
||||||
|
@ -70,3 +70,5 @@
|
|||||||
@import "modules/subscriptions/renew-modal";
|
@import "modules/subscriptions/renew-modal";
|
||||||
|
|
||||||
@import "app.responsive";
|
@import "app.responsive";
|
||||||
|
|
||||||
|
@import "overrides"
|
||||||
|
@ -51,13 +51,13 @@
|
|||||||
|
|
||||||
.machine-picture {
|
.machine-picture {
|
||||||
height: 250px;
|
height: 250px;
|
||||||
background-size: cover;
|
background-size: contain;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
transition: opacity 0.5s ease;
|
transition: opacity 0.5s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
background-color: #f5f5f5;
|
|
||||||
border-color: #ddd;
|
border-color: #ddd;
|
||||||
border-bottom: 1px solid transparent;
|
border-bottom: 1px solid transparent;
|
||||||
border-top-left-radius: 5px;
|
border-top-left-radius: 5px;
|
||||||
|
9
app/frontend/src/stylesheets/overrides.scss
Normal file
9
app/frontend/src/stylesheets/overrides.scss
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.carousel {
|
||||||
|
&-inner {
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-inner > .item {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user