-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove unnessecary usages of
@apply
- Loading branch information
Showing
42 changed files
with
354 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,136 +1,10 @@ | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@import 'styles/breakpoints'; | ||
@import 'styles/animations'; | ||
@import 'styles/colors'; | ||
@import 'styles/fonts'; | ||
@import 'styles/utils'; | ||
@import 'styles/tw'; | ||
|
||
@import 'styles/components/code-block'; | ||
|
||
body, | ||
html { | ||
height: 100vh; | ||
overflow: hidden; | ||
transition: background 150ms ease; | ||
} | ||
|
||
body, | ||
html, | ||
div, | ||
span, | ||
p, | ||
img { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
@apply h-full w-full overflow-x-hidden; | ||
|
||
background-color: $black; | ||
--textColour: $light; | ||
|
||
&.light { | ||
background-color: $light; | ||
--textColour: $dark; | ||
} | ||
&:not(.is-loaded) { | ||
cursor: wait !important; | ||
|
||
& a, | ||
& button, | ||
& [role='button'] { | ||
cursor: not-allowed !important; | ||
} | ||
} | ||
&.is-loading { | ||
cursor: wait !important; | ||
|
||
& a, | ||
& button, | ||
& [role='button'] { | ||
cursor: not-allowed !important; | ||
} | ||
} | ||
} | ||
|
||
.not-allowed { | ||
&, | ||
& a, | ||
& button, | ||
& [role='button'] { | ||
cursor: not-allowed !important; | ||
} | ||
} | ||
|
||
::selection { | ||
background: rgba($accent-light, 0.8); | ||
color: $light; | ||
} | ||
|
||
.dark { | ||
::selection { | ||
background: rgba($accent-dark, 0.8); | ||
color: $dark; | ||
} | ||
} | ||
|
||
.click-through { | ||
pointer-events: none; | ||
|
||
a, | ||
button, | ||
[role='button'] { | ||
pointer-events: visible; | ||
} | ||
} | ||
|
||
.focus:ring-2 { | ||
&, | ||
&:focus { | ||
outline: none !important; | ||
} | ||
} | ||
|
||
.pt-ol, | ||
.pt-ul { | ||
li { | ||
margin-bottom: 0.5rem; | ||
line-height: 1.4rem; | ||
} | ||
} | ||
|
||
.pt-ol { | ||
li { | ||
ol { | ||
@apply list-[lower-alpha] my-3; | ||
} | ||
} | ||
} | ||
|
||
.pt-ul { | ||
li { | ||
ul { | ||
@apply list-disc my-3; | ||
} | ||
} | ||
} | ||
|
||
.focusOutline { | ||
@apply outline-offset-4; | ||
|
||
&, | ||
&-sm { | ||
@apply focus-visible:outline outline-accent-light outline-2; | ||
|
||
.dark & { | ||
@apply outline-accent-dark; | ||
} | ||
} | ||
&-sm { | ||
@apply outline-offset-2; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
<span /> | ||
|
||
<style lang="scss"> | ||
span { | ||
@apply mx-2 block h-1 w-1 flex-shrink-0 rounded-full bg-dark/80 transition-colors; | ||
} | ||
:global(.dark) { | ||
span { | ||
@apply bg-light/80; | ||
} | ||
} | ||
</style> | ||
<span | ||
class="mx-2 block h-1 w-1 flex-shrink-0 rounded-full bg-dark/80 transition-colors dark:bg-light/80" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.