Anonymous

Main Page: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
updating styles
mNo edit summary
(updating styles)
Line 3: Line 3:


<div class=main-page>
<div class=main-page>
[[File:ZW Logo White.png|400px|center]]
<div id="mf-zw-logo">[[File:ZW Logo White.png|400px|center]]</div>


<inputbox>
<inputbox>
Line 11: Line 11:
</inputbox>
</inputbox>


<div id="mf-welcome-text">
'''Zelda Wiki''' is a ''The Legend of Zelda'' encyclopedia that [[Help:Contents|anyone can edit]] and is [[Zelda Wiki:Staff|maintained by fans just like you]].
'''Zelda Wiki''' is a ''The Legend of Zelda'' encyclopedia that [[Help:Contents|anyone can edit]] and is [[Zelda Wiki:Staff|maintained by fans just like you]].


[[Zelda Wiki:Getting Involved|Learn how you can become a part of the Zelda Wiki community]].
[[Zelda Wiki:Getting Involved|Learn how you can become a part of the Zelda Wiki community]].
</div>


<div class="game-container">
<div class="game-container">
Line 306: Line 308:
</div>
</div>


<div class="infoblock-container">
<div id="mf-infoblocks" class="infoblock-container">
<div class="infoblock" id="news">
<div class="infoblock" id="news">
<span class="infoblock-header">Latest News</span>
<span class="infoblock-header">Latest News</span>
Line 322: Line 324:
</div>
</div>
</div>
</div>
<div class="niwabar">
{{NIWAnav}}
{{NIWAnav}}
</div>
</div>
<css>
<css>


/* These media queries handle how the main page behaves at different screen sizes. It will need to be modified with each new game.
/* These media queries handle how the main page behaves at different screen sizes. In particular, they assure that floating items (i.e. games and categories) are listed neatly in even "rows".
This is not ideal responsive design by any means. It'll have to do until a more elegant solution presents itself.
* Without these styles, these lists may look off at certain screen sizes.
* These styles may need to be modified with each new game. This is not ideal responsive design by any means. It'll have to do until a more elegant solution presents itself (possibly with JQuery).
*/  
*/  
.empty-tile {display:none}
.empty-tile {display:none}
.spin-off-logo{display:block}
.spin-off-logo{display:block}
@media screen and (min-width: 950px) {
@media screen and (min-width: 950px) {
   .categories, .main-series {width:750px;}  
   .categories {max-width:750px;}  
}
}
@media screen and (min-width: 1180px) {
@media screen and (min-width: 1180px) {
   .categories, .main-series {width:950px;}  
   .categories, {max-width:950px;}  
   .spin-off-logo, .empty-tile {display:inline-block}  
   .spin-off-logo, .empty-tile {display:inline-block}  
}
}
Line 350: Line 351:
}
}
@media screen and (min-width: 1650px) {
@media screen and (min-width: 1650px) {
   .categories, .main-series {width:1415px;}  
   .categories, .main-series {max-width:1415px;}  
}  
}  
@media screen and (min-width: 1720px) {
  #NIWAnav .body {width:1500px;}
}
@media screen and (min-width: 2355px) {
@media screen and (min-width: 2355px) {
   .main-series, .infoblocks, #NIWAnav {width:2130px;}
   .main-series, .infoblocks, {max-width:2130px;}
  #NIWAnav .body{width:auto}  
}
}
@media screen and (min-width: 3000px) {
@media screen and (min-width: 3000px) {
.categories {width:2750px;}  
.categories {max-width:2750px;}  
}
}


#content {
text-align:center;
}


#siteNotice, .main-page{
#siteNotice, .main-page{
Line 370: Line 370:
.main-page{
.main-page{
font-size:15px;
font-size:15px;
text-align:center;
margin:2em auto;
margin:2em auto;
width:98%;
width:98%;
}
#mf-zw-logo {
margin:0 auto;
}
}


Line 379: Line 382:
.bodySearchWrap {
.bodySearchWrap {
height:40px;
height:40px;
margin:30px 0 50px;
margin-top:30px;
font-size:18px;
font-size:18px;
}
}
Line 425: Line 428:
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  box-shadow: 0 0 3px rgba(0,0,0,0.2);
  background-color:#ccc;
  background-color:#ccc;
}
/* #################### WELCOME TEXT #################### */
#mf-welcome-text {
  margin:3em 0;
}
}


Line 452: Line 460:
display:inline-block;
display:inline-block;
position:relative;
position:relative;
text-align:center;
font-size:0;
font-size:0;
margin:2px;
margin:2px;
Line 470: Line 477:
color:white;
color:white;
position:absolute;
position:absolute;
text-align:center;
line-height:29px;
line-height:29px;
font-size:25px;
font-size:25px;
Line 487: Line 493:


.game-container{
.game-container{
margin:50px auto 0;
margin:0 auto 3em;
}
}


Line 502: Line 508:


.categories{
.categories{
margin:30px auto 50px;
margin:0 auto;
text-align:center;
}
}


Line 508: Line 515:


.infoblock-container{
.infoblock-container{
margin:50px auto 0;
margin:3em auto;
display:flex;
display:flex;
justify-content:center;
justify-content:center;
Line 514: Line 521:


.infoblock {
.infoblock {
   text-align: left;
   text-align:left;
  margin: 0 1em;
   padding: 1em;
   padding: 1em;
  margin: 0 1em;
   border-radius:5px;
   border-radius:5px;
   background: #1d578b;  
   background: #1d578b;  
Line 552: Line 559:
/* #################### NIWA NAV #################### */
/* #################### NIWA NAV #################### */


#NIWAnav {
#mf-NIWAnav {
margin:3em 1em 0;
max-width:1650px;
border:none;
border:none;
border-radius:2px;
border-radius:2px;
}
}


#NIWAnav .cell {
#mf-NIWAnav .cell {
   width:12em;  
   width:12em;  
   border-radius:5px;  
   border-radius:5px;  
}
}
</css>
</css>