Skip to content

Instantly share code, notes, and snippets.

@geojeff
Created June 26, 2013 16:37
Show Gist options
  • Save geojeff/5869034 to your computer and use it in GitHub Desktop.
Save geojeff/5869034 to your computer and use it in GitHub Desktop.
$theme: '.ace.todos';
body {
-webkit-font-smoothing: antialiased;
text-rendering: optimizelegibility;
}
/* Fix for Chrome bug on accelerated panes */
.sc-pane {
-webkit-transform: none;
}
$theme.sc-text-field-view {
font-size: 14px;
.hint {
font-size: 14px;
line-height: 30px;
}
.padding {
left: 14px;
}
}
$theme.toolbar {
.checkbox {
.button {
left: 13px;
top: 50%;
margin-top: -8px;
}
.label {
left: 47px;
line-height: 36px;
}
}
.sc-label-view {
text-align: right;
line-height: 36px;
font-weight: bold;
font-size: 18px;
padding-right: 12px;
}
}
$theme.todo-item {
.button {
left: 13px;
top: 50%;
margin-top: -8px;
}
.label {
left: 47px;
line-height: 36px;
}
&.sel {
background-color: white;
color: #AAA;
text-decoration: line-through;
}
}
$theme.todoapp {
background: #fff;
background: rgba(255, 255, 255, 0.9);
margin: 130px 0 40px 0;
border: 1px solid #ccc;
position: relative;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2),
0 25px 50px 0 rgba(0, 0, 0, 0.15);
}
$theme.todoapp:before {
content: '';
border-left: 1px solid #f5d6d6;
border-right: 1px solid #f5d6d6;
width: 2px;
position: absolute;
top: 0;
left: 40px;
height: 100%;
}
$theme.h1 {
font-size: 70px;
font-weight: bold;
text-align: center;
color: #b3b3b3;
color: rgba(255, 255, 255, 0.3);
text-shadow: -1px -1px rgba(0, 0, 0, 0.2);
-webkit-text-rendering: optimizeLegibility;
-moz-text-rendering: optimizeLegibility;
-ms-text-rendering: optimizeLegibility;
-o-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
}
$theme.header {
padding-top: 15px;
border-radius: inherit;
}
$theme.header:before {
content: '';
border-bottom: 1px solid #6c615c;
background: #8d7d77;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(132, 110, 100, 0.8)),to(rgba(101, 84, 76, 0.8)));
background: -webkit-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
background: -moz-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
background: -o-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
background: -ms-linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
background: linear-gradient(top, rgba(132, 110, 100, 0.8), rgba(101, 84, 76, 0.8));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#9d8b83', EndColorStr='#847670');
border-top-left-radius: 1px;
border-top-right-radius: 1px;
}
$theme.new-todo {
.field {
position: relative;
margin: 0;
width: 100%;
font-size: 24px;
font-family: inherit;
line-height: 1.4em;
border: 0;
outline: none;
color: inherit;
padding: 6px;
border: 1px solid #999;
box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-ms-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
font-smoothing: antialiased;
}
padding: 16px 16px 16px 60px;
border: none;
background: rgba(0, 0, 0, 0.02);
z-index: 2;
box-shadow: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment