-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: consolidate heading classes and use tailwind layers #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7bca095
f1bafb4
55c5c8e
36f8191
ace4fcc
a2099bf
dd01b98
961d8cb
66f636e
8769e16
70b538e
85ecb64
3966a90
2ca5f4e
0a098d8
2c03d28
22b3d71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,62 +9,34 @@ | |
|
|
||
| /* Navbar container */ | ||
| .navbar-container { | ||
| @apply px-8; | ||
| } | ||
|
|
||
| @screen md { | ||
| .navbar-container { | ||
| @apply px-10; | ||
| } | ||
| @apply px-8 md:px-10; | ||
| } | ||
|
|
||
| /** Headings with H **/ | ||
| h1, | ||
| h2, | ||
| h3, | ||
| h4 { | ||
| @apply font-bold text-theme-secondary-900; | ||
| } | ||
|
|
||
| h1 { | ||
| @apply font-bold; | ||
| } | ||
|
|
||
| .dark h1, | ||
| .dark h2, | ||
| .dark h3, | ||
| .dark h4 { | ||
| @apply text-theme-secondary-200; | ||
| @apply font-bold text-theme-secondary-900 dark:text-theme-secondary-200 leading-tight; | ||
|
Comment on lines
-26
to
+20
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. additional |
||
| } | ||
|
|
||
| /** Headings without H **/ | ||
| .header-1, | ||
| .header-2, | ||
| .header-3, | ||
| .header-4 { | ||
| @apply font-bold text-theme-secondary-900; | ||
| } | ||
|
|
||
| .header-1 { | ||
| @apply font-bold text-theme-secondary-900; | ||
| } | ||
|
|
||
| .dark header-1, | ||
| .dark header-2, | ||
| .dark header-3, | ||
| .dark header-4 { | ||
| @apply text-theme-secondary-200; | ||
| @apply font-bold text-theme-secondary-900 dark:text-theme-secondary-200 leading-tight; | ||
|
Comment on lines
-45
to
+28
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as with |
||
| } | ||
|
|
||
| /* Heading consistency */ | ||
| h1, | ||
| .header-1 { | ||
| @apply text-3xl mb-1; | ||
| @apply text-3xl mb-1 md:text-4xl md:mb-2; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. replaced |
||
| } | ||
|
|
||
| h2, | ||
| .header-2 { | ||
| @apply text-2xl mb-1; | ||
| @apply text-2xl mb-1 md:text-3xl; | ||
| } | ||
|
|
||
| h3, | ||
|
|
@@ -74,72 +46,37 @@ h3, | |
|
|
||
| h4, | ||
| .header-4 { | ||
| @apply text-lg mb-1; | ||
| @apply text-lg mb-1 md:text-2xl; | ||
| } | ||
|
|
||
| /* Header Responsiveness */ | ||
| @screen md { | ||
| h1, | ||
| .header-1 { | ||
| @apply text-4xl mb-2; | ||
| @layer base { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pushed core styles to |
||
| a:focus, | ||
| button:focus, | ||
| textarea:focus, | ||
| input:focus { | ||
| @apply outline-none; | ||
| } | ||
|
|
||
| h2, | ||
| .header-2 { | ||
| @apply text-3xl; | ||
| button, | ||
| img { | ||
| @apply select-none; | ||
| -webkit-user-drag: none; | ||
| } | ||
|
|
||
| h3, | ||
| .header-3 { | ||
| @apply text-2xl; | ||
| body { | ||
| @apply font-sans text-theme-secondary-700 antialiased; | ||
| } | ||
| } | ||
|
|
||
| h1, | ||
| .header-1, | ||
| h2, | ||
| .header-2, | ||
| h3, | ||
| .header-3, | ||
| h4, | ||
| .header-4 { | ||
| @apply leading-tight; | ||
| } | ||
|
|
||
| a:focus, | ||
| button:focus, | ||
| textarea:focus, | ||
| input:focus { | ||
| @apply outline-none; | ||
| } | ||
|
|
||
| button, | ||
| img { | ||
| @apply select-none; | ||
| -webkit-user-drag: none; | ||
| } | ||
|
|
||
| body { | ||
| @apply font-sans text-theme-secondary-700 antialiased; | ||
| } | ||
|
|
||
| .clear-transform { | ||
| transform: none; | ||
| } | ||
|
|
||
| .rotate-90 { | ||
| transform: rotate(90deg); | ||
| } | ||
|
|
||
| .rotate-180 { | ||
| transform: rotate(180deg); | ||
| } | ||
| @layer utilities { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pushed |
||
| .clear-transform { | ||
| transform: none; | ||
| } | ||
|
|
||
| .rotate-minus-90 { | ||
| transform: rotate(-90deg); | ||
| } | ||
| .rotate-minus-90 { | ||
| transform: rotate(-90deg); | ||
| } | ||
|
|
||
| @layer utilities { | ||
| .size-increase { | ||
| transform: scale(1.02); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaced the
@screenwithmd:px-10