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/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 45: Line 45:
}
}


/* D pad cluster */
/* Compass pad cluster */


.navcell-ui {
.navcell-ui {
   width: 180px;
   width: 260px;
   height: 180px;
   height: 190px;
   margin: 10px auto 0 auto;
   margin: 10px auto 0 auto;
   position: relative;
   position: relative;
Line 55: Line 55:
}
}


/* 3 by 3 grid sits centered inside the cluster */
/* 3 by 3 grid */


.nav-grid {
.nav-grid {
   position: absolute;
   position: absolute;
   top: 26px;
   top: 26px;
   left: 26px;
   left: 50px;


   display: grid;
   display: grid;
   grid-template-columns: 40px 40px 40px;
   grid-template-columns: 50px 50px 50px;
   grid-template-rows: 40px 40px 40px;
   grid-template-rows: 44px 44px 44px;
   gap: 4px;
   gap: 4px;


Line 112: Line 112:
}
}


/* Floating UP and DOWN */
/* UP and DOWN as side buttons, same height as the grid rows
  UP is not above NORTH
  DOWN is not below SOUTH
*/


.nav-float-up {
.nav-float-up {
   position: absolute;
   position: absolute;
   top: 0;
   top: 26px;
   left: 0;
   left: 0;
   width: 74px;
   width: 50px;
   height: 40px;
   height: 44px;
   padding: 6px 8px;
   padding: 0;
   font-size: 0.7em;
   font-size: 0.72em;
}
}


.nav-float-down {
.nav-float-down {
   position: absolute;
   position: absolute;
   bottom: 0;
   top: 122px;
   right: 0;
   left: 210px;
   width: 74px;
   width: 50px;
   height: 40px;
   height: 44px;
   padding: 6px 8px;
   padding: 0;
   font-size: 0.7em;
   font-size: 0.72em;
}
}


/* Desktop layout: D pad to the right of text */
/* Desktop layout: compass pad to the right of text */


@media screen and (min-width: 760px) {
@media screen and (min-width: 760px) {

Revision as of 09:23, 20 December 2025

/* Compact base layout */

.navcell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.navcell-top {
  width: 100%;
  box-sizing: border-box;
}

/* Compact text blocks */

.navcell-desc,
.nav-nearby,
.navcell-lore {
  width: 94%;
  margin: 8px auto 0 auto;
  padding: 8px 10px;

  font-size: 0.88em;
  line-height: 1.12;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;

  background: transparent;
  border: 1px solid rgba(120, 140, 180, 0.25);
  border-radius: 12px;
  box-sizing: border-box;
}

.navcell-desc p,
.navcell-desc div,
.nav-nearby p,
.nav-nearby div,
.navcell-lore p,
.navcell-lore div {
  margin: 0;
  padding: 0;
}

/* Compass pad cluster */

.navcell-ui {
  width: 260px;
  height: 190px;
  margin: 10px auto 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* 3 by 3 grid */

.nav-grid {
  position: absolute;
  top: 26px;
  left: 50px;

  display: grid;
  grid-template-columns: 50px 50px 50px;
  grid-template-rows: 44px 44px 44px;
  gap: 4px;

  margin: 0;
  padding: 0;
}

/* Shared button styling */

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #222;
  border: 1px solid #444;
  border-radius: 7px;

  color: #eee;
  text-align: center;

  font-size: 0.72em;
  line-height: 1.05em;

  box-sizing: border-box;
}

.nav-btn a {
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #333;
  border-color: #777;
}

.nav-empty,
.nav-center {
  background: transparent;
  border: none;
}

/* UP and DOWN as side buttons, same height as the grid rows
   UP is not above NORTH
   DOWN is not below SOUTH
*/

.nav-float-up {
  position: absolute;
  top: 26px;
  left: 0;
  width: 50px;
  height: 44px;
  padding: 0;
  font-size: 0.72em;
}

.nav-float-down {
  position: absolute;
  top: 122px;
  left: 210px;
  width: 50px;
  height: 44px;
  padding: 0;
  font-size: 0.72em;
}

/* Desktop layout: compass pad to the right of text */

@media screen and (min-width: 760px) {
  .navcell-top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 0 10px;
  }

  .navcell-left {
    flex: 1 1 auto;
    max-width: 640px;
  }

  .navcell-ui {
    flex: 0 0 auto;
    margin-top: 8px;
  }
}