Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

New Worker Panel Styles #80

Merged
merged 10 commits into from
May 5, 2021
3 changes: 3 additions & 0 deletions packages/react-app/src/assets/icons/reset-x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 112 additions & 3 deletions packages/react-app/src/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,107 @@ hr {
padding: 11px;
}

.circleQ {
padding-left: 8px;
margin-top: -1px;
}

#remaining-time {
margin-left: 2px;
}

/*New Worker Selection*/

#stake-method-selector {
display: flex;
justify-content: space-around;
flex-grow: 1;
border-radius: 24px;
}

#clear-selection {
height: 12px;
}

.new-stake-method {
border-radius: 16px;
width: 33%;
}

/*.new-stake-method:hover:not(.active) {*/
/* border: 1px solid #1E65F3;*/
/*}*/

.collect-worker {
max-width: 608px;
display: flex;
flex-direction: column;
padding-top: 1em;
border-radius: 6px;
background-color: #ffffff;
}

.collect-worker input {
background-color: #f3f4f4;
outline: 4px solid #f3f4f4;
box-shadow: none;
border-radius: 6px;
border: none;
margin-left: 6px;
width: 100% !important;
padding-top: 17px;
padding-bottom: 17px;
padding-left: 24px;
padding-right: 25px;
}

#worker-runway {
padding: 24px;
padding-top: 6px;
padding-left: 2rem;
padding-right: 3rem;
}

.collect-worker.valid {
background-color: #e9edf0;
}

.form-control.valid:focus {
background-color: transparent;
}

.collect-worker input.valid{
outline: none;
border: none;
background-color: transparent;
}

.form-control:focus {
color: #495057;
background-color: #f3f4f4;
outline: 4px solid #f3f4f4;
box-shadow: none;
border: 2px solid #1E65F3;
border-radius: 6px;
}

.collect-worker .form-group, .form-control {
width: 100%;
background-color: #e9edf0;
border-radius: 6px;
padding: 24px;
margin-bottom: 0;
}

.collect-worker button {
margin-left: -5em;
margin-top: -4px;
}

.collect-worker-label {
color: #828A9C;
}

.reward-button {
min-height: 64px;
display: flex;
Expand All @@ -91,7 +192,7 @@ hr {
background-color: #F3F4F4;
border-bottom: 1px solid #E0E4E8;
border-radius: 0;
align-content: center;
align-items: center;
padding-left: 24px;
padding-right: 24px;
display: flex;
Expand Down Expand Up @@ -150,7 +251,13 @@ hr {


#substake-control-buttons {
margin-bottom: 1.5rem;
margin-bottom: 0.8rem;
}

#substake-control-buttons button {
justify-content: center;
display: flex;
align-content: center;
}

#substake-list-header {
Expand Down Expand Up @@ -217,10 +324,12 @@ table.nc-table2 th:nth-child(1), table.nc-table2 td:nth-child(1) {
}

/*Event History */

#historyLabel {
margin-top: 6rem;
margin-bottom: 1vh;
margin-bottom: 3em;
font-weight: 600;
margin-left: -2em;
}

#eventHistory > nav {
Expand Down
3 changes: 0 additions & 3 deletions packages/react-app/src/components/actions/createStake.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ export const CreateStake = (props) => {
const [duration, setDuration] = useState(props.duration || 30)
const [roi, setRoi] = useState({apr: 0, net: 0})




const [addingsubstake, setAddingSubstake] = useState(false)

useEffect(() => {
Expand Down
Loading