style.js 1020 Bytes
Newer Older
Muhammadali's avatar
Muhammadali committed
1 2 3 4 5 6 7 8 9 10 11
import styled from 'styled-components'

const TableBlock = styled.div`
  display: flex;
  flex-direction: column;
  gap: ${({gap}) => gap ? gap : '3px'};
  width: 100%;
  
`
TableBlock.Row = styled.div`
  width: 100%;
Muhammadali's avatar
Muhammadali committed
12
  //border-bottom: 1px solid #333;
Muhammadali's avatar
Muhammadali committed
13
  background-color: #d2d2d26b;
Muhammadali's avatar
Muhammadali committed
14
  box-sizing: border-box;
Muhammadali's avatar
Muhammadali committed
15
  display: flex;
Muhammadali's avatar
Muhammadali committed
16 17 18
  border-radius: 10px;
  padding: 5px;
  
Muhammadali's avatar
Muhammadali committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32
  flex-direction: column;
  gap: ${({gap})=> gap ? gap : '3px'};
  .child{
    width: 100%;
  }
`
TableBlock.RowInset = styled.div`
  ${({blockType}) => blockType === 'row' ? {
    display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '5px'
  } : {
    display: 'flex', flexDirection: 'column'
  }}
  .title {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
Muhammadali's avatar
Muhammadali committed
33
    font-size: 14px;
Muhammadali's avatar
Muhammadali committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    font-weight: initial;
    margin: 0;
    padding: 0;
  }

  .inputArea {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
`



export default TableBlock