forked from SEA-Design-Dev/project_week_one
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from mbuchthal/newspapers
place newspapers into newspaper section with styling and mixin added
- Loading branch information
Showing
14 changed files
with
77 additions
and
62 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
/* -- Adds newspaper svg/png --*/ | ||
|
||
@mixin newspaper($url, $background-size) { | ||
content: ''; | ||
height: 3em; | ||
width: 12em; | ||
background: $url; | ||
background-size: $background-size; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
.newspaper-section { | ||
h1 { | ||
font: $head-big-light-font; | ||
text-align: center; | ||
margin-top: 2em; | ||
margin-bottom: 1em; | ||
color: $color-5; | ||
} | ||
} | ||
|
||
|
||
|
||
.newspaper-list { | ||
@include flexbox; | ||
@media only screen and (min-width: 850px) { | ||
margin: auto 8em; | ||
} | ||
@media only screen and (min-width: 1200px) { | ||
margin: auto 12em; | ||
} | ||
|
||
li { | ||
&:first-child { | ||
@include newspaper(url("../images/NewYorkTimes.svg.png"), 90%) | ||
} | ||
&:nth-child(2) { | ||
@include newspaper(url("../images/Forbes_logo.svg"), 40%) | ||
} | ||
&:nth-child(3) { | ||
@include newspaper(url("../images/The_Wall_Street_Journal_Logo.svg.png"), 90%) | ||
} | ||
&:nth-child(4) { | ||
@include newspaper(url("../images/The_Guardian.svg.png"), 75%) | ||
} | ||
&:nth-child(5) { | ||
@include newspaper(url("../images/The_Verge_wordmark.svg"), 50%) | ||
} | ||
&:nth-child(6) { | ||
@include newspaper(url("../images/tc-techcrunch.svg"), 60%) | ||
} | ||
&:nth-child(7) { | ||
@include newspaper(url("../images/lifehacker-uk.svg"), 60%) | ||
} | ||
&:nth-child(8) { | ||
@include newspaper(url("../images/Mashable.png"), 55%) | ||
} | ||
} | ||
} |