Template:Mdn.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 101: | Line 101: | ||
aspect-ratio: 512 / 77; | aspect-ratio: 512 / 77; | ||
width: auto; | width: auto; | ||
} | |||
h2 { | |||
font: 500 2rem / 1.2 var(--font); | |||
} | } | ||
Revision as of 16:48, 19 June 2025
:root {
color-scheme: light dark;
--font: Inter, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
font-family: var(--font) !important;
--inner-width: 1440px;
}
.wrapper {
max-width: var(--inner-width);
margin: auto;
display: grid;
grid-gap: 3rem;
gap: 3rem;
grid-template-areas: "sidebar main toc";
grid-template-columns: minmax(0,1fr) minmax(0,2.5fr) minmax(0,15rem);
font-family: var(--font) !important;
color: light-dark(rgb(27, 27, 27), #fff);
line-height: 1.75;
font-size: 1rem;
}
*, *::before, *::after {
box-sizing: border-box;
}
.main-bit {
grid-area: main;
}
#firstHeading {
display: none;
}
#content {
border: none;
background: transparent;
padding: 0;
}
#contentSub, #contentSub2 {
display: none;
}
body {
background-color: light-dark(#fff, rgb(27, 27, 27));
}
.baseline p {
background-color: rgb(230, 244, 234);
display: flex;
gap: .5rem;
align-items: center;
padding: 1rem;
.text {
font-size: 1rem;
letter-spacing: 0;
line-height: 1.5;
margin: 0;
padding: .375rem 0;
display: block;
b { font-weight: 600; }
}
}
.baseline-img img {
height: 2.25rem;
width: 2.3125rem;
}
.nav {
padding: 2rem calc((100% - var(--inner-width)) / 2);
display: flex;
height: 4rem;
align-items: center;
gap: 1rem;
line-height: 1.75;
font-size: 1rem;
font-family: var(--font) !important;
p {
display: contents;
}
a {
display: block;
color: rgb(78, 78, 78);
padding: .5rem;
border-radius: .25rem;
}
.selected a {
color: rgb(133, 133, 133);
}
}
.logo img {
height: 1.5rem;
aspect-ratio: 512 / 77;
width: auto;
}
h2 {
font: 500 2rem / 1.2 var(--font);
}