Difference between revisions of "MediaWiki:Common.css"

From Documentation
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
+
/* extracted from Bootstrap v5.1.0 (https://getbootstrap.com/) */
/******* Extra buttons for 'edittools' (modified from www.mediawiki.org/MediaWiki:Common.css) ********/
+
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
.my-buttons {
+
  margin-top: 0;
/* padding: 1em; */
+
  margin-bottom: 0.5rem;
/* margin:5px; */
+
  font-weight: 500;
 +
  line-height: 1.2;
 
}
 
}
.my-buttons a {
+
 
color: black;
+
h1, .h1 {
background-color: #c0d0e0 ;
+
  font-size: calc(1.375rem + 1.5vw);
font-family:monospace;
 
font-size: 115%;
 
text-decoration: none;
 
border: thin #069 outset;
 
line-spacing:5pt;
 
 
}
 
}
.my-buttons a:hover {
+
@media (min-width: 1200px) {
background-color: #d0e0f0;
+
  h1, .h1 {
border-style:outset;
+
    font-size: 2.5rem;
 +
  }
 
}
 
}
.my-buttons a:active {
+
 
background-color: #e0f0e0;
+
h2, .h2 {
border-style: inset;
+
  font-size: calc(1.325rem + 0.9vw);
 +
}
 +
@media (min-width: 1200px) {
 +
  h2, .h2 {
 +
    font-size: 2rem;
 +
  }
 +
}
 +
 
 +
h3, .h3 {
 +
  font-size: calc(1.3rem + 0.6vw);
 +
}
 +
@media (min-width: 1200px) {
 +
  h3, .h3 {
 +
    font-size: 1.75rem;
 +
  }
 +
}
 +
 
 +
h4, .h4 {
 +
  font-size: calc(1.275rem + 0.3vw);
 +
}
 +
@media (min-width: 1200px) {
 +
  h4, .h4 {
 +
    font-size: 1.5rem;
 +
  }
 +
}
 +
 
 +
h5, .h5 {
 +
  font-size: 1.25rem;
 +
}
 +
 
 +
h6, .h6 {
 +
  font-size: 1rem;
 
}
 
}

Latest revision as of 04:31, 6 January 2022

/* CSS placed here will be applied to all skins */
/* extracted from Bootstrap v5.1.0 (https://getbootstrap.com/) */
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1, .h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
}

h2, .h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  h2, .h2 {
    font-size: 2rem;
  }
}

h3, .h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  h3, .h3 {
    font-size: 1.75rem;
  }
}

h4, .h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  h4, .h4 {
    font-size: 1.5rem;
  }
}

h5, .h5 {
  font-size: 1.25rem;
}

h6, .h6 {
  font-size: 1rem;
}