:root { --color-dark: #1b1b1b; --color-darker: #141414; --color-light-blue: #75AFE9; --color-lighter-blue: #89D0F2; --color-grey: #2D3436; --color-light-grey: #636E72; --color-white: #eee; } * { box-sizing: border-box; } @font-face { font-family: OpenSans; font-weight: normal; src: url(../font/OpenSans/OpenSans-Regular.ttf); } @font-face { font-family: OpenSans; font-weight: bold; src: url(../font/OpenSans/OpenSans-Bold.ttf); } @font-face { font-family: OpenSans; font-weight: normal; font-style: italic; src: url(../font/OpenSans/OpenSans-Italic.ttf); } html { background-color: var(--color-dark); min-height: 100%; font-family: OpenSans, sans-serif; font-size: 1.1rem; } body { margin: 0; } @media screen and (max-width: 48rem) { html { font-size: 1.0rem; } } /*****************************************************************************/ /* header */ header { padding: 0 10px; background-color: var(--color-darker); } header .header-container { max-width: 450px; margin: auto; display: flex; justify-content: space-between; } a.header-link { display: block; padding: 10px 5px; font-weight: bold; text-decoration: none; text-transform: capitalize; } /* a.header-link:not(:last-child)::after { */ /* content: '/'; */ /* position: relative; */ /* right: -10px; */ /* } */ a.header-link, a.header-link:visited { color: var(--color-white); background-color: var(--color-darker); } a.header-link:hover { color: var(--color-white); filter: invert(1); } /*****************************************************************************/ /* main */ main { color: #fafafa; line-height: 1.80; margin: 0 auto; max-width: 55rem; padding: 1rem 1.5rem; } /*****************************************************************************/ /* common tags */ /* link */ a { text-decoration: none; } a, a:visited { color: var(--color-lighter-blue); } a:hover, a:focus, a:active { color: var(--color-light-blue); } /* title */ @font-face { font-family: Montserrat-Bold, sans-serif; font-weight: bold; src: url(../font/Montserrat/Montserrat-Bold.ttf); } h1, h2, h3, h4 { margin: 10px 0 5px 0; line-height: 1.42; font-weight: bold; font-family: Montserrat-Bold; letter-spacing: 0.1rem; } h1 { margin-top: 0; font-size: 2.5rem; } h2 { font-size: 2.1rem; } h3 { font-size: 1.8rem; } h4 { font-size: 1.6rem; } h5 { font-size: 1.4rem; } h6 { font-size: 1.2rem; } /* code */ @font-face { font-family: FiraMono; font-weight: normal; src: url(../font/FiraMono/FiraMono-Regular.ttf); } pre, code { white-space: pre; font-family: FiraMono, "Courier New", monospace; } @media screen and (max-width: 500px) { pre, code { white-space: pre-wrap; } } code { background-color: var(--color-grey); padding: 0.2rem 0.3rem; border: 1px solid var(--color-light-grey); font-size: 82%; margin: 0 1px; } pre { padding: 0.5rem; line-height: 1.25; overflow-x: auto; background-color: var(--color-grey); } pre a, pre a:visited, pre a:hover, pre a:focus, pre a:active { color: var(--color-white); } pre > code { border: none; font-size: 100%; padding: 0; line-height: 1.4; } /* other */ p { font-size: 1rem; margin: 1.3rem 0; letter-spacing: 0.03rem; } blockquote { margin-left: 1rem; border-left: 5px solid var(--color-light-grey); padding: 0.4rem; padding-left: 1.0rem; background-color: var(--color-darker); } blockquote p { margin: 0.3rem 0; } img, canvas, iframe, video, svg, select, textarea { max-width: 100%; } hr { border: 1px solid var(--color-light-grey); } table { margin: 20px 10px; } table, td, th { border-collapse: collapse; border: 1px solid var(--color-light-grey); } td, th { vertical-align: top; text-align: left; padding: 3px 6px; } th { font-weight: bold; background-color: var(--color-grey); }