@custom-media --viewport-desktop (width >=62.5rem); :root { --main-width: 960px; } html, body, div, h1, h2, ul, li, p, form, input, textarea, pre { margin: 0; padding: 0; } textarea { overflow: auto; } html, input, textarea { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 12pt; -webkit-font-smoothing: subpixel-antialiased; } h1, h2 { font-weight: normal; } ul { list-style-type: none; } a { color: #069; text-decoration: none; } img, hr { border: none; } #app { background: #fdfdfe; display: grid; grid-template-areas: "header" "content" "footer"; grid-template-columns: 1fr; grid-template-rows: auto minmax(1fr, auto) auto; min-height: 100vh; font: -apple-system-body; font-family: -apple-system, Segoe UI; transition: margin-left 0.4s; } #header { grid-area: header; background: #fff; border-bottom: 1px solid #ccc; } #sidebar { border-right: 1px solid #ccc; color: #222; transition: width 0.4s; position: fixed; width: 0; top: 0; left: 0; overflow-x: hidden; height: 100%; z-index: 1; } .nav_content { padding: 10px; } #wrapper { background: #fefdfe; grid-area: content; height: 100%; padding: 10px; } #footer { grid-area: footer; background: #f8f8f8; border-top: 1px solid #ccc; color: #222; padding: 10px; } .desktop { display: none; } .card { padding: 6px 24px; } #logo { height: 36px; width: 110px; } #logo a { background: url("//i.juick.com/logo.png") no-repeat; background-size: cover; border: 0; display: block; height: 36px; overflow: hidden; text-indent: 100%; white-space: nowrap; width: 110px; } #ctitle { display: flex; font-size: 14pt; } #ctitle img { margin-right: 5px; vertical-align: middle; max-width: 48px; max-height: 48px; } #global { display: flex; } #global a { color: #888; display: inline-block; font-size: 13pt; padding: 14px 16px; } #global li { display: inline-block; } #ctitle a { padding: 4px 20px; } #global a:hover, #global li:hover, #ctitle a:hover, .l a:hover .msg-button:hover { background-color: #ec4b98; color: #fff; cursor: pointer; } .icon { margin-top: -2px; vertical-align: middle; } @media (--viewport-desktop) { #app { grid-template-areas: "header header" "content content" "footer footer"; grid-template-columns: 1fr 1fr; grid-template-rows: min-content minmax(min-content, 1fr) min-content; } #header_wrapper, .footer_container { margin: 0 auto; width: var(--main-width); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } #wrapper { justify-self: center; width: var(--main-width); display: grid; grid-gap: 10px; grid-template-columns: 200px minmax(1fr, max-content); grid-template-rows: auto; grid-template-areas: "nav feed"; } .desktop { display: block; } .mobile { display: none; } #content { grid-area: feed; } #sidebar { border: 0; position: static; grid-area: nav; width: auto; top: inherit; left: inherit; z-index: inherit; overflow-x: inherit; } }