Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created March 20, 2012 20:31
Show Gist options
  • Select an option

  • Save billrobbins/2140991 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/2140991 to your computer and use it in GitHub Desktop.
Bottega Border CSS
/*
Theme Name: Bottega
Description: A great theme for your restaurant.
Author: Organized Themes
Author URI: http://www.organizedthemes.com
Theme URI: http://www.organizedthemes.com/bottega
Version: 2.0.1
Tags: Restaurant, Control Panel, Custom Post Types, Custom Widgets
License: GNU General Public License
License URI: http://www.opensource.org
*/
/* Licensed under GNU General Public License. Learn more at www.opensource.org */
/* Table of Contents
1. Reset
2. Global Styles: (body, links, wrap, and floats
3. Type: Fonts and Sizes for all elements
4. Header Elements: Logo and navigation
5. Home: Elements specific to the home page
6. Pages: These elements are related to the main page areas.
7. Widgets: Design of the widgets
8. Footer: The appearance of the footer area, text and links
9. Comments: The design of the comments area
10. WP Essentials: This area deals with images, previous/next links and pagination
*/
/* @group Reset & Responsive Set-Up */
/* Eric Meyer's Reset Reloaded */html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent;}body {line-height: 1;}ol, ul {list-style: none;}blockquote, q {quotes: none;}:focus {outline: 0;}ins {text-decoration: none;}del {text-decoration: line-through;}table {border-collapse: collapse;border-spacing: 0;}
html {
height: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
min-height: 100%;
-webkit-font-smoothing:antialiased;
font-smoothing:antialiased;
text-rendering:optimizeLegibility;
}
/* @end */
/* @group Type */
/* Define Fonts */
h1, h2, h3, h4, h5, h6 {
font-family: "Lucida Grande", Lucida, Verdana, sans-serif;
}
p, li, ol, ul, span, div, label, legend, form, fieldset, input, ul li, ol, li {
font: 16px/1.2 "Lucida Grande", Lucida, Verdana, sans-serif;
}
h1 { font-size: 36px; line-height: 1; margin-bottom: 8px; }
h2 { font-size: 24px; line-height: 1; margin-bottom: 12px; }
h3 { font-size: 20px; line-height: 1; margin-bottom: 12px; }
h4 { font-size: 18px; line-height: 1; margin-bottom: 20px; }
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img { margin: 0;}
p { margin: 0 0 24px; padding-bottom: 5px; }
p img.left { float: left; margin: 24px 24px 24px 0; padding: 0; }
p img.right { float: right; margin: 24px 0 24px 24px; }
strong { font-weight: bold; }
em,dfn { font-style: italic; }
dfn { font-weight: bold; }
sup, sub { line-height: 0; }
abbr,
acronym { border-bottom: 1px dotted #666; }
address { margin: 0 0 24px; font-style: italic; }
del { color:#666; }
li ul,
li ol { margin: 0 24px; }
ul, ol { margin: 0 24px 24px; }
ul { list-style-type: disc; }
ol { list-style-type: decimal; }
dl { margin: 0 0 24px; }
dl dt { font-weight: bold; }
dd { margin-left: 24px;}
blockquote p {
padding: 20px;
background-color: #e5e5e5;
font-style: italic;
border: 1px solid #d0d0d0;
text-shadow: 1px 1px 1px #ffffff;
margin: 0 30px 20px;
}
.emphasis {
padding-top: 10px;
padding-bottom: 10px;
margin-left: 10px;
padding-left: 10px;
width: 200px;
font-size: 24px;
color: #2b76ba;
border-left: 3px solid #2b76ba;
float: right;
display: inline;
}
/* @end */
/* @group Global */
body { background: #555658; }
a, a:visited { color: #2b76ba; text-decoration: none; }
a:hover { color: #111; }
.left { float: left; }
.right { float: right; }
.clear { clear: both; }
.clearfix:after { content: "."; display: block; clear: both; margin: 0; padding: 0; height: 0; visibility: hidden; }
* html .clearfix { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
.clearfix { height: 1%; }
.fade:hover {opacity: .7;}
#wrap {
width: 960px;
margin: 30px auto;
position: relative;
background-color: #fff;
-webkit-box-shadow: 0px 1px 10px #000;
-moz-box-shadow: 0px 1px 10px #000;
box-shadow: 0px 1px 10px #000;
}
.shadow {
-webkit-box-shadow: 0px 1px 2px #555;
-moz-box-shadow: 0px 1px 2px #555;
box-shadow: 0px 1px 2px #555;
}
a,
a:hover,
a:visited {
transition: all .4s;
-moz-transition: all .4s;
-webkit-transition: all .4s;
-o-transition: all .4s;
}
.one-half {
width: 45%;
}
a.button,
.button,
input[type="reset"],
input[type="submit"] {
border: none;
color: #fff;
cursor: pointer;
background-color: #2b76ba;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(43, 118, 186)), to(rgb(13, 51, 85)));
background-image: -webkit-linear-gradient(top, rgb(43, 118, 186), rgb(13, 51, 85));
background-image: -moz-linear-gradient(top, rgb(43, 118, 186), rgb(13, 51, 85));
background-image: -o-linear-gradient(top, rgb(43, 118, 186), rgb(13, 51, 85));
background-image: -ms-linear-gradient(top, rgb(43, 118, 186), rgb(13, 51, 85));
background-image: linear-gradient(top, rgb(43, 118, 186), rgb(13, 51, 85));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#2b76ba', EndColorStr='#0d3355');
padding: 3px 10px;
-moz-box-shadow: 0 1px 2px black;
-webkit-box-shadow: 0 1px 2px black;
box-shadow: 0 1px 2px black;
}
a:hover.button,
input[type="reset"]:hover,
input[type="submit"]:hover {
background-color: #0d3355;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(13, 51, 85)), to(rgb(43, 118, 186)));
background-image: -webkit-linear-gradient(top, rgb(13, 51, 85), rgb(43, 118, 186));
background-image: -moz-linear-gradient(top, rgb(13, 51, 85), rgb(43, 118, 186));
background-image: -o-linear-gradient(top, rgb(13, 51, 85), rgb(43, 118, 186));
background-image: -ms-linear-gradient(top, rgb(13, 51, 85), rgb(43, 118, 186));
background-image: linear-gradient(top, rgb(13, 51, 85), rgb(43, 118, 186));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#0d3355', EndColorStr='#2b76ba');
}
/* @end */
/* @group Header */
#header {
height: 99px;
background: url(images/header.jpg) repeat-x;
}
#logo {
position: absolute;
left: 17px;
z-index: 10;
}
#text-logo {
position: absolute;
left: 17px;
top: 20px;
z-index: 10;
}
#text-logo h1,
#text-logo p {
font-size: 50px;
text-shadow: #262526 3px 3px 3px;
}
#text-logo a,
#text-logo a:visited {
color: #fff;
}
/* @group Navigation */
#navigation {
float: right;
display: inline;
width: 500px;
margin-top: 47px;
position: relative;
z-index: 20;
}
#navigation ul {
float: right;
margin: 0;
}
/* @group Superfish Drop Downs--do not edit */
.menu, .menu * { margin: 0; padding: 0; list-style: none; }
.menu { line-height: 1.0; }
.menu ul { position: absolute; top: -999em; width: 10em; }
.menu ul li { width: 100%; }
.menu li:hover { visibility: inherit; }
.menu li { float: left; position: relative; }
.menu a { display: block; position: relative; }
.menu li:hover ul,
.menu li.sfHover ul { top: 2.5em; z-index: 99; }
ul.menu li:hover li ul,
ul.menu li.sfHover li ul{ top: -999em;}
.menu li:hover ul,
.menu li.sfHover ul { left: 0; top: 28px; z-index: 99; }
.menu a.sf-with-ul { padding-right: 2.25em; min-width: 1px; }
/* @end */
ul.menu li li:hover ul,
ul.menu li li.sfHover ul {
width: 160px;
left: 160px; /* match ul width */
top: -10px;
}
ul.menu li li li:hover ul,
ul.menu li li li.sfHover ul {
left: 160px; /* match ul width */
top: 0;
}
#navigation li {
float: left;
list-style: none;
}
.menu a,
.menu a:visited {
color: #fff;
display: block;
font-size: 16px;
padding: 6px 9px;
font-weight: bold;
font-style: normal;
margin: 0;
}
.menu li {
float: left;
margin: 0px;
padding: 0px;
color: #fff;
font-weight: bold;
}
.menu a:hover,
.current-menu-item a {
color: #ccc;
}
ul.sub-menu li.current-menu-item a {
background-image: none;
border: none;
}
ul.sub-menu li.current-menu-item a,
ul.sub-menu li.current-menu-item a:visited {
color: #EEE8AA;
background: transparent;
}
.current-menu-item .sub-menu li a,
.current-category-ancestor .sub-menu li a {
background: transparent;
}
.menu li ul {
width: 160px;
margin-left: 8px;
background-color: #EEE8AA;
-webkit-box-shadow: 0px 4px 15px rgba(0,0,0,0.8);
-moz-box-shadow: 0px 4px 15px rgba(0,0,0,0.8);
box-shadow: 0px 4px 15px rgba(0,0,0,0.8);
margin-top: -20px;
padding: 10px;
}
.menu li li a,
.menu li li a:visited {
color: #311500;
width: 140px;
float: none;
margin-left: 0;
margin-right: 0;
padding: 8px 9px 7px;
}
.menu li li a:hover {
color: #666600;
background: transparent;
background-image: none;
border: none;
padding: 8px 9px 7px;
}
.menu li ul li ul {
width: 140px;
margin-top: 20px;
margin-left: -30px;
}
.menu li li li {
color: #fff;
}
.menu a.sf-with-ul {
padding-right: 2.25em;
min-width: 1px;
}
/* @end */
/* @end */
/* @group Home */
/* @group Slider */
.nivoSlider {
position:absolute;
}
#slider img {
position:absolute;
top:0px;
left:0px;
display:none;
}
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
left:0px;
height:350px;
padding:0;
margin:0;
z-index:60;
display:none;
}
.nivoSlider {
border: 5px solid #fff;
}
.nivo-slice {
display:block;
position:absolute;
z-index:50;
width:950px;
height: 345px;
}
.nivo-caption {
visibility: hidden;
position:absolute;
left:0px;
bottom:0px;
background:#000;
color:#fff;
opacity:0.8;
width:960px;
height:350px;
z-index:89;
}
.nivo-caption p {
padding:5px;
margin:0;
}
.nivo-caption a {
display:inline !important;
}
.nivo-html-caption {
display:none;
}
.nivo-directionNav a {
position:absolute;
top:45%;
z-index:99;
cursor:pointer;
}
.nivo-prevNav {
left:0px;
}
.nivo-nextNav {
right:0px;
}
.nivo-controlNav a {
position:relative;
z-index:99;
cursor:pointer;
}
.nivo-controlNav a.active {
font-weight:bold;
}
#slider {
position:relative;
z-index: 1;
background:#000 url(images/loader-small-snake.gif) no-repeat 50% 50%;
width:950px;
height:340px;
}
#slider img {
position:absolute;
top:0px;
left:0px;
display:none;
}
#slider img {
border: 5px solid #fff;
}
.nivo-controlNav {
position:absolute;
right: 5px;
bottom: 10px;
z-index: 100;
}
.nivo-controlNav a {
display:block;
width: 14px;
height: 15px;
background: url(images/bullets.png) no-repeat center 0;
text-indent:-9999px;
border:0;
margin-right:3px;
float:left;
}
.nivo-controlNav a.active {
background-position: center -19px;
}
/* @end */
#slideshow {
position: relative;
z-index: 1;
width: 960px;
height: 345px;
}
#page #slider img {
max-width: 100%;
height: 345px;
}
#features {
height: 190px;
margin-top: 10px;
margin-left: 3px;
}
.boxgrid {
width: 177px;
height: 178px;
float:left;
overflow: hidden;
position: relative;
display: inline;
margin-left: 7px;
margin-right: 7px;
z-index: 1;
}
.boxgrid img {
position: absolute;
top: 0;
left: 0;
border: 0;
}
.boxgrid p {
padding: 0 10px;
color: #fff;
}
.boxgrid h4 {
padding: 5px;
background: transparent;
}
.boxcaption {
float: left;
position: absolute;
background: #666600;
height: 178px;
width: 100%;
opacity: .8;
/* For IE 5-7 */
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
/* For IE 8 */
-MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}
.captionfull .boxcaption {
top: 178px;
left: 0;
}
.boxcaption a,
.boxcaption a:visited {
color: #fff;
padding-bottom: 180px;
padding-right: 170px;
text-shadow: #000 2px 2px 3px;
}
.boxcaption a:hover {
color: #ccc;
}
#home-middle {
padding: 10px;
margin-right: -17px;
}
#home-middle .widget {
float: left;
width: 300px;
margin-bottom: 20px;
margin-right: 19px;
}
#home-middle .facebook-widget {
background-color: #fff;
padding-top: 2px;
padding-bottom: 28px;
}
/* @end */
/* @group Page Styles */
#sidebar {
width: 300px;
padding: 10px;
overflow: hidden;
background-color: #e7e7e7;
}
.page-left {
float: left;
display: inline;
}
.page-right {
float: right;
display: inline;
}
#content {
width: 610px;
padding: 10px;
}
#page-full {
padding: 10px;
}
.post-heading {
padding: 5px;
position: relative;
z-index: 5;
}
.post-heading h1 {
margin-top: 0;
margin-bottom: 0px;
}
.date {
left: 5px;
z-index: 0;
font-size: 12px;
}
.comment-number {
font-size: 12px;
}
.attachment-header-image {
float: right;
}
#menu {
padding: 10px;
}
h4 {
font-size: 20px;
background-color: #eee;
color: #373637;
padding-top: 3px;
padding-bottom: 3px;
}
.menu-list {
margin-bottom: 20px;
}
.menu-thumbnail {
float: left;
display: inline;
margin-right: 15px;
}
.menu-description p {
font-size: 14px;
color: #373637;
margin-bottom: 0;
}
.menu-price {
float: right;
color: #373637;
font-size: 24px;
}
p.post-meta {
font-size: 12px;
margin-bottom: 5px;
}
.video {
width: 100%;
margin-bottom: 20px;
}
h1.post-title,
h2.post-title {
font-size: 36px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.post-image {
margin-bottom: 20px;
}
.post {
margin-bottom: 46px;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
}
/* @end */
/* @group Widgets */
#sidebar p {
margin-bottom: 5px;
font-size: 14px;
}
#sidebar .widget {
margin-bottom: 20px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#sidebar h3.widgettitle {
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
border-bottom: 1px solid #ccc;
padding-bottom: 2px;
}
#home-middle .widget.organizedthemes_contact {
width: 609px;
background-color: #eee;
padding: 5px;
overflow: hidden;
-webkit-box-shadow: 0px 1px 2px #555;
-moz-box-shadow: 0px 1px 2px #555;
box-shadow: 0px 1px 2px #555;
}
#address-left {
display: inline;
float: left;
width: 271px;
}
#address-left h3 {
font-size: 30px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
#address-left ul {
margin-left: 0;
margin-right: 0;
}
#address-left li {
font-size: 14px;
list-style: none;
margin-left: 0;
margin-bottom: 1px;
}
#address-left li.hours {
margin-left: 15px;
}
ul.address {
margin-bottom: 14px;
}
ul.times {
margin-bottom: 0;
}
#address-right {
display: inline;
float: right;
width: 300px;
height: 280px;
overflow: hidden;
border: 1px solid #c9c9c9;
}
#sidebar #address-left {
margin-bottom: 20px;
}
.textwidget {
padding: 5px;
}
.ot-facebook {
background-color: #fff;
}
.widget_ot_video iframe,
.widget_ot_video,
.widget_ot_video embed,
.widget_ot_video object {
width: 300px;
height: 200px;
}
/* @end */
/* @group Comments */
h3#comments-title {
margin-bottom: 30px;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
}
p.nocomments {
margin-top: 20px;
}
ol.commentlist {
list-style: none;
margin: 0;
}
ol.commentlist ul.children {
list-style: none;
margin-right: 0;
padding-left: 15px;
border-left: 3px solid #ebebeb;
}
.comment-container {
margin-bottom: 30px;
position: relative;
}
img.avatar {
float: left;
margin-right: 10px;
margin-bottom: 10px;
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.41);
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.41);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.41);
}
.comment-container p {
font-size: 14px;
}
p.comment-meta {
background-color: #ebebeb;
line-height: 1;
padding: 3px;
font-size: 12px;
margin-bottom: 10px;
}
span.comment-author {
font-size: 16px;
margin-right: 10px;
}
a.comment-reply-link {
position: absolute;
top: 3px;
right: 6px;
}
p.moderation {
text-align: center;
padding: 5px;
border: 1px solid #ccc;
margin: 15px 20px 15px 110px;
}
#comments input#author,
#comments input#email,
#comments input#url,
#comments textarea#comment {
border: 1px solid #888;
color: #888;
padding: 5px;
width: 99%;
}
#comments input:focus#author,
#comments input:focus#email,
#comments input:focus#url,
#comments textarea:focus#comment {
border: 1px solid #000;
color: #000;
}
p.form-allowed-tags {
display: none;
}
/* @end */
/* @group Footer */
#footer {
background-color: #888;
padding: 10px;
margin-top: 0;
}
#footer p {
margin-bottom: 0px;
font-size: 12px;
padding: 0;
}
#footer a,
#footer a:visited,
#footer p {
color: #fff;
text-shadow: 0 1px 2px black;
}
#footer-left {
float: left;
display: inline;
padding-top: 3px;
}
#footer-contact {
float: right;
display: inline;
margin-right: 30px;
padding-top: 6px;
}
#footer-contact p {
font-size: 20px;
font-style: italic;
}
#footer-right {
float: right;
display: inline;
text-align: right;
position: relative;
padding-top: 1px;
}
#footer-right a:hover {
opacity: .6;
}
/* @end */
/* @group WP Necessities & Paging */
.gallery img {
margin-left: 10px;
margin-bottom: 10px;
-webkit-box-shadow: 0px 1px 2px #555;
-moz-box-shadow: 0px 1px 2px #555;
box-shadow: 0px 1px 2px #555;
}
.paging {
position: relative;
}
span.page-numbers.current {
font-size: 22px;
position: relative;
top: 2px;
}
#page-links {
font-size: 22px;
position: relative;
}
#page-links a {
font-size: 16px;
position: relative;
top: -2px;
}
.paging a.prev {
margin-right: 40px;
}
.paging a.next {
margin-left: 40px;
}
.wp-caption img {
padding:5px;
background-color:#fff;
width: auto;
}
.wp-caption-text {
background-color:#fff;
color:#000;
text-align:center;
padding-top: 5px;
padding-bottom: 5px;
width: auto;
font-style: italic;
font-size: 11px;
}
img.centered {
display: block;
margin-left: auto;
margin-right: auto;
}
img.alignright {
padding: 5px;
margin: 0 0 2px 10px;
display: inline;
}
img.alignleft {
padding: 5px;
margin: 0 10px 2px 0;
display: inline;
}
.alignright {
float: right;
margin-left: 15px;
}
.alignleft {
float: left;
margin-right: 15px;
}
.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption {
text-align: center;
background-color: #eee;
padding: 10px 5px 0 5px;
margin-bottom: 5px;
-webkit-box-shadow: 0px 1px 2px #555;
-moz-box-shadow: 0px 1px 2px #555;
box-shadow: 0px 1px 2px #555;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption p.wp-caption-text {
font-size: 11px !important;
line-height: 17px;
padding: 4px 4px 5px;
margin: 0;
background: none;
}
/* @end */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment