Skip to content

Commit

Permalink
Add stylelint CSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscordova committed May 23, 2017
1 parent e6f8a0a commit 6109807
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/components/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ $button-font-size: $text-font-size;
0% {
opacity: 0;
}

20% {
opacity: 1;
}

100% {
width: 200%;
padding-bottom: 200%;
Expand Down
1 change: 1 addition & 0 deletions src/components/global-footer/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $author-text-color: $gray;
text-align: left;
}
}

.author-metadata {
margin-left: 5px;
color: $author-text-color;
Expand Down
2 changes: 2 additions & 0 deletions src/components/hero/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $thismoment-background-color: $brand-thismoment;
position: relative;
z-index: 1;
background-color: #999;

.hero-background-image {
height: 200px;
background-position: top center;
Expand All @@ -26,6 +27,7 @@ $thismoment-background-color: $brand-thismoment;
@include breakpoint(large) {
height: 600px;
}

&.home {
background-image: url('../../assets/images/home/tableau-large.jpg');
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/menu/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ $transition-timing-function: ease;
transform $transition-duration $transition-timing-function,
y $transition-duration $transition-delay $transition-timing-function;
}

.line-middle {
opacity: 1;
transition: opacity 0.25s $transition-delay $transition-timing-function;
}

.line-bottom {
transition:
transform $transition-duration $transition-timing-function,
Expand All @@ -42,10 +44,12 @@ $transition-timing-function: ease;
y $transition-duration $transition-timing-function,
transform $transition-duration $transition-delay $transition-timing-function;
}

.line-middle {
opacity: 0;
transition: opacity 0.25s $transition-timing-function;
}

.line-bottom {
y: 18px;
transform: rotate(45deg);
Expand Down
2 changes: 1 addition & 1 deletion src/styles/base/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $cerulean: #00aeff;
$giants-orange: #fe5a1d;

// Branded Colors
$brand-sony: #343A64;
$brand-sony: #343a64;
$brand-thismoment: #6bc04b;
$brand-linkedin: #0077b5;
$brand-instagram: #e1306c;
Expand Down
18 changes: 12 additions & 6 deletions src/styles/base/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ $hack-path: 'hack';
// Helvetica Neue Roman
@font-face {
font-family: 'HelveticaNeueLTStd-Roman';
src: url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.eot?#iefix') format('embedded-opentype'),
src:
url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.eot?#iefix') format('embedded-opentype'),
url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.otf') format('opentype'),
url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.woff') format('woff'), url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.ttf') format('truetype');
url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.woff') format('woff'),
url('#{$font-path}/#{$helvetica-neue-roman-path}/HelveticaNeueLTStd-Roman.ttf') format('truetype');
}

// Helvetica Neue Light
@font-face {
font-family: 'HelveticaNeueLTStd-Lt';
src: url('#{$font-path}/#{$helvetica-neue-light-path}/HelveticaNeueLTStd-Lt.eot?#iefix') format('embedded-opentype'),
src:
url('#{$font-path}/#{$helvetica-neue-light-path}/HelveticaNeueLTStd-Lt.eot?#iefix') format('embedded-opentype'),
url('#{$font-path}/#{$helvetica-neue-light-path}/HelveticaNeueLTStd-Lt.otf') format('opentype'),
url('#{$font-path}/#{$helvetica-neue-light-path}/HelveticaNeueLTStd-Lt.woff') format('woff'),
url('#{$font-path}/#{$helvetica-neue-light-path}/HelveticaNeueLTStd-Lt.ttf') format('truetype');
Expand All @@ -26,7 +29,8 @@ $hack-path: 'hack';
// Gotham Book
@font-face {
font-family: 'Gotham-Book';
src: url('#{$font-path}/#{$gotham-book-path}/Gotham-Book.eot?#iefix') format('embedded-opentype'),
src:
url('#{$font-path}/#{$gotham-book-path}/Gotham-Book.eot?#iefix') format('embedded-opentype'),
url('#{$font-path}/#{$gotham-book-path}/Gotham-Book.otf') format('opentype'),
url('#{$font-path}/#{$gotham-book-path}/Gotham-Book.woff') format('woff'),
url('#{$font-path}/#{$gotham-book-path}/Gotham-Book.ttf') format('truetype');
Expand All @@ -35,7 +39,8 @@ $hack-path: 'hack';
// Gotham Round Light
@font-face {
font-family: 'GothamRounded-Light';
src: url('#{$font-path}/#{$gotham-round-light-path}/GothamRounded-Light.eot?#iefix') format('embedded-opentype'),
src:
url('#{$font-path}/#{$gotham-round-light-path}/GothamRounded-Light.eot?#iefix') format('embedded-opentype'),
url('#{$font-path}/#{$gotham-round-light-path}/GothamRounded-Light.otf') format('opentype'),
url('#{$font-path}/#{$gotham-round-light-path}/GothamRounded-Light.woff') format('woff'),
url('#{$font-path}/#{$gotham-round-light-path}/GothamRounded-Light.ttf') format('truetype');
Expand All @@ -44,7 +49,8 @@ $hack-path: 'hack';
// Hack
@font-face {
font-family: 'Hack';
src: url('#{$font-path}/#{$hack-path}/hack-regular-webfont.eot?#iefix') format('embedded-opentype'),
src:
url('#{$font-path}/#{$hack-path}/hack-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$font-path}/#{$hack-path}/hack-regular-webfont.woff') format('woff'),
url('#{$font-path}/#{$hack-path}/hack-regular-webfont.ttf') format('truetype');
}
1 change: 1 addition & 0 deletions src/styles/layout/_images.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Images
figure {
margin: 0;

img {
width: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/layout/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ a {
content: '';
}

@media (hover:hover) {
@media (hover: hover) {
&:hover {
color: $link-text-hover-color;
transition: color 0.25s ease-in;
Expand Down
1 change: 1 addition & 0 deletions src/styles/layout/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ body {
position: relative;
z-index: 1;
margin: 0;

&:before {
position: absolute;
z-index: 100;
Expand Down
5 changes: 4 additions & 1 deletion src/styles/utilities/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// e.g., font-size: 1em = 1rem = 16px = 100%;
// http://www.w3.org/TR/css3-mediaqueries/#units

$screen-sm: 0em; // 0px
$screen-sm: 0; // 0px
$screen-md: 40em; // 640px
$screen-lg: 64em; // 1024px

Expand All @@ -25,17 +25,20 @@ $breakpoints: (
@content;
}
}

@else if $breakpoint == 'medium' {
@media only screen and (min-width: map-get($breakpoints, medium)) {
@content;
}
}

@else if $breakpoint == 'large' {
@media only screen and (min-width: map-get($breakpoints, large)) {
@content;
}
}
}

@else {
@warn 'Not a valid breakpoint: ' + $breakpoint;
}
Expand Down

0 comments on commit 6109807

Please sign in to comment.