1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

stylelint updates

This commit is contained in:
Matthias Kretschmann 2018-05-22 22:17:51 +02:00
parent b86afe15c8
commit 3cb9319a93
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 11 additions and 18 deletions

View File

@ -9,6 +9,5 @@ insert_final_newline = true
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
[{*.svg, *.scss, *.css}] [*.scss]
indent_size = 4 indent_size = 4

View File

@ -6,9 +6,6 @@
"syntax": "scss", "syntax": "scss",
"rules": { "rules": {
"indentation": 4, "indentation": 4,
"number-leading-zero": "never", "number-leading-zero": "never"
"declaration-colon-space-after": "always-single-line",
"declaration-colon-newline-after": "always-multi-line",
"value-list-comma-newline-after": "always-multi-line"
} }
} }

View File

@ -5,8 +5,7 @@
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
display: block; display: block;
box-shadow: box-shadow: 0 3px 5px rgba($brand-main, .15),
0 3px 5px rgba($brand-main, .15),
0 5px 16px rgba($brand-main, .15); 0 5px 16px rgba($brand-main, .15);
@media (min-width: $projectImageMaxWidth) { @media (min-width: $projectImageMaxWidth) {
@ -16,8 +15,7 @@
} }
.dark & { .dark & {
box-shadow: box-shadow: 0 3px 5px rgba(darken($brand-main, 20%), .15),
0 3px 5px rgba(darken($brand-main, 20%), .15),
0 5px 16px rgba(darken($brand-main, 20%), .15); 0 5px 16px rgba(darken($brand-main, 20%), .15);
} }
} }

View File

@ -40,8 +40,7 @@
&:hover, &:hover,
&:focus { &:focus {
transform: translate3d(0, -.1rem, 0); transform: translate3d(0, -.1rem, 0);
box-shadow: box-shadow: 0 6px 10px rgba($brand-main, .1),
0 6px 10px rgba($brand-main, .1),
0 10px 25px rgba($brand-main, .1); 0 10px 25px rgba($brand-main, .1);
} }

View File

@ -11,13 +11,11 @@ $breakpoint-project-nav: 45rem;
.project__nav__image { .project__nav__image {
margin: 0; margin: 0;
box-shadow: box-shadow: 0 3px 5px rgba($brand-main, .15),
0 3px 5px rgba($brand-main, .15),
0 5px 16px rgba($brand-main, .15); 0 5px 16px rgba($brand-main, .15);
.dark & { .dark & {
box-shadow: box-shadow: 0 3px 5px rgba(darken($brand-main, 20%), .15),
0 3px 5px rgba(darken($brand-main, 20%), .15),
0 5px 16px rgba(darken($brand-main, 20%), .15); 0 5px 16px rgba(darken($brand-main, 20%), .15);
} }
} }
@ -37,7 +35,8 @@ $breakpoint-project-nav: 45rem;
} }
} }
&:last-child { // stylelint-disable-line &:last-child {
// stylelint-disable-line
margin-left: $spacer / 2; margin-left: $spacer / 2;
&:hover, &:hover,

View File

@ -8,7 +8,8 @@
display: inline-block; display: inline-block;
width: auto; width: auto;
height: 300px; height: 300px;
box-shadow: 0 3px 5px rgba($brand-main, .15), 0 5px 16px rgba($brand-main, .15); box-shadow: 0 3px 5px rgba($brand-main, .15),
0 5px 16px rgba($brand-main, .15);
margin-top: $spacer / 4; margin-top: $spacer / 4;
margin-bottom: $spacer / 2; margin-bottom: $spacer / 2;
} }