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

Commit

Permalink
even spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVann committed Oct 15, 2020
1 parent 1df5855 commit 3bbff40
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions packages/docs/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,48 @@
env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.title {
font-size: 24.6753px;
line-height: 43px;
padding: 0.05px 0;
}

.title::before {
content: "";
margin-top: -0.4533em;
display: block;
height: 0;
}

.title::after {
content: "";
margin-bottom: -0.5233em;
display: block;
height: 0;
}

@media (min-width: 768px) {
.title {
font-size: 36.3636px;
line-height: 52px;
padding: 0.05px 0;
}

.title::before {
content: '';
margin-top: -0.2964em;
display: block;
height: 0;
}

.title::after {
content: '';
margin-bottom: -0.3664em;
display: block;
height: 0;
}
}

h1,
h2,
h3,
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ html
- var outline = ['focus:outline-none focus:shadow-outline focus:border-yellow-300']
div.container.px-3.mb-3
div.header.flex.items-center.justify-between.flex-col.my-3(class="md:flex-row md:my-6")
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
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
button.rounded-sm.toggle.flex.flex-col.items-center(style="visibility: hidden;" class=outline)
span.label <img class="emoji" src="sun.png" alt=""> color mode
span.text-xs (Click Me)
Expand Down

0 comments on commit 3bbff40

Please sign in to comment.