Skip to content

Commit 9ba8ffb

Browse files
author
Mario D'Andrea
committed
Quality of life improvements
1 parent 6efcae4 commit 9ba8ffb

File tree

6 files changed

+51
-61
lines changed

6 files changed

+51
-61
lines changed

Adwaita.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
--color-base-10: #272727;
88
--color-base-15: #2a2a2a;
99
--color-base-20: #303030;
10-
--color-base-30: #3d3846;
10+
--color-base-30: #303030;
1111
--color-base-35: #5e5c64;
1212
--color-base-40: #77767b;
1313
--color-base-50: #9a9996;
1414
--color-base-60: #c0bfbc;
1515
--color-base-70: #deddda;
1616
--color-base-100: #ffffff;
1717

18-
--accent-h: 212;
18+
--accent-h: 213;
1919
--accent-s: 76%;
20-
--accent-l: 70%;
20+
--accent-l: 55%;
2121

2222
--color-red: #ed333b;
2323
--color-red-rgb: 237, 51, 59;

Appearance.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
body {
2-
--italic-color: var(--color-base-60);
3-
/* italic text is lighter in color */
4-
--bold-weight: var(--font-bold);
5-
/* bold text is bolder */
6-
--link-decoration: none;
72
/* internal links are not underlined */
3+
--link-decoration: none;
4+
5+
/* On GNOME, with 'Window frame style' set to 'Native frame'
6+
* the titlebar blends with the tab bar */
7+
&.theme-dark.mod-linux {
8+
--titlebar-background: #353535 !important;
9+
--titlebar-background-focused: #262626 !important;
10+
}
11+
12+
&.theme-light.mod-linux {
13+
--titlebar-background: #f6f5f4 !important;
14+
--titlebar-background-focused: #dad6d2 !important;
15+
}
816
}
917

1018
mjx-container {
1119
font-size: var(--font-ui-large);
12-
color: var(--color-base-100);
1320
}
1421

1522
/* Use monospace font in source mode */
@@ -19,17 +26,14 @@ mjx-container {
1926
font-size: var(--code-size);
2027
}
2128

22-
.markdown-embed-title {
23-
display: none;
24-
}
25-
2629
.HyperMD-table-row {
2730
font-size: var(--font-normal) !important;
2831
}
2932

3033
/* Syntax highlighting for YAML and MathJax */
3134
.cm-hmd-frontmatter,
3235
.cm-math {
36+
/* no italics */
3337
font-style: normal !important;
3438
font-size: var(--font-normal);
3539
}

Callouts.css

Lines changed: 0 additions & 20 deletions
This file was deleted.

Focus mode.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ body:not(.is-mobile) {
55
.workspace-ribbon,
66
.workspace-tab-header-container,
77
.status-bar,
8+
.titlebar,
89
.view-header {
910
display: none !important;
1011
}
12+
1113
}

Hide clutter.css

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
/* Turn off all transitions */
2+
/*
23
* {
34
transition: none !important;
45
}
6+
*/
7+
8+
.status-bar {
9+
display: none;
10+
}
511

6-
/* Turn off cursor blink */
7-
.cm-cursor, .cm-cursorLayer {
12+
/* Disable cursor blink */
13+
.cm-cursor,
14+
.cm-cursorLayer {
815
animation: none !important;
916
}
1017

1118
/* https://github.com/kepano/obsidian-hider */
12-
/* Scrollbars only show on hover */
19+
/* Scrollbars only show on hover (might be tricky to find it) */
1320
::-webkit-scrollbar {
1421
visibility: hidden;
1522

@@ -30,27 +37,6 @@
3037
visibility: initial;
3138
}
3239

33-
/* Vault name in the file navigator */
34-
.nav-folder.mod-root>.nav-folder-title .nav-folder-title-content {
35-
display: none;
36-
}
37-
38-
/* Suggestions, instructions and tooltips */
39-
.suggestion-container.mod-search-suggestion {
40-
display: none;
41-
}
42-
43-
/*
44-
.prompt-instructions {
45-
display: none;
46-
}
47-
48-
.tooltip {
49-
display: none;
50-
}
51-
*/
52-
53-
/* Options when no file is open */
54-
.empty-state-action-list {
40+
.markdown-embed-title {
5541
display: none;
5642
}

Layout.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
/* Always center mermaid diagrams and embedded images */
88
.mermaid,
9-
.image-embed {
10-
display: flex;
11-
justify-content: center;
9+
.image-embed,
10+
.excalidraw-embedded-img {
11+
margin: auto !important;
1212
}
1313

1414
/* ![[img.png|right|100]] */
@@ -31,3 +31,21 @@
3131
.markdown-preview-sizer div:nth-of-type(3):has(h1) * {
3232
margin-top: 0 !important;
3333
}
34+
35+
/* Note level class: the width of the note is the screen width */
36+
/* Use like this:
37+
---
38+
cssclass: fullwidth
39+
tags: ...
40+
aliases: ...
41+
...
42+
---
43+
*/
44+
.fullwidth {
45+
--file-line-width: 100% !important;
46+
}
47+
48+
/* Callouts: Apply uniform margins left and right. Center the icon vertically. */
49+
div.callout-icon {
50+
margin: auto 1em auto 0;
51+
}

0 commit comments

Comments
 (0)