Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Pareek committed Dec 23, 2014
1 parent 524184e commit 18823c8
Show file tree
Hide file tree
Showing 14 changed files with 366 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
@@ -1,4 +1,9 @@
polymer-wordpress-theme
=======================
##Polymer
A Child Theme for Hybrid Core's Stargazer


###Credits
- Justin Tadlock for [Stargazer](https://wordpress.org/themes/stargazer)
- Ruairi Phelan for [Kepler](https://wordpress.org/themes/kepler)
- [Midhun Harikumar](http://midhunhk.blogspot.in/2014/07/android-l-release-artwork.html) for the header images, used under CC by 4.0

Polymer: A child theme for Stargazer WordPress theme
4 changes: 4 additions & 0 deletions README.md~
@@ -0,0 +1,4 @@
polymer-wordpress-theme
=======================

Polymer: A child theme for Stargazer WordPress theme
12 changes: 12 additions & 0 deletions css/admin-custom-header.css
@@ -0,0 +1,12 @@
#site-title { font-weight: 300; }

#site-title {
font-size: 2em; /* Intentionally using "em" here since the root element is different. */
font-weight: 400;
font-family: 'Roboto Condensed', serif;
}

#site-description {
font-family: 'Roboto Condensed', serif;
font-style: none;
}
10 changes: 10 additions & 0 deletions css/editor-style.css
@@ -0,0 +1,10 @@
h1,
h2,
h3,
h4,
h5,
h6 { font-weight: 300; }

a {
color: #349F8C !important;
}
102 changes: 102 additions & 0 deletions functions.php
@@ -0,0 +1,102 @@
<?php
/**
* This is child themes functions.php file. All modifications should be made in this file.
*
* All style changes should be in child themes style.css file.
*
* @package Polymer
* @version 0.1
* @author Gaurav Pareek <grv@magikpress.com>
* @copyright Copyright (c) 2014, Gaurav Pareek
* @author Ruairi Phelan <rory@cyberdesigncraft.com>
* @copyright Copyright (c) 2013, Ruairi Phelan
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2013, Justin Tadlock
* @link http://magikpress.com/themes/polymer
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

/* Adds the child theme setup function to the 'after_setup_theme' hook. */
add_action( 'after_setup_theme', 'polymer_theme_setup', 11 );

/**
* Setup function. All child themes should run their setup within this function. The idea is to add/remove
* filters and actions after the parent theme has been set up. This function provides you that opportunity.
*
* @since 1.0
* @access public
* @return void
*/
function polymer_theme_setup() {

/* Change default background color. */
add_theme_support(
'custom-header',
array(
'default-image' => '',
'default-text-color' => '272727',
));

add_theme_support(
'custom-background',
array(
'default-color' => 'eeeeee',
'default-image' => '',
));


/**
* Un-Register default Parent Theme headers for the child theme.
* @since 0.1.1
*/
unregister_default_headers(
array( 'horizon', 'orange-burn', 'planets-blue', 'planet-burst', 'space-splatters' )
);

/*
* Registers default headers for the child theme.
* @since 0.1.0
* @link http://codex.wordpress.org/Function_Reference/register_default_headers
*/
register_default_headers(
array(
'material1' => array(
'url' => '%2$s/images/headers/material1.jpg',
'thumbnail_url' => '%2$s/images/headers/material1-thumb.jpg',
/* Translators: Header image description. */
'description' => __( 'Material1', 'polymer' )
),
'material2' => array(
'url' => '%2$s/images/headers/material2.jpg',
'thumbnail_url' => '%2$s/images/headers/material2-thumb.jpg',
/* Translators: Header image description. */
'description' => __( 'Material2', 'polymer' )
),
'material3' => array(
'url' => '%2$s/images/headers/material3.jpg',
'thumbnail_url' => '%2$s/images/headers/material3-thumb.jpg',
/* Translators: Header image description. */
'description' => __( 'Material3', 'polymer' )
)
)
);

/* Change primary color. */
add_filter( 'theme_mod_color_primary', 'polymer_primary_color' );

}

/**
* Change primary color
*
* @since 1.0
* @access public
* @param string $hex
* @return string
*/
function polymer_primary_color( $color ) {

return $color ? $color : '349F8C';

}
Binary file added images/headers/material1-thumb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/headers/material1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/headers/material2-thumb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/headers/material2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/headers/material3-thumb.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/headers/material3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions languages/polymer.pot
@@ -0,0 +1,35 @@
# Copyright (C) 2013 Ruairi Phelan
# This file is distributed under the GNU General Public License v2.0 or later.
# This file is distributed under the same license as the package.
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/\n"
"POT-Creation-Date: 2013-11-27 01:26:08+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

#. Theme Name of the plugin/theme
msgid "Polymer"
msgstr ""

#. Theme URI of the plugin/theme
msgid "http://magikpress.com/themes/polymer/"
msgstr ""

#. Description of the plugin/theme
msgid "A Child Theme for Stargazer inpired by material design"
msgstr ""

#. Author of the plugin/theme
msgid "Gaurav Pareek"
msgstr ""

#. Author URI of the plugin/theme
msgid "http://grv.rocks"
msgstr ""

Binary file added screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
195 changes: 195 additions & 0 deletions style.css
@@ -0,0 +1,195 @@
/**
* Theme Name: Polymer
* Theme URI: http://magikpress.com/themes/polymer
* Description: A Child Theme for Stargazer inpired by material design
* Version: 0.1
* Author: Gaurav Pareek
* Author URI: http://grv.rocks
* Text Domain: polymer
* Tags: one-column, two-columns, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, white, light
* License: GNU General Public License v2.0 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Template: stargazer
*/

/* Based on Kepler theme https://wordpress.org/themes/kepler */
/* Thanks to Justin Tadlock, Sami Keijonen, and Ruairi Phelan. I have literally tweaked their code, even this sentence */


.font-headlines,
h1,
h2,
h3,
h4,
h5,
h6,
#site-title {
font-weight: 300;
font-family: 'Roboto Condensed', 'Opens Sans', sans-serif;
}

.font-primary,
body,
input,
textarea,
.label-checkbox,
.label-radio,
.required,
#site-description,
#reply-title small {
font-family: 'Roboto Condensed', sans-serif;
font-weight: 300;
}

.widget-title > .wrap,
#reply-title > .wrap,
#comments-number > .wrap { font-weight: 400; }

/* Container color. */
#container > .wrap {
background: #fff;
background: rgba( 255,255,255,0.95 );
}

#site-title {
font-size: 2rem;
font-weight: 400;
}

#site-description {
font-family: 'Roboto Condensed', serif;
font-style: none;
}

.header-image {
box-shadow: 0px 6px 15px -6px rgba(0, 0, 0, 0.5);
}

.entry-content a {
color: #349F8C;
}

.widget a {
color: #349F8C;
}

/* Primary menu color in all screen aizes. */
#menu-primary,
#menu-primary .search-form > div,
#footer,
.audio-shortcode-wrap,
.media-shortcode-extend .media-info,
.media-info-toggle,
.entry-content .media-info-toggle,
.media-info-toggle:hover,
.media-info-toggle:focus,
.wp-audio-shortcode.mejs-container,
.mejs-controls,
.mejs-volume-button .mejs-volume-slider,
.mejs-overlay-play .mejs-overlay-button:after,
.mejs-time-rail .mejs-time-float,
.wp-playlist-dark {
background: #349F8C;
color: #fafafa;
box-shadow: 0 3px 12px 0px rgba(0,0,0,0.35);
}

/* Primary and secondary menu styles in narrow screen. */
@media screen and (max-width: 799px) {

.custom-background #container > .wrap {
margin-top: 0;
}

#menu-primary li a,
#menu-secondary li a,
#menu-secondary .menu-toggle button {
background: #349F8C;
border-color: #349F8C;
}

#menu-primary li a:hover,
#menu-primary li a:active,
#menu-primary li a:focus,
#menu-secondary li a:hover,
#menu-secondary li a:active,
#menu-secondary li a:focus {
background: #2F8F7E;
}

#menu-primary li.current-menu-item > a,
#menu-secondary li.current-menu-item > a {
background: #349F8C;
}

}

/* Primary and secondary menu styles in larger screens. */
@media only screen and (min-width: 800px) {


#menu-primary ul ul {
top: 51px;
}
#menu-secondary ul ul {
top: 40px;
}

#menu-primary ul ul li a:hover,
#menu-secondary ul ul li a:hover,
#menu-primary ul ul li a:focus,
#menu-secondary ul ul li a:focus {
background-color: #2f8f7e;
}


#menu-primary li li a,
#menu-secondary li li a,
#menu-primary .search-form > div {
background: #349F8C;
}

#menu-primary li li a,
#menu-secondary li li a {
border-top-color: #349F8C;
}

#menu-primary li li a:hover,
#menu-secondary li li a:hover {
background: #349F8C;
}

.menu li > ul::before {
border-bottom-color: #349F8C;
}
.ltr .menu li li > ul::before {
border-right-color: #349F8C;
}
.rtl .menu li li > ul::before {
border-left-color: #349F8C;
}

}

.display-header-text header#header {
box-shadow: 0 0px 16px 0px rgba(0,0,0,0.1);
}

#main {
box-shadow: 0 5px 16px 0px rgba(0,0,0,0.1);
font-weight: 300;
}


#menu-social li a::before {
position:relative;
display:inline-block;
text-decoration:none;
padding: 4px 4px 2px;
background: #fff;
border-radius: 2px;
}

#menu-social li a:hover:before {
box-shadow: 0 0 5px 0 rgba(0,0,0,0.3);
}

0 comments on commit 18823c8

Please sign in to comment.