Files
embark-tutorial-erc721/app/css/app.css
T

301 lines
5.6 KiB
CSS

body {
background: url('../images/background.jpg') top center fixed;
color: #ffffff;
padding: 20px;
}
h1.title {
font-family: 'VT323', monospace;
margin-top: 20px;
margin-bottom: 10px;
font-size: 5em;
}
#myShips, #shipyard {
float: left;
clear: both;
margin-bottom: 1em;
}
#myShips h3,
#shipyard h3,
#marketplace h3 {
font-family: 'VT323', monospace;
}
.ship {
float: left;
display: block;
width: 150px;
margin-right: 15px;
padding: 20px;
margin-bottom: 10px;
text-align: center;
position: relative;
}
.ship:hover {
border-color: rgba(126, 239, 104, 0.8);
border-radius: 10px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 20px rgba(126, 239, 104, 0.6);
outline: 0 none;
}
.ship ul {
margin: 0;
padding: 0;
border-top: 5px solid #333;
margin-top: 80px;
font-size: .8em;
padding-top: 10px;
}
.ship li {
margin: 0;
padding: 0;
list-style: none;
width: 33%;
float: left;
display: block;
font-size: 1.5em;
text-align: center;
font-family: 'VT323', monospace;
}
.ship li i {
width: 100%;
float: left;
clear: both;
margin-bottom: 4px;
color: rgb(255, 99, 71);
}
.ship img {
width: 100px;
height: 100px;
animation: MoveUpDown 2s linear infinite;
position: absolute;
left: 25px;
}
.ship button.hiddenOnLeave {
margin-top: 10px;
font-size: 1em;
text-transform: uppercase;
font-family: 'VT323', monospace;
visibility: hidden;
}
.ship:hover button {
visibility: visible;
}
.ship span.price {
position: absolute;
background: rgb(38, 121, 21);
border-radius: 10px;
padding: 5px;
top: -5px;
right: 0px;
z-index: 100;
}
@keyframes MoveUpDown {
0%, 100% {
top: 10px;
}
50% {
top: 17px;
}
}
#management {
background: #fdfdfd;
color: #333;
float: left;
width: 100%;
clear: both;
padding-top: 20px;
opacity: 0.85;
}
#management span.close {
float: right;
margin-right: 20px;
font-size: 15px;
color: #000;
font-weight: bold;
}
#management b {
margin-right: 10px;
}
#management div.row {
margin-bottom: 1em;
}
#marketplace {
width: 100%;
float: left;
clear: both;
}
#enableSales {
float: left;
clear: both;
display: block;
width: 100%;
}
#enableSales span {
position: relative;
top: -5px;
margin-left: 10px;
font-size: 1em;
}
.react-toggle {
touch-action: pan-x;
display: inline-block;
position: relative;
cursor: pointer;
background-color: transparent;
border: 0;
padding: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-tap-highlight-color: transparent;
}
.react-toggle-screenreader-only {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.react-toggle--disabled {
cursor: not-allowed;
opacity: 0.5;
-webkit-transition: opacity 0.25s;
transition: opacity 0.25s;
}
.react-toggle-track {
width: 50px;
height: 24px;
padding: 0;
border-radius: 30px;
background-color: #4D4D4D;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
transition: all 0.2s ease;
}
.react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
background-color: #000000;
}
.react-toggle--checked .react-toggle-track {
background-color: #19AB27;
}
.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
background-color: #128D15;
}
.react-toggle-track-check {
position: absolute;
width: 14px;
height: 10px;
top: 0px;
bottom: 0px;
margin-top: auto;
margin-bottom: auto;
line-height: 0;
left: 8px;
opacity: 0;
-webkit-transition: opacity 0.25s ease;
-moz-transition: opacity 0.25s ease;
transition: opacity 0.25s ease;
}
.react-toggle--checked .react-toggle-track-check {
opacity: 1;
-webkit-transition: opacity 0.25s ease;
-moz-transition: opacity 0.25s ease;
transition: opacity 0.25s ease;
}
.react-toggle-track-x {
position: absolute;
width: 10px;
height: 10px;
top: 0px;
bottom: 0px;
margin-top: auto;
margin-bottom: auto;
line-height: 0;
right: 10px;
opacity: 1;
-webkit-transition: opacity 0.25s ease;
-moz-transition: opacity 0.25s ease;
transition: opacity 0.25s ease;
}
.react-toggle--checked .react-toggle-track-x {
opacity: 0;
}
.react-toggle-thumb {
transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
position: absolute;
top: 1px;
left: 1px;
width: 22px;
height: 22px;
border: 1px solid #4D4D4D;
border-radius: 50%;
background-color: #FAFAFA;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.25s ease;
-moz-transition: all 0.25s ease;
transition: all 0.25s ease;
}
.react-toggle--checked .react-toggle-thumb {
left: 27px;
border-color: #19AB27;
}
.react-toggle--focus .react-toggle-thumb {
-webkit-box-shadow: 0px 0px 3px 2px #0099E0;
-moz-box-shadow: 0px 0px 3px 2px #0099E0;
box-shadow: 0px 0px 2px 3px #0099E0;
}
.react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb {
-webkit-box-shadow: 0px 0px 5px 5px #0099E0;
-moz-box-shadow: 0px 0px 5px 5px #0099E0;
box-shadow: 0px 0px 5px 5px #0099E0;
}