Skip to content

Commit 3cf7b92

Browse files
committed
refactor: running stylelint
1 parent 8e78b6c commit 3cf7b92

File tree

74 files changed

+184
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+184
-132
lines changed

source/_patterns/00-base/_helpers.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "sass:color";
2+
23
@mixin rgba2hex(
34
$cssProperty,
45
$hexValue,

source/_patterns/00-base/_init.global.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "sass:color";
2+
23
// *! this is an opionionated (especially based on "enhancing" normalize.css) version of minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css
34
html,
45
body {
@@ -18,10 +19,8 @@ html {
1819
-moz-osx-font-smoothing: grayscale;
1920
-webkit-font-smoothing: antialiased;
2021
min-width: 300px;
21-
overflow-x: hidden;
22-
overflow-y: scroll;
23-
text-rendering: optimizeLegibility;
24-
text-size-adjust: 100%;
22+
overflow: hidden scroll;
23+
text-rendering: optimizelegibility;
2524
text-size-adjust: 100%;
2625
}
2726

@@ -52,7 +51,7 @@ a {
5251
color: $db-color-cool-gray-700;
5352

5453
strong {
55-
color: currentColor;
54+
color: currentcolor;
5655
}
5756

5857
&:hover {
@@ -102,7 +101,7 @@ pre {
102101

103102
code {
104103
background-color: transparent;
105-
color: currentColor;
104+
color: currentcolor;
106105
font-size: 1em;
107106
padding: 0;
108107
}

source/_patterns/00-base/colors/enterprise/_colors.variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ $DBgray: $db-color-cool-gray-400; // DB gray
1313
$black: $db-color-cool-gray-800;
1414
$black-bis: $db-color-cool-gray-700;
1515
$black-ter: $db-color-cool-gray-600;
16-
1716
$gray-darker: $db-color-cool-gray-600;
1817
$gray-dark: $DBdarkgray;
1918
$gray: $DBgray;
@@ -25,11 +24,14 @@ $gray-lighter: $DBwhitegray;
2524
// $white:
2625

2726
$orange: $db-color-yellow-900;
27+
2828
// $yellow:
2929
$green: $db-color-green-600;
30+
3031
// $turquoise:
3132
// $cyan:
3233
$blue: $db-color-cyan-600;
34+
3335
// $purple:
3436
$red: $db-color-red;
3537
$red-invert: #fff;

source/_patterns/00-base/icons/_icons.demonstration.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
&.DO-NOT-COPY-THIS-CLASS-example-bg-variants-cyan {
37-
--db-icon-pulse-color: currentColor;
37+
--db-icon-pulse-color: currentcolor;
3838
background-color: $db-color-cyan-200;
3939
}
4040
}

source/_patterns/00-base/icons/_icons.font-faces.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
@use "sass:string";
22
@import "../../../css/db-ui-core.variables";
3-
43
@import "icons.variables";
54

65
// Potential TODO: usage of the standard filenames described by https://marketingportal.extranet.deutschebahn.com/marketingportal/Basiselemente/Icons/Funktionale-Icons-Architektur-und-Fahrzeuge
76

87
@font-face {
98
font-display: block;
10-
font-family: "missing-icons";
9+
font-family: missing-icons;
1110
src:
1211
url("#{$icons-path}functional/fonts/icons-empty.woff2?4r2100")
1312
format("woff2"),

source/_patterns/00-base/icons/_icons.placeholder.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
alt: "";
55

66
display: inline-block;
7+
78
/*** icon - placeholder ***/
89
// * use !important to prevent issues with browser extensions that change fonts
910
font-family: var(--icon-font-family) !important;
@@ -27,6 +28,7 @@
2728
@media aural {
2829
content: none;
2930
}
31+
3032
@media speech {
3133
content: none;
3234
}

source/_patterns/00-base/icons/_icons.variables.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ $icons-font-family: '#{"icons-" + $icon-size + "-" + $icon-style}, "missing-icon
77
$icon-content-space: to-rem(
88
$pxValue: 6
99
) !default;
10-
1110
$icon-glyphs-personenverkehr: (
1211
"account": "\e1221",
1312
"add": "\002B",
@@ -333,7 +332,6 @@ $icon-glyphs-personenverkehr: (
333332
"iceportal": "\e1310",
334333
"regioguide": "\e1311"
335334
) !default;
336-
337335
$icon-font-families-personenverkehr: (
338336
"outline": (
339337
16: (
@@ -616,5 +614,4 @@ $icon-font-families-personenverkehr: (
616614
)
617615
)
618616
) !default;
619-
620617
$icon-glyphs: $icon-glyphs-personenverkehr !default;

source/_patterns/00-base/icons/enterprise/_icons.font-faces.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@if $icon-domain != "personenverkehr-legacy" {
44
$icons-path: $icons-path + $icon-domain + "/";
55
}
6+
67
@each $icon-style, $icon-font-sizes in $icon-families {
78
@if $icon-font-sizes {
89
@each $icon-size in $icon-font-sizes {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import "icons.variables";
2-
32
@import "icons.custom-properties";
43
@import "icons.font-faces";
54
@import "../icons";

source/_patterns/00-base/icons/icons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
.is-icon-text-replace {
3737
&[data-icon],
3838
&[data-icon-before] {
39-
@include is-icon-text-replace();
39+
@include is-icon-text-replace;
4040
}
4141

4242
&[data-icon-after] {

0 commit comments

Comments
 (0)