Skip to content

Instantly share code, notes, and snippets.

@SamWhited
Created March 5, 2012 09:39
Show Gist options
  • Save SamWhited/1977647 to your computer and use it in GitHub Desktop.
Save SamWhited/1977647 to your computer and use it in GitHub Desktop.
The Radiant CMS template being used on SamWhited.com
$accent: #9BBB59;
$accent-darker: #577715;
$background: #FFFFFF;
$header-color: #222222;
$body-fonts: Verdana, Tahoma, Geneva, sans-serif;
$header-fonts: Georgia, "Times New Roman", serif;
$title-fonts: museo-1, museo-2, $header-fonts;
$monospace-fonts: Consolas, "Bitstream Vera Sans Mono", "Lucida Console", "Courier New", monospace;
$shadow-basic: 0px 1px 0px white;
$page-color: #321E1E;
$thumbnailsize: 100px;
$header-spacer: 1em;
.nav {
i {
margin-right: 0.5em;
}
}
header, .sidebar-nav {
overflow: hidden;
position: relative;
}
.main-container {
margin-bottom: 3em;
}
.navbar-fixed-top {
.brand {
padding-right: 0;
padding-left: 0;
margin-left: 20px;
float: right;
font-weight: bold;
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
-webkit-transition: all 0.12s ease-out;
-moz-transition: all 0.12s ease-out;
-ms-transition: all 0.12s ease-out;
-o-transition: all 0.12s ease-out;
transition: all 0.12s ease-out;
}
.brand:hover {
text-shadow:0px 1px rgba(255,255,255,.1),
0 0 30px rgba(255,255,255,.125),
0 0 31px $accent,
0 0 32px $accent,
0 0 33px $accent;
}
}
.swoffset {
position: relative;
top: 0.3em;
}
.header {
h1 {
font-family: $title-fonts;
letter-spacing: 0.1em;
}
}
h1, h2, h3, h4, h5, h6 {
font-family: "adelle-1","adelle-2",$header-fonts;
font-weight: 500;
color: $header-color;
}
body {
text-shadow: $shadow-basic;
color: #222222;
padding: 60px 0 0 0;
margin: 0;
}
.sidebar {
.section {
h1 {
font-size: 1.5em;
}
p {
font-size: 0.9em;
margin: auto;
}
}
}
.accent1 {
color: #B0B0B0 !important;
}
.accent2 {
color: #696969 !important;
}
@mixin accent3-base {
color: $accent !important;
font-size: 1.5em;
}
.accent3 {
@include accent3-base;
font-family: $header-fonts !important;
}
.accent3-title {
@include accent3-base;
font-family: $title-fonts !important;
}
.accent4 {
color: $header-color !important;
}
<nav class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="https://samwhited.com">S<span class="swoffset">W</span></a>
<r:hide>Unfortunately, we can't use the r:navigation tag because of the about drop-down and icons.</r:hide>
<ul class="nav">
<li <r:if_path matches="^$">class="active"</r:if_path>><a href="/"><i class="icon-home icon-white"></i>Home</a></li>
<li <r:if_path matches="^/acting">class="active"</r:if_path>><a href="/acting/"><i class="icon-film icon-white"></i>Acting</a></li>
<li <r:if_path matches="^/photography">class="active"</r:if_path>><a href="/photography/"><i class="icon-camera icon-white"></i>Photography</a></li>
<li <r:if_path matches="^/projects">class="active"</r:if_path>><a href="/projects/"><i class="icon-check icon-white"></i>Projects</a></li>
<li <r:if_path matches="^/resume">class="active"</r:if_path>><a href="/resume/"><i class="icon-file icon-white"></i>R&eacute;sum&eacute;</a></li>
<li class="dropdown<r:if_path matches="^/about"> active</r:if_path>" id="#about">
<a href="/about/" class="dropdown-toggle" data-toggle="dropdown" data-target="#about"><i class="icon-info-sign icon-white"></i>About<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/about/site/">This Site</a></li>
<li><a href="/about/academics/">Academics</a></li>
<li class="divider"></li>
<li><a href="/about/">About</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>SamWhited.com &mdash; <r:title /></title>
<r:stylesheet slug="bootstrap.min.css" as="link" media="all"/>
<r:stylesheet slug="modern.scss" as="link" media="all"/>
<r:stylesheet slug="bootstrap-responsive.min.css" as="link" media="all"/>
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" type="image/x-icon" href="http://samwhited.com/favicon.ico"/>
<link rel="icon" type="image/png" href="/favicon.png"/>
<link rel="alternate" type="application/rss+xml" href="http://blog.samwhited.com/feeds/posts/default" title="Blog Feed"/>
<script type="text/javascript" src="https://use.typekit.com/hmm6mfe.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript" src="https://www.google.com/jsapi?key=ABQIAAAA0utOmj7gurfEdUcyQWSChxQUuGU_IvsHyBaPsraZQgiqHK01VRQNlZ61SKDYNOzxCpuCpj73mFUTmA"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<r:if_content part="head">
<r:content part="head"/>
</r:if_content>
</head>
<body>
<div class="container-fluid main-container">
<div class="row-fluid">
<div class="span3">
<r:snippet name="navigation" />
<div class="well sidebar-nav">
<r:snippet name="sidebar" />
</div>
</div>
<div class="span9">
<r:if_content part="hero">
<header class="header hero-unit">
<r:content part="hero"/>
</header>
</r:if_content>
<r:content/>
</div>
</div>
</div>
<r:javascript slug="bootstrap.min.js" as="link" />
<script type="text/javascript">$(function() {$('.dropdown-toggle').dropdown();$('.modal').modal({show:false});});</script>
</body>
</html>
<ul class="nav nav-list">
<li class="nav-header">Bio</li>
<li><r:snippet name="bio" /></li>
<li class="nav-header">Links</li>
<r:snippet name="links" />
<li class="nav-header">Connect
<ul class="thumbnails">
<li class="span1"><a href="https://twitter.com/SamWhited" class="thumbnail" id="icon-twitter"><r:assets:image name="TwitterLevel1" alt="Twitter" width="50" height="50"/></a></li>
<li class="span1"><a href="https://plus.google.com/110263464647380428824" class="thumbnail" id="icon-googleplus"><r:assets:image name="GP3Level2" alt="Google+" width="50" height="50"/></a></li>
<li class="span1"><a href="https://www.linkedin.com/in/samwhited" class="thumbnail" id="icon-linkedin"><r:assets:image name="LinkedInLevel1" alt="LinkedIn" width="50" height="50"/></a></li>
<li class="span1"><a href="http://www.flickr.com/photos/samwhited/" class="thumbnail" id="icon-flickr"><r:assets:image name="FlickrLevel1" alt="Flickr" width="50" height="50"/></a></li>
<li class="span1"><a type="application/rss+xml" href="http://blog.samwhited.com/feeds/posts/default" class="thumbnail" id="icon-feed"><r:assets:image name="FeedLevel1" alt="Feed" width="50" height="50"/></a></li>
</ul></li>
</ul>
<r:if_content part="sidebar">
<r:content part="sidebar"/>
</r:if_content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment