aboutsummaryrefslogtreecommitdiffstats
path: root/client/js/app/src/app/styles/global.js
blob: 123862b8cf725eb9feb27cab3fe4b4085d7e05c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
export const styles = (theme) => ({
  '*, *::before, *::after': {
    boxSizing: 'border-box',
  },

  '*': {
    margin: '0',
  },

  html: {
    height: '100%',
  },

  body: {
    height: '100%',
    WebkitFontSmoothing: 'antialiased',
    lineHeight: theme.lineHeight,
    background: theme.cr.getAppBackground(),
    color: theme.cr.getHighContrastText(),
    ...theme.fn.fontStyles(),
  },

  'img, picture, video, canvas, svg': {
    display: 'block',
  },

  'input, button, textarea, select': {
    font: 'inherit',
  },

  'p, h1, h2, h3, h4, h5, h6': {
    overflowWrap: 'break-word',
  },

  '#root': {
    height: '100%',
    isolation: 'isolate',
  },
});