Skip to content

Commit d492860

Browse files
committed
Small fixes for tables and selection colors
1 parent 0c48855 commit d492860

File tree

9 files changed

+109
-64
lines changed

9 files changed

+109
-64
lines changed

Minimal.css

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ body {
119119
--p-spacing: 1.75rem;
120120
--border-width: 1px;
121121
--table-border-width: var(--border-width);
122+
--table-selection: var(--text-selection);
123+
--table-selection-border-color: var(--text-selection);
124+
--table-selection-border-width: 1px;
125+
--table-selection-border-radius: 0px;
122126
/* Readable line length off */
123127
--file-margins: var(--size-4-2) var(--size-4-12); }
124128

@@ -1530,11 +1534,9 @@ body {
15301534
color: var(--text-faint);
15311535
font-weight: 400; }
15321536

1533-
.table-cell-wrapper {
1534-
display: inline-block; }
1535-
.table-cell-wrapper .cm-active {
1536-
font-size: var(--table-text-size);
1537-
line-height: var(--table-line-height); }
1537+
.table-cell-wrapper .cm-line {
1538+
font-size: var(--table-text-size);
1539+
line-height: var(--table-line-height); }
15381540

15391541
/* Tags */
15401542
body.minimal-unstyled-tags {
@@ -2868,20 +2870,31 @@ body.minimal-focus-mode.show-view-header .view-content {
28682870
--table-numbers-padding-right: 0.5em; }
28692871
.table-numbers table:not(.calendar) {
28702872
counter-reset: section; }
2871-
.table-numbers table:not(.calendar) > thead > tr > th:first-child::before {
2872-
content: " ";
2873-
padding-right: var(--table-numbers-padding-right);
2874-
display: inline-block;
2875-
min-width: 2em; }
2876-
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child::before, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper::before {
2877-
counter-increment: section;
2878-
content: counter(section) " ";
2879-
text-align: center;
2880-
padding-right: var(--table-numbers-padding-right);
2881-
display: inline-block;
2882-
min-width: 2em;
2883-
color: var(--text-faint);
2884-
font-variant-numeric: tabular-nums; }
2873+
.table-numbers table:not(.calendar) > thead > tr > th:first-child {
2874+
white-space: nowrap; }
2875+
.table-numbers table:not(.calendar) > thead > tr > th:first-child::before {
2876+
content: " ";
2877+
padding-right: var(--table-numbers-padding-right);
2878+
display: inline-block;
2879+
min-width: 2em; }
2880+
.table-numbers table:not(.calendar) > thead > tr > th:first-child .table-cell-wrapper,
2881+
.table-numbers table:not(.calendar) > thead > tr > th:first-child .markdown-source-view.mod-cm6 {
2882+
display: inline-block;
2883+
min-width: 10px; }
2884+
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper {
2885+
white-space: nowrap; }
2886+
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child::before, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper::before {
2887+
counter-increment: section;
2888+
content: counter(section) " ";
2889+
text-align: center;
2890+
padding-right: var(--table-numbers-padding-right);
2891+
display: inline-block;
2892+
min-width: 2em;
2893+
color: var(--text-faint);
2894+
font-variant-numeric: tabular-nums; }
2895+
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child .markdown-source-view.mod-cm6, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper .markdown-source-view.mod-cm6 {
2896+
display: inline-block;
2897+
min-width: 10px; }
28852898
.table-numbers .table-editor {
28862899
--table-numbers-padding-right: 0; }
28872900

@@ -6301,7 +6314,7 @@ https://github.com/rose-pine/rose-pine-theme
63016314
--tx1: #575279;
63026315
--tx2: #797593;
63036316
--tx3: #9893a5;
6304-
--hl1: #EAE3E1; }
6317+
--hl1: rgba(191,180,181,0.35); }
63056318

63066319
.theme-light.minimal-rose-pine-light.minimal-light-contrast .titlebar,
63076320
.theme-light.minimal-rose-pine-light.minimal-light-contrast.minimal-status-off .status-bar,
@@ -6324,7 +6337,7 @@ https://github.com/rose-pine/rose-pine-theme
63246337
--tx1: #e0def4;
63256338
--tx2: #908caa;
63266339
--tx3: #6e6a86;
6327-
--hl1: #403d52; }
6340+
--hl1: rgba(126,121,155,0.35); }
63286341

63296342
.theme-dark.minimal-rose-pine-dark.minimal-dark-black {
63306343
--ui1: #21202e; }

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Minimal",
3-
"version": "7.3.3",
3+
"version": "7.3.4",
44
"minAppVersion": "1.1.9",
55
"author": "@kepano",
66
"authorUrl": "https://twitter.com/kepano",

src/css/main.css

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ body {
7676
--p-spacing: 1.75rem;
7777
--border-width: 1px;
7878
--table-border-width: var(--border-width);
79+
--table-selection: var(--text-selection);
80+
--table-selection-border-color: var(--text-selection);
81+
--table-selection-border-width: 1px;
82+
--table-selection-border-radius: 0px;
7983
/* Readable line length off */
8084
--file-margins: var(--size-4-2) var(--size-4-12); }
8185

@@ -1487,11 +1491,9 @@ body {
14871491
color: var(--text-faint);
14881492
font-weight: 400; }
14891493

1490-
.table-cell-wrapper {
1491-
display: inline-block; }
1492-
.table-cell-wrapper .cm-active {
1493-
font-size: var(--table-text-size);
1494-
line-height: var(--table-line-height); }
1494+
.table-cell-wrapper .cm-line {
1495+
font-size: var(--table-text-size);
1496+
line-height: var(--table-line-height); }
14951497

14961498
/* Tags */
14971499
body.minimal-unstyled-tags {
@@ -2825,20 +2827,31 @@ body.minimal-focus-mode.show-view-header .view-content {
28252827
--table-numbers-padding-right: 0.5em; }
28262828
.table-numbers table:not(.calendar) {
28272829
counter-reset: section; }
2828-
.table-numbers table:not(.calendar) > thead > tr > th:first-child::before {
2829-
content: " ";
2830-
padding-right: var(--table-numbers-padding-right);
2831-
display: inline-block;
2832-
min-width: 2em; }
2833-
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child::before, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper::before {
2834-
counter-increment: section;
2835-
content: counter(section) " ";
2836-
text-align: center;
2837-
padding-right: var(--table-numbers-padding-right);
2838-
display: inline-block;
2839-
min-width: 2em;
2840-
color: var(--text-faint);
2841-
font-variant-numeric: tabular-nums; }
2830+
.table-numbers table:not(.calendar) > thead > tr > th:first-child {
2831+
white-space: nowrap; }
2832+
.table-numbers table:not(.calendar) > thead > tr > th:first-child::before {
2833+
content: " ";
2834+
padding-right: var(--table-numbers-padding-right);
2835+
display: inline-block;
2836+
min-width: 2em; }
2837+
.table-numbers table:not(.calendar) > thead > tr > th:first-child .table-cell-wrapper,
2838+
.table-numbers table:not(.calendar) > thead > tr > th:first-child .markdown-source-view.mod-cm6 {
2839+
display: inline-block;
2840+
min-width: 10px; }
2841+
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper {
2842+
white-space: nowrap; }
2843+
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child::before, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper::before {
2844+
counter-increment: section;
2845+
content: counter(section) " ";
2846+
text-align: center;
2847+
padding-right: var(--table-numbers-padding-right);
2848+
display: inline-block;
2849+
min-width: 2em;
2850+
color: var(--text-faint);
2851+
font-variant-numeric: tabular-nums; }
2852+
.table-numbers table:not(.calendar):not(.table-editor) > tbody > tr > td:first-child .markdown-source-view.mod-cm6, .table-numbers table:not(.calendar).table-editor > tbody > tr > td:first-child .table-cell-wrapper .markdown-source-view.mod-cm6 {
2853+
display: inline-block;
2854+
min-width: 10px; }
28422855
.table-numbers .table-editor {
28432856
--table-numbers-padding-right: 0; }
28442857

@@ -6261,7 +6274,7 @@ https://github.com/rose-pine/rose-pine-theme
62616274
--tx1: #575279;
62626275
--tx2: #797593;
62636276
--tx3: #9893a5;
6264-
--hl1: #EAE3E1; }
6277+
--hl1: rgba(191,180,181,0.35); }
62656278

62666279
.theme-light.minimal-rose-pine-light.minimal-light-contrast .titlebar,
62676280
.theme-light.minimal-rose-pine-light.minimal-light-contrast.minimal-status-off .status-bar,
@@ -6284,7 +6297,7 @@ https://github.com/rose-pine/rose-pine-theme
62846297
--tx1: #e0def4;
62856298
--tx2: #908caa;
62866299
--tx3: #6e6a86;
6287-
--hl1: #403d52; }
6300+
--hl1: rgba(126,121,155,0.35); }
62886301

62896302
.theme-dark.minimal-rose-pine-dark.minimal-dark-black {
62906303
--ui1: #21202e; }

src/css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/color-schemes/rose-pine.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ https://github.com/rose-pine/rose-pine-theme
6666
--tx2: #797593;
6767
--tx3: #9893a5;
6868

69-
--hl1: #EAE3E1;
69+
--hl1: rgba(191,180,181,0.35);
7070
}
7171
.theme-light.minimal-rose-pine-light.minimal-light-contrast .titlebar,
7272
.theme-light.minimal-rose-pine-light.minimal-light-contrast.minimal-status-off .status-bar,
@@ -94,7 +94,7 @@ https://github.com/rose-pine/rose-pine-theme
9494
--tx2: #908caa;
9595
--tx3: #6e6a86;
9696

97-
--hl1: #403d52;
97+
--hl1: rgba(126,121,155,0.35);
9898
}
9999
.theme-dark.minimal-rose-pine-dark.minimal-dark-black {
100100
--ui1: #21202e;

src/scss/content/tables.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ body {
6262
}
6363

6464
.table-cell-wrapper {
65-
.cm-active {
65+
.cm-line {
6666
font-size: var(--table-text-size);
6767
line-height: var(--table-line-height);
6868
}
69-
display: inline-block;
7069
}

src/scss/features/helpers-tables.scss

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,37 @@
5050

5151
table:not(.calendar) {
5252
counter-reset:section;
53-
> thead > tr > th:first-child::before {
54-
content: " ";
55-
padding-right: var(--table-numbers-padding-right);
56-
display: inline-block;
57-
min-width: 2em;
53+
> thead > tr > th:first-child {
54+
white-space: nowrap;
55+
&::before {
56+
content: " ";
57+
padding-right: var(--table-numbers-padding-right);
58+
display: inline-block;
59+
min-width: 2em;
60+
}
61+
.table-cell-wrapper,
62+
.markdown-source-view.mod-cm6 {
63+
display: inline-block;
64+
min-width: 10px;
65+
}
5866
}
59-
&:not(.table-editor) > tbody > tr > td:first-child::before,
60-
&.table-editor > tbody > tr > td:first-child .table-cell-wrapper::before {
61-
counter-increment: section;
62-
content: counter(section) " ";
63-
text-align: center;
64-
padding-right: var(--table-numbers-padding-right);
65-
display: inline-block;
66-
min-width: 2em;
67-
color: var(--text-faint);
68-
font-variant-numeric: tabular-nums;
67+
&:not(.table-editor) > tbody > tr > td:first-child,
68+
&.table-editor > tbody > tr > td:first-child .table-cell-wrapper {
69+
white-space: nowrap;
70+
&::before {
71+
counter-increment: section;
72+
content: counter(section) " ";
73+
text-align: center;
74+
padding-right: var(--table-numbers-padding-right);
75+
display: inline-block;
76+
min-width: 2em;
77+
color: var(--text-faint);
78+
font-variant-numeric: tabular-nums;
79+
}
80+
.markdown-source-view.mod-cm6 {
81+
display: inline-block;
82+
min-width: 10px;
83+
}
6984
}
7085
}
7186
.table-editor {

src/scss/variables/root.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ body {
9595
--border-width: 1px;
9696
--table-border-width: var(--border-width);
9797

98+
--table-selection: var(--text-selection);
99+
--table-selection-border-color: var(--text-selection);
100+
--table-selection-border-width: 1px;
101+
--table-selection-border-radius: 0px;
102+
98103
/* Readable line length off */
99104
--file-margins: var(--size-4-2) var(--size-4-12);
100105
}

theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)