Files
OpenPlanetsMaps/SRC/style.css
T

455 lines
9.2 KiB
CSS

:root {
--theme-color: #007bff;
--bg-gradient-1: #ffffff;
--bg-gradient-2: #f4f5f7;
}
body.theme-home {
--theme-color: #007bff;
--bg-gradient-1: #1e293b;
--bg-gradient-2: #0f172a;
}
body.theme-mercure {
--theme-color: #888888;
--bg-gradient-1: #2b2b2b;
--bg-gradient-2: #141414;
}
body.theme-venus {
--theme-color: #ff8c00;
--bg-gradient-1: #2b2b2b;
--bg-gradient-2: #141414;
}
body.theme-terre { --theme-color: #00bfff; --bg-gradient-2: #f0faff; }
body.theme-mars { --theme-color: #ff3b30; --bg-gradient-2: #fff0f0; }
body.theme-jupiter { --theme-color: #ff9800; --bg-gradient-2: #fff7eb; }
body.theme-saturne { --theme-color: #ffc107; --bg-gradient-2: #fffbeb; }
body.theme-uranus { --theme-color: #00e5ff; --bg-gradient-2: #e6ffff; }
body.theme-neptune { --theme-color: #1a56ff; --bg-gradient-2: #ebf0ff; }
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body {
background-color: var(--bg-gradient-2);
color: #2c3e50;
display: flex;
flex-direction: column;
min-height: 100vh;
overflow-x: hidden;
}
.bg-animated {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at top right, var(--bg-gradient-1), var(--bg-gradient-2));
z-index: -1;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
z-index: 10;
}
header h1 {
font-size: 1.5rem;
font-weight: 600;
color: #1a1a1a;
letter-spacing: -0.5px;
}
.menu-icon, .help-btn {
cursor: pointer;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 0.5rem 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
transition: all 0.2s ease;
font-size: 1rem;
color: #475569;
}
.menu-icon:hover, .help-btn:hover {
background: #f8fafc;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
color: #0f172a;
}
.sidebar {
position: fixed;
top: 0;
left: -320px;
width: 320px;
height: 100vh;
background-color: #ffffff;
box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1000;
padding: 2rem 0;
}
.sidebar.open {
left: 0;
}
.sidebar ul {
list-style: none;
}
.sidebar li {
padding: 1rem 2rem;
cursor: pointer;
font-weight: 500;
color: #475569;
transition: background-color 0.2s, color 0.2s;
border-left: 3px solid transparent;
}
.sidebar li:hover {
background-color: #f8fafc;
color: #0f172a;
border-left-color: var(--theme-color);
}
#content-area {
flex: 1;
padding: 2rem;
display: flex;
}
.layer {
display: none;
width: 100%;
flex-direction: column;
flex: 1;
text-align: center;
animation: fadeIn 0.4s ease-out;
}
.layer.active {
display: flex;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.main-img {
min-height: 25vh;
align-items: center;
justify-content: center;
font-size: 1.25rem;
color: #94a3b8;
margin-bottom: 2rem;
}
.main-img iframe,
.main-img img {
width: 100%;
max-width: 1200px;
height: 70vh;
border: none;
border-radius: 8px;
}
.main-img img {
object-fit: cover;
}
.box, .desc-box, .search-bar, .table-container {
padding: 0.5rem 0;
margin-bottom: 2.5rem;
font-size: 1.05rem;
text-align: center;
}
.data-table {
width: 100%;
max-width: 1300px;
margin: 0 auto;
border-collapse: collapse;
}
.data-table th, .data-table td {
border: 1px solid;
border-color: inherit;
opacity: 0.85;
padding: 1rem;
text-align: center;
vertical-align: middle;
}
.col-desc {
width: 40%;
min-width: 300px;
text-align: justify !important;
font-size: 0.9rem;
line-height: 1.4;
padding: 0.8rem !important;
}
.col-url {
width: 15%;
max-width: 350px;
word-wrap: break-word;
word-break: break-all;
font-size: 0.8rem;
line-height: 1.4;
}
.data-table th {
font-weight: 600;
background-color: rgba(150, 150, 150, 0.1);
}
.hidden-row {
display: none !important;
}
.show-more-btn {
display: inline-block;
margin: 1.5rem auto 0;
padding: 0.6rem 1.5rem;
background-color: rgba(150, 150, 150, 0.1);
color: inherit;
border: 1px solid currentColor;
border-radius: 20px;
cursor: pointer;
font-family: inherit;
font-size: 0.95rem;
font-weight: 500;
transition: all 0.2s ease;
opacity: 0.85;
}
.show-more-btn:hover {
opacity: 1;
background-color: rgba(150, 150, 150, 0.2);
transform: translateY(2px);
}
.desc-box {
max-width: 800px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}
#layer-home .desc-box {
white-space: nowrap;
}
.box h2 {
font-size: 1.35rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: #1a1a1a;
}
.box p {
line-height: 1.6;
color: #475569;
}
.flex-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
margin-bottom: 3.5rem;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
.flex-row .box {
flex: 1;
min-width: 280px;
margin-bottom: 0;
}
.search-bar input {
width: 100%;
max-width: 500px;
padding: 0.75rem 1rem;
border: 1px solid #cbd5e1;
border-radius: 6px;
outline: none;
font-size: 0.95rem;
text-align: center;
transition: border-color 0.2s;
}
.search-bar input:focus {
border-color: var(--theme-color);
}
.ticker-wrap {
width: 100%;
overflow: hidden;
color: #475569;
padding: 0.75rem 0;
margin-bottom: 3.5rem;
border-top: 1px solid #e2e8f0;
border-bottom: 1px solid #e2e8f0;
}
.ticker {
display: inline-block;
white-space: nowrap;
animation: marquee 15s linear infinite;
font-weight: 500;
}
@keyframes marquee {
0% { transform: translateX(100%); }
100% { transform: translateX(-100%); }
}
.site-footer {
text-align: center;
padding: 1.5rem;
background-color: #ffffff;
color: #94a3b8;
font-size: 0.85rem;
border-top: 1px solid #f1f5f9;
margin-top: auto;
}
body.theme-home {
color: #e0e0e0;
}
body.theme-home header,
body.theme-home .site-footer {
background-color: rgba(15, 23, 42, 0.85);
border-color: #334155;
}
body.theme-home header h1 {
color: #ffffff;
}
body.theme-home .menu-icon,
body.theme-home .help-btn {
background-color: #1e293b;
border-color: #334155;
color: #b9bbbe;
}
body.theme-home .menu-icon:hover,
body.theme-home .help-btn:hover {
background-color: #334155;
color: #ffffff;
}
body.theme-mercure {
color: #e0e0e0;
}
body.theme-mercure header,
body.theme-mercure .site-footer {
background-color: rgba(20, 20, 20, 0.85);
border-color: #333333;
}
body.theme-mercure header h1,
body.theme-mercure .box h2 {
color: #ffffff;
}
body.theme-mercure .menu-icon,
body.theme-mercure .help-btn {
background-color: #2b2b2b;
border-color: #333333;
color: #a3a3a3;
}
body.theme-mercure .menu-icon:hover,
body.theme-mercure .help-btn:hover {
background-color: #444444;
color: #ffffff;
}
body.theme-mercure .ticker-wrap { color: #a3a3a3; border-color: #333333; }
body.theme-mercure .box p, body.theme-mercure .desc-box { color: #a3a3a3; }
body.theme-mercure .site-footer { color: #777777; }
body.theme-mercure .sidebar { background-color: #141414; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5); }
body.theme-mercure .sidebar li { color: #a3a3a3; }
body.theme-mercure .sidebar li:hover { background-color: #2b2b2b; color: #ffffff; }
body.theme-venus {
color: #e0e0e0;
}
body.theme-venus header,
body.theme-venus .site-footer {
background-color: rgba(20, 20, 20, 0.85);
border-color: #333333;
}
body.theme-venus header h1,
body.theme-venus .box h2 { color: #ffffff; }
body.theme-venus .menu-icon,
body.theme-venus .help-btn { background-color: #2b2b2b; border-color: #333333; color: #a3a3a3; }
body.theme-venus .menu-icon:hover,
body.theme-venus .help-btn:hover { background-color: #444444; color: #ffffff; }
body.theme-venus .ticker-wrap { color: #a3a3a3; border-color: #333333; }
body.theme-venus .box p, body.theme-venus .desc-box { color: #a3a3a3; }
body.theme-venus .site-footer { color: #777777; }
body.theme-venus .sidebar { background-color: #141414; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5); }
body.theme-venus .sidebar li { color: #a3a3a3; }
body.theme-venus .sidebar li:hover { background-color: #2b2b2b; color: #ffffff; }
body.theme-home .ticker-wrap {
color: #b9bbbe;
border-color: #00bfff;
box-shadow: 0 -2px 10px rgba(0, 191, 255, 0.2), 0 2px 10px rgba(0, 191, 255, 0.2);
}
body.theme-home .box h2 {
color: #00bfff;
}
body.theme-home .box p,
body.theme-home .desc-box {
color: #b9bbbe;
}
body.theme-home .site-footer {
color: #8e9297;
}
body.theme-home .sidebar {
background-color: #1e293b;
box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
}
body.theme-home .sidebar li {
color: #b9bbbe;
}
body.theme-home .sidebar li:hover {
background-color: #334155;
color: #ffffff;
}