aboutsummaryrefslogtreecommitdiff
path: root/_www/index.html
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-09-23 00:01:13 +0700
committerShulhan <ms@kilabit.info>2021-09-23 00:01:13 +0700
commitfcb5f55e5c10dec03ecf6256a46d3520a9affc61 (patch)
tree0415b2693539c4f504711e712ec48c507e1f5cfc /_www/index.html
parentb13b2d20aaac61f190588a6efd6b3b13d77aff4b (diff)
downloadgorankusu-fcb5f55e5c10dec03ecf6256a46d3520a9affc61.tar.xz
_www: fix the layout using px instead of em
Using em is hard to calculate between fixed menu on the left, content, and header. Especially when there is an element that needs width larger than parent width (the header of target).
Diffstat (limited to '_www/index.html')
-rw-r--r--_www/index.html61
1 files changed, 36 insertions, 25 deletions
diff --git a/_www/index.html b/_www/index.html
index 9956e4b..d5c5ada 100644
--- a/_www/index.html
+++ b/_www/index.html
@@ -30,42 +30,44 @@
.trunks_nav {
border-right: 1px solid lightgrey;
- height: calc(100% - 5em);
+ height: calc(100% - 48px);
overflow: auto;
- padding: 1em;
+ padding: 8px;
position: fixed;
- width: 14em;
+ width: 240px;
}
.trunks_nav .nav_target {
cursor: pointer;
- margin-bottom: 1em;
+ margin-bottom: 8px;
}
.trunks_nav .nav_http_target,
.trunks_nav .nav_ws_target {
cursor: pointer;
- margin-bottom: 1em;
- margin-left: 1em;
+ margin-bottom: 8px;
+ margin-left: 8px;
}
.trunks_nav .trunks_footer {
+ background-color: ivory;
bottom: 0;
font-size: 9pt;
- padding: 1em;
+ left: 0;
+ padding: 8px;
position: fixed;
- width: 16em;
- background-color: ivory;
+ text-align: center;
+ width: calc(240px - 16px);
}
.trunks_main {
- height: calc(100% - 2em);
- left: 16em;
+ height: calc(100% - 32px);
+ left: 256px;
overflow: auto;
- padding: 1em;
+ padding: 16px;
position: fixed;
- width: calc(100% - 18em);
+ width: calc(100% - 290px);
}
.trunks_main .trunks_attack_running {
border: 1px solid lightgrey;
- padding: 1em;
+ padding: 8px;
}
.trunks_input {
@@ -95,23 +97,23 @@
.ws_target_out_mono {
background-color: gainsboro;
font-family: monospace;
- padding: 1em;
+ padding: 16px;
overflow: auto;
}
.http_target {
- margin-top: 2em;
+ margin-top: 16px;
}
.http_target h3,
.ws_target h3 {
background-color: beige;
border-left: 10px solid gold;
- margin: 1em -16px;
- padding: 0.5em;
+ margin: 8px -14px;
+ padding: 12px;
}
.http_target_attack_result {
- margin-bottom: 1em;
+ margin-bottom: 8px;
}
@media screen and (max-width: 740px) {
@@ -119,20 +121,23 @@
border-bottom: 1px solid lightgrey;
border-right: unset;
height: unset;
- padding: 1em;
+ overflow: unset;
+ padding: 8px;
position: unset;
- width: calc(100% - 2em);
+ width: calc(100% - 20px);
}
.trunks_nav .trunks_footer {
- margin: 2em 0 0 0;
+ margin: 16px 0 0 0;
position: unset;
+ width: calc(100% - 20px);
}
.trunks_main {
height: unset;
- left: 0;
+ overflow: unset;
position: unset;
- width: calc(100% - 2em);
+ padding: 8px;
+ width: calc(100% - 20px);
}
.trunks_input {
@@ -159,7 +164,13 @@
}
.http_target_attack_result_actions {
display: block;
- margin: 0.5em 0px;
+ margin: 4px 0px;
+ }
+
+ .http_target h3,
+ .ws_target h3 {
+ margin: 8px 0px 0px -8px;
+ padding: 12px;
}
}
</style>