hextris/style/style.css

528 lines
7.8 KiB
CSS
Raw Normal View History

2014-06-21 20:58:18 +00:00
* {
2015-06-10 23:08:04 +00:00
-webkit-touch-callout:none;
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
2014-07-21 02:36:45 +00:00
padding:0;
margin:0;
2015-06-11 04:58:45 +00:00
-webkit-tap-highlight-color:rgba(0,0,0,0);
2014-06-21 20:58:18 +00:00
}
2015-03-14 20:37:12 +00:00
#HIGHSCORE {
position:absolute;
left:50%;
width:250px;
2015-06-10 23:08:04 +00:00
overflow:visible;
margin-left:-175px;
font-family:Exo;
2015-03-14 20:37:12 +00:00
}
2015-06-10 18:51:23 +00:00
#container {
2015-06-10 23:08:04 +00:00
color:#232323;
position:absolute;
2015-06-10 18:51:23 +00:00
left:50%;
top:calc(50%);
2015-06-10 23:08:04 +00:00
text-align:center;
transform:translate(-50%, -50%);
font-family:Exo;
-webkit-transform:translate(-50%, -50%);
-moz-transform:translate(-50%, -50%);
-ms-transform:translate(-50%, -50%);
2015-09-21 06:27:05 +00:00
display:none;
2015-03-14 20:37:12 +00:00
}
2014-08-18 21:39:57 +00:00
.tweet {
2015-03-14 20:37:12 +00:00
font-size:2rem;
color:#4099FF;
2014-08-18 21:39:57 +00:00
}
2015-06-11 04:58:45 +00:00
@media only screen and (min-device-width:320px) and (max-device-width:480px) {
2015-03-14 20:37:12 +00:00
.tweet{
font-size:1rem;
}
2014-08-19 05:12:38 +00:00
}
a {
2015-03-14 20:37:12 +00:00
color:#232323;
}
.navbar {
2015-06-10 23:08:04 +00:00
width:80%;
margin:0 auto;
padding:2.5vmin 0;
text-align:center;
}
.navbar li {
2015-06-10 23:08:04 +00:00
display:inline-block;
text-align:center;
2015-06-11 04:58:45 +00:00
width:calc(33% - 1.25vmin);
}
#title {
2015-06-10 23:08:04 +00:00
color:#ecf0f1;
font-size:6vmin;
}
#score {
2015-06-10 23:08:04 +00:00
font-size:4vmin;
text-align:center;
width:30%;
}
2014-05-23 05:10:12 +00:00
#highscores {
2015-06-10 23:08:04 +00:00
text-align:center;
list-style:none;
2014-05-23 05:10:12 +00:00
}
2014-05-23 05:10:12 +00:00
.not-visible {
2015-06-10 23:08:04 +00:00
display:none;
2014-05-23 05:10:12 +00:00
}
button {
2015-06-10 23:08:04 +00:00
color:#ecf0f1;
background-color:rgba(0,0,0,0);
border:0;
}
button:focus {
2015-06-10 23:08:04 +00:00
outline:0;
2014-05-27 01:05:58 +00:00
}
2014-05-27 01:05:58 +00:00
#openSideBar {
2015-06-10 23:08:04 +00:00
position:fixed;
margin-top:6px;
2015-03-14 20:38:09 +00:00
width:72px;
height:72px;
2015-06-10 23:08:04 +00:00
margin-left:11px;
z-index:3003;
2015-03-14 20:37:12 +00:00
color:#232323;
cursor:pointer;
2015-03-14 20:38:09 +00:00
top:0;
left:0;
2015-03-14 20:26:06 +00:00
}
2014-07-16 04:06:23 +00:00
#pauseBtn {
2015-05-15 01:41:20 +00:00
display:none;
2015-06-10 23:08:04 +00:00
position:fixed;
margin-bottom:7px;
2015-03-14 20:38:09 +00:00
width:72px;
2015-05-15 02:22:58 +00:00
height:72px;
2015-06-10 23:08:04 +00:00
margin-right:11px;
z-index:3000;
color:#232323;
2014-05-27 01:05:58 +00:00
cursor:pointer;
2015-03-14 20:37:12 +00:00
right:0;
bottom:0;
z-index:99;
}
2014-06-30 16:29:26 +00:00
#restartBtn {
2015-05-15 01:41:20 +00:00
display:none;
2015-06-10 23:08:04 +00:00
position:fixed;
margin-bottom:7px;
2015-03-14 20:38:09 +00:00
width:72px;
height:72px;
2015-06-10 23:08:04 +00:00
margin-left:11px;
z-index:3000;
color:#232323;
2014-06-30 16:29:26 +00:00
cursor:pointer;
2015-03-14 20:38:09 +00:00
bottom:0;
z-index:99;
2014-05-27 01:05:58 +00:00
}
#startBtn {
2015-06-10 04:06:34 +00:00
position:absolute;
left:40%;
top:38%;
height:25%;
width:25%;
z-index:99999999;
cursor:pointer;
}
2014-07-04 20:42:55 +00:00
2014-05-27 01:05:58 +00:00
#helpScreen {
height:100%;
width:100%;
z-index:3001;
position:fixed;
top:0;
2015-03-14 20:37:12 +00:00
margin:0;
font-size:15px;
text-align:center;
2014-05-27 01:05:58 +00:00
display:none;
color:#232323;
background-color:rgba(236,240,241,1);
2014-05-27 01:05:58 +00:00
}
2014-07-04 20:42:55 +00:00
#colorBlindBtn {
position:absolute;
width:120px;
height:20px;
z-index:9999;
2015-06-10 23:08:04 +00:00
left:47%;
top:65%;
font-size:15px;
text-align:center;
color:#232323;
cursor:pointer;
}
2015-06-10 23:08:04 +00:00
#inst_main_body {
padding:0px;
font-size:1.2em;
2015-06-11 04:58:45 +00:00
left:50%;
top:50%;
position: absolute;
2015-06-10 23:08:04 +00:00
text-align:left;
2015-06-11 04:58:45 +00:00
max-width:400px;
/*margin-top:30px;*/
transform:translate(-50%, -50%);
-webkit-transform:translate(-50%, -50%);
-moz-transform:translate(-50%, -50%);
-ms-transform:translate(-50%, -50%);
2015-05-26 11:22:46 +00:00
}
2015-06-10 23:08:04 +00:00
#inst_main_body > a {
font-weight:bold;
}
2015-05-26 11:22:46 +00:00
#inst_main_body > hr {
width:100%;
2015-06-10 23:08:04 +00:00
color:#232323;
background-color:#232323;
height:1px;
border:0;
2015-05-26 11:22:46 +00:00
}
#inst_main_body > p {
2015-06-10 23:08:04 +00:00
margin-bottom:15px;
}
#instructions_head {
2015-06-10 23:08:04 +00:00
text-align:center;
2015-06-11 04:58:45 +00:00
font-size:1.5em;
padding-bottom:4px;
}
#highScoreInGameTextHeader {
color: #bdc3c7;
width:100%;
}
#highScoreInGameText {
position: absolute;
top:10px;
text-align: center;
width:200px;
left:50%;
margin-left:-100px;
}
#currentHighScore {
color: #2c3e50;
width:100%;
margin-top: -5px;
font-size:2em;
2014-07-04 20:42:55 +00:00
}
2015-06-11 04:58:45 +00:00
@media only screen and (max-device-width:480px) {
2015-03-14 20:37:12 +00:00
#helpScreen {
position:fixed;
top:2px;
padding-top:20px;
margin:0;
width:100%;
height:100%;
font-size:13px;
text-align:center;
}
2015-06-10 23:08:04 +00:00
#inst_main_body {
2015-06-11 04:58:45 +00:00
width:calc(100% - 70px);
transform:translate(-50%, -50%);
-webkit-transform:translate(-50%, -50%);
-moz-transform:translate(-50%, -50%);
-ms-transform:translate(-50%, -50%);
2015-03-14 20:37:12 +00:00
}
2015-05-26 11:22:46 +00:00
#instructions_head {
padding-left:0%;
}
#openSideBar{
width:60px;
height:60px;
}
#pauseBtn {
width:60px;
height:60px;
}
#restartBtn {
width:60px;
height:60px;
}
2014-07-04 18:58:33 +00:00
}
2014-07-04 20:42:55 +00:00
2014-09-24 00:07:55 +00:00
.overlay {
2015-03-14 20:37:12 +00:00
position:absolute;
height:20%;
width:100%;
left:50%;
top:50%;
margin-left:-50%;
margin-top:-10%;
z-index:3000;
color:#232323;
text-align:center;
}
.helpText {
2015-03-14 20:37:12 +00:00
z-index:3001;
}
.centeredHeader {
2015-06-10 04:06:34 +00:00
font-size:5vw;
text-align:center;
line-height:4rem;
}
2014-07-04 20:42:55 +00:00
2014-07-22 01:35:54 +00:00
.centeredSubHeader {
2015-06-10 04:06:34 +00:00
font-size:2.2rem;
line-height:1em;
text-align:center;
2014-07-22 01:35:54 +00:00
}
.centeredSubSubHeader {
2015-03-14 20:37:12 +00:00
font-size:1.4rem;
text-align:center;
2014-07-22 01:35:54 +00:00
}
#buttonCont {
2015-06-10 23:08:04 +00:00
position:absolute;
left:50%;
width:310px;
margin-left:-8px;
2015-06-10 23:08:04 +00:00
transform:translate(-50%, 0%);
-webkit-transform:translate(-50%, 0%);
-moz-transform:translate(-50%, 0%);
-ms-transform:translate(-50%, 0%);
}
@media only screen and (orientation:landscape) {
2015-06-10 04:06:34 +00:00
#buttonCont {
2015-06-10 23:08:04 +00:00
bottom:calc(50vh - 19vh - 36px);
2015-06-10 18:51:23 +00:00
}
#container {
2015-06-10 23:08:04 +00:00
top:calc(50vh - 11vh);
2015-05-25 14:40:48 +00:00
}
}
@media only screen and (orientation:portrait) {
2015-06-10 04:06:34 +00:00
#buttonCont {
2015-06-10 23:08:04 +00:00
bottom:calc(50vh - 19vw - 36px);
2015-06-10 18:51:23 +00:00
}
#container {
2015-06-10 23:08:04 +00:00
top:calc(50vh - 11vw);
2015-05-25 14:40:48 +00:00
}
}
2015-06-11 04:58:45 +00:00
@media only screen and (min-device-width:320px) and (max-device-width:600px) {
2015-03-14 20:37:12 +00:00
.centeredHeader {
font-size:2rem;
text-align:center;
line-height:0.6rem;
}
2014-07-04 20:42:55 +00:00
2015-03-14 20:37:12 +00:00
.centeredSubHeader {
font-size:1rem;
text-align:center;
}
2014-07-04 20:42:55 +00:00
2015-03-14 20:37:12 +00:00
.overlay {
2015-06-10 23:08:04 +00:00
margin-top:-20%;
2015-03-14 20:37:12 +00:00
}
#buttonCont {
width:280px;
}
@media only screen and (orientation:landscape) {
#buttonCont {
2015-06-10 23:08:04 +00:00
bottom:119px;
}
}
@media only screen and (orientation:portrait) {
#buttonCont {
2015-06-10 23:08:04 +00:00
bottom:119px;
}
}
2014-06-22 15:26:47 +00:00
}
.blur {
2015-03-14 20:37:12 +00:00
opacity:0.1;
2014-05-31 15:13:40 +00:00
}
* {
2015-06-10 23:08:04 +00:00
padding:0;
margin:0;
}
body {
2015-06-10 23:08:04 +00:00
color:#ecf0f1;
font-family:'Exo', sans-serif;
2015-03-14 20:37:12 +00:00
background-color:#ecf0f1;
}
#clickToExit {
2015-03-14 20:37:12 +00:00
cursor:pointer;
}
#canvas {
2015-06-10 23:08:04 +00:00
transition:all 0.5s ease;
position:absolute;
2015-03-14 20:37:12 +00:00
left:0;
right:0;
2014-07-27 11:57:49 +00:00
height:100%;
width:100%;
2015-03-14 20:37:12 +00:00
background-color:#ecf0f1;
2015-05-30 00:23:17 +00:00
z-index:0;
}
#title {
2015-03-14 20:37:12 +00:00
z-index:99;
margin-top:20px;
color:#2c3e50;
2014-05-31 23:37:23 +00:00
}
2015-05-30 00:23:17 +00:00
#gameoverscreen {
2015-06-10 04:06:34 +00:00
/*display:none;*/
}
2015-08-27 03:12:10 +00:00
#restart{
2015-06-10 04:06:34 +00:00
display:none;
2015-06-10 23:08:04 +00:00
cursor:pointer !important;
2015-08-23 02:38:31 +00:00
margin:0;
padding:0;
2015-08-27 03:12:10 +00:00
bottom:15px;
position:absolute;
left:calc(50% - 124px);
transform:translate(-50%, 0%);
-webkit-transform:translate(-50%, 0%);
-moz-transform:translate(-50%, 0%);
-ms-transform:translate(-50%, 0%);
margin-bottom:-3.5px;
}
2015-08-27 03:12:10 +00:00
#socialShare{
2015-06-10 04:06:34 +00:00
display:none;
2015-08-23 02:38:31 +00:00
margin:0;
padding:0;
2015-08-27 03:12:10 +00:00
bottom:0;
2015-09-21 06:27:05 +00:00
margin-bottom: 6.5px;
2015-08-27 03:12:10 +00:00
position:absolute;
left:calc(50% + 30px);
transform:translate(-50%, 0%);
-webkit-transform:translate(-50%, 0%);
-moz-transform:translate(-50%, 0%);
-ms-transform:translate(-50%, 0%);
padding-bottom: 2px;
2015-05-30 00:23:17 +00:00
}
2015-08-27 03:12:10 +00:00
.unselectable {
2015-06-10 23:08:04 +00:00
-webkit-touch-callout:none;
-webkit-user-select:none;
-khtml-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
2015-05-26 11:22:46 +00:00
#afterhr {
2015-06-10 23:08:04 +00:00
margin:0;
padding:0;
margin-bottom:-10px;
padding-bottom:-10px;
2015-05-26 11:22:46 +00:00
}
2015-06-10 04:06:34 +00:00
body {
2015-06-10 23:08:04 +00:00
overflow:hidden;
2015-06-10 04:06:34 +00:00
}
#gameoverscreen {
padding:8px;
2015-06-10 04:06:34 +00:00
}
@font-face {
2015-06-10 23:08:04 +00:00
font-family:Exo;
font-weight:light;
src:url("./style/fonts/Exo2-ExtraLight.otf") format("opentype");
2015-06-10 04:06:34 +00:00
}
@font-face {
2015-06-10 23:08:04 +00:00
font-family:Exo;
2015-06-10 18:51:23 +00:00
src:url("/style/fonts/Exo2-Regular.otf") format("opentype");
2015-06-10 04:06:34 +00:00
}
@font-face {
2015-06-10 23:08:04 +00:00
font-family:Exo;
font-weight:bold;
2015-06-10 18:51:23 +00:00
src:url("/style/fonts/Exo2-SemiBold.otf") format("opentype");
2015-06-10 04:06:34 +00:00
}
.GOTitle {
2015-06-10 23:08:04 +00:00
font-weight:bold;
font-size:24.2000px;
2015-06-10 04:06:34 +00:00
}
.scoreNum {
2015-06-10 23:08:04 +00:00
font-weight:normal ! important;
2015-06-10 04:06:34 +00:00
}
#cScore {
2015-06-10 23:08:04 +00:00
font-size:60.5000px;
font-weight:light;
2015-06-10 23:08:04 +00:00
margin-bottom:5px;
margin-top:-10px;
2015-06-10 04:06:34 +00:00
}
#highScoresTitle {
2015-06-10 23:08:04 +00:00
margin-bottom:2px;
2015-06-10 04:06:34 +00:00
}
.score {
2015-06-10 23:08:04 +00:00
font-weight:light;
line-height:18px;
2015-06-10 04:06:34 +00:00
}
2015-08-27 03:12:10 +00:00
2015-06-10 04:06:34 +00:00
#bottomContainer {
2015-06-10 23:08:04 +00:00
position:absolute;
width:100%;
2015-08-27 03:12:10 +00:00
bottom:0px;
2015-06-10 04:06:34 +00:00
}
#androidBadge {
2015-06-10 23:08:04 +00:00
position:absolute;
height:41px;
2015-06-10 06:16:57 +00:00
margin-top:5px;
left:calc(50% - 66px);
2015-06-10 23:08:04 +00:00
transform:translate(calc(-50% - 4px), -1px);
-webkit-transform:translate(calc(-50% - 4px), -1px);
-moz-transform:translate(calc(-50% - 4px), -1px);
-ms-transform:translate(calc(-50% - 4px), -1px);
2015-06-10 04:06:34 +00:00
}
#iOSBadge {
2015-06-10 06:16:57 +00:00
margin-top:5px;
2015-06-10 23:08:04 +00:00
position:absolute;
left:calc(50% + 65px);
transform:translate(calc(-50% - 4px), 0%);
-webkit-transform:translate(calc(-50% - 4px), 0%);
-moz-transform:translate(calc(-50% - 4px), 0%);
-ms-transform:translate(calc(-50% - 4px), 0%);
2015-06-10 04:06:34 +00:00
}
#authors {
2015-06-10 23:08:04 +00:00
position:absolute;
width:200px;
bottom:0px;
2015-06-10 23:08:04 +00:00
left:50%;
transform:translate(-50%, 0%);
-webkit-transform:translate(-50%, 0%);
-moz-transform:translate(-50%, 0%);
-ms-transform:translate(-50%, 0%);
2015-06-10 18:51:23 +00:00
}