123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- }
- body {
- font-family: 'Roboto', serif;
- }
- #tetris {
- display: flex;
- width: 560px;
- margin: 3em auto;
- }
- #my-canvas {
- width: 300px;
- height: 480px;
- }
- #info {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- height: 470px;
- width: 240px;
- }
- #info > #logo {
- flex-basis: auto;
- margin-top: 7px;
- padding: 5px 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background-color: #b8caf4;
- }
- #info > #score-envelope {
- flex-basis: 8%;
- border: 2px solid #B0B0B0;
- border-radius: 5px;
- display: flex;
- align-items: center;
- font-weight: bold;
- }
- #info > #level-envelope {
- flex-basis: 8%;
- border: 2px solid #B0B0B0;
- border-radius: 5px;
- display: flex;
- align-items: center;
- font-weight: bold;
- }
- #info > #status-envelope {
- flex-basis: 8%;
- border: 2px solid #B0B0B0;
- border-radius: 5px;
- display: flex;
- align-items: center;
- font-weight: bold;
- }
- #info > #controls-envelope {
- flex-basis: auto;
- border: 2px solid #B0B0B0;
- border-radius: 5px;
- padding: 0.5em 0;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- #info > #btn-reset {
- flex-basis: auto;
- }
- .button {
- margin: 0.4em;
- padding: 1em;
- text-align: center;
- cursor: pointer;
- outline: none;
- color: #fff;
- min-width: 100px;
- font-weight: bold;
- background-color: #537fe4;
- border: none;
- border-radius: 15px;
- box-shadow: 1px 2px #aaa;
- }
- .button:hover {
- background-color: #2B60DE;
- }
- .button:active {
- background-color: #2B60DE;
- box-shadow: 0 3px #888;
- transform: translateY(2px);
- }
- #controls > .one-btn {
- display: flex;
- justify-content: center;
- }
- #controls > .two-btn {
- display: flex;
- justify-content: space-between;
- }
- .label {
- text-transform: uppercase;
- font-weight: bold;
- margin-right: 0.5em;
- padding-left: 0.5em;
- }
- .source {
- display: flex;
- width: 540px;
- margin: -40px auto;
- font-size: 12px;
- }
- #btn-reset{
- background: #2B60DE;
- color: #fff;
- font-weight: bold;
- border: 0;
- padding: 12px 0;
- width: 100%;
- border-radius: 5px;
- text-transform: uppercase;
- font-size: 14px;
- cursor: pointer;
- outline: none;
- }
- #btn-reset:hover {
- background-color: #1e4fc2;
- }
- #btn-reset:active {
- background-color: #1e4fc2;
- transform: translateY(2px);
- }
|