This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mailchimp Signup form</title> | |
<meta name="description" content="Mailchimp Signup form using Ajax."> | |
<style type="text/css"> | |
body { | |
background-image: linear-gradient(120deg, rgb(209, 219, 233), rgb(240, 250, 243)); | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Helvetica Neue', Arial, sans-serif; |
This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
/** | |
* Responsive Featured Image Background - used to set custom responsive background on each page. I should probably turn this into a plugin at some point. | |
* Based on the work by Steven Slack: @link http://s2webpress.com//responsive-featured-image-function-in-wordpress-themes/ | |
* | |
*/ | |
function my_featured_image() { | |
// call the global post variable | |
global $post; | |
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |