feat: update style

This commit is contained in:
fantasticit 2022-05-10 13:42:37 +08:00
parent cf18552962
commit 276175cb88
3 changed files with 62 additions and 1 deletions

View File

@ -3,6 +3,7 @@
@import './reset.scss';
.container {
width: 100%;
margin-right: auto;
margin-left: auto;
}
@ -25,6 +26,24 @@
}
}
@media (min-width: 1024px) {
.container {
width: 960px;
}
}
@media (min-width: 1280px) {
.container {
max-width: 1024px;
}
}
@media (min-width: 1536px) {
.container {
max-width: 1440px;
}
}
.Resizer {
z-index: 1;
opacity: 0.2;

View File

@ -5,8 +5,14 @@
box-sizing: border-box;
}
body,
html {
line-height: 1.15;
text-size-adjust: 100%;
tab-size: 2;
}
html,
body {
height: 100%; /* Fill the window */
padding: 0;
margin: 0;

View File

@ -23,6 +23,26 @@
outline: none;
}
summary {
display: list-item;
}
blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
margin: 0;
}
a {
color: var(--semi-color-link);
text-decoration: underline;
@ -33,6 +53,22 @@
border-radius: var(--border-radius);
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
p {
margin-top: 0.75rem;
margin-bottom: 0;