homepage/source/albert/css/main.css

324 lines
5.9 KiB
CSS
Raw Normal View History

2013-02-17 21:02:02 +00:00
@import url(http://fonts.googleapis.com/css?family=PT+Sans);
@import url(http://fonts.googleapis.com/css?family=Elsie+Swash+Caps);
/*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */
html,
button,
input,
select,
textarea {
color: #222;
}
body {
font-size: 1em;
line-height: 1.4;
/*background-color: #eeeeee;*/
}
/*
* Remove text-shadow in selection highlight: h5bp.com/i
* These selection declarations have to be separate.
* Customize the background color to match your design.
*/
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
/*
* A better looking default horizontal rule
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
/*
* Remove the gap between images and the bottom of their containers: h5bp.com/i/440
*/
img {
vertical-align: middle;
}
/*
* Remove default fieldset styles.
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
}
/*
* Allow only vertical resizing of textareas.
*/
textarea {
resize: vertical;
}
/* ==========================================================================
Chrome Frame prompt
========================================================================== */
.chromeframe {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}
/* ==========================================================================
Author's custom styles
========================================================================== */
body {
width: 100%;
height: 100%;
background: url(../img/bg.png);
font-size: 100%;
}
section#main {
background-color: transparent;
background-image: url(bg.png);
text-align: center;
width: 90%;
height: 100%;
margin: auto auto;
font-family: 'PT Sans', sans-serif;
}
h1 {
font-size: 700%;
color: #222;
text-shadow: 0px 1px 3px #555;
}
h1:hover {
color: #1a1a1a;
}
#container {
background-color: #eee;
border-radius: 10px;
width: 600px;
margin: auto auto;
padding: 5px 30px;
text-align: left;
-moz-box-shadow: -1px 2px 2px 0px #aaa;
-webkit-box-shadow: -1px 2px 2px 0px #aaa;
box-shadow: -1px 2px 2px 0px #aaa;
padding-bottom: 20px;
}
#container p {
font-size: 120%;
color: #002F3F;
text-align: left;
}
#container img {
float:left;
margin-right: 20px;
}
footer {
margin-top: 50px;
text-align: center;
color: #222;
text-shadow: 0px 1px 1px #555;
font-weight: 100;
margin-bottom: 50px;
}
footer a:link, a:visited, a:active {
color: #222;
}
footer a:hover {
color: #111;
}
ul
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
ul li
{
background-image: url(../img/bullet.png);
background-size: 15px;
background-repeat: no-repeat;
background-position: -4px -1px;
padding-left: 18px;
}
/* ==========================================================================
Helper classes
========================================================================== */
/*
* Image replacement
*/
.ir {
background-color: transparent;
border: 0;
overflow: hidden;
/* IE 6/7 fallback */
*text-indent: -9999px;
}
.ir:before {
content: "";
display: block;
width: 0;
height: 150%;
}
/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
display: none !important;
visibility: hidden;
}
/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
* Extends the .visuallyhidden class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
visibility: hidden;
}
/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.clearfix:after {
clear: both;
}
/*
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.clearfix {
*zoom: 1;
}
/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
Theses examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (max-width: 320px) {
/* Style adjustments for viewports that meet the condition */
2013-06-16 06:29:48 +00:00
body {
2013-02-17 21:02:02 +00:00
width: 640px;
2013-06-16 06:29:48 +00:00
}
2013-02-17 21:02:02 +00:00
2013-06-16 06:29:48 +00:00
h1 {
2013-02-17 21:02:02 +00:00
font-size: 70px;
2013-06-16 06:29:48 +00:00
}
2013-02-17 21:02:02 +00:00
2013-06-16 06:29:48 +00:00
#container {
2013-02-17 21:02:02 +00:00
background-color: #eee;
border-radius: 10px;
width: 500px;
margin: auto auto;
padding: 5px 30px;
text-align: left;
-moz-box-shadow: -1px 2px 2px 0px #aaa;
-webkit-box-shadow: -1px 2px 2px 0px #aaa;
box-shadow: -1px 2px 2px 0px #aaa;
2013-06-16 06:29:48 +00:00
}
2013-02-17 21:02:02 +00:00
}