I'm putting together a template for easy formatting of content pages, to be used in putting together a website for an online trading card game.
I've been using the Bootstrap library (and finding it wonderful) and since we will be using this template for basically all pages, I want to make sure it's top-notch before we deploy anything. Any and all useful feedback is appreciated.
I have also been told that there is a way to use this boilerplate navigation menu code in a more modular fashion using JavaScript or other such. I'm not asking for any gimme-teh-codez but if you have any link to anything useful I can dig into, I'm all ears.
P.S.: The CSh-
prefix in class names is used to differentiate Cardshifter custom classes vs. Bootstrap classes.
index.html
<!DOCTYPE html>
<html lang="en">
<!-- MAKE NO CHANGE TO ANYTHING IN THE <head> </head> SECTION -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Cardshifter card game / TCG, open source github with Java 8 & JavaFX">
<meta name="author" content="github.com/Phrancis">
<link rel="icon" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/favicon.ico">
<title>Cardshifter</title>
<!-- Bootstrap core CSS -->
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="cardshifter-formatting.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- THIS CODE GENERATES THE NAVIGATION MENUS; DO NOT CHANGE IT -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand CSh-top-link" href="#">Cardshifter</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar CSh-nav-background CSh-nav-padding">
<ul class="nav nav-sidebar">
<h4><a class="nav-link" href="home.html">Home</a></h4>
<h4><a class="nav-link" href="play-cardshifter.html">Play Cardshifter!</a></h4>
<h4><a class="nav-link" href="news.html">News</a></h4>
<h5><a class="nav-link" href="latest-release.html">Latest Release</a></h5>
<h5><a class="nav-link" href="new-git-issues.html">New Git issues</a></h5>
<h4><a class="nav-link" href="project.html">Project</a></h5>
<h5><a class="nav-link" href="controbutors.html">Contributors</a></h5>
<h5><a class="nav-link" href="images.html">Images</a></h5>
<h5><a class="nav-link" href="wiki.html">Wiki</a></h5>
<h5><a class="nav-link" href="contribute.html">Contribute!</a></h5>
<h4><a class="nav-link" href="mods.html">Mods</a></h4>
<h5><a class="nav-link" href="cyborg-chronicles.html">Cyborg Chronicles</a></h5>
<h5><a class="nav-link" href="new-mod.html">Start a New Mod!</a></h5>
<h4><a class="nav-link" href="contact-us.html">Contact Us</a></h5>
<h5><a class="nav-link" href="report-bug.html">Report a bug</a></h5>
<h5><a class="nav-link" href="request-feature.html">Request a feature</a></h5>
<h5><a class="nav-link" href="chat-room.html">Chat room</a></h5>
</ul>
</div>
<div class="col-sm-9 col-md-10 main"><br />
<h1 class="page-header">Header 1</h1>
<!-- END OF NAVIGATION MENUS -->
<div>
<!-- PAGE CONTENT STARTS HERE -->
<div class="default-template CSh-body-padding">
<h2>Header 2</h2>
<h3>Header 3</h3>
<p>Paragraph: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam consectetur rutrum velit et sagittis. Nullam vitae mi sed sapien ornare tincidunt. Suspendisse vel magna a nulla consectetur consectetur.</p>
<span>
<a href = "www.google.com">Link to Google.</a><br />
<strong>Strong text</strong><br />
<i>Italic text</i><br />
<u>Underlined text</u><br />
<strike>Strikethrough text</strike><br />
<code>Inline code</code><br />
</span><br />
<pre>
class Cardshifter {
public static void main(String[] args) {
System.out.println("Hello Cardshifter!");
}
}</pre><br />
<blockquote>“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”<br />- Martin Golding</blockquote>
<img src="facepalm.jpg" class="img-thumbnail" alt="An immemorial facepalm." height="300" width="300"><br /><br />
<p>
<button type="button" class="btn btn-default">Clear »</button>
<button type="button" class="btn btn-primary">Blue »</button>
<button type="button" class="btn btn-success">Green »</button>
<button type="button" class="btn btn-info">Light blue »</button>
<button type="button" class="btn btn-warning">Yellow »</button>
<button type="button" class="btn btn-danger">Red »</button>
</p>
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">White panel</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Blue panel</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Green panel</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Light blue panel</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-warning">
<div class="panel-heading">
<h3 class="panel-title">Yellow panel</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title">Red panel</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
</div>
<table width="50%">
<tr>
<th>FooBar</th>
<th>Name</th>
<th>Number</th>
</tr>
<tr>
<td>Fizz</td>
<td>John Q. Developer</td>
<td>1</td>
</tr>
<tr>
<td>Buzz</td>
<td>Jane Q. Maintainer</td>
<td>2</td>
</tr>
</table>
<!-- END PAGE CONTENT -->
</div>
<!-- FOOTER - DO NOT REMOVE -->
<br />© Copyright 2014<script>new Date().getFullYear()>2014&&document.write("-"+new Date().getFullYear());</script>, Cardshifter.
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
cardshifter-formatting.css
body {
font-size: 120%;
font-family: Verdana, Geneva, sans-serif;
}
/* FORMATTING FOR TOP NAV BAR */
a.CSh-top-link {
font-family: Georgia, Times, "Times New Roman", serif;
color: #FFFFFF;
font-size: 2em;
}
/* FORMATTING FOR LEFT SIDE NAV MENU */
/* h4 and h5 are used for left nav bar links */
h4 {
font-size: 1.2em;
font-weight: bold;
}
h5 {
font-size: 1em;
font-weight: normal;
}
a.CSh-nav-link {
color: #000000;
}
div.CSh-nav-background {
background-color: #EEEEEE;
}
div.CSh-nav-padding {
padding-top: 50px;
}
/* FORMATTING FOR PAGE BODY */
div.CSh-body-padding {
padding-left: 15px;
}
/* FORMATTING FOR COMMON PAGE ELEMENTS */
h1, h2, h3, blockquote {
font-family: Georgia, Times, "Times New Roman", serif;
}
p, span, blockquote, table {
font-size: 1.2em;
font-weight: normal;
}
pre {
font-family: Monaco, Consolas, Courier New;
font-size: 1.2em;
font-weight: normal;
}
/* FORMATTING FOR TABLES */
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
}
th {
background-color: #EEEEEE;
color: #000000;
}
/* FORMATTING FOR BUTTONS, ALERTS, ETC. */
a.CSh-button-formatting {
font-size: 1.2em;
font-weight: normal;
}
div.CSh-alert-formatting {
font-size: 1.2em;
}
The layout is temporarily hosted here
Here is what it looks like in my browser, Chrome Version 38.0.2125.111 for Mac: