bad fix for responsive instance container
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
c1ca182d10
commit
389a548d00
55
index.html
55
index.html
@ -10,22 +10,47 @@
|
|||||||
<script src="scripts/index.js" type="module"></script>
|
<script src="scripts/index.js" type="module"></script>
|
||||||
<script src="scripts/instance.js" type="module"></script>
|
<script src="scripts/instance.js" type="module"></script>
|
||||||
<style>
|
<style>
|
||||||
#instance-container {
|
@media screen and (min-width: 1000px) {
|
||||||
display: grid;
|
#instance-container {
|
||||||
grid-template-columns: auto auto auto auto auto auto 1fr auto;
|
display: grid;
|
||||||
column-gap: 2.5em;
|
grid-template-columns: auto auto auto auto auto 1fr auto;
|
||||||
align-items: center;
|
column-gap: 2.5em;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
#instance-container-header * {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
instance-obj {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
instance-obj:after, instance-obj:first-of-type:before {
|
||||||
|
content: " ";
|
||||||
|
border-bottom: 1px solid var(--content-txt-color);
|
||||||
|
grid-column: 1 / span 8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#instance-container-header * {
|
@media screen and (max-width: 1000px) {
|
||||||
margin-top: 0px;
|
#instance-container {
|
||||||
}
|
display: flex;
|
||||||
instance-obj {
|
flex-direction: column;
|
||||||
display: contents;
|
}
|
||||||
}
|
#instance-container-header * {
|
||||||
instance-obj:after, instance-obj:first-of-type:before {
|
display: none;
|
||||||
content: " ";
|
}
|
||||||
border-bottom: 1px solid var(--content-txt-color);
|
instance-obj {
|
||||||
grid-column: 1 / span 8;
|
display: grid;
|
||||||
|
grid-template-columns: auto auto auto 1fr;
|
||||||
|
gap: 20px;
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
border-bottom: 1px solid var(--content-txt-color);
|
||||||
|
}
|
||||||
|
instance-obj:first-of-type {
|
||||||
|
border-top: 1px solid var(--content-txt-color);
|
||||||
|
}
|
||||||
|
.btn-group {
|
||||||
|
grid-column: 3 / span 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -41,7 +41,6 @@ async function populateInstances () {
|
|||||||
<p>VM Status</p>
|
<p>VM Status</p>
|
||||||
<p>Host Name</p>
|
<p>Host Name</p>
|
||||||
<p>Host Status</p>
|
<p>Host Status</p>
|
||||||
<div class="hidden"></div>
|
|
||||||
<p>Actions</p>
|
<p>Actions</p>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -16,7 +16,6 @@ export class Instance extends HTMLElement {
|
|||||||
<div><img id="instance-status-icon"><p id="instance-status"></p></div>
|
<div><img id="instance-status-icon"><p id="instance-status"></p></div>
|
||||||
<p id="node-name"></p>
|
<p id="node-name"></p>
|
||||||
<div><img id="node-status-icon"><p id="node-status"></p></div>
|
<div><img id="node-status-icon"><p id="node-status"></p></div>
|
||||||
<div class="hidden"></div>
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<img id="power-btn" class="clickable">
|
<img id="power-btn" class="clickable">
|
||||||
<img id="console-btn" class="clickable">
|
<img id="console-btn" class="clickable">
|
||||||
|
Loading…
Reference in New Issue
Block a user