-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to Sass stylesheets
- Loading branch information
codemethis
committed
Aug 4, 2017
1 parent
ba93f38
commit 50e5c96
Showing
6 changed files
with
220 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# now using sass, ignore built css | ||
src/**/*.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,82 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Orbitron'); | ||
|
||
@import url("https://fonts.googleapis.com/css?family=Orbitron"); | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: sans-serif; | ||
background-color: #000; | ||
color: #080; | ||
font-family: 'Orbitron', sans-serif; | ||
} | ||
font-family: 'Orbitron', sans-serif; } | ||
|
||
#leftPanel { | ||
height: 100%; | ||
width: 41.66667%; | ||
float: left; | ||
position: relative; | ||
background-size: cover; } | ||
@media (max-width: 768px) { | ||
#leftPanel { | ||
width: 100%; } } | ||
|
||
#banner { | ||
position: absolute; | ||
top: 10%; | ||
width: 100%; | ||
background-color: rgba(0, 0, 0, 0.7); | ||
text-align: center; } | ||
|
||
#bigNanite { | ||
position: absolute; | ||
width: 250px; | ||
height: 250px; | ||
top: calc(40% - 125px); | ||
left: calc(50% - 125px); | ||
background-color: rgba(0, 0, 0, 0.7); | ||
border: 1px solid #080; | ||
padding: 0.4em; | ||
cursor: pointer; } | ||
#bigNanite:hover { | ||
width: 275px; | ||
height: 275px; | ||
top: calc(40% - 137.5px); | ||
left: calc(50% - 137.5px); } | ||
#bigNanite:active { | ||
width: 250px; | ||
height: 250px; | ||
top: calc(40% - 125px); | ||
left: calc(50% - 125px); } | ||
@media (max-width: 768px) { | ||
#bigNanite, #bigNanite:hover { | ||
width: 250px; | ||
height: 250px; | ||
top: calc(60% - 125px); | ||
left: calc(50% - 125px); } | ||
#bigNanite:active { | ||
width: 275px; | ||
height: 275px; | ||
top: calc(60% - 137.5px); | ||
left: calc(50% - 137.5px); } } | ||
|
||
#centerPanel { | ||
height: 100%; | ||
width: 25%; | ||
float: left; | ||
padding: 1em; } | ||
@media (max-width: 768px) { | ||
#centerPanel { | ||
height: auto; | ||
width: 100%; } } | ||
|
||
#rightPanel { | ||
height: 100%; | ||
width: 33.33333%; | ||
float: left; | ||
padding: 1em; | ||
overflow: auto; } | ||
@media (max-width: 768px) { | ||
#rightPanel { | ||
height: auto; | ||
width: 100%; } } | ||
|
||
.building { | ||
border: 1px solid #080; | ||
padding: 1em; | ||
} | ||
border: 1px solid #080; | ||
padding: 1em; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Orbitron'); | ||
|
||
$themeGreen: #080; | ||
$transBG: rgba(0, 0, 0, 0.7); | ||
$naniteSize: 250px; | ||
$engorgedNaniteSize: $naniteSize * 1.1; | ||
$naniteOffset: $naniteSize / 2; | ||
$engorgedOffset: $engorgedNaniteSize / 2; | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: sans-serif; | ||
background-color: #000; | ||
color: $themeGreen; | ||
font-family: 'Orbitron', sans-serif; | ||
} | ||
|
||
#leftPanel { | ||
height: 100%; | ||
width: 5 / 12 * 100%; | ||
float: left; | ||
position: relative; | ||
background-size: cover; | ||
|
||
@media(max-width: 768px) { | ||
width: 100%; | ||
} | ||
} | ||
|
||
#banner { | ||
position: absolute; | ||
top: 10%; | ||
width: 100%; | ||
background-color: $transBG; | ||
text-align: center; | ||
} | ||
|
||
#bigNanite { | ||
position: absolute; | ||
width: $naniteSize; | ||
height: $naniteSize; | ||
top: calc(40% - #{$naniteOffset}); | ||
left: calc(50% - #{$naniteOffset}); | ||
background-color: $transBG; | ||
border: 1px solid $themeGreen; | ||
padding: 0.4em; | ||
cursor: pointer; | ||
|
||
&:hover { | ||
width: $engorgedNaniteSize; | ||
height: $engorgedNaniteSize; | ||
top: calc(40% - #{$engorgedOffset}); | ||
left: calc(50% - #{$engorgedOffset}); | ||
} | ||
|
||
&:active{ | ||
width: $naniteSize; | ||
height: $naniteSize; | ||
top: calc(40% - #{$naniteOffset}); | ||
left: calc(50% - #{$naniteOffset}); | ||
} | ||
|
||
@media (max-width: 768px) { | ||
&, &:hover { | ||
width: $naniteSize; | ||
height: $naniteSize; | ||
top: calc(60% - #{$naniteOffset}); | ||
left: calc(50% - #{$naniteOffset}); | ||
} | ||
|
||
&:active { | ||
width: $engorgedNaniteSize; | ||
height: $engorgedNaniteSize; | ||
top: calc(60% - #{$engorgedOffset}); | ||
left: calc(50% - #{$engorgedOffset}); | ||
} | ||
} | ||
} | ||
|
||
#centerPanel { | ||
height: 100%; | ||
width: 3 / 12 * 100%; | ||
float:left; | ||
padding: 1em; | ||
|
||
@media(max-width: 768px) { | ||
height: auto; | ||
width: 100%; | ||
} | ||
} | ||
|
||
#rightPanel { | ||
height: 100%; | ||
width: 4 / 12 * 100%; | ||
float: left; | ||
padding: 1em; | ||
overflow: auto; | ||
|
||
@media (max-width: 768px) { | ||
height: auto; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.building { | ||
border: 1px solid #080; | ||
padding: 1em; | ||
} |