forked from webpack/webpack.js.org
-
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.
Merge pull request webpack#225 from webpack/feature/fonts-n-styles
Design Updates and Fixes
- Loading branch information
Showing
57 changed files
with
408 additions
and
433 deletions.
There are no files selected for viewing
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
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,19 +1,9 @@ | ||
.contributor { | ||
display: inline-block; | ||
margin-top:1em; | ||
margin-right: 1em; | ||
|
||
&:last-of-type { | ||
margin-right: 0; | ||
} | ||
|
||
img { | ||
height: 80px; | ||
border-radius: 3px; | ||
} | ||
|
||
span { | ||
display: block; | ||
text-align: center; | ||
font-size: 0.8em; | ||
height: 50px; | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,40 +1,42 @@ | ||
@import 'vars'; | ||
|
||
@import url(https://fonts.googleapis.com/css?family=Averia+Sans+Libre:300); | ||
|
||
.logo { | ||
position:relative; | ||
display:inline-block; | ||
display:flex; | ||
float:left; | ||
align-items:middle; | ||
|
||
&__icon { | ||
width:auto; | ||
height:35px; | ||
opacity:0.9; | ||
transition:opacity 250ms; | ||
} | ||
|
||
&__text { | ||
font-family:'Geomanist', 'Century Gothic', sans-serif; | ||
font-size:1.3em; | ||
font-family:'Averia Sans Libre'; | ||
margin-left:1.75em; | ||
line-height:1.4; | ||
font-weight:500; | ||
text-rendering: geometricPrecision; | ||
letter-spacing:0.5px; | ||
margin-left:0.25em; | ||
margin-top:3px; | ||
color:map-get($colors, emperor); | ||
transition:color 250ms; | ||
} | ||
|
||
&__cube { | ||
position:absolute; | ||
} | ||
|
||
&--dark { | ||
.logo__text { | ||
color:map-get($colors, dove-grey); | ||
} | ||
|
||
&:hover .logo__text { | ||
color:map-get($colors, mine-shaft); | ||
} | ||
&:hover { | ||
.logo__icon { opacity:1; } | ||
.logo__text { color:map-get($colors, mine-shaft); } | ||
} | ||
|
||
&--light { | ||
.logo__text { | ||
color:map-get($colors, concrete); | ||
color:map-get($colors, concrete); | ||
//color:rgb(246, 250, 251); | ||
} | ||
|
||
&:hover .logo__text { | ||
color:map-get($colors, parchment); | ||
color:map-get($colors, white); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,59 +1,14 @@ | ||
import React from 'react'; | ||
import Cube from '../cube/cube'; | ||
import CubeImg from '../../assets/cube.png'; | ||
import './logo-style'; | ||
|
||
export default class Logo extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
export default props => { | ||
let { light } = props; | ||
|
||
this.listeners = { | ||
spin: this._triggerSpin.bind(this), | ||
reset: this._triggerReset.bind(this) | ||
}; | ||
} | ||
|
||
render() { | ||
let { theme = 'dark' } = this.props; | ||
|
||
return ( | ||
<span | ||
ref={ ref => this.container = ref } | ||
className={ `logo logo--${theme}` }> | ||
<Cube | ||
ref={ ref => this.icon = ref } | ||
className="logo__cube" | ||
theme={ theme } | ||
depth={ 20 } /> | ||
<span className="logo__text">webpack</span> | ||
</span> | ||
); | ||
} | ||
|
||
componentDidMount() { | ||
this.container.addEventListener('mouseenter', this.listeners.spin); | ||
this.container.addEventListener('mouseleave', this.listeners.reset); | ||
} | ||
|
||
componentWillUnmount() { | ||
this.container.removeEventListener('mouseenter', this.listeners.spin); | ||
this.container.removeEventListener('mouseleave', this.listeners.reset); | ||
} | ||
|
||
/** | ||
* Proxy to Cube's spin method | ||
* | ||
* @param {object} e - Native event | ||
*/ | ||
_triggerSpin(e) { | ||
this.icon.spin(e); | ||
} | ||
|
||
/** | ||
* Proxy to Cube's reset method | ||
* | ||
* @param {object} e - Native event | ||
*/ | ||
_triggerReset(e) { | ||
this.icon.reset(e); | ||
} | ||
} | ||
return ( | ||
<span className={ `logo${light ? ' logo--light' : ''}` }> | ||
<img className="logo__icon" src={ CubeImg } /> | ||
<span className="logo__text">webpack</span> | ||
</span> | ||
); | ||
}; |
Oops, something went wrong.