This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
redemption/source/css/Redemption.css

914 lines
16 KiB
CSS
Raw Normal View History

2022-01-19 17:34:41 +08:00
@charset "UTF-8";
html {
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
font-size: 16px;
2022-01-19 21:24:32 +08:00
}
[data-font=serif] {
font-family: -apple-system, BlinksMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-weight: 500;
}
[data-font=sans] {
font-family: -apple-system, BlinksMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-weight: 400;
}
html ::-webkit-scrollbar {
2021-12-28 17:05:11 +08:00
width: 10px;
height: 10px;
}
html ::-webkit-scrollbar-thumb {
2021-12-28 17:05:11 +08:00
height: 40px;
border-radius: 16px;
background-color: rgba(0, 0, 0, 0.249);
}
html ::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.249);
}
@media (prefers-color-scheme: dark) {
html ::-webkit-scrollbar-thumb {
background-color: blue;
}
html ::-webkit-scrollbar-thumb:hover {
background-color: blue;
}
}
body {
background-color: #f7f7f7;
color: #333333;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #3d3d3d;
color: #a3a3a3;
}
2021-12-28 17:05:11 +08:00
}
.container {
2021-12-28 17:05:11 +08:00
display: flex;
flex-wrap: nowrap;
flex-direction: column;
align-items: center;
}
main {
display: flex;
flex-wrap: nowrap;
flex-direction: column;
align-items: center;
background: #ffffff;
box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.17);
}
@media (prefers-color-scheme: dark) {
main {
background: #292929;
box-shadow: 0 0.375rem 1rem -0.5rem rgba(0, 0, 0, 0.34);
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
main {
width: 90%;
margin-top: 5%;
padding-bottom: 5%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
main {
width: 52rem;
margin-top: 4rem;
padding-bottom: 3rem;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
main > .index,
main > .archives,
main > .categories,
main > .category,
main > .links,
main > .post,
main > .tag,
main > .journals {
width: 90%;
padding: 2.5% 5%;
}
main > .index > ul,
main > .archives > ul,
main > .categories > ul,
main > .category > ul,
main > .links > ul,
main > .post > ul,
main > .tag > ul,
main > .journals > ul {
margin-block-start: 0;
margin-block-end: 0;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
main > .index,
main > .archives,
main > .categories,
main > .category,
main > .links,
main > .post,
main > .tag,
main > .journals {
width: 45rem;
padding: 1rem 0.1rem 1rem 0.1rem;
}
}
.menu {
position: fixed;
right: 0.5rem;
bottom: 10rem;
2022-01-19 17:34:41 +08:00
font-size: 0.5rem;
}
@-webkit-keyframes fadeInDown {
0% {
opacity: 0;
-webkit-transform: translateY(-3px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
}
}
@-moz-keyframes fadeInDown {
0% {
opacity: 0;
-moz-transform: translateY(-3px);
}
100% {
opacity: 1;
-moz-transform: translateY(0);
}
}
@-o-keyframes fadeInDown {
0% {
opacity: 0;
-o-transform: translateY(-3px);
}
100% {
opacity: 1;
-o-transform: translateY(0);
}
}
@keyframes fadeInDown {
0% {
opacity: 0;
transform: translateY(-3px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
2021-12-28 17:05:11 +08:00
.header {
display: flex;
}
2021-12-31 15:53:37 +08:00
.header > .title > a {
2021-12-28 17:05:11 +08:00
font-size: 2.2rem;
letter-spacing: 0.2rem;
line-height: 2.4rem;
}
.header > .title > a > span {
color: #262626;
}
.header > .title > a > span:hover {
color: #26262680;
}
2021-12-31 15:53:37 +08:00
.header > .description {
2021-12-28 17:05:11 +08:00
font-size: 0.9rem;
color: #8c8c8c;
}
2021-12-31 15:53:37 +08:00
.header > .description > .socials {
2021-12-28 17:05:11 +08:00
display: flex;
justify-content: flex-end;
}
2021-12-31 15:53:37 +08:00
.header > .description > .socials > a {
2021-12-28 17:05:11 +08:00
font-size: 1rem;
margin-left: 0.5rem;
cursor: pointer;
color: #8c8c8c;
}
.header > .description > .socials > a:hover {
color: #8c8c8c80;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.header > .title > a > span {
color: #dbdbdb;
}
.header > .title > a > span:hover {
color: #dbdbdb80;
}
.header > .description {
color: #7d7d7d;
}
.header > .description > .socials > a {
color: #7d7d7d;
}
.header > .description > .socials > a:hover {
color: #7d7d7d80;
}
2021-12-28 17:05:11 +08:00
}
@media (max-width: 870px) {
2022-01-19 17:34:41 +08:00
.header {
flex-direction: column;
align-items: center;
width: 90%;
padding: 17% 5% 5% 5%;
}
.header > .description {
display: flex;
flex-direction: column;
align-items: center;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.header {
width: 45rem;
padding: 7rem 0 3rem 0;
justify-content: space-between;
}
.header > .title {
width: 6rem;
}
.header > .description {
display: flex;
flex-direction: column;
align-items: flex-end;
}
}
2022-01-19 17:34:41 +08:00
footer .copyright {
2022-01-19 17:34:41 +08:00
display: flex;
flex-direction: column;
align-items: center;
font-size: 0.8rem;
}
footer .copyright a {
color: #bfbfbf;
}
footer .copyright a:hover {
color: #262626;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
footer .copyright > > a {
color: #262626;
}
2022-01-19 17:34:41 +08:00
footer .copyright > > a:hover {
color: #bfbfbf;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
footer {
padding: 5% 0;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
footer {
padding: 2rem 0;
}
}
.pagenav {
2021-12-28 17:05:11 +08:00
display: flex;
justify-content: space-between;
2021-12-31 15:53:37 +08:00
}
.pagenav > a {
text-decoration: none;
margin: 0 2rem;
color: #262626;
2021-12-28 17:05:11 +08:00
}
.pagenav > a:hover {
color: #595959;
2021-12-28 17:05:11 +08:00
}
@media (prefers-color-scheme: dark) {
.pagenav > a {
color: #b6b6b6;
}
.pagenav > a:hover {
color: #434343;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.pagenav {
padding: 4% 0 5% 0;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.pagenav {
padding: 2rem 0;
}
}
@media (max-width: 870px) {
2022-01-19 17:34:41 +08:00
.comment {
width: 90%;
margin: 5% 0;
}
2021-12-28 17:05:11 +08:00
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.comment {
margin-top: 2rem;
width: 52rem;
}
}
.post-bottom-menu {
2021-12-28 17:05:11 +08:00
display: flex;
justify-content: space-around;
border-top: 1px solid #e7e7e7;
2021-12-28 17:05:11 +08:00
}
.post-bottom-menu > a {
color: #262626;
}
.post-bottom-menu > a:hover {
color: #595959;
2021-12-28 17:05:11 +08:00
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.post-bottom-menu {
border-top: 1px solid #e7e7e7;
}
.post-bottom-menu > a {
color: #b6b6b6;
}
.post-bottom-menu > a:hover {
color: #434343;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.post-bottom-menu {
margin-top: 7%;
padding-top: 5%;
width: 80%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.post-bottom-menu {
margin-top: 2rem;
padding-top: 2rem;
width: 40rem;
}
}
2022-01-19 17:34:41 +08:00
.close {
display: none;
2021-12-28 17:05:11 +08:00
}
2022-01-19 17:34:41 +08:00
/*
*
* 归档页面
*
* 按照顺序
* 1.默认
* 2.深色
* 3.媒体查询
* - 320px
*/
.archives > ul > .year {
2021-12-31 15:53:37 +08:00
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.archives > ul > li {
2021-12-28 17:05:11 +08:00
display: flex;
2021-12-31 15:53:37 +08:00
font-size: 0.875rem;
padding-bottom: 0.3rem;
line-height: 1.75rem;
2021-12-28 17:05:11 +08:00
}
.archives > ul > li > a {
color: #595959;
}
.archives > ul > li > a:hover {
color: #59595980;
}
2022-01-19 17:34:41 +08:00
.archives > ul > li > span {
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.archives > ul > .year {
color: #dbdbdb;
}
.archives > ul > li > a {
color: #acacac;
}
.archives > ul > li > a:hover {
color: #acacac80;
}
.archives > ul > li > span {
color: #7d7d7d;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.archives > ul {
padding: 2.5% 1%;
}
.archives > ul > .year {
padding: 2.5% 0;
}
.archives > ul > .title {
padding: 2.5% 0;
}
.archives > ul > li {
justify-content: space-between;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.archives > ul {
padding: 0.625rem 0.1rem;
}
.archives > ul > .year {
padding: 0.5rem 0;
}
.archives > ul > li {
justify-content: space-between;
padding-bottom: 0.3rem;
}
}
2022-01-19 17:34:41 +08:00
/*
*
* 分类页面
*
* 按照顺序
* 1.默认
* 2.深色
* 3.媒体查询
* - 870px
* - 2048px
2022-01-19 17:34:41 +08:00
*/
.category > ul > .name {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.category > ul > li {
display: flex;
font-size: 0.875rem;
2022-01-19 17:34:41 +08:00
line-height: 2rem;
}
.category > ul > li > a {
color: #595959;
}
.category > ul > li > a:hover {
color: #59595980;
}
2022-01-19 17:34:41 +08:00
.category > ul > li > span {
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.category > ul > .name {
color: #dbdbdb;
}
.category > ul > li > a {
color: #dbdbdb;
}
.category > ul > li > a:hover {
color: #dbdbdb80;
}
.category > ul > li > span {
color: #7d7d7d;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.category > ul {
padding: 2.5% 1%;
}
.category > ul > .name {
padding: 2.5% 0;
}
.category > ul > li {
justify-content: space-between;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.category > ul {
padding: 0.625rem 0.1rem;
}
.category > ul > .name {
padding: 0.5rem 0;
}
.category > ul > li {
justify-content: space-between;
padding-bottom: 0.3rem;
}
}
2022-01-19 17:34:41 +08:00
.categories > ul {
2021-12-31 15:53:37 +08:00
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
}
.categories > ul > li {
2021-12-31 15:53:37 +08:00
font-size: 1rem;
}
.categories > ul > li > a {
color: #262626;
}
.categories > ul > li > a:hover {
color: #26262680;
}
.categories > ul > li > a > span {
color: #8c8c8c;
}
.categories > ul .count {
2021-12-31 15:53:37 +08:00
display: inline-block;
position: relative;
top: -0.5rem;
right: -0.125rem;
font-size: 0.75rem;
}
2022-01-19 17:34:41 +08:00
@media (prefers-color-scheme: dark) {
.categories > ul > li > a {
color: #dbdbdb;
}
.categories > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.categories {
margin: 7% 0;
}
.categories > ul > li {
margin: 2.5% 2.5%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.categories {
margin: 5rem 0;
}
.categories > ul > li {
margin: 0.5rem 1rem;
}
}
.index > h1 > a {
letter-spacing: 0.0625rem;
font-size: 1.375rem;
line-height: 1.75rem;
color: #262626;
2021-12-31 15:53:37 +08:00
}
.index > h1 > a:hover {
color: #26262680;
}
.index > p {
line-height: 1.5rem;
text-indent: 2rem;
color: #595959;
}
.index > .info {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
flex-direction: row;
border-bottom: 1px solid #d9d9d9;
}
.index > .info > .date,
.index > .info > .tag {
font-weight: 400;
font-size: 0.75rem;
}
.index > .info > .date > i,
.index > .info > .tag > i {
position: relative;
top: 0.1rem;
color: #8c8c8c;
}
.index > .info > .date > a,
.index > .info > .tag > a {
font-size: 0.75rem;
color: #8c8c8c;
}
.index > .info > .date > a:hover,
.index > .info > .tag > a:hover {
color: #8c8c8c80;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.index > h1 > a {
color: #dbdbdb;
}
.index > h1 > a:hover {
color: #dbdbdb80;
}
.index > p {
color: #acacac;
}
.index > .info {
border-bottom: 1px solid #434343;
}
.index > .info > .date > i,
.index > .info > .tag > i {
color: #7d7d7d;
}
.index > .info > .date > a,
.index > .info > .tag > a {
color: #7d7d7d;
}
.index > .info > .date > a:hover,
.index > .info > .tag > a:hover {
color: #7d7d7d80;
}
}
@media (min-width: 320px) and (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.index > h1 {
margin-block-start: 0;
}
.index > .info {
padding: 1% 0 2% 0;
}
.index > .info > span {
margin: 1% 1%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.index > .info {
padding: 0.5rem 0 2rem 0;
}
}
.journals > .name {
2021-12-31 15:53:37 +08:00
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.journals > ul > li > .content {
font-size: 1rem;
color: #595959;
}
.journals > ul > li > .info {
2021-12-31 15:53:37 +08:00
display: flex;
justify-content: flex-end;
font-size: 0.75rem;
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.journals > .name {
color: #dbdbdb;
}
.journals > ul > li > .content {
color: #acacac;
}
.journals > ul > li > .info {
color: #7d7d7d;
}
}
@media (max-width: 870px) {
2022-01-19 17:34:41 +08:00
.journals > .name {
padding: 2.5% 0;
text-align: center;
}
.journals > ul > li {
padding: 2.5% 0;
}
.journals > ul > li > .info {
padding: 1% 0;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.journals > .name {
padding: 0.5rem 0;
}
.journals > ul > li {
padding: 1rem 0.1rem;
}
.journals > ul > li > .info {
padding: 1rem 0;
}
}
2022-01-19 17:34:41 +08:00
.links > ul > .friend {
2021-12-31 15:53:37 +08:00
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.links > ul > li {
2021-12-31 15:53:37 +08:00
display: flex;
justify-content: space-between;
font-size: 1rem;
padding-bottom: 0.3rem;
line-height: 1.5rem;
}
.links > ul > li > a {
color: #595959;
}
.links > ul > li > a:hover {
color: #59595980;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.links > ul > .friend {
color: #dbdbdb;
}
.links > ul > li > a {
color: #dbdbdb;
}
.links > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.links > ul {
padding: 2.5% 1%;
}
.links > ul > .friend {
padding: 2.5% 0;
}
.links > ul > li {
padding-bottom: 1%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.links > ul {
padding: 0.625rem 0.1rem;
}
.links > ul > .friend {
padding: 0.5rem 0;
}
.links > ul > li {
padding-bottom: 0.3rem;
}
}
2022-01-19 17:34:41 +08:00
.post > .title > h1 > a {
2021-12-31 15:53:37 +08:00
letter-spacing: 0.0625rem;
font-size: 2rem;
line-height: 2rem;
color: #262626;
}
.post > .title > h1 > a:hover {
color: #26262680;
}
.post > .title > .info {
2022-01-19 17:34:41 +08:00
display: flex;
border-bottom: 1px solid #d9d9d9;
}
.post > .title > .info > span {
2021-12-31 15:53:37 +08:00
font-weight: 400;
font-size: 0.75rem;
color: #8c8c8c;
2021-12-31 15:53:37 +08:00
}
.post > .title > .info > span i {
position: relative;
2021-12-31 15:53:37 +08:00
top: 0.125rem;
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.post > .title > h1 > a {
color: #dbdbdb;
}
.post > .title > h1 > a :hover {
color: #dbdbdb80;
}
.post > .title > .info {
border-bottom: 1px solid #434343;
}
.post > .title > .info span {
color: #7d7d7d;
}
.post > .title > .info span i {
color: #7d7d7d;
}
}
@media (min-width: 320px) and (max-width: 870px) {
2022-01-19 17:34:41 +08:00
.post > .title {
margin-top: 10%;
}
.post > .title > .info {
flex-direction: column;
2022-01-19 18:53:46 +08:00
}
.post > .title > .info > span {
padding: 1% 1%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.post > .title {
margin-top: 4rem;
}
.post > .title > .info {
flex-direction: row;
}
2022-01-19 21:24:32 +08:00
.post > .title > .info > span {
margin: 0.25rem 0.25rem;
}
}
2022-01-19 17:34:41 +08:00
.tag > ul > .name {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.tag > ul > li {
display: flex;
font-size: 0.875rem;
line-height: 1.75rem;
}
.tag > ul > li > a {
color: #595959;
}
.tag > ul > li > a:hover {
color: #59595980;
}
@media (prefers-color-scheme: dark) {
2022-01-19 17:34:41 +08:00
.tag > ul > .name {
color: #dbdbdb;
}
.tag > ul > li > a {
color: #dbdbdb;
}
.tag > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 870px) {
2022-01-19 17:34:41 +08:00
.tag > ul {
padding: 2.5% 1%;
}
.tag > ul > .name {
padding: 2.5% 0;
text-align: center;
}
.tag > ul > li {
justify-content: center;
padding-bottom: 1%;
}
.tag > ul > li > span {
display: none;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.tag > ul {
padding: 0.625rem 0.1rem;
}
.tag > ul > .name {
padding: 0.5rem 0;
}
.tag > ul > li {
justify-content: space-between;
padding-bottom: 0.3rem;
}
}
2022-01-19 17:34:41 +08:00
.tags > ul {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
}
.tags > ul > li {
font-size: 1rem;
}
.tags > ul > li > a {
color: #262626;
}
.tags > ul > li > a:hover {
color: #26262680;
}
.tags > ul > li > a > span {
color: #8c8c8c;
2021-12-28 17:05:11 +08:00
}
.tags > ul .count {
display: inline-block;
position: relative;
top: -0.5rem;
right: -0.125rem;
font-size: 0.75rem;
2021-12-28 17:05:11 +08:00
}
2022-01-19 17:34:41 +08:00
@media (prefers-color-scheme: dark) {
.tags > ul > li > a {
color: #dbdbdb;
}
.tags > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 870px) {
2022-01-19 18:53:46 +08:00
.tags {
margin: 7% 0;
}
.tags > ul > li {
margin: 2.5% 2.5%;
}
}
@media (min-width: 870px) and (max-width: 2048px) {
2022-01-19 21:24:32 +08:00
.tags {
margin: 5rem 0;
}
.tags > ul > li {
margin: 0.5rem 1rem;
}
}
/*# sourceMappingURL=redemption.css.map */