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
| gmergebranch(){ | |
| currentbranch=`git rev-parse --abbrev-ref HEAD` | |
| echo $currentbranch | |
| if [ $currentbranch = "master" ]; then | |
| echo -e "\033[1;31mYou are on the master branch. This is for merging branches to master\e[0m" | |
| else | |
| echo -e "\033[0;36mYou are on the $currentbranch branch \e[0m" | |
| echo -e "\033[0;36mCommitting everything with message\e[0m \033[0;32m$1 \e[0m" | |
| git commit -a -m "$1" | |
| echo -e "\033[0;36mCommit complete. Moving to master \e[0m" |
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
| // Rem output with px fallback | |
| @mixin font-size($sizeValue: 1) { | |
| font-size: ($sizeValue * 16) * 1px; | |
| font-size: $sizeValue * 1rem; | |
| } | |
| //Eg: @include theme-font-size(content, small); | |
| @mixin theme-font-size($use: content, $size: body) { | |
| @if $use==heading { | |
| @if $size==small { |
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
| if ( ! function_exists( 'awd2_setup' ) ) : | |
| /** | |
| * Sets up theme defaults and registers support for various WordPress features. | |
| * | |
| * Note that this function is hooked into the after_setup_theme hook, which | |
| * runs before the init hook. The init hook is too late for some features, such | |
| * as indicating support for post thumbnails. | |
| */ | |
| function awd2_setup() { | |
| /* |
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
| $size__site-main: 100%; | |
| $size__site-sidebar: 25%; | |
| /** | |
| * Horizontal spaces | |
| */ | |
| $gutter: 30px; | |
| $gutter--half: 15px; | |
| /* Includes 50px column plus 15px half gutter on each side */ | |
| $column: 80px; |
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
| <?php | |
| /** | |
| * awd2 functions and definitions | |
| * | |
| * @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
| * | |
| * @package awd2 | |
| */ | |
| if ( ! defined( '_S_VERSION' ) ) { |
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
| /* Imports variables, mixins */ | |
| @import "sass/abstracts/abstracts"; | |
| @import "sass/base/typography/typography"; | |
| //Only applies to editor content part of editor screen | |
| body{ | |
| font-family: $font__main; | |
| } | |
| //Use the variable you created in sass/abstracts/variables/_typography.scss | |
| h1,h2,h3,h4,h5,h6{ |
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
| // stylelint-disable value-keyword-case | |
| $font__main: 'Open Sans', sans-serif; | |
| $font__heading: 'PT Serif', serif; | |
| // stylelint-enable value-keyword-case | |
| $font__code: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace; | |
| $font__pre: "Courier 10 Pitch", courier, monospace; | |
| $font__line-height-body: 1.5; | |
| $font__line-height-pre: 1.6; |
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
| /** | |
| * Color classes | |
| * identical slugs and color values as in | |
| * add_theme_support('editor-color-palette'... in functions.php | |
| */ | |
| $colors: ( | |
| "white": #fff, | |
| "blue": #052f46, | |
| "light-red": #f7bba4, | |
| "tan": #f8f0dc, |
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
| .sticky { | |
| display: block; | |
| } | |
| .post, | |
| .page { | |
| margin: 0 0 1.5em; | |
| } | |
| .updated:not(.published) { |
OlderNewer