Skip to content
Snippets Groups Projects
Commit 281258bc authored by chris's avatar chris
Browse files

add css overrrides for components

parent 7a0fd576
No related branches found
No related tags found
1 merge request!298Multiple configs
......@@ -7,7 +7,7 @@ import React, {
useEffect,
} from 'react';
import styled from 'styled-components';
import { grid, th } from '@pubsweet/ui-toolkit';
import { grid, th, override } from '@pubsweet/ui-toolkit';
import { v4 as uuidv4 } from 'uuid';
import { WaxContext } from 'wax-prosemirror-core';
import { filter, groupBy, debounce } from 'lodash';
......@@ -53,24 +53,32 @@ const CharactersListComponent = styled.div`
overflow-y: scroll;
overflow-x: hidden;
padding-top: ${grid(2)};
${override('Wax.CharactersListComponent')}
`;
const SpecialCharactersGroup = styled.div`
display: flex;
flex-direction: column;
padding-top: ${grid(2)};
${override('Wax.SpecialCharactersGroup')}
`;
const GroupTitle = styled.div`
font-size: 17px;
color: ${th('colorPrimary')};
padding: 0 ${grid(2)} ${grid(2)} ${grid(2)};
${override('Wax.GroupTitle')}
`;
const GroupCharacters = styled.div`
display: flex;
flex-direction: row;
flex-wrap: wrap;
${override('Wax.GroupCharacters')}
`;
const SpecialCharacter = styled.div`
......@@ -95,6 +103,8 @@ const SpecialCharacter = styled.div`
color: ${th('colorPrimary')};
}
}
${override('Wax.SpecialCharacterButton')}
`;
// const LastUsedComponent = styled.div`
......
......@@ -2,7 +2,7 @@ import React, { useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { grid } from '@pubsweet/ui-toolkit';
import { grid, override } from '@pubsweet/ui-toolkit';
import MenuButton from './MenuButton';
// font size 0 reason: https://stackoverflow.com/a/19212391
......@@ -16,6 +16,8 @@ const DropWrapper = styled.div`
background: white;
margin-top: ${grid(1)};
position: absolute;
${override('Wax.MoreDropWrapper')}
`;
const Dropdown = props => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment