support_uwuzu_net/css/layout.css

250 lines
4.2 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=BIZ+UDGothic:wght@400;700&family=BIZ+UDPGothic:wght@400;700&family=Inter:wght@100..900&display=swap");
body {
margin: 0px;
width: 100%;
height: 100%;
display: grid;
grid-template-rows: auto 1fr auto;
min-height: 100vh;
}
.top {
width: 100%;
margin: 0px;
height: 64px;
display: flex;
justify-content: space-between;
border-radius: 0px 0px 15px 15px;
}
.top .left {
margin-left: 0px;
display: flex;
}
.top .left img {
width: 48px;
height: 48px;
margin: 8px;
object-fit: cover;
border-radius: 8px;
}
.top .left a {
display: block;
text-decoration: none;
font-size: 32px;
font-weight: bold;
line-height: 48px;
height: fit-content;
width: fit-content;
font-family: "Inter", "BIZ UDPGothic", sans-serif;
margin: 8px 0px;
}
.top .right {
margin-right: 0px;
display: flex;
}
.top .right .searchbox {
width: 200px;
height: 28px;
margin: 16px;
border-radius: 25px;
padding-left: 8px;
outline: none;
}
main {
margin: 0px auto;
width: 1080px;
}
main h1 {
font-size: 48px;
}
main p {
font-family: "Inter", "BIZ UDPGothic", sans-serif;
font-weight: normal;
font-size: 16px;
}
main .contents {
margin-top: 32px;
width: 100%;
display: flex;
justify-content: space-between;
height: fit-content;
flex-wrap: wrap;
}
main .contents .items {
cursor: pointer;
width: calc(50% - 40px);
height: fit-content;
border-radius: 10px;
padding: 16px;
margin-bottom: 16px;
transition: all 250ms ease-out;
}
main .contents .items h1 {
font-size: 24px;
margin: 4px 0px;
}
main .contents .items p {
font-family: "Inter", "BIZ UDPGothic", sans-serif;
font-weight: normal;
font-size: 14px;
margin: 4px 0px;
}
main .contents .items .date {
font-size: 12px;
}
main .article {
width: 100%;
height: fit-content;
}
main h1
main .contents .items .date,
main .contents .items h1
main .article .date,
main .article h1,
main .article h2,
main .article h3 {
font-family: "Inter", "BIZ UDPGothic", sans-serif;
font-weight: bold;
}
main .article .date {
font-size: 16px;
}
main .article h1 {
font-size: 48px;
}
main .article h2 {
font-size: 32px;
}
main .article h3 {
font-size: 24px;
}
main .article p {
font-family: "Inter", "BIZ UDPGothic", sans-serif;
font-weight: normal;
font-size: 16px;
}
main .article table {
margin: 16px 0px;
width: calc(fit-content + 128px);
border: none;
border-collapse: collapse;
}
main .article td,
th {
padding: 4px 16px;
}
main .article pre {
width: 100%;
height: fit-content;
padding: 16px;
border-radius: 15px;
font-family: "BIZ UDGothic", sans-serif;
}
.link_btn {
line-height: 64px;
width: fit-content;
height: 32px;
padding: 8px 16px;
text-decoration: none;
font-family: "Inter", "BIZ UDPGothic", sans-serif;
font-weight: normal;
font-size: 20px;
border-radius: 25px;
}
.error {
position: absolute;
animation: slideDown 5s ease-in-out forwards;
margin-top: 32px;
margin-right: auto;
margin-left: auto;
right: 0;
left: 0;
width: fit-content;
height: 32px;
z-index: 9999;
border-radius: 20px;
text-decoration: none;
}
.error p {
margin-top: 4px;
margin-bottom: 4px;
margin-left: 12px;
margin-right: 12px;
line-height: 24px;
font-family: "Inter", "BIZ UDPGothic", sans-serif;
font-size: 16px;
color: transparent;
text-align: center;
}
footer {
margin: 0 auto;
text-align: center;
width: 100%;
}
@keyframes slideDown {
0%,
100% {
transform: translateY(-40dvh);
}
20%,
90% {
transform: translateY(0px);
}
}
@media screen and (max-width: 581px) {
.top .left a {
display: none;
}
main {
margin: 0px auto;
width: calc(100% - 32px);
overflow-wrap: normal;
}
main .contents {
display: block;
height: fit-content;
}
main .contents .items {
width: calc(100% - 32px);
}
main .article pre {
width: calc(100% - 32px);
overflow: scroll;
}
}