Skip to content

Commit

Permalink
[core] Add css checking to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Dec 10, 2023
1 parent 3fbe950 commit a9c272e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
*.d.ts
packages/*/*/styles.css
packages/*/*/styles.layer.css
packages/*/*/styles/*.css
docs/.next
docs/out
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.option {
transition: transform 100ms ease, box-shadow 100ms ease;
transition:
transform 100ms ease,
box-shadow 100ms ease;

&[data-combobox-selected] {
font-weight: 500;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
{
"fileName": "SelectedAnimation.module.css",
"language": "css",
"code": ".option {\n transition: transform 100ms ease, box-shadow 100ms ease;\n\n &[data-combobox-selected] {\n font-weight: 500;\n transform: scale(1.1);\n box-shadow: var(--mantine-shadow-lg);\n }\n}\n"
"code": ".option {\n transition:\n transform 100ms ease,\n box-shadow 100ms ease;\n\n &[data-combobox-selected] {\n font-weight: 500;\n transform: scale(1.1);\n box-shadow: var(--mantine-shadow-lg);\n }\n}\n"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
height: 0;
padding-bottom: 100%;
overflow: hidden;
transition: transform 100ms ease, box-shadow 100ms ease, border-radius 100ms ease;
transition:
transform 100ms ease,
box-shadow 100ms ease,
border-radius 100ms ease;

&[data-base] {
transform: scale(1.2) translateY(rem(-5px));
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"stylelint": "stylelint '**/*.css' --cache",
"syncpack": "syncpack list-mismatches",
"syncpack:format": "syncpack format",
"prettier:test": "prettier --check \"**/*.{ts,tsx,mdx}\"",
"prettier:write": "prettier --write \"**/*.{ts,tsx,mdx}\""
"prettier:test": "prettier --check \"**/*.{ts,tsx,mdx,css}\"",
"prettier:write": "prettier --write \"**/*.{ts,tsx,mdx,css}\""
},
"dependencies": {
"@floating-ui/react": "^0.24.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
color: var(--mantine-color-placeholder);
font-weight: 400;
font-size: var(--mantine-font-size-sm);
transition: color 100ms ease, transform 100ms ease, font-size 100ms ease;
transition:
color 100ms ease,
transform 100ms ease,
font-size 100ms ease;

&[data-floating] {
transform: translateY(rem(-20px));
Expand Down
2 changes: 0 additions & 2 deletions packages/@mantine/core/src/components/Pill/Pill.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
--_pill-color: var(--mantine-color-black);
}



@mixin rtl {
padding-right: 0.8em;
padding-left: var(--_pill-padding-right, 0.8em);
Expand Down

0 comments on commit a9c272e

Please sign in to comment.