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/instance.js" type="module"></script>
|
||||
<style>
|
||||
#instance-container {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto auto auto auto 1fr auto;
|
||||
column-gap: 2.5em;
|
||||
align-items: center;
|
||||
@media screen and (min-width: 1000px) {
|
||||
#instance-container {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto auto auto 1fr auto;
|
||||
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 * {
|
||||
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;
|
||||
@media screen and (max-width: 1000px) {
|
||||
#instance-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
#instance-container-header * {
|
||||
display: none;
|
||||
}
|
||||
instance-obj {
|
||||
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>
|
||||
</head>
|
||||
|
@ -41,7 +41,6 @@ async function populateInstances () {
|
||||
<p>VM Status</p>
|
||||
<p>Host Name</p>
|
||||
<p>Host Status</p>
|
||||
<div class="hidden"></div>
|
||||
<p>Actions</p>
|
||||
</div>
|
||||
`;
|
||||
|
@ -16,7 +16,6 @@ export class Instance extends HTMLElement {
|
||||
<div><img id="instance-status-icon"><p id="instance-status"></p></div>
|
||||
<p id="node-name"></p>
|
||||
<div><img id="node-status-icon"><p id="node-status"></p></div>
|
||||
<div class="hidden"></div>
|
||||
<div class="btn-group">
|
||||
<img id="power-btn" class="clickable">
|
||||
<img id="console-btn" class="clickable">
|
||||
|
Loading…
Reference in New Issue
Block a user