-
-
Notifications
You must be signed in to change notification settings - Fork 3k
chore: add tailwind (@miodec) #7390
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
Merged
Changes from 33 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
9466c1e
brain mushy
Miodec 795efb3
mushy
Miodec 159eca7
breakpoints
Miodec fde385c
styles
Miodec bb21251
layer stuff wip
Miodec 3fc5190
Merge branch 'master' into tailwind
Miodec 2288e7d
final layers setup
Miodec 0b6419f
no more footer scss
Miodec b269d5c
move media query debugger to its own file
Miodec 6f702b2
extra space
Miodec dd10e44
fix mobile commandline
Miodec 09534a6
remove scroll to top scss
Miodec 84a7c76
yeet css
Miodec 48a0725
yeet
Miodec d63e829
comment
Miodec 0ded24e
enable tw sorting
Miodec d9be672
convert contact modal
Miodec 84363fc
utils, convert new animated modal to tw
Miodec d54d773
brr
Miodec 336a71b
convert
Miodec 90ae2cd
raise madding at xs
Miodec 31b2471
remove comment
Miodec c5e879e
tailwindify about page
Miodec 330d89e
max content
Miodec 455e936
Merge branch 'master' into tailwind
Miodec 3f6a3af
convert loader
Miodec 207ca10
cleanup
Miodec 58fadd9
move
Miodec 51c2e0c
reduce diff?
Miodec addd797
comment
Miodec 4425df0
cleanup
Miodec 594d508
remove
Miodec b635831
remove
Miodec e9110af
inner html
Miodec 714580b
fix visible modals
Miodec 07ffc01
style preloaders
Miodec 3ebd0e0
fix modals visible on load
Miodec 5e365e3
bg
Miodec 9e36d22
ignore in this case
Miodec 0f8aee1
fix tests
Miodec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,5 +1,36 @@ | ||
| @import "buttons", "fonts", "404", "ads", "account", "animations", "banners", | ||
| "caret", "commandline", "core", "inputs", "keymap", "login", "monkey", "nav", | ||
| "notifications", "popups", "profile", "scroll", "settings", | ||
| "account-settings", "leaderboards", "test", "loading", "friends", | ||
| "media-queries"; | ||
| // layer order | ||
| @layer normalize; /* Normalize stuff */ | ||
| @layer theme, base, components, properties; /* Tailwind stuff */ | ||
| @layer vendor; /* Vendor files */ | ||
| @layer custom-styles; /* scss files */ | ||
| @layer hidden; /* custom hidden layer */ | ||
| @layer utilities; /* Tailwind again, make them override scss files */ | ||
|
|
||
| @layer hidden { | ||
| // custom layer to hide elements without using !important | ||
| // (as long as this layer is higher than custom-styles) | ||
| // this is to fix issues with tailwinds hidden class | ||
| // while still working for scss files | ||
| .hidden { | ||
| display: none; | ||
| } | ||
|
|
||
| // same for invisible | ||
| .invisible { | ||
| opacity: 0; | ||
| pointer-events: none; | ||
| visibility: hidden; | ||
| } | ||
| } | ||
|
|
||
| @layer custom-styles { | ||
| @import "buttons", "fonts", "404", "ads", "account", "animations", "banners", | ||
| "caret", "commandline", "core", "inputs", "keymap", "login", "monkey", | ||
| "nav", "notifications", "popups", "profile", "scroll", "settings", | ||
| "account-settings", "leaderboards", "test", "loading", "friends", | ||
| "media-queries"; | ||
|
|
||
| .chartCanvas { | ||
| width: 100% !important; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,56 @@ | ||||||
| @import "tailwindcss"; | ||||||
|
|
||||||
Miodec marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| @theme { | ||||||
| --color-*: initial; | ||||||
| --color-bg: var(--bg-color); | ||||||
| --color-main: var(--main-color); | ||||||
| --color-caret: var(--caret-color); | ||||||
| --color-sub: var(--sub-color); | ||||||
| --color-sub-alt: var(--sub-alt-color); | ||||||
| --color-text: var(--text-color); | ||||||
| --color-error: var(--error-color); | ||||||
| --color-error-extra: var(--error-extra-color); | ||||||
| --color-colorful-error: var(--colorful-error-color); | ||||||
| --color-colorful-error-extra: var(--colorful-error-extra-color); | ||||||
|
|
||||||
| /* decide on rem or em */ | ||||||
|
||||||
| /* decide on rem or em */ | |
| /* TODO: Decide whether to use rem or em for --spacing and apply the chosen unit consistently before enabling this variable. */ |
This file contains hidden or 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,4 +1,7 @@ | ||
| @import "normalize.css"; | ||
| @import "fontawesome-5"; | ||
| @import "slim-select/styles"; | ||
| @import "balloon-css/src/balloon"; | ||
| @import "normalize.css" layer(normalize); | ||
|
|
||
| @layer vendor { | ||
| @import "fontawesome-5"; | ||
| @import "slim-select/styles"; | ||
| @import "balloon-css/src/balloon"; | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.