This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: standardize class names (#873)
- Loading branch information
1 parent
7e1734a
commit 1338ad2
Showing
305 changed files
with
8,691 additions
and
5,457 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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.CMS_App_root { | ||
@apply h-full; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.CMS_ErrorBoundary_root { | ||
@apply flex | ||
flex-col | ||
bg-slate-50 | ||
dark:bg-slate-900 | ||
min-h-screen | ||
gap-2; | ||
} | ||
|
||
.CMS_ErrorBoundary_header { | ||
@apply flex | ||
flex-col | ||
py-2 | ||
px-4 | ||
gap-2; | ||
} | ||
|
||
.CMS_ErrorBoundary_title { | ||
@apply text-2xl | ||
font-bold; | ||
} | ||
|
||
.CMS_ErrorBoundary_report-link { | ||
@apply text-blue-500 | ||
hover:underline; | ||
} | ||
|
||
.CMS_ErrorBoundary_content { | ||
@apply flex | ||
flex-col | ||
py-2 | ||
px-4 | ||
gap-2; | ||
} | ||
|
||
.CMS_ErrorBoundary_details-title { | ||
@apply text-xl | ||
font-bold; | ||
} | ||
|
||
.CMS_ErrorBoundary_error-line { | ||
@apply whitespace-pre; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.CMS_MainView_root { | ||
@apply flex | ||
bg-slate-50 | ||
dark:bg-slate-900; | ||
} | ||
|
||
.CMS_MainView_body { | ||
@apply h-main-mobile | ||
md:h-main | ||
relative | ||
w-full; | ||
|
||
&.CMS_MainView_show-left-nav { | ||
@apply left-0 | ||
md:w-main; | ||
} | ||
|
||
&:not(.CMS_MainView_no-margin) { | ||
@apply px-5 | ||
py-4; | ||
} | ||
|
||
&.CMS_MainView_no-scroll { | ||
@apply overflow-hidden; | ||
} | ||
|
||
&:not(.CMS_MainView_no-scroll) { | ||
@apply overflow-y-auto; | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
packages/core/src/components/collections/Collection.classes.ts
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { generateClassNames } from '@staticcms/core/lib/util/theming.util'; | ||
|
||
const collectionClasses = generateClassNames('Collection', [ | ||
'root', | ||
'content', | ||
'search-query', | ||
'description', | ||
'description-card', | ||
'controls', | ||
'header-wrapper', | ||
'header', | ||
'header-icon', | ||
'header-label', | ||
'new-entry-button', | ||
]); | ||
|
||
export default collectionClasses; |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.CMS_Collection_root { | ||
@apply flex | ||
flex-col | ||
h-full | ||
px-5 | ||
pt-4 | ||
overflow-hidden; | ||
} | ||
|
||
.CMS_Collection_content { | ||
@apply flex | ||
items-center | ||
mb-4 | ||
flex-row | ||
gap-4 | ||
sm:gap-0 | ||
flex-wrap | ||
md:flex-nowrap; | ||
} | ||
|
||
.CMS_Collection_search-query { | ||
@apply flex-grow; | ||
} | ||
|
||
.CMS_Collection_description { | ||
@apply flex | ||
mb-4; | ||
} | ||
|
||
.CMS_Collection_description-card { | ||
@apply flex-grow | ||
px-3.5 | ||
py-2.5 | ||
text-sm; | ||
} | ||
|
||
.CMS_Collection_controls { | ||
@apply flex | ||
items-center | ||
relative | ||
z-20 | ||
md:flex-grow-0 | ||
flex-grow | ||
justify-end | ||
gap-1.5 | ||
sm:w-auto | ||
lg:gap-2; | ||
} | ||
|
||
.CMS_Collection_header-wrapper { | ||
@apply flex | ||
gap-2 | ||
sm:gap-2 | ||
md:gap-4 | ||
md:w-full | ||
justify-normal | ||
xs:justify-between | ||
sm:justify-normal | ||
truncate; | ||
} | ||
|
||
.CMS_Collection_header { | ||
@apply text-xl | ||
font-semibold | ||
flex | ||
items-center | ||
text-gray-800 | ||
dark:text-gray-300 | ||
gap-2 | ||
md:w-auto; | ||
} | ||
|
||
.CMS_Collection_header-icon { | ||
@apply flex | ||
items-center; | ||
} | ||
|
||
.CMS_Collection_header-label { | ||
@apply max-w-collection-header | ||
md:flex-grow | ||
truncate; | ||
} | ||
|
||
.CMS_Collection_new-entry-button { | ||
@apply hidden | ||
md:flex; | ||
} |
Oops, something went wrong.