forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.css
143 lines (119 loc) · 2.72 KB
/
globals.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
@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 {
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;
transition: all 0.5s cubic-bezier(0.4, 0, 0, 1);
}
.sticky-nav-full .header-name {
@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: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}
.gt-meta{
@apply dark:text-gray-300
}
#waifu {
@apply right-auto left-0 hidden lg:block z-10 !important
}
/* 隐藏滚动条 */
.scroll-hidden{
-ms-overflow-style: none;
overflow: -moz-scrollbars-none;
}
.scroll-hidden::-webkit-scrollbar { width: 0 !important }
.notion-collection{
@apply max-w-0
}
.glassmorphism{
background: hsla(0, 0%, 100%, .75);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
.dark .glassmorphism{
background: rgba(31, 41, 55, .75);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
.medium-zoom-overlay{
background: none !important;
}
.shadow-text{
text-shadow: 0.1em 0.1em 0.2em black;
}