diff --git a/sidepanel/index.css b/sidepanel/index.css index dd1b290..0aee4fb 100644 --- a/sidepanel/index.css +++ b/sidepanel/index.css @@ -35,8 +35,51 @@ margin-left: auto; } +.datetime-box { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 0.5rem; +} + +@media screen and (max-width: 768px) { + .datetime-box { + flex-direction: column; + align-items: stretch; + } +} + +.input-group { + display: flex; + gap: 1rem; + align-items: center; + margin: 0.5rem 0; + min-width: 200px; +} + +@media screen and (max-width: 768px) { + .input-group { + min-width: unset; + width: 100%; + } +} + .input-text { - width: 100%; + width: 200px; + padding: 0.5rem; + margin: 0.5rem 0; + box-sizing: border-box; +} + +@media screen and (max-width: 768px) { + .input-text { + width: 100%; + flex: 1; + } +} + +.select-box { + width: 150px; padding: 0.5rem; margin: 0.5rem 0; box-sizing: border-box; @@ -49,13 +92,16 @@ border: none; border-radius: 0.25rem; cursor: pointer; + height: 2rem; + width: 4rem; + margin: 0.5rem 0; + align-self: flex-start; } -.select-box { - width: 100%; - padding: 0.5rem; - margin: 0.5rem 0; - box-sizing: border-box; +@media screen and (max-width: 768px) { + .convert-button { + width: 100%; + } } .content { @@ -68,4 +114,4 @@ .page.active { display: block; -} +} \ No newline at end of file diff --git a/sidepanel/index.html b/sidepanel/index.html index 6724b47..604a350 100644 --- a/sidepanel/index.html +++ b/sidepanel/index.html @@ -18,7 +18,6 @@
-

时间戳工具

@@ -37,30 +36,71 @@

时间戳转日期时间

-
- - -
-
- -
-
- - +
+
+ + +
+ +
+ +
+ +
+ + +

日期时间转时间戳

+
+
+ + +
- -

+
+ +
+ +
+ + +
+