Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:NavCell: Difference between revisions

Template page
Created page
 
fixed for Nav layout
Line 1: Line 1:
<div class="navcell">
/* SK navigation cells */


<div class="navcell-header">
.navcell {
'''{{{name}}}'''
  margin: 1.5em 0;
</div>
}


<div class="navcell-move">
/* 3×3 compass grid */
N: {{#if:{{{north|}}}|[[{{{north}}}|Go]]|—}} ·
E: {{#if:{{{east|}}}|[[{{{east}}}|Go]]|—}} ·
S: {{#if:{{{south|}}}|[[{{{south}}}|Go]]|—}} ·
W: {{#if:{{{west|}}}|[[{{{west}}}|Go]]|—}} 
<br/>
U: {{#if:{{{up|}}}|[[{{{up}}}|Go]]|—}} ·
D: {{#if:{{{down|}}}|[[{{{down}}}|Go]]|—}}
</div>


<div class="navcell-nouns">
.nav-grid {
'''Nearby:''' {{{nouns|None}}}
  display: grid;
</div>
  grid-template-columns: 60px 60px 60px;
  grid-template-rows: 60px 60px 60px;
  gap: 6px;
  justify-content: center;
  margin: 1em 0;
}


<div class="navcell-desc">
.nav-btn {
{{{description|}}}
  display: flex;
</div>
  align-items: center;
  justify-content: center;
  background: #222;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 0.9em;
  text-decoration: none !important;
  color: #eee !important;
}


<div class="navcell-lore">
.nav-btn:hover {
{{{lore|}}}
  background: #333;
</div>
  border-color: #777;
}


</div>
.nav-empty {
  background: transparent;
  border: none;
}
 
/* Up / Down row */
 
.nav-vertical-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0.5em 0 1em 0;
}
 
.nav-vertical {
  min-width: 70px;
}
 
/* Make the link fill the button */
 
.nav-btn a {
  text-decoration: none !important;
  color: inherit !important;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

Revision as of 21:00, 3 December 2025

/* SK navigation cells */

.navcell {

 margin: 1.5em 0;

}

/* 3×3 compass grid */

.nav-grid {

 display: grid;
 grid-template-columns: 60px 60px 60px;
 grid-template-rows: 60px 60px 60px;
 gap: 6px;
 justify-content: center;
 margin: 1em 0;

}

.nav-btn {

 display: flex;
 align-items: center;
 justify-content: center;
 background: #222;
 border: 1px solid #444;
 border-radius: 6px;
 font-size: 0.9em;
 text-decoration: none !important;
 color: #eee !important;

}

.nav-btn:hover {

 background: #333;
 border-color: #777;

}

.nav-empty {

 background: transparent;
 border: none;

}

/* Up / Down row */

.nav-vertical-row {

 display: flex;
 justify-content: center;
 gap: 8px;
 margin: 0.5em 0 1em 0;

}

.nav-vertical {

 min-width: 70px;

}

/* Make the link fill the button */

.nav-btn a {

 text-decoration: none !important;
 color: inherit !important;
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;

}