# All files / components/Code CodeBlock.js

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0

    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

     import styled from 'styled-components';
    import get from 'extensions/themeGet';

    /**
     * @component
     */
    export default styled.pre`
      font-family: ${get('fonts.monospace')};
      font-size: 1em;

      background: ${get('colors.background.inverted')};
      color: ${get('colors.text.inverted')};

      padding: 2em;
      margin: 0;

      word-wrap: break-word;
      white-space: pre-wrap;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;

      & pre,
      & code {
        background: transparent !important;
        word-wrap: inherit;
        white-space: inherit;
      }
    `;