Skip to content
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

CSS lint #1585

Merged
merged 2 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prettify": "prettier --write \"src/**/*.ts*\" \"src/**/*.css*\"",
"lint": "yarn run lint-css --formatter github && yarn run lint-js",
"lint-js": "eslint --max-warnings 0 --config ./.eslintrc.json \"src/**/*.ts*\"",
"lint-css": "stylelint --max-warnings 0 --fix \"src/**/*.css\"",
"lint-css": "stylelint --max-warnings 0 \"src/**/*.css\"",
"css": "tcm --namedExports --pattern 'src/frontend/**/*.module.css' && eslint --fix --config ./.eslintrc.json \"src/**/*.css.d.ts\"",
"test": "tsc --noEmit && LC_ALL=en_US.UTF-8 jest",
"storybook": "storybook dev --port 6007",
Expand Down
12 changes: 6 additions & 6 deletions src/frontend/css/404.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,37 @@
background: url('../images/404.svg') no-repeat center top/contain;
}

@media screen and (min-width: 800px) {
@media screen and (width >= 800px) {
.leftHeadline {
font-size: 2.125rem;
}
}

@media screen and (min-width: 950px) {
@media screen and (width >= 950px) {
.leftHeadline {
font-size: 2.625rem;
}
}

@media screen and (min-width: 1200px) {
@media screen and (width >= 1200px) {
.leftHeadline {
font-size: 3.25rem;
}
}

@media screen and (min-width: 1300px) {
@media screen and (width >= 1300px) {
.leftHeadline {
font-size: 3.625rem;
}
}

@media screen and (min-width: 1400px) {
@media screen and (width >= 1400px) {
.leftHeadline {
font-size: 4rem;
}
}

@media screen and (min-width: 1500px) {
@media screen and (width >= 1500px) {
.leftHeadline {
font-size: 4.25rem;
}
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/css/email.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ html,

/* Media queries must go last, because Outlook parser chokes on them */

@media (min-width: 400px) {
@media (width >= 400px) {
.header {
padding: 1.5rem 1.5rem 1rem 0;
}
Expand All @@ -99,7 +99,7 @@ html,
}
}

@media (min-width: 480px) {
@media (width >= 480px) {
.header {
padding: 3rem 1.5rem 2rem 0;
}
Expand Down
24 changes: 12 additions & 12 deletions src/frontend/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body {
--hexagon-content-bottom: 'over your digital identity.';
}

@media screen and (min-width: 800px) {
@media screen and (width >= 800px) {
.logo {
margin-left: calc(50% - 207px - 1.5rem);
}
Expand All @@ -54,7 +54,7 @@ p {
margin-block: 1.25rem;
}

@media screen and (min-width: 800px) {
@media screen and (width >= 800px) {
.right,
.left {
width: 50%;
Expand All @@ -68,7 +68,7 @@ p {
padding-inline: 3rem;
}

@media screen and (min-width: 800px) {
@media screen and (width >= 800px) {
.left {
margin-right: 50%;
padding-right: 0;
Expand All @@ -84,7 +84,7 @@ p {
justify-content: center;
}

@media screen and (min-width: 800px) {
@media screen and (width >= 800px) {
.right {
display: flex;
}
Expand All @@ -106,7 +106,7 @@ p {
margin-bottom: 5rem;
}

@media screen and (min-width: 800px) {
@media screen and (width >= 800px) {
.leftContainer {
min-height: calc(100vh - 10rem);
margin-bottom: auto;
Expand Down Expand Up @@ -183,31 +183,31 @@ p {
margin: 0.2rem auto;
}

@media screen and (min-width: 950px) {
@media screen and (width >= 950px) {
.rightHeadline {
font-size: 0.6rem;
}
}

@media screen and (min-width: 1200px) {
@media screen and (width >= 1200px) {
.rightHeadline {
font-size: 0.7rem;
}
}

@media screen and (min-width: 1300px) {
@media screen and (width >= 1300px) {
.rightHeadline {
font-size: 0.8rem;
}
}

@media screen and (min-width: 1400px) {
@media screen and (width >= 1400px) {
.rightHeadline {
font-size: 0.9rem;
}
}

@media screen and (min-width: 1500px) {
@media screen and (width >= 1500px) {
.rightHeadline {
font-size: 1rem;
}
Expand Down Expand Up @@ -282,7 +282,7 @@ p {
margin: 0 5rem;
}

@media screen and (min-width: 700px) {
@media screen and (width >= 700px) {
.content {
flex-direction: row;
}
Expand All @@ -297,7 +297,7 @@ p {
font-size: 0.875rem;
}

@media screen and (min-width: 700px) {
@media screen and (width >= 700px) {
.navMenu {
width: auto;
border: 0;
Expand Down