🥲补充提交样式

This commit is contained in:
tangly1024
2021-09-27 09:48:12 +08:00
parent d9c19e3005
commit b816c6d5c4
3 changed files with 2077 additions and 0 deletions

114
styles/globals.css Normal file
View File

@@ -0,0 +1,114 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
html {
--scrollbarBG: #ffffff00;
--thumbBG: #b8b8b8;
}
body::-webkit-scrollbar {
width: 5px;
}
body {
scrollbar-width: thin;
scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
body::-webkit-scrollbar-track {
background: var(--scrollbarBG);
}
body::-webkit-scrollbar-thumb {
background-color: var(--thumbBG);
}
::selection {
background: rgba(45, 170, 219, 0.3);
}
.wrapper {
min-height: 100vh;
display: flex;
flex-wrap: nowrap;
align-items: stretch;
justify-content: flex-start;
flex-direction: column;
}
.sticky-nav {
position: sticky;
z-index: 10;
top: -1px;
backdrop-filter: blur(5px);
transition: all 0.5s cubic-bezier(0.4, 0, 0, 1);
border-bottom-color: transparent;
}
.sticky-nav-full {
@apply border-b border-opacity-50 border-gray-200 dark:border-gray-600 dark:border-opacity-50;
}
.header-name {
display: none;
opacity: 0;
overflow: hidden;
}
.sticky-nav-full .nav {
@apply text-gray-600 dark:text-gray-300;
}
nav {
flex-wrap: wrap;
line-height: 1.5em;
}
.article-tags::-webkit-scrollbar {
width: 0 !important;
}
.tag-container ul::-webkit-scrollbar {
width: 0 !important;
}
.tag-container ul {
-ms-overflow-style: none;
overflow: -moz-scrollbars-none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.sticky-nav-full {
@apply max-w-full border-b border-opacity-50 border-gray-200 dark:border-gray-600 dark:border-opacity-50;
}
.header-name {
display: block;
opacity: 0;
transition: all 0.5s cubic-bezier(0.4, 0, 0, 1);
}
.sticky-nav-full .header-name {
opacity: 1;
@apply dark:text-gray-300 text-gray-600;
}
}
@supports not (backdrop-filter: none) {
.sticky-nav {
backdrop-filter: none;
@apply bg-day dark:bg-gray-800;
}
}
.shadow-card{
box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
}
.gt-meta{
@apply dark:text-gray-300
}
#waifu{
@apply left-auto right-0 hidden lg:block !important
}

1844
styles/notion.css Normal file

File diff suppressed because it is too large Load Diff

119
styles/prism-theme.css Normal file
View File

@@ -0,0 +1,119 @@
/* prism theme adjustments */
.notion-code {
background-color: rgba(249, 250, 251, 1);
border: 1px solid rgba(229, 231, 235, 1);
border-radius: 0.375rem;
padding: 1.5em !important;
}
@media (min-width: 1300px) {
.notion-code {
max-width: var(--notion-max-width);
}
}
@media (max-width: 640px) {
.notion-code {
max-width: 100vw;
}
}
.dark-mode .notion-code {
background-color: rgba(17, 24, 39, 1);
border-color: rgba(55, 65, 81, 1);
}
.notion code {
color: rgba(31, 41, 55, 1);
border: 0 none !important;
box-shadow: none !important;
background: none !important;
padding: 0 !important;
}
.dark-mode .notion code {
color: rgba(229, 231, 235, 1);
}
.token.cdata,
.token.doctype,
.token.prolog {
color: rgba(55, 65, 81, 1);
}
.token.comment {
color: #5b9b4c;
}
.dark-mode .token.cdata,
.dark-mode .token.doctype,
.dark-mode .token.prolog {
color: rgba(209, 213, 219, 1);
}
.token.punctuation {
color: rgba(55, 65, 81, 1);
}
.dark-mode .token.punctuation {
color: rgba(209, 213, 219, 1);
}
.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
color: rgba(16, 185, 129, 1);
}
.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
color: rgba(139, 92, 246, 1);
}
.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
color: rgba(245, 158, 11, 1);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: rgba(59, 130, 246, 1);
}
.token.class-name,
.token.function {
color: rgba(236, 72, 153, 1);
}
.token.important,
.token.regex,
.token.variable {
color: rgba(245, 158, 11, 1);
}
code[class*='language-'],
pre[class*='language-'] {
color: rgba(31, 41, 55, 1);
}
.dark-mode code[class*='language-'],
.dark-mode pre[class*='language-'] {
color: rgba(249, 250, 251, 1);
}
pre::-webkit-scrollbar {
display: none;
}
pre {
-ms-overflow-style: none;
scrollbar-width: none;
}
.token.operator,
.token.entity,
.token.url,
.token.variable {
background: none;
}
pre[class*='language-'] > code {
border-left: 0 none !important;
box-shadow: none !important;
background: none !important;
}