Files
rustyip/static/style.css
T

135 lines
1.9 KiB
CSS

*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
color: #1a1a1a;
background: #fff;
-webkit-font-smoothing: antialiased;
}
main {
max-width: 540px;
margin: 80px auto 0;
padding: 0 20px;
}
.search-form {
display: flex;
gap: 8px;
}
.search-form input {
flex: 1;
height: 38px;
padding: 0 12px;
border: 1px solid #d0d0d0;
border-radius: 6px;
font-size: 14px;
font-family: inherit;
color: #1a1a1a;
background: #fff;
outline: none;
}
.search-form input:focus {
border-color: #999;
}
.search-form input::placeholder {
color: #999;
}
.search-form button {
height: 38px;
padding: 0 16px;
border: 1px solid #d0d0d0;
border-radius: 6px;
font-size: 14px;
font-family: inherit;
color: #1a1a1a;
background: #fafafa;
cursor: pointer;
}
.search-form button:hover {
background: #f0f0f0;
}
.ip-display {
text-align: center;
font-size: clamp(28px, 6vw, 42px);
font-weight: 600;
margin: 40px 0 32px;
letter-spacing: -0.5px;
overflow-wrap: break-word;
word-break: break-all;
}
.info-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.info-table td {
padding: 10px 4px;
border-top: 1px solid #eee;
font-size: 15px;
vertical-align: top;
overflow-wrap: break-word;
}
.info-table tr:last-child td {
border-bottom: 1px solid #eee;
}
.info-table .label {
width: 120px;
font-weight: 600;
color: #1a1a1a;
}
.info-table .bool-true {
color: #16a34a;
}
@media (max-width: 480px) {
main {
margin-top: 40px;
padding: 0 16px;
}
.search-form input,
.search-form button {
height: 44px;
}
.ip-display {
margin: 28px 0 24px;
}
.info-table .label {
width: 100px;
}
.info-table td {
font-size: 14px;
}
}
@media (max-width: 360px) {
.search-form {
flex-direction: column;
}
.search-form button {
width: 100%;
}
}