editor: enhance width control
This commit is contained in:
parent
281b5e0600
commit
357245d234
|
|
@ -3,6 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>CV</title>
|
<title>CV</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="cv-container"></div>
|
<div class="cv-container"></div>
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,14 @@ button {
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 150px 1fr 1fr;
|
grid-template-columns: 150px minmax(500px, 1fr) 1fr;
|
||||||
grid-template-rows: 100vh;
|
grid-template-rows: 100vh;
|
||||||
|
|
||||||
|
// 800px is approximately the width of A4, when the screen is larger that 150 + 800px + A4, the middle column should keep 800px wide
|
||||||
|
@media screen and (min-width: 1750px) {
|
||||||
|
grid-template-columns: 150px 800px 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
> .column {
|
> .column {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue