forked from stormyark/Obsidian-Vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-background.css
211 lines (206 loc) · 5.46 KB
/
custom-background.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/* AGPLv3 license
Custom Background
Author: AnubisNekhet
support me: https://buymeacoffee.com/anubisnekhet
*/
/* @settings
name: AnuPpuccin Custom Background
id: anuppuccin-custom-background
settings:
-
id: anp-custom-background-header
title: Background
description: Custom workspace backgrounds
type: heading
level: 1
collapsed: true
-
id: anp-background-image-toggle
title: Enable Custom Background (WIP)
description: Not compatible with colorful frame
type: class-toggle
-
id: anp-custom-background-light-header
title: Light Mode
description:
type: heading
level: 2
collapsed: true
-
id: anp-background-image-light
title: Custom Background Image URL
description: 'Formatted as url("https://link-to-image.png")'
type: variable-text
default: url("https://link-to-image.png")
-
id: anp-custom-bg-brightness-light
title: Background brightness
type: variable-number-slider
min: 0
max: 2
step: 0.05
default: 0.7
-
id: anp-custom-bg-blur-light
title: Background blur
type: variable-number-slider
min: 0
max: 20
step: 1
default: 5
format: px
-
id: anp-custom-bg-card-fg-opacity-light
title: Container opacity
type: variable-number-slider
min: 0
max: 1
step: 0.05
default: 0.4
-
id: anp-custom-background-dark-header
title: Dark Mode
description:
type: heading
level: 2
collapsed: true
-
id: anp-background-image-dark
title: Custom Background Image URL
description: 'Formatted as url("https://link-to-image.png")'
type: variable-text
default: url("https://link-to-image.png")
-
id: anp-custom-bg-brightness-dark
title: Background brightness
type: variable-number-slider
min: 0
max: 1
step: 0.05
default: 0.7
-
id: anp-custom-bg-blur-dark
title: Background blur
type: variable-number-slider
min: 0
max: 20
step: 1
default: 5
format: px
-
id: anp-custom-bg-card-fg-opacity-dark
title: Container opacity
type: variable-number-slider
min: 0
max: 1
step: 0.05
default: 0.4
*/
.anp-background-image-toggle:not(.anp-colorful-frame) {
.app-container,
&.anp-bg-fix .app-container {
background: var(
--anp-background-image,
url("https://i.redd.it/m23bwh4n0x151.png")
);
background-size: cover;
background-color: transparent;
}
.horizontal-main-container,
&.anp-bg-fix .horizontal-main-container {
backdrop-filter: brightness(var(--anp-custom-bg-brightness, 0.5))
blur(var(--anp-custom-bg-blur, 5px));
background-color: transparent;
}
.workspace {
background: transparent;
}
--card-background-color: transparent;
--card-foreground-color: rgba(
var(--ctp-base),
var(--anp-custom-bg-card-fg-opacity, 0.4)
);
--tab-inactive-color: rgba(
var(--ctp-mantle),
var(--anp-custom-bg-card-fg-opacity, 0.4)
);
--code-background: var(--card-foreground-color);
&.anp-card-layout .workspace-split.mod-root .view-content {
background: transparent;
}
&.anp-alternate-tab-toggle .workspace-tabs:not(.mod-stacked),
&.anp-safari-tab-toggle .workspace-tabs:not(.mod-stacked) {
--tab-background: var(--tab-inactive-color);
--tab-background-active: var(--card-foreground-color);
--tab-background-inactive: var(--tab-inactive-color);
}
&.anp-floating-header .nav-folder.mod-root > .nav-folder-title {
background-color: var(--tab-inactive-color);
}
&.anp-canvas-dark-bg .canvas-wrapper,
.canvas-wrapper,
.mod-macos.is-hidden-frameless:not(.is-popout-window)
.sidebar-toggle-button.mod-right,
&:not(.anp-card-layout).mod-macos.is-hidden-frameless:not(.is-popout-window)
.sidebar-toggle-button.mod-right,
&.anp-card-layout .workspace-ribbon.mod-left:before,
.anp-card-layout .workspace-tab-header-container,
.workspace-split.mod-root {
background-color: transparent;
}
&:not(.anp-card-layout, .anp-border-layout) .workspace-tab-header-container,
&:not(.anp-card-layout) .workspace-tabs .workspace-leaf,
&:not(.anp-card-layout) .workspace-split.mod-root .view-content,
&:not(.anp-card-layout, .anp-border-layout) .workspace-ribbon,
&:not(.anp-card-layout, .anp-border-layout) .workspace-ribbon.mod-left:before,
&:not(.anp-card-layout) .view-header,
&.is-focused:not(.anp-card-layout) .workspace-leaf.mod-active .view-header,
.kanban-plugin__lane,
.kanban-plugin__item-content-wrapper {
background-color: var(--card-foreground-color);
}
.kanban-plugin__item-title-wrapper,
&.is-focused.anp-card-layout .workspace-leaf.mod-active .view-header,
&.anp-card-layout .workspace-ribbon {
background: transparent;
}
.workspace-fake-target-overlay:not(.is-in-sidebar)
.workspace-tabs
.workspace-leaf,
.mod-root .workspace-tabs .workspace-leaf,
&.anp-card-layout .view-header,
.is-focused .workspace-leaf.mod-active .view-header {
background-color: transparent;
}
.view-header-title-container:not(.mod-at-end):after {
display: none;
}
.kanban-plugin .kanban-plugin__lane button:hover {
background-color: var(--card-foreground-color);
}
&.anp-border-layout {
.workspace-tab-header-container,
.workspace-ribbon.mod-left:before {
background: transparent;
}
}
&:not(.anp-border-layout, .anp-card-layout) {
&.anp-fixed-status-bar {
.status-bar {
background: var(--card-foreground-color);
backdrop-filter: brightness(var(--anp-custom-bg-brightness, 0.5))
blur(var(--anp-custom-bg-blur, 5px));
}
}
}
&.anp-border-layout,
&.anp-card-layout {
&.anp-fixed-status-bar {
.status-bar {
background: transparent;
backdrop-filter: brightness(var(--anp-custom-bg-brightness, 0.5))
blur(var(--anp-custom-bg-blur, 5px));
}
}
}
}