Skip to content

Commit

Permalink
Merge pull request #113 from daud-io/simplify
Browse files Browse the repository at this point in the history
Simplify
  • Loading branch information
andylippitt authored Feb 14, 2019
2 parents adb7482 + 0e5db15 commit 50d1f8b
Show file tree
Hide file tree
Showing 13 changed files with 330 additions and 404 deletions.
241 changes: 102 additions & 139 deletions Game.Engine/wwwroot/css/game.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ body {
right: 0;
}

#titan {
position: absolute;
height: 50vh;
width: 30vw;
bottom: 0;
right: 15px;
z-index: 4;
}

#error {
display: none;
}
Expand Down Expand Up @@ -67,13 +58,9 @@ body {

.loading .spawnscreen,
.dead.spectating .spawnscreen,
.alive .spawnscreen {
display: none;
}

.alive #fullPageCard,
.spectating #fullPageCard {
display: none;
.alive .spawnscreen,
.dead #minimapTip {
visibility: hidden;
}

.spawnscreen {
Expand All @@ -87,6 +74,19 @@ body {
top: 0;
}

#deathScreen
{
visibility: hidden;
}

#deathScreen table
{
margin-left: auto;
margin-right: auto;
width: 30vw;

}

@keyframes fadein {
from {
opacity: 0;
Expand All @@ -98,13 +98,15 @@ body {
}

#logo {
width: 90vmin;
image-rendering: pixelated;
width: 40vmin;
}

#hintbox {
font-size: 14pt;
margin: 2rem 0 0 0;
margin: auto;
display: block;
width: 50vw;
text-align: center;
}

a:visited,
Expand All @@ -113,49 +115,71 @@ a {
}

@media only screen and (max-width: 1200px) {
#twitterpated,
#controls_instructions {
#changelog {
transform: scale(0.6);
transform-origin: bottom left;
}
#controls_instructions {
transform: scale(0.6);
transform-origin: center;
}
}

@media only screen and (max-width: 1000px) {
#twitterpated,
#changelog,
#hintbox,
#socialMediaContainer,
#controls_instructions {
display: none;
visibility: hidden;
}
}

#socialMediaContainer {
position: absolute;
bottom: 3vh;
visibility: hidden;
}
#twitterpated {

#changelog {
left: 0;
width: 500px;
background-color: rgba(255, 255, 255, 0.15);
background-color: rgba(32, 32, 32, 0.85);
padding: 0.5em;
border-radius: 5px;
position: absolute;
bottom: 10vh;
bottom: 1vh;
height: 1em;
width: 7em;
transition: height 0.5s, width 0.5s;
-webkit-transition: height 0.5s, width 0.5s;
overflow-y: hidden;
overflow-x: hidden;
}

#changelog table
{
width: 35em;
}

#twitterpated h4 {
#changelog:hover,#changelog.new {
height: 6em;
width: 35em;
}

#changelog h4 {
margin: 0 0 3px 3px;
}

#twitterpated .date {
float: left;
color: #111111;
margin-right: 1em;
#changelog .date {
color: #AAAAAA;
padding-right: 2em;
}

#controls_instructions {
position: absolute;
right: 20vh;
width: 240px;
bottom: 0;
display: block;
margin-left: 2em;
margin-top: 4em;
}

.spawnscreen .social {
Expand All @@ -167,11 +191,16 @@ a {
width: 96%;
}

.spectating #nipple-controls,
.loading #nipple-controls {
#nipple-controls
{
visibility: hidden;
}

.alive #nipple-controls
{
visibility: visible;
}

#nipple-zone {
position: absolute;
top: 0;
Expand Down Expand Up @@ -220,27 +249,29 @@ a {
bottom: 3vh;
}

#stop_spectating_container {
#spectatecontrols {
display: none;
}

.spectating #stop_spectating_container {
.spectating #spectatecontrols {
position: absolute;
bottom: 10%;
bottom: 0px;
width: 100%;
margin-left: auto;
margin-right: auto;
display: block;
}

.spectate_only #stop_spectating_container {
.spectate_only #spectatecontrols {
display: none;
}

.spectating #stop_spectating {
.spectating .button1 {
opacity: 0.2;
transition: opacity 1s;
}

.spectating #stop_spectating:hover {
.spectating #spectatecontrols:hover .button1 {
opacity: 1;
}

Expand All @@ -250,7 +281,7 @@ a {
color: #9d9d9d;
background: none;
padding: 10px;
margin: 1vh 0.5vh;
margin: 0.5vh 0.5vh;
font-size: 0.75rem;
color: white;
text-transform: uppercase;
Expand All @@ -263,10 +294,6 @@ a {
color: #fff;
}

.button1:disabled {
border: none;
}

#nick {
border: none;
background: none;
Expand Down Expand Up @@ -456,10 +483,22 @@ table {
}

#settingsContainer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 1em;
}
#settingsContainer table {
margin: auto;
}
#settingsContainer table td {
vertical-align: top;
margin: 3em;
}
#settingsContainer label {
min-width: 10vw;
float: left;
}

#settingsContainer label.switch {
min-width: inherit;
}

#worldSelector {
Expand Down Expand Up @@ -609,93 +648,25 @@ input:checked + .slider:before {
border-radius: 50%;
}

#fullPageCard {
background-color: var(--bg-color-1);
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
transition: transform 1s;
}

.hidden {
transform: translateY(100%);
}

#fullPageCard #openArrow {
color: #d9d9d9;
background-color: #222;
margin: auto;
width: 100px;
height: 30px;
text-align: center;
transform: translateY(-100%);
font-size: 25px;
cursor: pointer;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
transition: color 1s;
}

#fullPageCard #openArrow:hover i {
color: #fff;
}

#fullPageCard #close {
color: #9d9d9d;
text-align: right;
font-size: 25px;
transition: color 1s;
cursor: pointer;
margin-right: 20px;
}

#fullPageCard #close:hover {
color: #fff;
}

#fullPageCard h1,
#fullPageCard h2 {
text-align: center;
text-transform: uppercase;
}

#fullPageCard #fullPageCardOuterContainer {
max-height: 80vh;
overflow-y: auto;
}

#fullPageCard #fullPageCardInnerContainer {
text-align: justify;
column-count: 3;
column-gap: 40px;
margin: 0 40px 0 40px;
.spectating #fullPageCard,
.alive #fullPageCard {
display: none;
}

@media only screen and (max-width: 1250px) {
#fullPageCard #fullPageCardInnerContainer {
column-count: 2;
}
}

@media only screen and (max-width: 700px) {
#fullPageCard #fullPageCardInnerContainer {
column-count: 1;
}
.dead.spectating #hud,
.dead.spectating #record
{
visibility: visible;
}

#fullPageCard section {
break-inside: avoid;
.dead #hud,
.dead #autofireContainer,
.dead #record
{
visibility: hidden;
}

.spectating #fullPageCard,
.alive #fullPageCard {
display: none;
}

#hud {
font-family: var(--font);
Expand Down Expand Up @@ -896,14 +867,6 @@ progress::-webkit-progress-value {
margin: 10px auto 10px auto;
}

#minimap {
position: absolute;
bottom: 15px;
right: 15px;
background-color: rgba(0, 0, 0, 0.5);
border: 1px solid #999;
}

#minimapTip {
display: block;
position: absolute;
Expand Down
Loading

0 comments on commit 50d1f8b

Please sign in to comment.