From b5be911c3dc31f38a9c09e858e5834616a7a6b35 Mon Sep 17 00:00:00 2001 From: David <133239148+ThatSINEWAVE@users.noreply.github.com> Date: Wed, 5 Jun 2024 02:32:28 +0300 Subject: [PATCH] Create styles.css --- styles.css | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 styles.css diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..c7bcb62 --- /dev/null +++ b/styles.css @@ -0,0 +1,207 @@ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap'); + +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: 'Poppins', sans-serif; + background-color: #f5f5f5; + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; +} + +.container { + background-color: #fff; + padding: 3rem; + border-radius: 1rem; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); + text-align: center; + max-width: 800px; + width: 100%; +} + +h1 { + margin-bottom: 2rem; + color: #333; + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); +} + +.options { + display: flex; + justify-content: center; + margin-bottom: 3rem; +} + +.option-btn { + background-color: #007bff; + color: #fff; + border: none; + padding: 0.75rem 1.5rem; + border-radius: 0.5rem; + cursor: pointer; + margin: 0 1rem; + transition: background-color 0.3s ease, transform 0.3s ease; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +.option-btn:hover { + background-color: #0056b3; + transform: translateY(-3px); +} + +.option-menu { + display: none; +} + +.option-menu.active { + display: block; +} + +.color-display { + width: 300px; + height: 300px; + border-radius: 1rem; + margin: 1rem auto; + margin-top: 1px; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); +} + +.color-codes { + display: flex; + justify-content: center; + flex-wrap: wrap; + margin-bottom: 2rem; +} + +.color-code { + display: flex; + align-items: center; + margin: 1rem; + background-color: #f5f5f5; + padding: 0.5rem 1rem; + border-radius: 0.5rem; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +.color-code span { + margin-right: 1rem; + font-weight: 600; + color: #333; +} + +.copy-btn { + background-color: #007bff; + color: #fff; + border: none; + padding: 0.5rem 1rem; + border-radius: 0.5rem; + cursor: pointer; + transition: background-color 0.3s ease, transform 0.3s ease; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +.copy-btn:hover { + background-color: #0056b3; + transform: translateY(-2px); +} + +.back-btn { + background-color: #6c757d; + color: #fff; + border: none; + padding: 0.75rem 1.5rem; + border-radius: 0.5rem; + cursor: pointer; + transition: background-color 0.3s ease, transform 0.3s ease; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +.back-btn:hover { + background-color: #495057; + transform: translateY(-2px); +} + +#hue-input, +#converter-input { + padding: 0.75rem; + border-radius: 0.5rem; + border: 1px solid #ced4da; + margin-bottom: 2rem; + font-size: 1rem; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +#converter-input-type, +#converter-output-type { + padding: 0.75rem; + border-radius: 0.5rem; + border: 1px solid #ced4da; + margin-bottom: 2rem; + margin-right: 1rem; + font-size: 1rem; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +/* Animations */ +@keyframes fadeIn { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +.option-menu.active { + animation: fadeIn 0.5s ease; +} + +footer { + position: fixed; + bottom: 0; + width: 100%; + text-align: center; + padding: 10px; + background: transparent; +} + +footer a { + margin: 0 15px; + display: inline-block; + font-size: 20px; + color: #1e1f22; + animation: neonGlow 2s infinite alternate; +} + +/* Media Queries */ +@media (max-width: 768px) { + .container { + padding: 2rem; + } + + .color-display { + width: 200px; + height: 200px; + } + + .option-btn { + padding: 0.5rem 1rem; + margin: 0 0.5rem; + } + + .back-btn { + padding: 0.5rem 1rem; + } + + #hue-input, + #converter-input, + #converter-input-type, + #converter-output-type { + font-size: 0.9rem; + } +} \ No newline at end of file