diff options
| author | anderklander <anderklander@gmail.com> | 2018-02-01 18:52:21 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-02-01 18:52:21 +0100 |
| commit | cd3465ab91cb0bc40214f5b621265adcacf71fe2 (patch) | |
| tree | f19ebb4587129b211f64e983a62e3f23d343c406 /app/components/AdvancedSettingsStyles.js | |
| parent | 533ec796b0c0a23ae9c40cadbb711c6d03bd1ca6 (diff) | |
| download | mullvadvpn-cd3465ab91cb0bc40214f5b621265adcacf71fe2.tar.xz mullvadvpn-cd3465ab91cb0bc40214f5b621265adcacf71fe2.zip | |
Advanced settings in reactxp
Also bumped reactxp version to allow multiple children to buttons
Diffstat (limited to 'app/components/AdvancedSettingsStyles.js')
| -rw-r--r-- | app/components/AdvancedSettingsStyles.js | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/app/components/AdvancedSettingsStyles.js b/app/components/AdvancedSettingsStyles.js new file mode 100644 index 0000000000..8e2898c2f2 --- /dev/null +++ b/app/components/AdvancedSettingsStyles.js @@ -0,0 +1,144 @@ +// @flow + +import { createViewStyles, createTextStyles } from '../lib/styles'; + +export default { + ...createViewStyles({ + advanced_settings: { + backgroundColor: '#192E45', + overflow: 'visible', + }, + advanced_settings__container: { + display: 'flex', + flexDirection: 'column', + }, + advanced_settings__main: { + marginBottom: 24, + }, + advanced_settings__header: { + flexGrow: 0, + flexShrink: 0, + flexBasis: 'auto', + paddingTop: 16, + paddingRight: 24, + paddingLeft: 24, + paddingBottom: 24, + }, + advanced_settings__close: { + cursor: 'default', + }, + advanced_settings__close_content: { + flexDirection: 'row', + alignItems: 'center', + paddingLeft: 12, + paddingTop: 24, + }, + advanced_settings__close_icon: { + width: 24, + height: 24, + opacity: 0.6, + marginRight: 8, + }, + advanced_settings__content: { + flexDirection: 'column', + flexGrow: 1, + flexShrink: 1, + flexBasis: 'auto', + }, + advanced_settings__cell: { + backgroundColor: '#44AD4D', + flexDirection: 'row', + paddingTop: 15, + paddingBottom: 15, + paddingLeft: 24, + paddingRight: 24, + marginBottom: 1, + justifyContent: 'flex-start', + }, + advanced_settings__cell_hover: { + backgroundColor: 'rgba(41, 71, 115, 0.9)', + }, + advanced_settings__cell_selected_hover: { + backgroundColor: '#44AD4D', + }, + advanced_settings__cell_spacer: { + height: 24, + }, + advanced_settings__cell_icon: { + width: 24, + height: 24, + marginRight: 8, + flex: 0, + overflow: 'visible', + color: 'rgba(255, 255, 255, 0.8)', + }, + advanced_settings__cell_dimmed: { + paddingTop: 15, + paddingBottom: 15, + paddingLeft: 24, + paddingRight: 24, + marginBottom: 1, + backgroundColor: 'rgb(36, 57, 84)', + flexDirection: 'row', + justifyContent: 'flex-start', + }, + advanced_settings__cell_footer: { + paddingTop: 8, + paddingRight: 24, + paddingBottom: 24, + paddingLeft: 24, + }, + advanced_settings__cell_label_container: { + paddingTop: 15, + paddingRight: 12, + paddingBottom: 15, + paddingLeft: 24, + flexGrow: 1, + }, + }), + ...createTextStyles({ + advanced_settings__section_title: { + backgroundColor: 'rgb(41, 71, 115)', + paddingTop: 15, + paddingBottom: 15, + paddingLeft: 24, + paddingRight: 24, + marginBottom: 1, + fontFamily: 'DINPro', + fontSize: 20, + fontWeight: '900', + lineHeight: 26, + color: '#fff', + }, + advanced_settings__close_title: { + fontFamily: 'Open Sans', + fontSize: 13, + fontWeight: '600', + color: 'rgba(255, 255, 255, 0.6)', + }, + advanced_settings__title: { + fontFamily: 'DINPro', + fontSize: 32, + fontWeight: '900', + lineHeight: 40, + color: '#fff', + }, + advanced_settings__cell_label: { + fontFamily: 'DINPro', + fontSize: 20, + fontWeight: '900', + lineHeight: 26, + letterSpacing: -0.2, + color: '#fff', + flex: 0, + }, + advanced_settings__cell_footer_label: { + fontFamily: 'Open Sans', + fontSize: 13, + fontWeight: '600', + lineHeight: 20, + letterSpacing: -0.2, + color: 'rgba(255,255,255,0.8)' + } + }) +};
\ No newline at end of file |
