diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 12:56:12 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-18 20:06:22 +0200 |
| commit | e6dc383704b1c7a6aff8abfad2bd5e2d948138cc (patch) | |
| tree | 0c2ffe951c376e0a0425119f99709945a92520f6 /app/components/AppButtonStyles.js | |
| parent | 9f0ed3cc4878edac9aa8ae67fae366cb1d0bf588 (diff) | |
| download | mullvadvpn-e6dc383704b1c7a6aff8abfad2bd5e2d948138cc.tar.xz mullvadvpn-e6dc383704b1c7a6aff8abfad2bd5e2d948138cc.zip | |
- Reintegrate components/styled into components
- Drop styled/Button, use RX.Button instead and reset cursor when needed
- Scope AppButton and Cell to avoid class clash for Label and SubText
- Add missing cursor: default
Diffstat (limited to 'app/components/AppButtonStyles.js')
| -rw-r--r-- | app/components/AppButtonStyles.js | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app/components/AppButtonStyles.js b/app/components/AppButtonStyles.js new file mode 100644 index 0000000000..6ac372a7fb --- /dev/null +++ b/app/components/AppButtonStyles.js @@ -0,0 +1,68 @@ +import { createViewStyles, createTextStyles } from '../lib/styles'; +import { colors } from '../config'; + +export default { + ...createViewStyles({ + red: { + backgroundColor: colors.red95, + }, + redHover: { + backgroundColor: colors.red, + }, + green: { + backgroundColor: colors.green, + }, + greenHover: { + backgroundColor: colors.green90, + }, + blue: { + backgroundColor: colors.blue80, + }, + blueHover: { + backgroundColor: colors.blue60, + }, + white80: { + color: colors.white80, + }, + white: { + color: colors.white, + }, + icon: { + position: 'absolute', + alignSelf: 'flex-end', + right: 8, + marginLeft: 8, + }, + iconTransparent: { + position: 'absolute', + alignSelf: 'flex-end', + right: 42, + }, + common: { + cursor: 'default', + paddingTop: 9, + paddingLeft: 9, + paddingRight: 9, + paddingBottom: 9, + marginTop: 8, + marginBottom: 8, + marginLeft: 24, + marginRight: 24, + borderRadius: 4, + flex: 1, + flexDirection: 'column', + alignContent: 'center', + justifyContent: 'center', + }, + }), + ...createTextStyles({ + label: { + alignSelf: 'center', + fontFamily: 'DINPro', + fontSize: 20, + fontWeight: '900', + lineHeight: 26, + flex: 1, + }, + }), +}; |
