diff options
| author | Anna Knoerr <an.kn@protonmail.ch> | 2025-07-21 14:13:54 +0200 |
|---|---|---|
| committer | Anna Knoerr <an.kn@protonmail.ch> | 2025-07-21 14:13:54 +0200 |
| commit | 56266d00a5381588580ee555d43ea4e8686573c8 (patch) | |
| tree | 3ff732e306905d4ea4f2d4497e84a62d601e2255 /elements.css | |
| parent | fd048dfe8cf9b38c80c4adfa48484325684f154c (diff) | |
testing quantum elements with json
Diffstat (limited to 'elements.css')
| -rw-r--r-- | elements.css | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/elements.css b/elements.css new file mode 100644 index 0000000..0cebd97 --- /dev/null +++ b/elements.css @@ -0,0 +1,103 @@ +/* elements.css */ +body { + margin: 0; + font-family: Arial, sans-serif; + background-color: #f4f4f4; + } + + .periodic-table { + display: grid; + grid-template-columns: repeat(18, 1fr); + grid-gap: 5px; + padding: 20px; + max-width: 1200px; + margin: auto; + } + + .element { + background-color: #e0e0e0; + border: 1px solid #999; + text-align: center; + padding: 10px; + cursor: pointer; + border-radius: 5px; + position: relative; + } + + .element .number { + font-size: 12px; + position: absolute; + top: 5px; + left: 5px; + } + + .element .symbol { + font-size: 20px; + font-weight: bold; + } + + .element .name { + font-size: 12px; + } + + /* Classification colors */ + .alkali-metal { background-color: #ff6666; } + .alkaline-earth-metal { background-color: #ffdead; } + .lanthanoid { background-color: #ffbfff; } + .actinoid { background-color: #ff99cc; } + .transition-metal { background-color: #ffc0c0; } + .post-transition-metal { background-color: #cccccc; } + .metalloid { background-color: #cccc99; } + .nonmetal { background-color: #b3e6ff; } + noble-gas { background-color: #c0ffff; } + .unknown { background-color: #e5e5e5; } + + /* Overlay and popup */ + #overlay { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.6); + backdrop-filter: blur(4px); + z-index: 1000; + } + + #popup { + display: none; + position: fixed; + top: 10%; + left: 50%; + transform: translateX(-50%); + width: 80%; + max-width: 600px; + background-color: #fff; + padding: 20px; + border-radius: 8px; + z-index: 1001; + overflow-y: auto; + max-height: 80%; + } + + #popup h2 { + margin-top: 0; + } + + #popup button { + display: block; + margin: 20px auto 0; + padding: 10px 20px; + font-size: 16px; + border: none; + background-color: #007bff; + color: white; + border-radius: 5px; + cursor: pointer; + } + + #popup button:hover { + background-color: #0056b3; + } +
\ No newline at end of file |
