Skip to content

Commit f8d9fc2

Browse files
committed
tweak temporal theme
1 parent 0430a9c commit f8d9fc2

5 files changed

Lines changed: 24 additions & 4 deletions

File tree

slides/theme-temporal/components/TemporalLogo.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!--
22
Temporal "plus" mark. Inline SVG, inherits color via currentColor
3-
so layouts can tint it with CSS (default: Temporal mint green).
3+
so layouts can tint it with CSS. Brand rule: the mark must be
4+
either black or white, never green. Pick based on background.
45
-->
56
<template>
67
<svg

slides/theme-temporal/layouts/cover.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ import TemporalLogo from '../components/TemporalLogo.vue'
3737
.cover-logo {
3838
width: 44px;
3939
height: 44px;
40-
color: var(--temporal-green);
40+
/* Temporal brand rule: the mark is black or white, never green. */
41+
color: #ffffff;
4142
}
4243
.cover :deep(h1) {
4344
font-size: 3rem;

slides/theme-temporal/layouts/end.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ import TemporalLogo from '../components/TemporalLogo.vue'
3939
.end-logo {
4040
width: 38px;
4141
height: 38px;
42-
color: var(--temporal-green);
42+
/* Temporal brand rule: the mark is black or white, never green. */
43+
color: #ffffff;
4344
}
4445
.end-content {
4546
align-self: flex-start;

slides/theme-temporal/layouts/two-cols.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,15 @@ import TemporalFooter from '../components/TemporalFooter.vue'
3737
align-items: start;
3838
overflow: hidden;
3939
}
40+
/* Two-cols slides are cramped when the h1 wraps to 2-3 lines. Shrink
41+
the h1 here so it fits on 1-2 lines and leaves room for body content. */
42+
.two-cols :deep(h1) {
43+
font-size: 2.2rem;
44+
margin-bottom: 0.6rem;
45+
}
46+
.two-cols :deep(.col) p,
47+
.two-cols :deep(.col) li {
48+
font-size: 1.3rem;
49+
line-height: 1.35;
50+
}
4051
</style>

slides/theme-temporal/styles/code.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@
1616
background: var(--temporal-bg-elev) !important;
1717
border: 1px solid var(--temporal-border);
1818
border-radius: 0.4rem;
19-
padding: 0.7rem 0.9rem;
19+
padding: 0.7rem 1.25rem;
2020
margin: 0.4rem 0;
2121
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset,
2222
0 12px 40px -20px rgba(0, 0, 0, 0.8);
2323
}
24+
/* Give the last character of a long line breathing room so italic glyphs
25+
and descenders don't get clipped by the rounded corner or scrollbar. */
26+
.slidev-layout pre.shiki code,
27+
.slidev-layout div[class*="language-"] > pre code {
28+
padding-right: 0.5rem;
29+
}
2430

2531
.slidev-layout :not(pre) > code {
2632
background: rgba(124, 58, 237, 0.14);

0 commit comments

Comments
 (0)