Skip to content
Snippets Groups Projects
style.js 1 KiB
Newer Older
import { ButtonCSS, addTypography } from 'polythene-css';
Hermann's avatar
Hermann committed
import { styler } from 'polythene-core-css';
Hermann's avatar
Hermann committed

export const colors = {
	amiv_blue: '#1F2D54',
	amiv_red: '#e8462b',
	green: '#4ef599',
	light_blue: '#5378E1',
	orange: 'orange',
}

Hermann's avatar
Hermann committed
ButtonCSS.addStyle('.blue-button', {
  color_light_text: colors.light_blue,
});

ButtonCSS.addStyle('.blue-button-filled', {
  color_light_background: colors.amiv_blue,
  color_light_text: 'white',
Hermann's avatar
Hermann committed
});

ButtonCSS.addStyle('.red-row-button', {
  color_light_text: 'white',
  color_light_background: colors.amiv_red,
  padding_h: 0,
  font_size: 12,
  margin_h: 0,
});
Hermann's avatar
Hermann committed

// style for general containers
const style = [
  {
    '.maincontainer': {
      padding: '10px',
    },
    '.viewcontainer': {
      display: 'flex',
      'flex-wrap': 'wrap',
    },
    '.viewcontainercolumn': {
Hermann's avatar
Hermann committed
      'flex-grow': 1,
      padding: '10px',
    },
    h1: {
      'margin-top': '0px',
      'margin-bottom': '0px',
    },
Hermann's avatar
Hermann committed
  },
];
styler.add('containers', style);