Skip to content

Instantly share code, notes, and snippets.

@theonicolaou
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theonicolaou/a2a4cb8a0dbbb99604f5 to your computer and use it in GitHub Desktop.
Save theonicolaou/a2a4cb8a0dbbb99604f5 to your computer and use it in GitHub Desktop.
Original CSS file for my website, www.theo-nicolaou.co.uk
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; display: inline; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
body {
font-size: 0.9em;
font-family: Arial, Helvetica, sans-serif;
color: #000000;
margin: 0px;
}
a {
color: #000066;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
a:visited {
text-decoration: none;
}
p {
padding: 2px 0px 8px 0px;
margin: 0px;
}
ul {
margin-top: 0px;
margin-bottom: 4px;
}
h1 {
font-size: 1.5em;
font-weight: bold;
margin: 10px 0px 10px 0px;
padding: 0px 0px 5px 0px;
border-bottom: dashed 1px #666666;
}
h2 {
font-size: 1.4em;
font-weight: bold;
margin: 10px 0px 10px 0px;
padding: 0px 0px 5px 0px;
border-bottom: dashed 1px #666666;
}
h3 {
margin-bottom: 0px;
}
label {
font-family: Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #666666;
font-weight: bold;
padding: 0px;
margin: 0px 10px 0px 0px;
vertical-align: top;
text-align: right;
}
input
{
width: 34.444444%; /*was 186px: 186 / 540 (width of form) */
border: 1px solid #666666;
}
textarea
{
border: 0.1em solid #666666;
height: 155px;
width: 34.444444%; /*was 186px: 186 / 540 (width of form)*/
}
input.button {
width: auto;
color: #FFFFFF;
font-weight: bold;
background-color: #000000;
padding: 4px 6px;
text-align: center;
}
form, form ul {
width: 100%; /*was 540px */
margin: 0px;
padding: 0px;
}
.form li {
list-style: none;
margin: 15px 0px 0px 0px;
text-align: right;
width: 65.853659%; /* 820 - 540 = 280. 100% - ((280 / 820) * 100) = 65.853659 */
}
.clearit {
clear: both;
padding: 0px;
margin: 0px;
}
.spacer {
font-size: 0em;
height: 7px;
clear: both;
}
.doublespacer {
font-size: 0em;
height: 14px;
clear: both;
}
.floatleft {
float: left;
}
.floatright {
float: right;
}
.floatleft-rightmargin10 {
float: left;
margin: 0px 10px 0px 0px;
}
.aligncenter {
text-align: center;
}
.bottommargin10 {
margin: 0px 0px 10px 0px;
}
.rightmargin5 {
margin: 0px 5px 0px 0px;
}
.fullwidth {
width: 100%;
}
.zeroMP {
margin: 0px;
padding: 0px;
}
.greyline {
border-bottom: solid 1px #DDDDDD;
margin: 10px 0px 10px 0px;
}
.darkgreyline {
border-bottom: solid 1px #A4A2A2;
margin: 10px 0px 10px 0px;
}
#wrapper {
width: 56.8%; /* was 850px */
text-align: center;
margin: 5px auto;
padding: 0px;
border-style: solid;
border-width: 1px;
border-color: #E2E2E2;
}
header {
margin: 0px;
text-align: left;
}
/* styles to hide header image in reduced widths */
#wrapper header {
overflow: hidden;
}
#wrapper header img {
display: block;
max-width: auto;
}
#wrapper header nav {
margin: 0px;
padding: 0px;
text-align: center;
border-bottom-style: solid;
border-bottom-width: 1px;
border-bottom-color: #E2E2E2;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #E2E2E2;
color: #666666;
font-size: 1.1em;
display: block;
}
#wrapper header nav ul{
list-style: none;
border: none;
padding: 0px;
margin: 0px;
}
#wrapper header nav li {
display: inline;
margin: 0px 75px 0px 0px;
padding: 1.1764706%; /*was 10px: 10 / 850 */
}
#wrapper header nav li a {
text-decoration: none;
color: #666666;
padding: 1.1764706%; /*was 10px: 10 / 850 */
}
#wrapper header nav li a:hover {
text-decoration: underline;
color: #666666;
padding: 1.1764706%; /*was 10px: 10 / 850 */
}
#wrapper header nav .sel {
font-weight: bold;
line-height: 35px;
padding: 1.1764706%; /*was 10px: 10 / 850 */
color: #000000;
}
nav#breadcrumb {
margin: 0px 0px 13px 0px;
padding: 4px;
border-style: solid;
border-width: 1px;
border-color: #CCCCCC;
}
nav#breadcrumb ul{
margin: 0px;
padding: 0px;
list-style-type: none;
text-align: left;
color: #000066;
}
nav#breadcrumb li {
display: inline;
margin: 0px;
padding: 0px;
font-weight:bold;
color: #333333;
font-size: 0.9em;
}
nav#breadcrumb li a:link,
nav#breadcrumb li a:visited {
display: inline;
margin: 0px;
padding: 0px;
text-decoration: none;
font-weight: normal;
color: #666666;
}
nav#breadcrumb li a:hover {
text-decoration: underline;
}
section#contentcolumn {
text-align: left;
padding: 10px 1.7647059% 15px 1.7647059%; /*was 10px 15px 15px 15px: 15 / 850 */
}
footer {
clear: both;
border-top-style: solid;
border-top-width: 1px;
border-top-color: #E2E2E2;
text-align: right;
font-size: 0.75em;
padding: 4px 8px 6px 0px;
margin: 0px;
color: #666666;
height: 10px;
}
.projectlistitem-PELT {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/PELT.jpg);
background-repeat: no-repeat;
background-position: 97.9% 0px; /*was 750px */
}
.projectlistitem-CBF {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/CBF.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 650px */
}
.projectlistitem-UKC {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/UKC.jpg);
background-repeat: no-repeat;
background-position: 99.8% 0px;/*was 730px */
}
.projectlistitem-DR {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/DR.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 648px */
}
.projectlistitem-SP {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/SP.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 648px */
}
.projectlistitem-TDG {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/TDG.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 665px */
}
.projectlistitem-BPS {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/BPS.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 648px */
}
.projectlistitem-SS {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/SS.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 648px */
}
.projectlistitem-CAP {
width: 99.390244%; /*was 815px: 815 / 820 (took off 30 padding total) */
float: left;
margin: 0px;
background-image: url(../images/watermarks/CAP.jpg);
background-repeat: no-repeat;
background-position: 100% 0px; /*was 648px */
}
article {
width: 48.780488%; /*was 400px: 400 / 820 */
}
article hgroup h1, article hgroup h2, article hgroup h3 {
list-style: none;
margin: 0px;
padding: 0px;
font-weight: normal;
font-size: 1.0em;
border: none;
width: 64.634146%; /*was 530px: 530 / 815 */
margin-left: 11.656442%; /*was 95px: 95 / 815 */
}
article hgroup a:link, article hgroup a:visited {
text-decoration: none;
}
article hgroup a:hover {
text-decoration: underline;
}
aside {
float: right;
margin: 0px 0px 10px 0px; /*change */
width: 48.04878%; /* 394 / 820 */
/* maybe width: 394px; to move aside over */
}
/* portfolio banner and thumbnails in aside */
.portfolio {
list-style: none;
display: inline;
text-align: center;
margin: 0px;
padding: 0px;
}
.portfolio li {
float: left;
margin: 5px 2.7918782% 5px 0%; /* was 5px 11px 5px 0px */
border-style: solid;
border-width: 1px;
border-color: #CCCCCC;
padding: 2px 0px 0px 0px;
text-align: center;
width: 30.964467%; /*was 122px: 122 / 394 */
}
/* is this needed? */
.portfolio li img {
margin: 0px;
}
.portfolio li:first-child {
clear: both;
}
.portfolio li:nth-child(3),
.portfolio li:nth-child(6),
.portfolio li:nth-child(9) {
margin-right: 0px;
}
/* is this needed? */
.portfolio li a:hover {
text-decoration: underline;
}
.new {
font-weight: bold;
color: #961920;
font-size: 1.1em;
margin: 0px 0px 0px 5px;
}
.fa-twitter, .fa-linkedin, .fa-github {
color: #666666;
font-size: 120%;
}
.fa-twitter:hover, .fa-linkedin:hover, .fa-github:hover {
color: #000000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment