poketest/style.css
Théo Marchal 3a490aa173 Add mobile version
* Remove Backstretch plugin (not working well on mobile)
* Update all plugins
* Made Hisui a different region
2022-02-26 13:11:35 +01:00

575 lines
14 KiB
CSS

html { background-color:#2f2e2e; }
html, body { margin: 0; padding: 0; }
body {
width: 100vw; min-height: 100vh;
min-height: -webkit-fill-available;
margin: auto;
font-family: Verdana;
color: #e7e2e2;
position: relative;
overflow-x: hidden;
}
.bg {
top: 0;
height: 100vh;
left: 0;
right: 0;
z-index: -1;
background: url("artwork/artwork10.jpg") center center;
position: fixed;
background-attachment: fixed;
background-size: cover;
}
@supports ( -webkit-touch-callout : none) {
.bg { background-attachment: scroll }
}
@supports not ( -webkit-touch-callout : none) {
.bg { background-attachment: fixed; }
}
a { color: #e7e2e2; font-weight: bold; }
h1 { font-size: 1.7em; }
h2 { text-align: center; }
h3 { font-variant: small-caps; }
/**** HEADER ****/
header {
background: #2f2e2e;
display: flex;
justify-content: space-between;
}
header img {
display: flex;
align-items: flex-start;
margin-left: 8vw;
padding-top: 0.5vh;
padding-bottom: 0.5vh;
max-height: 80px;
}
header nav {
display: flex; align-items: flex-end;
margin-right: 8vw; margin-bottom: 3vh;
}
header nav ul, header nav ul li {
display: inline;
padding: 0;
margin: 0;
list-style-type: none;
}
header nav ul li a {
padding: 0px;
margin-left: 3.5vw;
color: rgb(202, 207, 208);
text-decoration: none;
font-size: 1.6em;
font-variant: small-caps;
}
header nav ul li a:hover { color: #ff6b79; }
/**** MAIN CONTENT ****/
article { width: 100vw; margin-top: 5vh; margin-bottom: 5vh; }
article #container {
margin-left: 10vw; margin-right: 10vw;
padding: 5px 20px;
background: rgba(0, 0, 0, .85);
}
article #container .poketest-companion {
float: right;
width: 210px;
margin-left: 15px;
}
article #container .flashdex-companion {
float: right;
width: 265px;
margin-left: 15px;
}
article #container .top-companion {
margin-top: 20px;
float: right;
width: 250px;
margin-left: 25px; margin-right: 25px;
}
article #container .middle-companion {
float: right;
width: 250px;
margin-left: 25px; margin-right: 25px;
}
article #container.about p { margin-left:20px; }
article #container.about ul { margin-bottom: 3.5%; }
article #container.about ul li { margin-top: 5px; margin-bottom: 5px; }
article #container.about ul li a { margin-top: 5px; margin-bottom: 5px; font-weight: normal; }
/**** GENERATIONS COLOR ****/
.RB1 { background: #FF1111; color: black; padding: 5px; border-radius: 10px 0px 0px 10px; }
.RB2 { background: #1111FF; color: white; padding: 5px; border-radius: 0px 10px 10px 0px; }
.GS1 { background: #DAA520; color: black; padding: 5px; border-radius: 10px 0px 0px 10px; }
.GS2 { background: #C0C0C0; color: black; padding: 5px; border-radius: 0px 10px 10px 0px; }
.RS1 { background: #A00000; color: white; padding: 5px; border-radius: 10px 0px 0px 10px; }
.RS2 { background: #0000A0; color: white; padding: 5px; border-radius: 0px 10px 10px 0px; }
.DP1 { background: #AAAAFF; color: black; padding: 5px; border-radius: 10px 0px 0px 10px; }
.DP2 { background: #FFAAAA; color: black; padding: 5px; border-radius: 0px 10px 10px 0px; }
.BW1 { background: #444444; color: white; padding: 5px; border-radius: 10px 0px 0px 10px; }
.BW2 { background: #E1E1E1; color: black; padding: 5px; border-radius: 0px 10px 10px 0px; }
.XY1 { background: #025DA6; color: white; padding: 5px; border-radius: 10px 0px 0px 10px; }
.XY2 { background: #EA1A3E; color: black; padding: 5px; border-radius: 0px 10px 10px 0px; }
.SM1 { background: #ef9039; color: black; padding: 5px; border-radius: 10px 0px 0px 10px; }
.SM2 { background: #589ac8; color: black; padding: 5px; border-radius: 0px 10px 10px 0px; }
.SWSH1 { background: #00A1E9; color: black; padding: 5px; border-radius: 10px 0px 0px 10px; }
.SWSH2 { background: #BF004F; color: white; padding: 5px; border-radius: 0px 10px 10px 0px; }
.RB { border-radius:50%; background: linear-gradient(-45deg, #FF1111 50%, #1111FF 50%); display:block; border: 1px solid white; }
.GS { border-radius:50%; background: linear-gradient(-45deg, #DAA520 50%, #C0C0C0 50%); display:block; border: 1px solid white; }
.RS { border-radius:50%; background: linear-gradient(-45deg, #A00000 50%, #0000A0 50%); display:block; border: 1px solid white; }
.DP { border-radius:50%; background: linear-gradient(-45deg, #AAAAFF 50%, #FFAAAA 50%); display:block; border: 1px solid white; }
.BW { border-radius:50%; background: linear-gradient(-45deg, #444444 50%, #E1E1E1 50%); display:block; border: 1px solid white; }
.XY { border-radius:50%; background: linear-gradient(-45deg, #025DA6 50%, #EA1A3E 50%); display:block; border: 1px solid white; }
.SM { border-radius:50%; background: linear-gradient(-45deg, #ef9039 50%, #589ac8 50%); display:block; border: 1px solid white; }
.SWSH { border-radius:50%; background: linear-gradient(-45deg, #00A1E9 50%, #BF004F 50%); display:block; border: 1px solid white; }
.LA { border-radius:50%; background: #36597B; display:block; border: 1px solid white; }
/**** FOOTER ****/
#content-wrap {
padding-bottom: 5vh; /* Footer height */
}
footer {
bottom:0;
background: #2f2e2e;
text-align: center;
position: absolute;
width: 100vw; height: 5vh;
display: flex;
justify-content: center;
align-items: center;
}
footer p { margin: auto; }
/**** POKETEST ****/
article #container #game #configuration {
min-width: 200px; max-width: 600px;
margin: auto;
}
article #container #game #configuration input[name="gen"], article #container #game #selected_options input {
margin-left: 40px; margin-bottom: 11px;
}
article #container #game #configuration input[type="checkbox"] { margin-left: 75px; }
article #container #game #configuration .first { margin-left: 40px; }
article #container #game #configuration select { font-size: 15px; }
article #container #game #configuration #selected_options {
display: none;
margin-top: 10px;
padding-top: 10px;
}
article #container #game #configuration #left_config { float: left; }
article #container #game #configuration #right_config { float: right; }
article #container #game .button {
margin: auto;
padding: 20px;
clear: both;
text-align: center;
}
article #container input[type=submit] {
padding: 10px;
border: 2px;
border-radius: 15px;
background: #e7e2e2;
color: #2f2e2e;
font-size: 20px;
font-weight: bold;
cursor: pointer;
}
article #container input[type=submit]:hover {
background: #2f2e2e;
color: #e7e2e2;
}
/**** GAME LAUNCHED ****/
article #container.game_active { height: 72vh; }
article #container #top_game { display: flex; justify-content: space-between; height: 10vh; }
article #container #top_game .whois { display: flex; align-items: flex-start; }
article #container #top_game .chrono {
width: 2.6rem;
height: 2.6rem;
line-height: 2.4rem;
padding: 10px;
margin-top: 10px;
border-radius: 100%;
background: #e7e2e2;
color: #2f2e2e;
text-align: center;
}
article #container .pokemon {
margin: auto;
text-align: center;
font-size: 2.1em;
}
article #container .pokemon img { height: 50vh; }
article #container .pokemon img.silhouette { filter: contrast(0%) brightness(170%); }
article #container #answers {
text-align: center;
height: 14vh;
display: flex;
align-items: center;
justify-content: center;
}
article #container #answers input { margin-right: 30px; display: inline; }
article #container #answers input:last-child { margin-right: 30px; }
article #container #answers .final_answer { font-size: 23px; }
article #container #answers .final_answer .good { color:#3ad48d; font-weight:bold; }
article #container #answers .final_answer .bad { color: #f85050; font-weight:bold; }
/* game end screen */
article #container #score .score-text { margin-top:40px; }
article #container #share {
width: 200px;
margin: auto; margin-top: 8px; margin-bottom: 10px;
text-align: center;
}
article #container #seed {
text-align: center;
font-size: 22px;
font-variant: small-caps;
}
article #container #seed input {
width: 35em;
padding-top: 4px; padding-bottom: 4px;
border-radius: 5px;
background: #e7e2e2;
border: #e7e2e2;
color: #2f2e2e;
text-align: center;
font-size: 16px;
}
article #container #copyseed {
float: left;
width: 60px; height: 16px;
display: block;
padding: 10px; padding-top: 4px; padding-bottom: 8px;
border-radius: 5px;
background: darkcyan;
font-size: 15px;
font-variant: small-caps;
text-decoration: none;
cursor:pointer;
}
article #container #copyseed a {
color: white;
text-decoration: none;
font-weight: bold;
}
article #container #copyseed:hover { background:lightseagreen; }
article #container.diploma {
border-style: solid;
border-image: url(img/border.png) 64 64 64 62 repeat;
border-width: 8px 8px 8px 8px;
}
article #container.diploma #score {
background: url('img/red.png') no-repeat;
background-size: 180px; background-position: right bottom;
padding: 5px 20px;
}
/**** FLASHDEX ****/
#game #flashdex_config { margin:auto; }
#game #flashdex_config p { text-align: center; }
#game #flashdex_config p a { text-decoration: none; }
#game #flashdex_config p label { display: inline-block; margin: 7px; }
#game #flashdex_config h2 { text-decoration: underline; font-size: 1.05em; margin-top: 25px; }
#game #flashdex_config span.alternate_forms { margin-top: 20px; margin-bottom: 0px; display: block; font-variant: small-caps; font-size: 19px; }
#loading {
display: block;
font-size: 1.5em;
text-align: center;
margin-top: 15px;
margin-bottom: 15px;
}
#container #game #flashdex {
margin:auto;
display:none;
text-align:center;
margin-top:2vh;
}
#container #game #flashdex .pokedex {
width: 250px; height: 285px;
border: 1px solid white;
padding: 10px;
margin: 10px;
border-radius: 10px 10px;
background-color: rgba(60, 60, 60, 0.9);
text-align: center;
display: inline-block;
position: relative;
}
#game #flashdex .pokedex img {
height: 250px;
display: block;
margin: auto;
}
#game #flashdex .pokedex span.name {
text-align: center;
font-size: 1em;
display: block;
margin: auto; margin-top: 15px;
}
span.form {
display: block;
float: right;
width: 25px; height: 25px;
background-size: 25px 25px;
position: absolute;
right: 10px;
}
span.form.mega { background-image: url('img/icon_mega.png'); }
span.form.giga {
background-image: url('img/icon_giga.png'); background-color: white;
background-position: center; background-size:20px;
border-radius: 50%; border: 1px solid white;
}
/*** MOBILE ***/
@media screen and (max-width:1100px) {
article #container {
margin-left: 5vw;
margin-right: 5vw;
}
}
@media screen and (max-width:800px) {
h1 { margin: 0.2em 0; font-size:1.3em; }
h2 { font-size:1.25em; }
h3 { margin: 10px; margin-left: 0; }
header img { margin-left: 4vw; }
header nav ul { display: none; }
header { display: block; }
header nav {
display: auto;
align-items: auto;
margin-right: auto;
margin-bottom: auto;
}
header nav #hamburger {
cursor: pointer;
position: absolute;
top: 1.75rem;
right: 1.2rem;
}
header nav #hamburger .bar1,
header nav #hamburger .bar2,
header nav #hamburger .bar3 { width:30px; height:3px; background-color:#ff3636; margin:6px 0; transition:0.4s; }
header nav.active #hamburger .bar1 { transform:rotate(-45deg) translate(-4px, 6px); }
header nav.active #hamburger .bar2 { opacity:0; }
header nav.active #hamburger .bar3 { transform:rotate(45deg) translate(-6px, -9.5px); }
header nav.active ul {
margin: auto;
margin-top: 0;
background: #2f2e2e;
width: 100%;
text-align:center;
padding: 10px;
padding-top: 0px;
z-index:0;
}
header a { display: inline-block; }
header nav ul, header nav ul li { margin: 15px; }
header nav ul li a { margin-left: 0; font-size: 1.3em; }
#content-wrap { padding-bottom: 8vh; }
article { margin-top: 2vh; margin-bottom: 0vh; }
article #container {
margin-left: 4vw;
margin-right: 4vw;
padding: 5px 10px;
border-radius: 18px;
}
/* poketest */
article #container #game #configuration #left_config { float: none; }
article #container #game #configuration #right_config { float: none; }
article #container #game #configuration input[name="gen"], article #container #game #selected_options input,
article #container #game #configuration .first { margin-left:15px; margin-bottom:5px; }
article #container #game .button { padding: 10px; padding-top: 20px; }
article #container #game #configuration input[type="checkbox"] {
margin-left: 15px;
margin-top: 7px;
margin-bottom: 8px;
}
article #container input[type="submit"] {
padding: 5px;
border: 2px;
border-radius: 8px;
font-size: 15px;
margin: 3px;
}
article #container.game_active {
max-height: 76vh;
height: auto;
}
article #container #answers {
height: 100%;
display: block;
}
article #container #answers input:last-child { margin-right: 0px; }
article #container.game_active div#answers span { display: block; }
article #container.diploma #score { background: none; }
article #container #seed input {
width: 90%;
margin-top: 10px;
}
article #container.diploma #score { padding: 0px; }
article #container.diploma { border: none; }
article #container .pokemon img {
height: 37vh;
margin-top: 1vh;
}
article #container #top_game .whois { width: 80%; }
article #container #top_game .chrono {
width: 2rem;
height: 2rem;
line-height: 1.8rem;
padding: 5px;
margin-top: 5px;
}
article #container #game .button {
padding: 10px; padding-top: 15px;
}
/* flashdex */
#container #game #flashdex .pokedex { width: 230px; height: 260px; }
#game #flashdex .pokedex img { height: 225px; }
#game #flashdex_config p { text-align: left; }
#game #flashdex_config .generation {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-around;
flex-wrap: wrap;
}
#game #flashdex_config .generation .gen {
display: block;
position: relative;
padding: 10px;
}
#game #flashdex_config .gen { padding: 0; margin: 0; display: block; }
#game #flashdex_config .gen label { padding: 2px; margin: 2px; margin-left: 8px; }
#game #flashdex_config select.lang { margin-left: 15px; margin-top:5px; }
#game #flashdex_config p.button { padding-top: 15px; margin-top: 15px; }
/* about */
article #container .poketest-companion, article #container .flashdex-companion,
article #container .top-companion, article #container .companion { display: none; }
article #container .middle-companion {
width: 250px;
margin: auto;
display: block;
}
article #container.about ul {
margin-left: 10px;
padding-left: 5px;
}
article #container.about p { margin-left: 0px; }
footer { height:6vh; }
}
@media screen and (max-width:400px) {
header img { height: 60px; }
header nav #hamburger { top: 1.05rem; }
}