cplusplus.com

Trying to remake cplusplus.com in HTML5

by Nicholas Braden

HTML

<body>
		<header>
			<h1>cplusplus.com</h1>
			<div class="search-container">
				<form action="?" method="GET"
					><input type="text" name="query" placeholder="🔍 search articles/posts"
					/><button name="scope" value="articles">Articles</button
					><button name="scope" value="posts">Posts</button
					><button name="scope" value="all">All</button
				></form>
			</div>
			<div class="account-container">
				<div class="account-whois">Logged in as: <mark>Disch</mark></div>
				<div class="account-buttons"><a class="account-button account-link" href="user/">Account</a><a class="account-button account-logout" href="logout/">logout</a></div>
			</div>
		</header>
		<div id="content">
			<main>
				<div class="ad-container"><div class="ad">Responsive Ad Unit</div></div>
				<div class="topics-header"><h1>General C++ Programming</h1><div class="newtopic-container"><a class="button newtopic" href="forum/thread.cgi?w=new&amp;i=854">+ New topic</a></div></div>
				<ul class="topics">
					<li class="topics-topic topics-sticky">
						<figure>
							<fieldset class="topic">
								<legend class="topic-title"><a href="javascript:void(0)">Welcome to this board!</a></legend>
								<div class="topic-summary">
									<div class="topic-op">
										<p class="topic-op-by"><span>by </span><a href="javascript:void(0)">admin</a><span> on <time datetime="2008-01-14 07:17">14 Jan 2008, 7:17am</time></span></p>
										<p class="topic-op-brief">Welcome to the general programming forum in C++.com! In this forum, users can to talk about any topic related to programming in the C++ language that does not fit in any of the other forums. Feel free to participate in a constructive and polite way in any topic of this category. Messages may be deleted or moved without prior notice and may prompt the suspension of user accounts.</p>
									</div>
									<div class="topic-reply">
										<p class="topic-reply-by"><span>by </span><a...

CSS

@charset "utf-8";

*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	list-style-type: none;
	tab-size: 4;
}
html
{
	width: 100%;
	height: 100%;
	background-color: #D7D7D7;
	font-family: sans-serif;
	font-size: 0.8em;
}
body
{
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
}
header
{
	flex-shrink: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	background-image: linear-gradient(#3F5B7F, #102030);
	color: white;
	border-bottom: 1px solid black;
	box-shadow: 0px 0px 2px black;
}
#content
{
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	max-width: 100%;
}
nav
{
	order: 1;
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	background-color: #B0C0D0;
	border-bottom: 1px solid black;
}
main
{
	order: 2;
	flex-grow: 1;
	overflow: auto;
	background-color: white;
}
aside
{
	order: 3;
	flex-shrink: 0;
	position: relative;
	width: 15vw;
	border-left: 1px solid black;
	background-color: #B0C0D0;
}
footer
{
	flex-shrink: 0;
	text-align: center;
	font-size: 9px;
	border-top: 1px solid black;
}

a, a:link, a:visited, a:active
{
	text-decoration: none;
	color: #000070;
}
a:hover
{
	text-decoration: underline;
}

.button
{
	display: inline-block;
	padding: 0 4px;
	padding-bottom: 1px;
	border: 1px solid black;
	border-radius: 4px;
	background-image: linear-gradient(#5D759D, #435F83);
	box-shadow:
		inset 3px 3px 3px -3px white,
		inset -3px -3px 3px -3px black;
	color: white !important;
	font-size: 0.8em;
	font-weight: bold;
	text-align: center;
	overflow: hidden;
}
.button:hover
{
	box-shadow:
		inset 3px 3px 3px -3px white,
		inset -3px -3px 3px -3px black,
		-1px -1px 0px 0 yellow,
		1px 1px 0px 0 yellow,
		1px -1px 0px 0 yellow,
		-1px 1px 0px 0 yellow;
	color: yellow !important;
	text-decoration: none !important;
}

header > *
{
	margin: auto;
}
header .search-container
{
	padding: 2px;
}
header .search-container form
{
	border: 1px solid...