Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
René Sprotte
committed
Dec 14, 2011
1 parent
2e00403
commit ca676f9
Showing
22 changed files
with
286 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.bundle | ||
.sass-cache | ||
Gemfile.lock | ||
tmp | ||
test/dummy/log/*.log | ||
test/dummy/tmp/**/* | ||
test/dummy/db/*.sqlite3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@import "compass/css3"; | ||
|
||
@mixin contentr-button( | ||
$text-color, | ||
$start-color, | ||
$end-color | ||
) { | ||
// --------------------------------------------------------------------------- | ||
// basics | ||
// --------------------------------------------------------------------------- | ||
@include nested-reset(); | ||
@include inline-block(); | ||
@include border-radius(4px); | ||
@include single-transition(all, 0.1s, linear); | ||
@include stylr-util-gradient-bar( | ||
$text-color: $text-color, | ||
$start-color: $start-color, | ||
$end-color: $end-color | ||
); | ||
cursor: pointer; | ||
vertical-align: baseline; | ||
font-size: 11px; | ||
line-height: normal; // we need to use padding alone, because FF limit line-height by default | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
padding: 5px 14px; | ||
&::-moz-focus-inner { border: 0; padding: 0; } // Help Firefox not be a jerk about adding extra padding to buttons | ||
margin: 0; | ||
background-repeat: no-repeat; | ||
text-decoration: none; | ||
color: $text-color; | ||
|
||
// --------------------------------------------------------------------------- | ||
// states | ||
// --------------------------------------------------------------------------- | ||
&:focus { | ||
outline: 1px dotted #666; | ||
} | ||
|
||
&:hover { | ||
text-decoration: none; | ||
background-position: 0 -15px; | ||
}; | ||
|
||
&:active { | ||
@include box-shadow( | ||
rgba(#000, .25) 0 2px 4px inset, | ||
rgba(#000, .05) 0 1px 2px | ||
); | ||
} | ||
} | ||
|
||
@import 'contentr/frontend-editing'; | ||
@import 'contentr/overlay'; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
$contentr-toolbar-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !default; | ||
$contentr-toolbar-font-size: 11px !default; | ||
$contentr-toolbar-line-height: 15px !default; | ||
$contentr-toolbar-background-color: #0065A0 !default; | ||
$contentr-toolbar-color: #fff !default; | ||
|
||
@mixin contentr-toolbar() { | ||
@include clearfix(); | ||
|
||
font-family: $contentr-toolbar-font-family; | ||
font-size: $contentr-toolbar-font-size; | ||
line-height: $contentr-toolbar-line-height; | ||
background-color: $contentr-toolbar-background-color; | ||
padding: 8px; | ||
color: $contentr-toolbar-color; | ||
border: 1px solid lighten($contentr-toolbar-background-color, 10%); | ||
border-bottom-color: darken($contentr-toolbar-background-color, 10%); | ||
border-right-color: darken($contentr-toolbar-background-color, 10%); | ||
|
||
.area-name { | ||
@include float-left(); | ||
font-weight: bold; | ||
font-size: 110%; | ||
line-height: $contentr-toolbar-line-height + 3px; | ||
color: darken($contentr-toolbar-background-color, 15%); | ||
@include text-shadow(lighten($contentr-toolbar-background-color, 12%) 0 1px 1px); | ||
} | ||
|
||
.handle { | ||
@include float-left(); | ||
font-weight: bold; | ||
font-size: 140%; | ||
color: darken($contentr-toolbar-background-color, 15%); | ||
@include text-shadow(lighten($contentr-toolbar-background-color, 12%) 0 1px 1px); | ||
cursor: move; | ||
} | ||
|
||
.controls { | ||
@include float-right(); | ||
a { | ||
@include contentr-button( | ||
$text-color: $contentr-toolbar-color, | ||
$start-color: lighten($contentr-toolbar-background-color, 5%), | ||
$end-color: darken($contentr-toolbar-background-color, 5%) | ||
); | ||
@include border-radius(2px); | ||
font-family: $contentr-toolbar-font-family; | ||
font-size: $contentr-toolbar-font-size; | ||
padding: 2px 4px; | ||
margin-right: 4px; | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.contentr-toolbar { | ||
@include contentr-toolbar(); | ||
} | ||
|
||
.contentr-area { | ||
.toolbar { | ||
@include contentr-toolbar(); | ||
padding: 2px 8px; | ||
} | ||
|
||
.paragraph { | ||
.toolbar { | ||
background-color: lighten($contentr-toolbar-background-color, 5%);; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.