// ==UserScript==
// @name          GitHub Material Design
// @namespace     http://userstyles.org
// @description	  GitHub with Material Design styling
// @author        dvdandroid
// @homepage      https://userstyles.org/styles/123952
// @include       http://github.com/*
// @include       https://github.com/*
// @include       http://*.github.com/*
// @include       https://*.github.com/*
// @run-at        document-start
// @version       0.20160331135937
// ==/UserScript==
(function() {var css = [
	"/*",
	"    (c) 2012-2016 GitHub",
	"",
	"    When using the GitHub logos, be sure to follow the GitHub logo guidelines (https://github.com/logos)",
	"",
	"    Code License: MIT (http://choosealicense.com/licenses/mit/)",
	"    Applies to all other files",
	"*/",
	"/*",
	"    github-notification-bouncing",
	"    https://github.com/muchweb/github-notification-bouncing",
	"*/",
	"",
	"@keyframes bounce {",
	"    to {",
	"        transform: scale(1.4);",
	"        opacity: 1;",
	"    }",
	"}",
	"@keyframes shrink {",
	"    0%, 50% {",
	"        width: 14px;",
	"        height: 14px;",
	"        box-shadow: 0 0 8px transparent;",
	"    }",
	"}",
	".mail-status.unread {",
	"    animation: bounce .5s ease-out infinite alternate, shrink 60s linear;",
	"    width: 24px;",
	"    height: 24px;",
	"    opacity: 0.9;",
	"    transform: scale(1);",
	"    box-shadow: 0 0 8px #4183C4;",
	"}",
	"/*",
	"    GitHub issue link inline titles",
	"    https://userstyles.org/styles/106817/github-issue-link-inline-titles",
	"*/",
	"",
	".issue-link[title]:after {",
	"    content: attr(title);",
	"    font-size: 0.8em;",
	"    margin-left: 0.4em;",
	"    margin-right: 0.6em;",
	"    padding: 0.2em 0.4em;",
	"    border: 1px solid #ccc;",
	"    background: #eee;",
	"    color: #777;",
	"    position: relative;",
	"    top: -1px;",
	"}",
	".header {",
	"    padding-top: 15px;",
	"    padding-bottom: 15px;",
	"}",
	".header,",
	".blankslate,",
	".header-logged-in,",
	".org-header,",
	".simple-box,",
	".menu,",
	".capped-card,",
	".file-header,",
	".file,",
	".network-graph-container,",
	".js-code-editor,",
	".container-preview,",
	".show-code,",
	".auth-form-body,",
	".repohead.experiment-repo-nav,",
	".file-wrap,",
	".branch-infobar,",
	".commit-tease,",
	".stats-switcher-viewport,",
	".table-list,",
	".table-list-header,",
	".new-user-avatar-cta,",
	".comment,",
	".previewable-edit,",
	".timeline-comment,",
	".js-comment,",
	".js-task-list-container,",
	".owner-comment,",
	".current-user,",
	".activity-listing.contribution-activity.js-contribution-activity,",
	".boxed-group {",
	"    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2) ! important;",
	"}",
	".header-nav-link {",
	"    margin-top: 5px;",
	"}",
	".header-logo-invertocat {",
	"    margin-top: 3px;",
	"}",
	".site-search,",
	"#your-repos-filter,",
	".input-block,",
	".filter_input,",
	".short,",
	".js-repository-name,",
	".js-filterable-field,",
	".select,",
	".subnav-search-input,",
	".input-contrast,",
	".auto-search-input,",
	".js-autosearch-field,",
	".js-member-filter-field,",
	".filename,",
	".js-gist-filename,",
	".js-blob-filename,",
	"#user_profile_name,",
	"#user_profile_blog,",
	"#user_profile_company,",
	"#user_profile_location,",
	"#user_old_password,",
	"#user_new_password,",
	"#user_confirm_new_password,",
	"#q {",
	"    font-size: 14px;",
	"    border-color: transparent ! important;",
	"    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .12) ! important;",
	"    -webkit-transition: box-shadow .2s ! important;",
	"    transition: box-shadow .2s ! important;",
	"    border-radius: 2px ! important;",
	"    box-sizing: border-box ! important;",
	"    background: white;",
	"}",
	"#rename_field {",
	"    line-height: 8px ! important;",
	"}",
	".form-control {",
	"    padding: 5px 8px;",
	"    margin: 1px;",
	"}",
	".form-control > input {",
	"    border-color: transparent!important;",
	"    line-height: 40px!important;",
	"    height: 40px!important;",
	"    box-shadow: 0 1px 1.5px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .12)!important;",
	"    -webkit-transition: box-shadow .2s!important;",
	"    transition: box-shadow .2s!important;",
	"    border-radius: 2px!important;",
	"    box-sizing: border-box!important;",
	"    background: #fff!important;",
	"    padding: 5px;",
	"}",
	".form-control,",
	".form-select {",
	"    border: 0;",
	"    height: 40px!important;",
	"}",
	".header-search-wrapper {",
	"    display: inline;",
	"}",
	".form-control.focus,",
	".form-control:focus,",
	".form-select.focus,",
	".form-select:focus {",
	"    border: 0;",
	"    outline: none;",
	"    box-shadow: none;",
	"}",
	".form-control {",
	"    padding: 0;",
	"    margin: 0;",
	"}",
	".site-search .chromeless-input {",
	"    width: 260px;",
	"    height: 30px ! important;",
	"    min-height: 0;",
	"}",
	".site-search .scope-badge {",
	"    margin-left: 1px;",
	"    padding: 0 5px;",
	"    line-height: 26px;",
	"    vertical-align: initial;",
	"}",
	".subnav-search-input,",
	".input-contrast,",
	".auto-search-input,",
	".js-repo-filter-field,",
	".js-autosearch-field,",
	".site-search form {",
	"    width: 360px;",
	"    padding-right: 2px;",
	"    margin-right: 0;",
	"}",
	".form-control.focus,",
	".form-control:focus,",
	"input[type=\"text\"].focus,",
	"input[type=\"text\"]:focus,",
	".focused .drag-and-drop,",
	"input[type=\"password\"].focus,",
	"input[type=\"password\"]:focus,",
	"input[type=\"email\"].focus,",
	"input[type=\"email\"]:focus,",
	"input[type=\"number\"].focus,",
	"input[type=\"number\"]:focus,",
	"input[type=\"tel\"].focus,",
	"input[type=\"tel\"]:focus,",
	"input[type=\"url\"].focus,",
	"input[type=\"url\"]:focus,",
	"select.focus,",
	"select:focus,",
	"textarea.focus,",
	"textarea:focus {",
	"    border-color: #fff;",
	"    box-shadow: none;",
	"}",
	".btn,",
	".subnav-item,",
	".state,",
	".btn-sm {",
	"    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .12) ! important;",
	"    text-decoration: none;",
	"    text-align: center;",
	"    letter-spacing: 0;",
	"    transition: .2s ease-in;",
	"    cursor: pointer;",
	"    display: inline-block;",
	"}",
	"input.btn {",
	"    padding: 6px 8px;",
	"}",
	".btn-primary,",
	".btn-primary:hover {",
	"    background-image: linear-gradient(#66BB6A, #4CAF50);",
	"}",
	".profilecols .filter-bar {",
	"    padding: 15px 8px 15px;",
	"}",
	".tabnav {",
	"    padding-bottom: 0;",
	"    margin-bottom: 0;",
	"}",
	"body.page-profile .tab-content {",
	"    padding-bottom: 15px;",
	"}",
	".repo-list-item {",
	"    padding: 30px 20px 30px 20px;",
	"}",
	".activity-tab {",
	"    padding-top: 15px;",
	"}",
	".pagehead {",
	"    padding-bottom: 0;",
	"}",
	".tabnav-tab,",
	".pagehead-tabs-item,",
	".reponav-item,",
	".pagehead-nav-item {",
	"    padding: 15px 12px;",
	"    height: 54px;",
	"    text-transform: uppercase;",
	"}",
	".tabnav-tabs,",
	".pagehead-tabs {",
	"    margin-bottom: 0;",
	"}",
	".tabnav-tab.selected,",
	".pagehead-tabs-item.selected,",
	"a.repo-filter.text-small.text-muted.js-repo-filter-tab.filter-selected,",
	".reponav-item.selected,",
	".pagehead-nav-item.selected {",
	"    background-color: #f0f0f0 ! important;",
	"    border-top: 0;",
	"    border-left: 0;",
	"    border-right: 0;",
	"    border-bottom: 3px solid #4285f4;",
	"    color: #4285f4;",
	"    margin: 2px 4px 0;",
	"}",
	".activity-listing.contribution-activity.js-contribution-activity {",
	"    padding: 15px;",
	"    border-radius: 4px;",
	"}",
	"div.select-menu.right.js-menu-container.js-select-menu.js-period-container {",
	"    padding-top: 25px;",
	"}",
	".state {",
	"    text-transform: uppercase;",
	"    padding: 3px;",
	"}",
	".state-closed,",
	".bar-section-negative {",
	"    background-color: #E53935 ! important;",
	"}",
	".state-merged,",
	".bar-section-alt {",
	"    background-color: #7B1FA2 ! important;",
	"}",
	".state-open,",
	".bar-section-positive {",
	"    background-color: #43A047 ! important;",
	"}"
].join("\n");
if (typeof GM_addStyle ! = "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle ! = "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle ! = "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node); 
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();
