Last active
December 28, 2015 19:59
-
-
Save kadamwhite/7554530 to your computer and use it in GitHub Desktop.
Custom CSS overrides for twenty fourteen theme
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
/* | |
REDS | |
Primary: #890d0d; | |
Hover: #a62929; | |
Active: #d63838; | |
BLUES | |
Primary: #0D7089; | |
Hover: #298da6; | |
Active: #38b6d6; | |
*/ | |
@primary-color: #0D7089; | |
@hover-color: #298da6; | |
@active-color: #38b6d6; | |
button, | |
.contributor-posts-link, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"], | |
.search-toggle, | |
.hentry .mejs-controls .mejs-time-rail .mejs-time-current, | |
.widget button, | |
.widget input[type="button"], | |
.widget input[type="reset"], | |
.widget input[type="submit"], | |
.widget_calendar tbody a, | |
.content-sidebar .widget input[type="button"], | |
.content-sidebar .widget input[type="reset"], | |
.content-sidebar .widget input[type="submit"], | |
.slider-control-paging .slider-active:before, | |
.slider-control-paging .slider-active:hover:before, | |
.slider-direction-nav a:hover { | |
background-color: @primary-color; | |
} | |
.paging-navigation .page-numbers.current { | |
border-top: 5px solid @primary-color; | |
} | |
a, | |
.content-sidebar .widget a { | |
color: @primary-color; | |
} | |
@media screen and (min-width: 782px) { | |
.primary-navigation ul ul, | |
.primary-navigation li:hover > a, | |
.primary-navigation li.focus > a { | |
background-color: @primary-color; | |
} | |
} | |
@media screen and (min-width: 1008px) { | |
.secondary-navigation ul ul, | |
.secondary-navigation li:hover > a, | |
.secondary-navigation li.focus > a { | |
background-color: @primary-color; | |
} | |
} | |
::selection { | |
background: @primary-color; | |
} | |
::-moz-selection { | |
background: @primary-color; | |
} | |
/* Active, Hover & Focus */ | |
button:hover, | |
button:focus, | |
.contributor-posts-link:hover, | |
input[type="button"]:hover, | |
input[type="button"]:focus, | |
input[type="reset"]:hover, | |
input[type="reset"]:focus, | |
input[type="submit"]:hover, | |
input[type="submit"]:focus, | |
.search-toggle:hover, | |
.search-toggle.active, | |
.search-box, | |
.entry-meta .tag-links a:hover, | |
.page-links a:hover, | |
.widget input[type="button"]:hover, | |
.widget input[type="button"]:focus, | |
.widget input[type="reset"]:hover, | |
.widget input[type="reset"]:focus, | |
.widget input[type="submit"]:hover, | |
.widget input[type="submit"]:focus, | |
.widget_calendar tbody a:hover, | |
.content-sidebar .widget input[type="button"]:hover, | |
.content-sidebar .widget input[type="button"]:focus, | |
.content-sidebar .widget input[type="reset"]:hover, | |
.content-sidebar .widget input[type="reset"]:focus, | |
.content-sidebar .widget input[type="submit"]:hover, | |
.content-sidebar .widget input[type="submit"]:focus, | |
.slider-control-paging a:hover:before { | |
background-color: @hover-color; | |
} | |
.tag-links a:hover:before { | |
border-right-color: @hover-color; | |
} | |
.page-links a:hover { | |
border: 1px solid @hover-color; | |
} | |
.paging-navigation a:hover { | |
border-top: 5px solid @hover-color; | |
} | |
a:active, | |
a:hover, | |
.site-navigation a:hover, | |
.entry-title a:hover, | |
.entry-meta a:hover, | |
.cat-links a:hover, | |
.entry-content .edit-link a:hover, | |
.post-navigation a:hover, | |
.image-navigation a:hover, | |
.comment-author a:hover, | |
.comment-list .pingback a:hover, | |
.comment-list .trackback a:hover, | |
.comment-metadata a:hover, | |
.comment-reply-title small a:hover, | |
.widget a:hover, | |
.widget-title a:hover, | |
.content-sidebar .widget a:hover, | |
.content-sidebar .widget .widget-title a:hover, | |
.content-sidebar .widget_twentyfourteen_ephemera .entry-meta a:hover, | |
.site-info a:hover, | |
.featured-content a:hover { | |
color: @hover-color; | |
} | |
@media screen and (min-width: 782px) { | |
.primary-navigation ul ul a:hover, | |
.primary-navigation ul ul li.focus > a { | |
background-color: @hover-color; | |
} | |
} | |
@media screen and (min-width: 1008px) { | |
.secondary-navigation ul ul a:hover, | |
.secondary-navigation ul ul li.focus > a { | |
background-color: @hover-color; | |
} | |
} | |
button:active, | |
.contributor-posts-link:active, | |
input[type="button"]:active, | |
input[type="reset"]:active, | |
input[type="submit"]:active, | |
.widget input[type="button"]:active, | |
.widget input[type="reset"]:active, | |
.widget input[type="submit"]:active, | |
.content-sidebar .widget input[type="button"]:active, | |
.content-sidebar .widget input[type="reset"]:active, | |
.content-sidebar .widget input[type="submit"]:active { | |
background-color: @active-color; | |
} | |
.site-navigation .current_page_item > a, | |
.site-navigation .current_page_ancestor > a, | |
.site-navigation .current-menu-item > a, | |
.site-navigation .current-menu-ancestor > a { | |
color: @active-color; | |
} |
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
/* Increase the readability of the sidebar */ | |
.site-title { | |
font-size: 1.5em; | |
} | |
.primary-sidebar .widget .widget-title { | |
font-size: 1.25em; | |
font-style: italic; | |
} | |
.primary-sidebar .textwidget { | |
font-size: 1.15em; | |
} | |
/* Make the twitter widget responsive */ | |
.twitter-timeline-rendered { | |
min-width: initial !important; | |
width: 100% !important; | |
} | |
/* Arrows for sidebar category links */ | |
.primary-sidebar .cat-item::before { | |
content: "\2192 \0000a0"; | |
} | |
/* center the content in the background */ | |
#page { | |
margin: 0 auto; | |
} | |
/* Keep the featured image from taking over the screen */ | |
.post .post-thumbnail { | |
max-height: 192px; | |
overflow: hidden; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment