ctucx.git: trainsearch

web based trip-planner, fork of https://cyberchaos.dev/yuka/trainsearch

commit 631e114066f8e9ad23a830e72a2cf716708597ef
parent 84ba0605818114faa6cfbadacbc302448e6f9d7a
Author: Katja (ctucx) <git@ctu.cx>
Date: Sun, 26 Jan 2025 22:48:14 +0100

style.css: improve element alignments
1 file changed, 13 insertions(+), 7 deletions(-)
M
static/style.css
|
20
+++++++++++++-------
diff --git a/static/style.css b/static/style.css
@@ -316,11 +316,11 @@ header {
 	}
 
 	.suggestions {
-		position: relative;
 		overflow: visible;
 		z-index: 999;
 		height: 0;
-		width: 100%;
+		margin-left: 4px;
+		margin-right: 3.55rem;
 
 		p {
 			font-size: 1.2em;

@@ -333,6 +333,7 @@ header {
 		}
 
 		p:first-child {
+			margin-top: -4px;
 			border-top: 0px;
 		}
 

@@ -348,9 +349,8 @@ header {
 	}
 
 	.history {
-		margin-top: 8px;
+		padding: 0 4px;
 		overflow: hidden;
-		margin-bottom: 1em;
 		user-select: none;
 
 		.row {

@@ -361,11 +361,11 @@ header {
 			background-color: white;
 			color: black;
 			font-size: 1.2em;
-			border-top: 1px solid rgba(0, 0, 0, .2);
+			border-bottom: 1px solid rgba(0, 0, 0, .2);
 		}
 
-		:first-child {
-			border-top: 0px;
+		.row:last-child {
+			border-bottom: unset;
 		}
 
 		.via {

@@ -574,6 +574,12 @@ input[type="text"] {
 	border-radius: 0;
 }
 
+input[type="datetime-local"],
+input[type="date"],
+input[type="time"] {
+	font-size: 1.6em;
+}
+
 input[type="text"] {
 	border: 1px solid transparent;
 }