MediaWiki

Group-Grouse.css: Difference between revisions

From Grouse House Wiki

No edit summary
No edit summary
Line 29: Line 29:
/* Testing */
/* Testing */


.controls {
main h2 {
text-align: right;
  margin: 0;
margin-bottom: 1em;
  font-size: 1em !important;
}
}


.controls li {
main > div + h2 {
   display: inline;
   border-top: 2px solid;
}
}


button {
h2 button {
   background: #000;
   all: inherit;
  color: #fff;
   border: 0;
   border: 0;
   font-size: 0.85rem;
   display: flex;
   border-radius: 0.25rem;
  justify-content: space-between;
  width: 100%;
   padding: 0.5em 0;
}
}


/*
 
Custom elements are inline by default
 
*/
h2 button:focus svg {
toggle-section {
   outline: 2px solid;
   display: block;
}
}


/*
button svg {
Only applies if script runs and
  height: 1em;
`role="region"` is added
  margin-left: 0.5em;
*/
}
toggle-section[role="region"] {
 
   border-width: 2px 0;
[aria-expanded="true"] .vert {
   border-style: solid;
   display: none;
}
 
[aria-expanded] rect {
  fill: currentColor;
}
 
/* page styles */
 
html {
   font-family: Arial, sans-serif;
}
}


toggle-section[role="region"] + toggle-section {
* {
   border-top: 0;
   box-sizing: border-box;
}
}

Revision as of 22:17, 18 February 2024

.mw-headline + .mw-editsection {
  display: none;
}

h2 {
font-size: 0em;
}

h2.c-header.active {
font-size: 1.3em;
}

h2.c-header.hidden {
font-size: 1.3em;
}

h3 {
font-size: 0em;
}

h3.c-header.active {
font-size: 1.1em;
}

h3.c-header.hidden {
font-size: 1.1em;
}

/* Testing */

main h2 {
  margin: 0;
  font-size: 1em !important;
}

main > div + h2 {
  border-top: 2px solid;
}

h2 button {
  all: inherit;
  border: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.5em 0;
}



h2 button:focus svg {
  outline: 2px solid;
}

button svg {
  height: 1em;
  margin-left: 0.5em;
}

[aria-expanded="true"] .vert {
  display: none;
}

[aria-expanded] rect {
  fill: currentColor;
}

/* page styles */

html {
  font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}