Skip to content

Commit 1a9ae39

Browse files
committed
Fixed rendering issues.
1 parent e4da514 commit 1a9ae39

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
for details. All rights reserved. Use of this source code is governed by a
3+
BSD-style license that can be found in the LICENSE file. */
4+
5+
@use 'sass:meta';
6+
@use '../../../../third_party/css/github-markdown.css';
7+
8+
.light-theme {
9+
@include meta.load-css('../../../../third_party/highlight/github');
10+
}
11+
12+
.dark-theme {
13+
@include meta.load-css('../../../../third_party/highlight/github-dark');
14+
}

pkg/web_css/lib/src/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
for details. All rights reserved. Use of this source code is governed by a
33
BSD-style license that can be found in the LICENSE file. */
44

5+
@use '../../../../third_party/site-shared/dash_design/lib/styles/variables.scss' as dash_variables;
6+
57
// suggested naming convention:
68
//
79
// color definitions:

pkg/web_css/lib/style.scss

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
for details. All rights reserved. Use of this source code is governed by a
33
BSD-style license that can be found in the LICENSE file. */
44

5-
@use 'sass:meta';
6-
75
// Include third-party CSS into a single output file
86
// to reduce the number of HTTP requests.
9-
@use '../../../third_party/css/github-markdown.css';
10-
11-
@use '../../../third_party/site-shared/dash_design/lib/styles/variables.scss' as dash_variables;
7+
@use 'src/_third_party';
128

139
// Local styles and rules.
1410
@use 'src/_variables';
@@ -27,11 +23,3 @@
2723
@use 'src/_staging_ribbon.scss';
2824
@use 'src/_tags';
2925
@use 'src/_topics';
30-
31-
.light-theme {
32-
@include meta.load-css('../../../third_party/highlight/github');
33-
}
34-
35-
.dark-theme {
36-
@include meta.load-css('../../../third_party/highlight/github-dark');
37-
}

0 commit comments

Comments
 (0)