Skip to content

Commit 096cb4c

Browse files
authored
Merge pull request #18 from boostorg/develop
fix: var styling fixes
2 parents 48aad6f + 0114797 commit 096cb4c

6 files changed

Lines changed: 9 additions & 11 deletions

File tree

static/css/v3/code-block.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:root {
22
--code-block-bg: var(--color-bg-secondary);
33
--code-block-border: var(--color-border);
4-
--code-block-text: var(--color-syntax-text);
4+
--code-block-text: var(--color-syntax-cpp-text);
55
--code-block-bg-standalone: var(--color-primary-grey-100);
66
--code-block-border-standalone: var(--color-border);
77
--code-block-bg-grey: var(--color-primary-grey-100);
@@ -67,7 +67,7 @@
6767

6868
.code-block__inner code {
6969
font-weight: 500;
70-
color: var(--color-syntax-text) !important;
70+
color: var(--color-syntax-cpp-text) !important;
7171
white-space: break-spaces !important;
7272
}
7373

static/css/v3/content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ a:hover .content-detail-icon:not(.content-detail-icon--contained) {
3535

3636
.content-detail-icon__icon:hover {
3737
color: var(--color-icon-primary);
38-
cursor: pointer;
38+
cursor: default;
3939
}
4040

4141
.content-detail-icon__icon svg {

static/css/v3/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
gap: 2px;
141141
height: 24px;
142142
padding: 8px;
143-
color: var(--Text-Primary, #050816);
143+
color: var(--color-text-primary, #050816);
144144
font-family: var(--Typefaces-Sans, "Mona Sans VF");
145145
font-size: var(--Sizes-XS, 12px);
146146
font-style: normal;

static/css/v3/semantics.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
--color-syntax-comments: var(--color-syntax-strong-grey);
8787
--color-syntax-green: var(--color-syntax-strong-green);
8888
--color-syntax-pink: var(--color-syntax-strong-pink);
89-
--color-syntax-text: var(--color-primary-black);
89+
--color-syntax-cpp-text: var(--color-primary-black);
90+
--color-syntax-hljs-text: var(--color-primary-black);
9091
--color-syntax-yellow: var(--color-syntax-strong-yellow);
9192

9293
/* ============================================

static/css/v3/themes.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,13 @@ html.dark {
7070
--color-syntax-comments: var(--color-syntax-weak-grey);
7171
--color-syntax-green: var(--color-syntax-weak-green);
7272
--color-syntax-pink: var(--color-syntax-weak-pink);
73-
--color-syntax-text: var(--color-primary-white);
73+
--color-syntax-cpp-text: var(--color-primary-white);
7474
--color-syntax-yellow: var(--color-syntax-weak-yellow);
7575

7676
/* Tag */
7777
--color-tag-fill: var(--color-primary-grey-900);
7878
--color-tag-fill-hover: var(--color-primary-grey-850);
7979
--color-tag-stroke: #ffffff1a;
80-
/* Category tag dark: single source for neutral and colored tag surfaces (no raw primitives in category-tags.css) */
8180
--color-tag-neutral-bg: var(--color-primary-grey-900);
8281
--color-tag-neutral-bg-hover: var(--color-primary-grey-800);
8382
--color-tag-neutral-border: var(--color-primary-grey-900);
@@ -86,21 +85,19 @@ html.dark {
8685
--color-tag-colored-border: var(--color-primary-grey-800);
8786
--color-tag-colored-text: var(--color-text-primary);
8887

89-
/* Code block (dark backgrounds + contrast so code is readable) */
9088
--code-block-bg-standalone: var(--color-primary-grey-900);
9189
--code-block-border-standalone: var(--color-border);
9290
--code-block-bg-grey: var(--color-primary-grey-900);
9391
--code-block-card-btn-bg: var(--color-primary-grey-800);
9492

95-
/* Syntax highlighting (C++ / cpp-highlight, Atom One Dark palette) */
9693
--color-syntax-keyword: #c678dd;
9794
--color-syntax-string: #98c379;
9895
--color-syntax-preprocessor: #e06c75;
9996
--color-syntax-comment: #5c6370;
10097
--color-syntax-attribute: #d19a66;
10198
--color-syntax-number: #98c379;
10299
--color-syntax-function: #61afef;
103-
--color-syntax-text: #abb2bf;
100+
--color-syntax-hljs-text: #abb2bf;
104101

105102
/* Text */
106103
--color-text-error: var(--color-error-mid);

static/css/v3/wysiwyg-editor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ background-color: var(--color-surface-brand-accent-default, #f7f7f8) !important;
429429
.wysiwyg-editor__prose pre code {
430430
padding: 0;
431431
background: none;
432-
color: var(--color-syntax-text, var(--color-text-primary));
432+
color: var(--color-syntax-hljs-text, var(--color-text-primary));
433433
font-weight: inherit;
434434
font-size: inherit;
435435
border-radius: 0;

0 commit comments

Comments
 (0)