transaction css bug fixed and unused css removed

This commit is contained in:
Chris Fenos 2018-08-19 18:03:18 -04:00
parent 0e574a7696
commit c0ac8c9113
6 changed files with 19 additions and 181 deletions

View file

@ -33,7 +33,7 @@
font-weight: 300;
}
button.btnActive {
.btnActive {
color: #4f2e7e;
background-color: white;
font-size: 8px;

View file

@ -1,11 +1,11 @@
.table {
border-spacing: 100rem;
width: 100%;
margin-top: 50px;
}
.tHead {
font-size: 1rem;
width: 95%;
margin: 0 auto;
background-color: white;
top: 107pt;
left: 2.5%;
position: absolute;
}
th {
@ -13,73 +13,14 @@ th {
padding-right: 10px;
}
.addressTag {
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 132px;
}
.ageTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 80px;
}
.fromTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 100px;
}
.toTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 100px;
}
.valueTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 80px;
}
.incoming {
height: 25px;
width: 35px;
border: 1px forestgreen;
border-radius: 5px;
background-color: forestgreen;
color: white;
font-size: 1rem;
text-transform: uppercase;
text-align: center;
vertical-align: middle;
}
.out {
height: 25px;
width: 35px;
border: 1px orangered;
border-radius: 5px;
background-color: orangered;
color: white;
font-size: .8rem;
text-transform: uppercase;
text-align: center;
vertical-align: middle;
td {
font-size: 6pt;
background-color: white;
font-family: 'Open Sans', sans-serif;
}
.disabled {
pointer-events: none;
color: black;
}

View file

@ -20,61 +20,3 @@ td {
background-color: white;
font-family: 'Open Sans', sans-serif;
}
.height {
width: 50px;
}
.hash {
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 220px;
}
.addressTag {
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 150px;
}
.ageTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 80px;
}
.fromTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 100px;
}
.toTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 100px;
}
.valueTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 80px;
}
.arrow {
width: 25px;
height: 25px;
margin-left: 15px;
}

View file

@ -1,4 +1,4 @@
.table {
.table {
border-spacing: 100rem;
width: 95%;
margin: 0 auto;
@ -8,6 +8,7 @@
position: absolute;
}
th {
background-color: white;
padding: 15pt 30pt ;
@ -21,52 +22,8 @@ td {
font-family: 'Open Sans', sans-serif;
}
.addressTag {
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 250px;
}
.ageTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 80px;
}
.fromTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 100px;
}
.toTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 100px;
}
.valueTag{
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
width: 80px;
}
.arrow {
width: 25px;
height: 25px;
}
.disabled {
pointer-events: none;
color: black;
}

View file

@ -49,7 +49,6 @@ class TransactionTable extends Component {
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}}>Block</th>
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}}>Age</th>
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}}>From</th>
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}}></th>
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}}>To</th>
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}}>Value</th>
<th scope="col" style={{fontSize: "8pt", backgroundColor: "white", color: "#4f2e7e"}} >TxFee</th>

View file

@ -21,7 +21,6 @@ const TransactionTable = (props) => {
<td style={{ paddingLeft: '30pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }}><Link style={{ color: '#8f67c9' }} to="/block/transactions" onClick={() => props.getBlockTransactions(props.blockNumber)}>{props.blockNumber}</Link></td>
<td style={{ paddingLeft: '30pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }}>{props.age}</td>
<td style={{ paddingLeft: '30pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }} className={flag ? classes.fromTag : classes.disabled }><Link style={{ color: '#8f67c9' }} to="/account/detail" onClick={() => props.detailAccountHandler(props.from)}>{props.from}</Link></td>
<td style={{ paddingLeft: '0pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }}><img className={classes.arrow} src={arrow} alt="arrow"/></td>
<td style={{ paddingLeft: '30pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }} className={classes.toTag}><Link style={{ color: '#8f67c9' }} to="/account/detail" onClick={() => props.detailAccountHandler(props.to)}>{props.to}</Link></td>
<td style={{ paddingLeft: '30pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }}>{props.value}</td>
<td style={{ paddingLeft: '30pt', paddingBottom: '7.5pt', paddingTop: '7.5pt' }}>{props.cost}</td>