You've already forked collage-maker
Move css to seperate file and add no-cache for dev assets
This commit is contained in:
83
web/index.css
Normal file
83
web/index.css
Normal file
@@ -0,0 +1,83 @@
|
||||
.container {
|
||||
display: flex;
|
||||
background-color: lightyellow;
|
||||
height: calc(100vh - 20px);
|
||||
}
|
||||
.controls {
|
||||
background-color: lightgrey;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 30%;
|
||||
}
|
||||
.imagebox {
|
||||
padding: 2rem;
|
||||
flex: 70%;
|
||||
}
|
||||
.image-surface {
|
||||
overflow: hidden;
|
||||
margin: auto;
|
||||
border: 1px solid;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.showbuton {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
// paper sizes
|
||||
.letter-portrait {
|
||||
aspect-ratio: 85 / 110;
|
||||
}
|
||||
.letter-landscape {
|
||||
aspect-ratio: 110 / 85;
|
||||
}
|
||||
.fiveseven-portrait {
|
||||
aspect-ratio: 5 / 7;
|
||||
}
|
||||
.fiveseven-landscape {
|
||||
aspect-ratio: 7 / 5;
|
||||
}
|
||||
.foursix-portrait {
|
||||
aspect-ratio: 4 / 6;
|
||||
}
|
||||
.foursix-landscape {
|
||||
aspect-ratio: 6 / 4;
|
||||
}
|
||||
|
||||
.half-landscape {
|
||||
display:flex;
|
||||
}
|
||||
|
||||
.half-landscape .collage-img {
|
||||
flex: 50%;
|
||||
}
|
||||
|
||||
.one-two {
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"one two"
|
||||
"one three";
|
||||
}
|
||||
.one-two .img1{
|
||||
grid-area: one;
|
||||
}
|
||||
|
||||
.letter-portrait .collage-img {
|
||||
height: 50%;
|
||||
}
|
||||
.letter-landscape-2 {
|
||||
display:flex;
|
||||
// width: 80vh;
|
||||
height: 100%;
|
||||
// margin: auto;
|
||||
aspect-ratio: 110 / 85;
|
||||
// aspect-ratio: 7 / 5;
|
||||
gap: 1rem;
|
||||
}
|
||||
.letter-landscape-2 .img1 {
|
||||
flex: 60%;
|
||||
}
|
||||
.letter-landscape-2 .img2 {
|
||||
flex: 40%;
|
||||
}
|
||||
Reference in New Issue
Block a user