Skip to content

Commit

Permalink
feat(style): add lint on ods/src/style
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Jul 29, 2024
1 parent 57730f9 commit 2fe8ff8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
3 changes: 2 additions & 1 deletion packages/ods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"build:react": "npm --prefix react run build",
"build:stencil": "stencil build --prod --config stencil.config.ts",
"build:style": "npm --prefix style run build",
"build:vue": "npm --prefix vue run build"
"build:vue": "npm --prefix vue run build",
"lint:scss": "stylelint 'src/style/*.scss'"
},
"dependencies": {
"@stencil/core": "4.12.2"
Expand Down
44 changes: 22 additions & 22 deletions packages/ods/src/style/_text.scss
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
@mixin ods-text-caption() {
font-weight: 400;
font-size: 12px;
line-height: 1;
font-size: 12px;
font-weight: 400;
}

@mixin ods-text-code() {
line-height: 1;
font-family: var(--ods-font-family-code) ;
font-weight: 400;
font-size: 16px;
line-height: 1;
font-weight: 400;
}

@mixin ods-text-heading-1() {
font-weight: 700;
font-size: 36px;
line-height: 1.15;
font-size: 36px;
font-weight: 700;
}

@mixin ods-text-heading-2() {
font-weight: 700;
font-size: 28px;
line-height: 1;
font-size: 28px;
font-weight: 700;
}

@mixin ods-text-heading-3() {
font-weight: 700;
font-size: 24px;
line-height: 1;
font-size: 24px;
font-weight: 700;
}

@mixin ods-text-heading-4() {
font-weight: 700;
font-size: 20px;
line-height: 1;
font-size: 20px;
font-weight: 700;
}

@mixin ods-text-heading-5() {
font-weight: 700;
font-size: 18px;
line-height: 1.15;
font-size: 18px;
font-weight: 700;
}

@mixin ods-text-heading-6() {
font-weight: 700;
font-size: 16px;
line-height: 1.15;
font-size: 16px;
font-weight: 700;
}

@mixin ods-text-label() {
font-weight: 600;
font-size: 16px;
line-height: 1;
font-size: 16px;
font-weight: 600;
}

@mixin ods-text-paragraph() {
font-weight: 400;
font-size: 16px;
line-height: 1;
font-size: 16px;
font-weight: 400;
}

@mixin ods-text-span() {
font-weight: 400;
font-size: 16px;
line-height: 1;
font-size: 16px;
font-weight: 400;
}

0 comments on commit 2fe8ff8

Please sign in to comment.