Skip to content

Instantly share code, notes, and snippets.

View michaelschofield's full-sized avatar

Michael Schofield michaelschofield

View GitHub Profile
@michaelschofield
michaelschofield / Mobile-First_SASS_Stylesheet
Created July 30, 2012 21:28
Mobile-First SASS Stylesheet
/* ========================================================
* This is a mobile-first stylesheet I've lovingly adopted from
* the designers from Themble: it's just an intuitive skeleton.
* There is no actual styling going on in this gist, but it's
* completely up to you to fill in the blanks. Here's to a speedy
* development : ).
* So, basically, your base styles come first and exist
* outside the media queries and they'll be called in the
* beginning. Leave these for your lowest denominator: slow
<!--begin text ad markup-->
<table class='letterhead-promotion' style='margin: 0 auto; max-width: 600px;'>
<tr class='letterhead-promotion__row'>
<td class='letterhead-promotion__row__cell' style='text-align: center; padding-bottom: 8px;'>
<p class='letterhead-promotion__row__cell__promoter-display-name' style='font-size: 85%;'>Advertisement from {{ promoterDisplayName }}</p>
</td>
</tr>
<tr class='letterhead-promotion__row'>
<td class='letterhead-promotion__row__cell'>
<h3 class='letterhead-promotion__row__cell__heading' style='margin: 0 0 10px 0;'>{{ heading }}</h3>
@michaelschofield
michaelschofield / index.html
Last active December 9, 2018 06:17
stoicism.design
<h1 class="heading">
stoicism.design
</h1>
<form action="https://schoeyfield.us6.list-manage.com/subscribe/post?u=552ab950f555406e7dd967eda&amp;id=a25468faca" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="form validate" novalidate> <div class="form__group">
<input class="form__input" id="mce-EMAIL" name="EMAIL" type="text" required>
<label class="form__label" for="mce-EMAIL">Your email</label>
</div>
<input type="hidden" name="b_552ab950f555406e7dd967eda_a25468faca" tabindex="-1" value="">
@michaelschofield
michaelschofield / lx_add_meta_to_tax.php
Last active June 20, 2018 20:58
Add Custom Meta Field to Custom Taxonomy
<?php
// Using the custom taxonomy "series" as an example
// Add term page
function lx_add_meta_field_to_taxonomy() {
?>
<div class="form-field">
<label for="term_meta[custom_term_meta]"><?php _e( 'Example meta field', 'yourtheme' ); ?></label>
/**
* Hi. Michael here. This code is just abstracted from a bigger prototypal thing
* but you might find it informative for interacting with the Bitbucket API.
* We're still using Angular 1.5.x, and this def needs some refactoring.
* Thanks for being polite :). - @schoeyfield
*/
/**
* Create a function for connecting with the Bitbucket API.
* @returns an object
@michaelschofield
michaelschofield / use_custom_feed_template.php
Last active June 4, 2016 21:20
Use Custom Feed for a Post Type
add_action( 'after_setup_theme', 'my_rss_template' );
function my_rss_template() {
if ( get_query_var( 'post_type' ) == 'post_type' ) {
add_feed( 'custom', 'my_custom_rss_render') ;
}
}
function my_custom_rss_render() {
<!-- Hi. This assumes the modal is mostly using CSS
for the whole pop-over effect. You really need javascript
to do two things: toggle aria-hidden="true" to "false" on open,
then focus the user on the modal and set the tabindex to the rest
of the <body> to -1. This captures the keyboard navigation and prevents
the user from accidentally tabbing out of the modal until he or she
closes the modal.
-->
<button class="button button--link" role="button">Modal Button</button>
<section ng-controller="WordPress as wp">
<article class="post" ng-repeat="post in wp.posts">
<h1>{{ post.title }}</h1>
{{ post.content }}
</article>

Bugs

  • On the results list, some book covers appear squished.
  • On advanced search, the label "expand search options" is the same when expanded.
  • First searched keyword: truth about cats and dogs - and received results including results with & in it. When I search : truth about cats & dogs - no results
  • Currently doing a side by side comparison of NovaCat vs the Beta and the color gray used in the beta version appears very light and hard to see.
  • Could a line of text saying "distance students" be added right underneath "Order for Delivery"? Also, Could "Hold for Pick-up (Local Users) be made the first option. I think public patrons will think we are offering to mail materials to their home.
  • Can an option be added to limit by Material Type?
  • After performing a search; pressing the advanced search button brings up a 404 error.
  • Cutting down all that extra text in the title field
  • Buttons beneath the item cover image: (please note suggested text and order)
function addStatus() {
if( $('.itemSelect').length == 0 && $('pre').length == 0) {
$('.bibItemsEntry td:last-child').append('<a href="#" onclick="return false;" onmouseover="statustip(this); return false;"><i class="fa fa-question-circle"></i></a>');
}
}
function statustip(statuslink) {
if(statuslink.id != "set") {
statuslink.id = "current";
var hold_flag = 0;