forked from obsidian-community/obsidian-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.css
executable file
·115 lines (98 loc) · 4.13 KB
/
publish.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
.page-header {
display: none;
}
.markdown-preview-view h1{
line-height: 1.1em;
}
.site-body-left-column-site-logo {
max-width: 120px;
}
.site-body-left-column-site-name {
text-align: center;
}
/* Widen/Dynamically Size File Explorer & Right Panel */
.site-body-left-column { flex: 0 .9 350px; }
.site-body-right-column { flex: .1 .9 300px; }
/* Hide Graph Around 1300px */
@media screen and (max-width: 1300px) {
.published-container.has-graph .graph-view-outer {
display: none;
}
}
/* Buttons */
button#HH:hover:before {
content: "Only works with Hotkey Helper Installed";
color: var(--text-on-accent);
background: black;
font-weight: 800;
font-size: 16px;
position: absolute;
margin-top: -72px;
margin-left: -12vh;
border-radius: 5px;
padding: 20px;
z-index: 5;
}
body:not(.popover.is-loaded) button#HH:hover:before { margin-left: -2vh; }
.external-link[href^="obsidian://goto-plugin?"] { background-image: none; }
.tooltip { --layer-tooltip: 1; }
/* Embed Adjustments */
.internal-embed[alt*="clean"] .markdown-embed,
.markdown-preview-view .internal-embed[alt*="clean"]:not(.image-embed),
.internal-embed[alt*="clean"] .markdown-embed .markdown-preview-view {
border: 0;
margin: 0;
padding: 0;
}
/*Fix Embed Link Icon Alignment*/
.internal-embed[alt*="clean"] .markdown-embed-link { top: 0px; }
/*Hide Embed Link Icon Unless Hovered*/
.internal-embed[alt*="clean"]:not(:hover) .markdown-embed-link { display: none; }
/*"Hide" Bullet*/
.internal-embed[alt*="bullet"] .markdown-embed ul { padding-inline-start: 0; }
/* Footer Heading */
h1[data-heading="This note on GitHub"],
h1[data-heading="This note in GitHub"] {
font-size: var(--editor-font-size);
text-align: center;
}
h1[data-heading="This note on GitHub"]::before,
h1[data-heading="This note in GitHub"]::before {
content: '';
display: block;
height: 2px;
background: var(--background-modifier-border);
margin-bottom: 10px;
}
/* Style Footer Links */
span.git-footer {
display: block;
text-align: center;
bottom: 0;
}
.git-footer .external-link {
background-image: url();
padding-right: 0;
padding: 6px 15px;
background: var(--interactive-normal);
border-radius: 4px;
text-decoration: none;
}
.git-footer .external-link:hover {
background: var(--interactive-accent-hover);
color: var(--text-on-accent);
}
/* Footer Link Icons */
.git-footer .external-link::before {
vertical-align: -3px;
padding-right: 4px;
}
.git-footer .external-link[title="git-hub-edit-note"]::before {
content: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%221em%22%20height%3D%221em%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%2017.25V21h3.75L17.81%209.94l-3.75-3.75L3%2017.25zM20.71%207.04a.996.996%200%200%200%200-1.41l-2.34-2.34a.996.996%200%200%200-1.41%200l-1.83%201.83l3.75%203.75l1.83-1.83z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E');
}
.git-footer .external-link[title="git-hub-copy-note"]::before {
content: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%221em%22%20height%3D%221em%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20d%3D%22M216%2032H88a8%208%200%200%200-8%208v40H40a8%208%200%200%200-8%208v128a8%208%200%200%200%208%208h128a8%208%200%200%200%208-8v-40h40a8%208%200%200%200%208-8V40a8%208%200%200%200-8-8zm-8%20128h-32V88a8%208%200%200%200-8-8H96V48h112z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E');
}
.git-footer .external-link[title="git-hub-download-vault"]::before {
content: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%221em%22%20height%3D%221em%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%209h-4V3H9v6H5l7%207l7-7zM5%2018v2h14v-2H5z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E')
}