Skip to content

Commit 6b7d15c

Browse files
simonsteigershravanngoswamii
authored andcommitted
responsive header size
1 parent b81aab7 commit 6b7d15c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

index.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ description: |
2424
```{=html}
2525
<div class="line-graph">
2626
<div class="upperContent">
27-
<h1 style="font-size:6rem;">Turing.jl</h1>
27+
<h1 class="responsive-heading">Turing.jl</h1>
2828
</div>
2929
<div class="Animation">
3030
<svg viewBox="0 0 2300 498" xmlns="http://www.w3.org/2000/svg">

theming/rules/_layouts.scss

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
padding-top: $large-y-space;
1111
}
1212

13+
.responsive-heading {
14+
font-size: clamp(2rem, 6vw, 6rem);
15+
}
16+
1317
.panel {
1418
border-radius: $border-radius-sm;
1519
padding: 1rem 1.25rem;

theming/rules/_mixins.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
@mixin raw-button {
30-
padding: 0.5rem 1rem;
30+
padding: 0.5rem 1.25rem;
3131
border-radius: 25px;
3232
border: solid $text-muted 1px;
3333
color: $color-fg;

theming/rules/_svg.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ svg {
4343
.upperContent {
4444
width: 88%;
4545
text-align: end;
46-
padding-top: 5.5%;
46+
padding-top: 7%;
4747
padding-right: 45%;
4848
position: absolute;
4949
z-index: 5;

0 commit comments

Comments
 (0)