From b6ca68a587c8dab73f7336623788c4c39287d2e8 Mon Sep 17 00:00:00 2001 From: KTrain <69028025+KTrain5169@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:16:52 +0700 Subject: [PATCH] Update styles.css --- css/styles.css | 52 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/css/styles.css b/css/styles.css index 6c6e49c..77b6267 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1,54 +1,78 @@ -/* Apply a simple font and background */ +/* Set body background and typography */ body { - font-family: 'Arial', sans-serif; + font-family: 'Helvetica', sans-serif; background-color: #181818; - color: #e0e0e0; + color: #f0f0f0; margin: 0; - padding: 0; + padding: 20px; text-align: center; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100vh; } +/* Bold title */ b { - font-size: 24px; - margin-top: 20px; + font-size: 28px; + margin-bottom: 15px; display: block; } +/* Styling for links */ a { color: #ff91a4; text-decoration: none; + font-size: 18px; } a:hover { text-decoration: underline; } +/* Remove default list styling */ ul { - list-style-type: none; + list-style: none; padding: 0; + margin: 20px 0; } -ul a { - display: block; - padding: 10px; +/* Style the list items */ +ul li { background-color: #282828; border-radius: 5px; - margin: 5px; + padding: 10px; + margin: 10px 0; + transition: background-color 0.3s ease; } -ul a:hover { +/* Change background color on hover */ +ul li:hover { background-color: #ff91a4; color: #181818; } -/* Center content vertically and horizontally */ +ul li a { + color: inherit; /* Match the text color of the li */ +} + +ul li a:hover { + text-decoration: none; +} + +/* Ensure everything stacks vertically */ html, body { - height: 100%; display: flex; justify-content: center; align-items: center; + flex-direction: column; + height: 100%; + margin: 0; + padding: 0; } br { margin-bottom: 10px; } +