generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
37 lines (31 loc) · 736 Bytes
/
styles.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
/* https://github.com/mgmeyers/obsidian-style-settings */
/* @settings
name: Graph Banner
id: graph-banner
settings:
- id: banner-height
title: Banner Height
description: The height of the banner. (e.g. 20vh, 200px)
type: variable-text
default: 20vh
*/
:root {
--banner-margin-bottom: 16px;
}
.graph-banner-content {
width: auto;
height: var(--banner-height, 20vh) !important;
margin-block-end: var(--banner-margin-bottom);
}
.hidden {
display: none;
}
/* Prevents layout shift */
.inline-title:not(.markdown-embed-content .inline-title):not(
:has(+ .graph-banner-content)
) {
margin-block-end: calc(
var(--banner-height, 20vh) + var(--banner-margin-bottom)
+ var(--inline-title-margin-bottom)
);
}