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

Join the Playtest on Steam Now: SpiritVale

Template:Def/styles.css: Difference between revisions

Template page
No edit summary
Tags: Reverted Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Template:def/styles.css
/* SpiritVale Wiki — Template:def/styles.css */
Namespace: sv-def only
/* Final minimal sv-def namespace styling. */
*/
/* -------------------------------------------------------------------------- */
/* Canonical ownership map                                                    */
/* -------------------------------------------------------------------------- */
/* This sheet owns only the Definitions / sv-def namespace. It is responsible  */
/* for inline definition tokens, pill variants, icons, and definition-local    */
/* emphasis states.                                                            */
/*                                                                            */
/* It does NOT own sitewide tokens, Citizen theme logic, shared popup anatomy, */
/* or module/template layout outside the sv-def namespace.                    */
/*                                                                            */
/* Responsive cleanup note: this stylesheet currently does not require its own */
/* breakpoint rules. If responsive behavior is ever added here, it should use  */
/* the canonical six-viewpoint ladder from Common.css.                        */
/* -------------------------------------------------------------------------- */
 
 
/* -------------------------------------------------------------------------- */
/* 1) Wrapper */
/* -------------------------------------------------------------------------- */


.sv-def{
.sv-def{
display:inline-flex;
  display:inline-flex;
align-items:baseline;
  align-items:center;
vertical-align:baseline;
  white-space:nowrap;
line-height:inherit;
  line-height:inherit;
white-space:nowrap;
  vertical-align:middle;
gap:0.35em;
  cursor:help;
cursor:help;
}
 
.sv-def[data-sv-def-link],
.sv-def--pill{
  cursor:pointer;
}
 
.sv-def:focus{
  outline:2px solid currentColor;
  outline-offset:2px;
  border-radius:8px;
}
}
/* -------------------------------------------------------------------------- */
/* 2) Icons */
/* -------------------------------------------------------------------------- */


.sv-def-icon,
.sv-def-icon,
.sv-def-icon-img{
.sv-def-icon-img{
display:inline-flex;
  display:inline-flex;
align-items:center;
  align-items:center;
justify-content:center;
  justify-content:center;
flex:0 0 auto;
  margin-right:0.25em;
  line-height:0;
  vertical-align:middle;
}
}


.sv-def-icon-img img{
.sv-def-icon-img img{
height:1em;
  display:block;
width:auto;
  width:14px;
display:block;
  height:14px;
}
}


.sv-def-icon--missing{
.sv-def-icon--missing{
width:1em;
  display:inline-flex;
height:1em;
  align-items:center;
border-radius:999px;
  justify-content:center;
display:inline-flex;
  width:14px;
align-items:center;
  height:14px;
justify-content:center;
  border-radius:999px;
font-weight:900;
  border:1px solid rgba(255,255,255,0.28);
font-size:0.78em;
  background:rgba(0,0,0,0.18);
line-height:1;
  font-weight:900;
border:1px solid currentColor;
  font-size:11px;
background:transparent;
  line-height:1;
color:currentColor;
}
}


/* Default: normal prose (even if text is an <a>) */
/* -------------------------------------------------------------------------- */
.sv-def-text,
/* 3) Text */
.sv-def a.sv-def-text,
/* -------------------------------------------------------------------------- */
.sv-def .sv-def-text a{
 
color:inherit;
.sv-def-text{
text-decoration:none;
  color:var(--color-link);
border-bottom:none;
  border-bottom:1px dotted currentColor;
  text-decoration:none;
}
}


/* Hover: link-like (TemplateStyles-safe) */
.sv-def:hover .sv-def-text{
.sv-def:hover .sv-def-text,
  color:var(--color-link--hover);
.sv-def:hover a.sv-def-text,
  border-bottom-style:solid;
.sv-def:hover .sv-def-text a{
color:#0b63f0;
border-bottom:1px dotted currentColor;
text-decoration:none;
}
}


/* Missing/error states */
/* -------------------------------------------------------------------------- */
/* 4) States and modes */
/* -------------------------------------------------------------------------- */
 
.sv-def--missing,
.sv-def--missing,
.sv-def--error{
.sv-def--error{
cursor:not-allowed;
  cursor:not-allowed;
opacity:0.90;
  opacity:0.85;
}
 
.sv-def--pill .sv-def-text,
.sv-def--fill .sv-def-text{
  border-bottom:none;
}
 
.sv-def--pill .sv-def-text{
  color:inherit;
}
 
.sv-def--fill{
  display:block;
  width:100%;
  height:100%;
  white-space:normal;
}
}


/* Don’t advertise missing/error as links on hover */
.sv-def--fill .sv-def-text{
.sv-def--missing:hover .sv-def-text,
  display:block;
.sv-def--missing:hover a.sv-def-text,
  width:100%;
.sv-def--missing:hover .sv-def-text a,
  height:100%;
.sv-def--error:hover .sv-def-text,
.sv-def--error:hover a.sv-def-text,
.sv-def--error:hover .sv-def-text a{
color:inherit;
border-bottom:none;
text-decoration:none;
}
}

Latest revision as of 22:41, 7 March 2026

/* SpiritVale Wiki — Template:def/styles.css */
/* Final minimal sv-def namespace styling. */
/* -------------------------------------------------------------------------- */
/* Canonical ownership map                                                     */
/* -------------------------------------------------------------------------- */
/* This sheet owns only the Definitions / sv-def namespace. It is responsible  */
/* for inline definition tokens, pill variants, icons, and definition-local    */
/* emphasis states.                                                            */
/*                                                                            */
/* It does NOT own sitewide tokens, Citizen theme logic, shared popup anatomy, */
/* or module/template layout outside the sv-def namespace.                     */
/*                                                                            */
/* Responsive cleanup note: this stylesheet currently does not require its own */
/* breakpoint rules. If responsive behavior is ever added here, it should use  */
/* the canonical six-viewpoint ladder from Common.css.                         */
/* -------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------- */
/* 1) Wrapper */
/* -------------------------------------------------------------------------- */

.sv-def{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  line-height:inherit;
  vertical-align:middle;
  cursor:help;
}

.sv-def[data-sv-def-link],
.sv-def--pill{
  cursor:pointer;
}

.sv-def:focus{
  outline:2px solid currentColor;
  outline-offset:2px;
  border-radius:8px;
}

/* -------------------------------------------------------------------------- */
/* 2) Icons */
/* -------------------------------------------------------------------------- */

.sv-def-icon,
.sv-def-icon-img{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:0.25em;
  line-height:0;
  vertical-align:middle;
}

.sv-def-icon-img img{
  display:block;
  width:14px;
  height:14px;
}

.sv-def-icon--missing{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.28);
  background:rgba(0,0,0,0.18);
  font-weight:900;
  font-size:11px;
  line-height:1;
}

/* -------------------------------------------------------------------------- */
/* 3) Text */
/* -------------------------------------------------------------------------- */

.sv-def-text{
  color:var(--color-link);
  border-bottom:1px dotted currentColor;
  text-decoration:none;
}

.sv-def:hover .sv-def-text{
  color:var(--color-link--hover);
  border-bottom-style:solid;
}

/* -------------------------------------------------------------------------- */
/* 4) States and modes */
/* -------------------------------------------------------------------------- */

.sv-def--missing,
.sv-def--error{
  cursor:not-allowed;
  opacity:0.85;
}

.sv-def--pill .sv-def-text,
.sv-def--fill .sv-def-text{
  border-bottom:none;
}

.sv-def--pill .sv-def-text{
  color:inherit;
}

.sv-def--fill{
  display:block;
  width:100%;
  height:100%;
  white-space:normal;
}

.sv-def--fill .sv-def-text{
  display:block;
  width:100%;
  height:100%;
}