app-lookup-rust / static /css /style.css
lljz66's picture
Upload static/css/style.css
4a2a3f5 verified
Raw
History Blame Contribute Delete
2.55 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #0d1117;
color: #c9d1d9;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
}
.container {
width: 100%;
max-width: 800px;
padding: 2rem 1rem;
}
h1 {
font-size: 2rem;
text-align: center;
margin-bottom: 0.5rem;
}
.subtitle {
text-align: center;
color: #8b949e;
margin-bottom: 2rem;
}
.search-box {
margin-bottom: 2rem;
}
.search-row {
display: flex;
gap: 0.5rem;
}
.search-row input {
flex: 1;
padding: 0.75rem 1rem;
border: 1px solid #30363d;
border-radius: 6px;
background: #161b22;
color: #c9d1d9;
font-size: 1rem;
}
.search-row input:focus {
outline: none;
border-color: #58a6ff;
}
.search-row select {
padding: 0.75rem;
border: 1px solid #30363d;
border-radius: 6px;
background: #161b22;
color: #c9d1d9;
font-size: 1rem;
cursor: pointer;
}
.search-row button {
padding: 0.75rem 1.5rem;
background: #238636;
color: #fff;
border: 1px solid #2ea043;
border-radius: 6px;
font-size: 1rem;
cursor: pointer;
transition: background 0.2s;
}
.search-row button:hover {
background: #2ea043;
}
.results {
display: grid;
gap: 0.75rem;
}
.result-card {
display: flex;
gap: 1rem;
padding: 1rem;
background: #161b22;
border: 1px solid #30363d;
border-radius: 8px;
align-items: center;
}
.result-card img {
width: 64px;
height: 64px;
border-radius: 12px;
flex-shrink: 0;
}
.result-info {
flex: 1;
min-width: 0;
}
.result-info a {
color: #58a6ff;
text-decoration: none;
font-weight: 600;
font-size: 1.05rem;
}
.result-info a:hover {
text-decoration: underline;
}
.result-info .developer {
color: #8b949e;
font-size: 0.9rem;
margin-top: 0.25rem;
}
.result-meta {
display: flex;
gap: 0.75rem;
margin-top: 0.5rem;
font-size: 0.85rem;
}
.store-badge {
padding: 0.15rem 0.5rem;
border-radius: 4px;
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
}
.store-play { background: #1f6feb33; color: #58a6ff; }
.store-ios { background: #8957e533; color: #d2a8ff; }
.price {
color: #8b949e;
}
.rating {
color: #d29922;
}
.error {
color: #f85149;
text-align: center;
margin-top: 1rem;
}
.loading {
text-align: center;
color: #8b949e;
padding: 2rem;
}
@media (max-width: 600px) {
.search-row {
flex-direction: column;
}
.result-card {
flex-direction: column;
text-align: center;
}
}