Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 3bbff40

Browse files
committed
even spacing
1 parent 1df5855 commit 3bbff40

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

packages/docs/index.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,48 @@
8080
env(safe-area-inset-bottom) env(safe-area-inset-left);
8181
}
8282

83+
.title {
84+
font-size: 24.6753px;
85+
line-height: 43px;
86+
padding: 0.05px 0;
87+
}
88+
89+
.title::before {
90+
content: "";
91+
margin-top: -0.4533em;
92+
display: block;
93+
height: 0;
94+
}
95+
96+
.title::after {
97+
content: "";
98+
margin-bottom: -0.5233em;
99+
display: block;
100+
height: 0;
101+
}
102+
103+
@media (min-width: 768px) {
104+
.title {
105+
font-size: 36.3636px;
106+
line-height: 52px;
107+
padding: 0.05px 0;
108+
}
109+
110+
.title::before {
111+
content: '';
112+
margin-top: -0.2964em;
113+
display: block;
114+
height: 0;
115+
}
116+
117+
.title::after {
118+
content: '';
119+
margin-bottom: -0.3664em;
120+
display: block;
121+
height: 0;
122+
}
123+
}
124+
83125
h1,
84126
h2,
85127
h3,

packages/docs/index.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ html
1919
- var outline = ['focus:outline-none focus:shadow-outline focus:border-yellow-300']
2020
div.container.px-3.mb-3
2121
div.header.flex.items-center.justify-between.flex-col.my-3(class="md:flex-row md:my-6")
22-
h1.mb-3.text-2xl(class="md:mb-0 md:text-4xl") <img class="emoji" src="moon.png" alt=""><img class="emoji" src="sun.png" alt=""> Perfect Dark Mode
22+
h1.mb-3.title(class="md:mb-0") <img class="emoji" src="moon.png" alt=""><img class="emoji" src="sun.png" alt=""> Perfect Dark Mode
2323
button.rounded-sm.toggle.flex.flex-col.items-center(style="visibility: hidden;" class=outline)
2424
span.label <img class="emoji" src="sun.png" alt=""> color mode
2525
span.text-xs (Click Me)

0 commit comments

Comments
 (0)