Skip to content

Commit 75ba3a5

Browse files
committed
Vue 3: fix markdown styles
These defaults no longer provided by Vuetify
1 parent b742553 commit 75ba3a5

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

src/styles/cylc/_markdown.scss

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/**
2+
* Copyright (C) NIWA & British Crown (Met Office) & Contributors.
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
.markdown {
19+
p, ul, ol {
20+
&:not(:last-child) {
21+
margin-bottom: 0.8em;
22+
}
23+
}
24+
ul, ol {
25+
padding-left: 24px;
26+
}
27+
.v-theme--light & code {
28+
background-color: rgba(0, 0, 0, 0.05);
29+
}
30+
.v-theme--dark & code {
31+
background-color: rgba(255, 255, 255, 0.1);
32+
}
33+
}

src/styles/cylc/_tooltip.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,4 @@
1919
max-width: 600px !important;
2020
// Increase default opacity of bg:
2121
background: rgba(var(--v-theme-surface-variant), 0.9);
22-
23-
p:last-child {
24-
// If we have markdown paragraphs in the tooltip
25-
margin-bottom: 0;
26-
}
2722
}

src/styles/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
@import "cylc/variables";
2525

26+
@import "cylc/markdown";
2627
@import "cylc/dashboard";
2728
@import "cylc/drawer";
2829
@import "cylc/gscan";

0 commit comments

Comments
 (0)