Skip to content

Commit 568550a

Browse files
committed
Reverse order of tiles in title card
1 parent 59cfd3f commit 568550a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ paginate: true
1717
math: mathjax
1818
---
1919

20-
<div class="title"><div>
20+
<div class="title"><div></div><div>
2121

2222
# Introducing Marp slides
2323
*A new Codestar theme for Marp*
2424

25-
</div><div></div></div>
25+
</div></div>
2626

2727
---
2828

theme/codestar.css

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/codestar.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,20 @@ section:has(> h1), section:has(> h2), section:has(.title) {
107107
position: absolute;
108108
inset: 0;
109109
display: grid;
110-
grid-template-columns: 0.7fr 0.3fr;
110+
grid-template-columns: 0.3fr 0.7fr;
111111

112112
& div {
113113
padding: 1em;
114114
display: flex;
115115
flex-direction: column;
116116
}
117117

118-
& div:first-child {
118+
& div:nth-child(2) {
119119
justify-content: center;
120120
align-items: center;
121121
}
122122

123-
& div:nth-child(2) {
123+
& div:first-child {
124124
color: var(--color-foreground);
125125
background: var(--color-background);
126126
writing-mode: vertical-lr;

0 commit comments

Comments
 (0)