-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 #40 from wordpress-mobile/feature/better-toolbar-s…
…tyling Update toolbar, block and html view styling
- Loading branch information
Showing
28 changed files
with
119 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** @format */ | ||
|
||
import { AppRegistry } from 'react-native'; | ||
import App from './app/App'; | ||
import App from './src/app/App'; | ||
AppRegistry.registerComponent( 'gutenberg', () => App ); |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** @format */ | ||
|
||
@import '../variables.scss'; | ||
|
||
.block_code { | ||
font-family: $default-monospace-font; | ||
} |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ const ToolbarButton = { | |
DOWN: 2, | ||
SETTINGS: 3, | ||
DELETE: 4, | ||
PLUS: 5, | ||
}; | ||
|
||
export { ToolbarButton }; |
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,66 @@ | ||
/** @flow | ||
* @format */ | ||
|
||
import React from 'react'; | ||
import { View, TouchableOpacity, Text } from 'react-native'; | ||
import { ToolbarButton } from './constants'; | ||
|
||
import styles from './toolbar.scss'; | ||
|
||
type PropsType = { | ||
uid: string, | ||
onButtonPressed: ( button: number, uid: string ) => void, | ||
}; | ||
|
||
export default class Toolbar extends React.Component<PropsType> { | ||
render() { | ||
return ( | ||
<View style={ styles.toolbar }> | ||
<TouchableOpacity | ||
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.PLUS, this.props.uid ) } | ||
> | ||
<View style={ styles.toolbarButton }> | ||
<Text>+</Text> | ||
</View> | ||
</TouchableOpacity> | ||
<View style={ styles.buttonSeparator } /> | ||
<TouchableOpacity | ||
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.UP, this.props.uid ) } | ||
> | ||
<View style={ styles.toolbarButton }> | ||
<Text>▲</Text> | ||
</View> | ||
</TouchableOpacity> | ||
<View style={ styles.buttonSeparator } /> | ||
<TouchableOpacity | ||
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.DOWN, this.props.uid ) } | ||
> | ||
<View style={ styles.toolbarButton }> | ||
<Text>▼</Text> | ||
</View> | ||
</TouchableOpacity> | ||
<View style={ styles.buttonSeparator } /> | ||
<TouchableOpacity | ||
onPress={ this.props.onButtonPressed.bind( | ||
this, | ||
ToolbarButton.SETTINGS, | ||
this.props.uid | ||
) } | ||
> | ||
<View style={ styles.toolbarButton }> | ||
{ /* eslint-disable-next-line jsx-a11y/accessible-emoji */ } | ||
<Text>⚙️</Text> | ||
</View> | ||
</TouchableOpacity> | ||
<View style={ styles.buttonSeparator } /> | ||
<TouchableOpacity | ||
onPress={ this.props.onButtonPressed.bind( this, ToolbarButton.DELETE, this.props.uid ) } | ||
> | ||
<View style={ styles.toolbarButton }> | ||
<Text>🗑</Text> | ||
</View> | ||
</TouchableOpacity> | ||
</View> | ||
); | ||
} | ||
} |
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,19 @@ | ||
/** @format */ | ||
|
||
.toolbar { | ||
height: 34; | ||
background-color: white; | ||
flex-direction: row; | ||
padding-left: 8; | ||
padding-right: 8; | ||
} | ||
|
||
.toolbarButton { | ||
width: 50; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.buttonSeparator { | ||
width: 8; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
/** @format */ | ||
|
||
// Fonts | ||
$default-monospace-font: monospace; |
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,4 @@ | ||
/** @format */ | ||
|
||
// Fonts | ||
$default-monospace-font: courier; |