A Pen by Josh Fitzgerald on CodePen.
This file contains 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
<blockquote id="quoteDisplay"></blockquote> |
This file contains 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
/* The following sets a background image on an element using the shorthand property. */ | |
.element { | |
background: #eee url(path/to/image.jpg) top 50% / contain fixed no-repeat; | |
} | |
/* The above declaration is equivalent to the following single declarations: */ | |
.element { | |
background-image: url(path/to/image.jpg); | |
background-color: #eee; | |
background-position: top 50%; | |
background-size: contain; |
This file contains 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 | |
/** | |
* Adds custom classes to the array of body classes. | |
* | |
* @param array $classes Classes for the body element. | |
* @return array (Maybe) filtered body classes. | |
*/ | |
function wpcampus_body_classes( $classes ) { | |
// Adds a class of no-sidebar to custom no-sidebar page template. | |
if ( is_page_template('page-no-sidebar.php') ) { |
This file contains 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
.flex-container { | |
display: flex; | |
} | |
.flex-item { | |
flex: 1; | |
} |
This file contains 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
.middle { | |
display: flex; | |
flex-direction: row; /* sets main axis as horizontal */ | |
justify-content: center; /* affects main axis - horizontal here */ | |
align-items: center; /* affects cross axis - vertical here */ | |
} |
This file contains 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
max_execution_time = 180 | |
max_input_vars = 5000; |
This file contains 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
max_execution_time = 180 | |
max_input_vars = 5000; |
This file contains 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
/* style links to PDF files */ | |
a[href$=".pdf"] { | |
display: inline-block; | |
padding: 10px; | |
margin: 5px; | |
border: #F46036 2px solid; | |
color: #F46036; | |
font-weight: 600; | |
} | |
a[href$=".pdf"]:before { |
This file contains 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
//disable Visual Editor for all users | |
add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); |
NewerOlder