forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply Photon Style to News Feed Item (mozilla#3021)
- Moved assets under UpdateList component directory - New chevron for news link - New styles from spec - Updated stories Fixes mozilla#2959
- Loading branch information
Showing
9 changed files
with
155 additions
and
120 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
frontend/src/app/components/UpdateList/img/news-link-chevron.svg
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.
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,124 @@ | ||
@import '~photon-colors/colors.scss'; | ||
@import '../../../styles/_utils'; | ||
|
||
.update-list { | ||
@include respond-to('small') { | ||
margin: 0 0 30px; | ||
} | ||
|
||
margin: -40px 0 40px; | ||
width: 100%; | ||
|
||
.more-news { | ||
margin-top: 10px; | ||
} | ||
} | ||
|
||
.update-list-heading { | ||
font-size: 22px; | ||
font-weight: 300; | ||
letter-spacing: 0; | ||
line-height: 56px; | ||
} | ||
|
||
.update { | ||
align-items: center; | ||
border-radius: 4px; | ||
border: 1px rgba(255, 255, 255, 0.2) solid; | ||
box-shadow: 0 -2px 0 $transparent-black-05 inset; | ||
cursor: default; | ||
display: flex; | ||
margin-bottom: 8px; | ||
opacity: .9; | ||
padding: 36px; | ||
width: 100%; | ||
|
||
.update-content { | ||
flex-grow: 1; | ||
|
||
header { | ||
@include flex-container(row, flex-start, center); | ||
margin-bottom: 1px; | ||
} | ||
} | ||
|
||
.news-update-test-pilot-icon { | ||
background-image: url('./img/test-pilot-news-icon.png'); | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
background-size: 60px auto; | ||
} | ||
|
||
.update-experiment-icon { | ||
height: 48px; | ||
width: 106px; | ||
margin: 0; | ||
@include respond-to('small') { | ||
display: none; | ||
} | ||
background-position: left center; | ||
background-size: 60px auto; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
h2, | ||
h2.update-title { | ||
margin: 0; | ||
font-size: 17px; | ||
font-weight: 500; | ||
letter-spacing: 0; | ||
margin: 0 0 1px 0; | ||
} | ||
|
||
.summary { | ||
font-size: 16px; | ||
} | ||
|
||
h4.update-title { | ||
font-weight: normal; | ||
font-size: 17px; | ||
margin: 0 0 6px 0; | ||
} | ||
|
||
.summary { | ||
font-size: 15px; | ||
letter-spacing: 0; | ||
line-height: 22px; | ||
margin: 10px 0 0 0; | ||
} | ||
|
||
.link-chevron { | ||
.chevron { | ||
background: transparent; | ||
display: block; | ||
width: 12px; | ||
height: 21px; | ||
} | ||
} | ||
|
||
&.has-link { | ||
cursor: pointer; | ||
transition: background 50ms; | ||
|
||
&:hover { | ||
border-color: rgba(255, 255, 255, 0.8); | ||
background: rgba(255, 255, 255, 0.1); | ||
} | ||
|
||
.link-chevron { | ||
.chevron { | ||
background-image: url('./img/news-link-chevron.svg'); | ||
background-repeat: no-repeat; | ||
background-size: 12px 21px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.up-date { | ||
opacity: 0.7; | ||
font-size: 13px; | ||
font-weight: 600; | ||
letter-spacing: 0; | ||
margin: 0 0 0 20px; | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.