Last active
January 1, 2016 03:49
-
-
Save marcphilipp/8088226 to your computer and use it in GitHub Desktop.
Twenty Twelve Child Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Twenty Twelve Child by PabstWP | |
Theme URI: http://pabstwp.de/ | |
Author: Matthias Pabst | |
Author URI: http://pabstwp.de/ | |
Description: Child Theme for WordPress Standard Theme Twenty Twelve with additional menus and footer widget areas. | |
Version: 1.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, footer-sidebar | |
Text Domain: twentytwelvechild | |
Template: twentytwelve | |
This theme, like WordPress, is licensed under the GPL. | |
Use it to make something cool, have fun, and share what you've learned with others. | |
*/ | |
@import url("../twentytwelve/style.css"); | |
/* Header & Footer Navigation Menu */ | |
.extra-navigation { | |
margin-bottom: 1em; | |
text-align: center; | |
} | |
.extra-navigation li { | |
margin-top: 24px; | |
margin-top: 0.8rem; | |
font-size: 12px; | |
font-size: 0.857142857rem; | |
line-height: 1.42857143; | |
} | |
.extra-navigation a { | |
color: #6a6a6a; | |
} | |
.extra-navigation a:hover { | |
color: #000; | |
} | |
.extra-navigation li a, | |
.extra-navigation li { | |
display: inline-block; | |
text-decoration: none; | |
padding: 0 0.3em; | |
} | |
.extra-navigation li ul { | |
display: none; | |
} | |
/* Site Info */ | |
.site-info { | |
text-align: center; | |
} | |
/* =Media queries | |
-------------------------------------------------------------- */ | |
/* Minimum width of 600 pixels. */ | |
@media screen and (min-width: 600px) { | |
/* Header & Footer Navigation */ | |
#header-navigation { | |
float: right; | |
} | |
#footer-navigation { | |
display: block; | |
margin-bottom: 2em; | |
} | |
#footer-navigation ul.nav-menu { | |
text-align: center; | |
} | |
#footer-navigation ul.nav-menu, | |
#footer-navigation div.nav-menu > ul { | |
border-bottom: 1px solid #ededed; | |
border-top: 1px solid #ededed; | |
} | |
.extra-navigation ul.nav-menu, | |
.extra-navigation div.nav-menu > ul { | |
display: inline-block !important; | |
text-align: left; | |
width: 100%; | |
} | |
.extra-navigation ul { | |
margin: 0; | |
text-indent: 0; | |
} | |
.extra-navigation li a, | |
.extra-navigation li { | |
display: inline-block; | |
text-decoration: none; | |
} | |
.extra-navigation li a { | |
border-bottom: 0; | |
color: #6a6a6a; | |
line-height: 3.692307692; | |
text-transform: uppercase; | |
} | |
.extra-navigation li a:hover { | |
color: #000; | |
} | |
.extra-navigation li { | |
margin: 0 40px 0 0; | |
margin: 0 1.0rem 0 0; | |
position: relative; | |
} | |
.extra-navigation li ul { | |
display: none; | |
} | |
.extra-navigation .current-menu-item > a, | |
.extra-navigation .current-menu-ancestor > a, | |
.extra-navigation .current_page_item > a, | |
.extra-navigation .current_page_ancestor > a { | |
color: #636363; | |
font-weight: bold; | |
} | |
/* Footer Widget Areas */ | |
footer[role="contentinfo"] { | |
border-top: 1px solid #ccc; | |
} | |
#supplementary { | |
display: block; | |
overflow: hidden; | |
margin-bottom: 5px; | |
background-color: #fff; | |
} | |
/* One Footer Widget Area */ | |
#supplementary.one .widget-area { | |
float: left; | |
margin-right: 0; | |
width: 100%; | |
} | |
/* Two Footer Widget Areas */ | |
#supplementary.two .widget-area { | |
float: left; | |
margin-right: 3.0612244%; | |
width: 48.4693877%; | |
} | |
#supplementary.two #second { | |
margin-right: 0; | |
} | |
/* Three Footer Widget Areas */ | |
#supplementary.three .widget-area { | |
float: left; | |
margin-right: 4.0816%; | |
width: 30.6122448%; | |
} | |
#supplementary.three #third { | |
margin-right: 0; | |
} | |
/* Four Footer Widget Areas */ | |
#supplementary.four .widget-area { | |
float: left; | |
margin-right: 2.85714285%; | |
width: 22.85714285%; | |
} | |
#supplementary.four #fourth { | |
margin-right: 0; | |
} | |
/* Frontpage Template */ | |
.template-front-page #colophon .widget-area { | |
clear: none; | |
border-top: none; | |
} | |
.template-front-page #colophon .widget-area .widget { | |
width: auto; | |
} | |
.template-front-page #colophon .widget-area .widget li { | |
list-style-type: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment