Resources/css/main.css
author Mahlon E. Smith <mahlon@martini.nu>
Mon, 23 Sep 2013 09:10:55 -0700
changeset 1 b3419d05eabb
parent 0 80c32ef237c6
permissions -rw-r--r--
Checkpoint. * Got fonts working cross platform by only using SVG. This will change with the new webkit engine when Tide 1.4 is released. * Use the Tide API accessors for cross-window data. * Make the ThingFish server object an observable, so models and their URI bases can be changed easily. * Add options for saving window state and position. * Contextual menu updates/tests for later.



@font-face {
	font-family: 'batch';
	src: url('app://font/batch/batch.svg#batch_iconsregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'exo';
	src: url('app://font/exo/exo-regular.svg#exoregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'exobold';
	src: url('app://font/exo/exo-bold.svg#exoextrabolditalic') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* TODO: TideKit 1.4, w/ newer webkit. */
/*
@font-face {
	font-family: 'exo';
	src: url('app://font/exo/exo-regular.eot'),
		 url('app://font/exo/exo-regular.eot?#iefix') format('embedded-opentype'),
		 url('app://font/exo/exo-regular.woff') format('woff'),
		 url('app://font/exo/exo-regular.ttf') format('truetype'),
		 url('app://font/exo/exo-regular.svg#exoregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'exobold';
	src: url('app://font/exo/exo-bold.eot'),
		 url('app://font/exo/exo-bold.eot?#iefix') format('embedded-opentype'),
		 url('app://font/exo/exo-bold.woff') format('woff'),
		 url('app://font/exo/exo-bold.ttf') format('truetype'),
		 url('app://font/exo/exo-bold.svg#exobold') format('svg');
	font-weight: normal;
	font-style: normal;
}
*/

/* http://adamwhitcroft.com/batch/ */
/*
@font-face {
	font-family: 'batch';
	src: url('app://font/batch/batch.eot'),
		 url('app://font/batch/batch.eot?#iefix') format('embedded-opentype'),
		 url('app://font/batch/batch.woff') format('woff'),
		 url('app://font/batch/batch.ttf') format('truetype'),
		 url('app://font/batch/batch.svg#batch') format('svg');
	font-weight: normal;
	font-style: normal;
}
*/

a { 
	text-decoration: none;
	color: inherit !important;
}

.icon {
	font-family: 'batch';
	line-height: 1;
	text-shadow: none;
}

body {
	background-color: #333;
	color: #fff;
	margin: 10px;
	padding: 0;
	font-family: "exo", Helvetica, Geneva, sans-serif;
	font-size: 1em;
	text-shadow: 2px 2px 2px #000;
	user-select: none;
}

fieldset {
	border: 1px inset #222;
	border-radius: 5px;
	background-image: -webkit-gradient( linear, left top, left bottom, color-stop( 0%, #222 ), color-stop( 20%, #303030) );
}

/* button styles */
/* ---------------------------------------------- */
.button {
	display: inline-block;
	vertical-align: baseline;
	margin: 0 2px;
	outline: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	font: 14px/100% Arial, Helvetica, Geneva, sans-serif;
	padding: .5em 2em .55em;
	text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
	border: 1px solid #7d99ca;
	border-radius: 3px; 
	color: #FFF;
	background-color: #a5b8da;
	background-image: -webkit-gradient( linear, left top, left bottom, from(#a5b8da), to(#7089b3) );
}

.button:hover {
	border: 1px solid #5d7fbc;
	background-color: #819bcb;
	background-image: -webkit-gradient( linear, left top, left bottom, from(#819bcb), to(#536f9d) );
 }

.button:active {
	position: relative;
	top: 1px;
}


/* input field styles */
/* ---------------------------------------------- */

::-webkit-input-placeholder { color: #333; }

input[type="text"],
select {
	font-family: "exo", Helvetica, Geneva, sans-serif;
	font-size: 0.8em;
	padding: 2px;
	background-color: #888;
	border-top: 1px solid #333;
	border-right: 1px solid #777;
	border-bottom: 1px solid #777;
	border-left: 1px solid #333;
	color: #000;
	box-shadow: inset -4px 4px 10px #555;
	border-radius: 3px;
}

input[type="text"]:active,
select:active {
	border: 1px solid #00ffff;
}

input[type="text"]:focus,
select:focus {
	background-color: #bbb;
}