Skip to content

Instantly share code, notes, and snippets.

View alchemycs's full-sized avatar

alchemycs

View GitHub Profile
@CHARSET "UTF-8";
/* button
---------------------------------------------- */
.button {
display: inline-block;
zoom: 1; /* zoom and *display = ie7 hack for display:inline-block */
*display: inline;
vertical-align: baseline;
margin: 0 2px;
@alchemycs
alchemycs / stupidQuestions.html
Created December 14, 2010 01:09
Answer stupid questions easily - I get lots of dumb questions at work so I whacked this page together to stop people bothering me. Thanks to my 11yo son for the suggestion. Might clean this up later and convert it to a proper project.
<html>
<head>
<title>Stupid Questions</title>
<style>
.question {
font-size: 110%;
}
.question input[type=text] {
width: 60%;
@alchemycs
alchemycs / shinyGradient.css
Created December 5, 2010 03:41
Adds a glassy sheen to an element
/*
Set the background-color for an element and then add the 'shinyGradient'
class to the element for a glassy shine.
*/
.shinyGradient {
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .8)), color-stop(.3, rgba(255,255,255, .5)), color-stop(.6, rgba(255,255,255, .3)), color-stop(.6, transparent), to(transparent) );
background-image: -moz-linear-gradient( top, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5) 30%, rgba(255, 255, 255, .3) 60%, transparent 60%, transparent );
}
@alchemycs
alchemycs / Apache Configuration: Require Any
Created November 29, 2010 09:09
Sample snippet for allowing access from an IP address OR with username/password credentials
<Directory /var/www/docment.root.path>
order allow,deny
authType Basic
authName "Admin Access Only: Site is being archived"
authUserFile /var/www/HTPASSWORD
Allow from 192.168.0.1
Require valid-user
Satisfy Any
</Directory>