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

934 lines
16 KiB
CSS

@charset "UTF-8";
html {
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
}
@media (max-width: 320px) {
html {
font-size: 14px;
}
}
@media (min-width: 320px) and (max-width: 768px) {
html {
font-size: 16px;
}
}
[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 {
width: 10px;
height: 10px;
}
html ::-webkit-scrollbar-thumb {
height: 40px;
border-radius: 16px;
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: rgba(0, 0, 0, 0.249);
}
@media (prefers-color-scheme: dark) {
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;
}
}
.container {
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: 320px) {
main {
width: 90%;
margin-top: 3%;
padding-bottom: 7%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
main {
width: 90%;
margin-top: 5%;
padding-bottom: 5%;
}
}
@media (max-width: 320px) {
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: 320px) and (max-width: 768px) {
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;
}
}
.menu {
position: fixed;
right: 0.5rem;
bottom: 10rem;
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);
}
}
.header {
display: flex;
}
.header > .title > a {
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;
}
.header > .description {
font-size: 0.9rem;
color: #8c8c8c;
}
.header > .description > .socials {
display: flex;
justify-content: flex-end;
}
.header > .description > .socials > a {
font-size: 1rem;
margin-left: 0.5rem;
cursor: pointer;
color: #8c8c8c;
}
.header > .description > .socials > a:hover {
color: #8c8c8c80;
}
@media (prefers-color-scheme: dark) {
.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;
}
}
@media (max-width: 320px) {
.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: 320px) and (max-width: 768px) {
.header {
flex-direction: column;
align-items: center;
width: 90%;
padding: 17% 5% 5% 5%;
}
.header > .description {
display: flex;
flex-direction: column;
align-items: center;
}
}
footer .copyright {
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) {
footer .copyright > > a {
color: #262626;
}
footer .copyright > > a:hover {
color: #bfbfbf;
}
}
@media (max-width: 320px) {
footer {
padding: 5% 0;
}
}
@media (min-width: 320px) and (max-width: 768px) {
footer {
padding: 5% 0;
}
}
.pagenav {
display: flex;
justify-content: space-between;
}
.pagenav > a {
text-decoration: none;
margin: 0 2rem;
color: #262626;
}
.pagenav > a:hover {
color: #595959;
}
@media (prefers-color-scheme: dark) {
.pagenav > a {
color: #b6b6b6;
}
.pagenav > a:hover {
color: #434343;
}
}
@media (max-width: 320px) {
.pagenav {
padding: 5% 0 7% 0;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.pagenav {
padding: 4% 0 5% 0;
}
}
@media (max-width: 320px) {
.comment {
width: 90%;
margin: 5% 0;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.comment {
width: 90%;
margin: 5% 0;
}
}
.post-bottom-menu {
display: flex;
justify-content: space-around;
border-top: 1px solid #e7e7e7;
}
.post-bottom-menu > a {
color: #262626;
}
.post-bottom-menu > a:hover {
color: #595959;
}
@media (prefers-color-scheme: dark) {
.post-bottom-menu {
border-top: 1px solid #e7e7e7;
}
}
@media (prefers-color-scheme: dark) and (prefers-color-scheme: dark) {
.post-bottom-menu > a {
color: #b6b6b6;
}
.post-bottom-menu > a:hover {
color: #434343;
}
}
@media (max-width: 320px) {
.post-bottom-menu {
margin-top: 7%;
padding-top: 7%;
width: 80%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.post-bottom-menu {
margin-top: 7%;
padding-top: 5%;
width: 80%;
}
}
.close {
display: none;
}
/*
*
* 归档页面
*
* 按照顺序
* 1.默认
* 2.深色
* 3.媒体查询
* - 320px
*/
.archives > ul > .year {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.archives > ul > li {
display: flex;
font-size: 0.875rem;
padding-bottom: 0.3rem;
line-height: 1.75rem;
}
.archives > ul > li > a {
color: #595959;
}
.archives > ul > li > a:hover {
color: #59595980;
}
.archives > ul > li > span {
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
.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: 320px) {
.archives > ul {
padding: 2.5% 1%;
}
.archives > ul > .year {
padding: 2.5% 0;
text-align: center;
}
.archives > ul > .title {
padding: 2.5% 0;
text-align: center;
}
.archives > ul > li {
justify-content: center;
}
.archives > ul > li > span {
display: none;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.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;
}
}
/*
*
* 分类页面
*
* 按照顺序
* 1.默认
* 2.深色
* 3.媒体查询
* - 320px
*/
.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;
line-height: 2rem;
}
.category > ul > li > a {
color: #595959;
}
.category > ul > li > a:hover {
color: #59595980;
}
.category > ul > li > span {
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
.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: 320px) {
.category > ul {
padding: 2.5% 1%;
}
.category > ul > .name {
padding: 2.5% 0;
text-align: center;
}
.category > ul > li {
justify-content: center;
}
.category > ul > li > span {
display: none;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.category > ul {
padding: 2.5% 1%;
}
.category > ul > .name {
padding: 2.5% 0;
}
.category > ul > li {
justify-content: space-between;
}
}
.categories > ul {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
}
.categories > ul > li {
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 {
display: inline-block;
position: relative;
top: -0.5rem;
right: -0.125rem;
font-size: 0.75rem;
}
@media (prefers-color-scheme: dark) {
.categories > ul > li > a {
color: #dbdbdb;
}
.categories > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 320px) {
.categories {
margin: 7% 0;
}
.categories > ul > li {
margin: 2.5% 2.5%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.categories {
margin: 7% 0;
}
.categories > ul > li {
margin: 2.5% 2.5%;
}
}
.index > h1 > a {
letter-spacing: 0.0625rem;
font-size: 1.375rem;
line-height: 1.75rem;
color: #262626;
}
.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) {
.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 (max-width: 320px) {
.index > h1 {
margin-block-start: 0;
text-align: center;
}
.index > .info {
padding: 1% 0 2% 0;
}
.index > .info > span {
margin: 1% 1%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.index > h1 {
margin-block-start: 0;
}
.index > .info {
padding: 1% 0 2% 0;
}
.index > .info > span {
margin: 1% 1%;
}
}
.journals > .name {
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 {
display: flex;
justify-content: flex-end;
font-size: 0.75rem;
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
.journals > .name {
color: #dbdbdb;
}
.journals > ul > li > .content {
color: #acacac;
}
.journals > ul > li > .info {
color: #7d7d7d;
}
}
@media (max-width: 320px) {
.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: 320px) and (max-width: 768px) {
.journals > ul > li {
padding: 2.5% 0;
}
.journals > ul > li > .info {
padding: 1% 0;
}
}
.links > ul > .friend {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
.links > ul > li {
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) {
.links > ul > .friend {
color: #dbdbdb;
}
.links > ul > li > a {
color: #dbdbdb;
}
.links > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 320px) {
.links > ul {
padding: 2.5% 1%;
}
.links > ul > .friend {
padding: 2.5% 0;
text-align: center;
}
.links > ul > li {
justify-content: center;
padding-bottom: 1%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.links > ul {
padding: 2.5% 1%;
}
.links > ul > .friend {
padding: 2.5% 0;
}
.links > ul > li {
padding-bottom: 1%;
}
}
.post > .title > h1 > a {
letter-spacing: 0.0625rem;
font-size: 2rem;
line-height: 2rem;
color: #262626;
}
.post > .title > h1 > a:hover {
color: #26262680;
}
.post > .title > .info {
display: flex;
border-bottom: 1px solid #d9d9d9;
}
.post > .title > .info > span {
font-weight: 400;
font-size: 0.75rem;
color: #8c8c8c;
}
.post > .title > .info > span i {
position: relative;
top: 0.125rem;
color: #8c8c8c;
}
@media (prefers-color-scheme: dark) {
.post > .title > h1 > a {
color: #dbdbdb;
}
.post > .title > h1 > a :hover {
color: #dbdbdb80;
}
.post > .title > .info {
border-bottom: 1px solid #434343;
flex-direction: column;
}
.post > .title > .info span {
color: #7d7d7d;
}
.post > .title > .info span i {
color: #7d7d7d;
}
}
@media (max-width: 320px) {
.post > .title {
margin-top: 10%;
}
.post > .title > .info > span {
padding: 1% 1%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.post > .title {
margin-top: 10%;
}
.post > .title > .info > span {
padding: 1% 1%;
}
}
.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) {
.tag > ul > .name {
color: #dbdbdb;
}
.tag > ul > li > a {
color: #dbdbdb;
}
.tag > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 320px) {
.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;
}
}
.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;
}
.tags > ul .count {
display: inline-block;
position: relative;
top: -0.5rem;
right: -0.125rem;
font-size: 0.75rem;
}
@media (prefers-color-scheme: dark) {
.tags > ul > li > a {
color: #dbdbdb;
}
.tags > ul > li > a:hover {
color: #dbdbdb80;
}
}
@media (max-width: 320px) {
.tags {
margin: 7% 0;
}
.tags > ul > li {
margin: 2.5% 2.5%;
}
}
@media (min-width: 320px) and (max-width: 768px) {
.tags {
margin: 7% 0;
}
.tags > ul > li {
margin: 2.5% 2.5%;
}
}
/*# sourceMappingURL=redemption.css.map */