diff --git a/cms/static/sass/_unit.scss b/cms/static/sass/_unit.scss index 255738d32f..62586a2baf 100644 --- a/cms/static/sass/_unit.scss +++ b/cms/static/sass/_unit.scss @@ -56,6 +56,15 @@ z-index: 10; margin: 20px 40px; + + .title { + margin: 0 0 15px 0; + color: $mediumGrey; + + .value { + } + } + &.new-component-item { padding: 20px; border: none; @@ -116,7 +125,7 @@ a { position: relative; border: 1px solid $darkGreen; - background: $green; + background: tint($green,20%); color: #fff; @include transition(background-color .15s); @@ -129,23 +138,71 @@ .new-component-template { margin-bottom: 20px; - li:first-child { + li:last-child { + a { + border-radius: 0 0 3px 3px; + border-bottom: 1px solid $darkGreen; + } + } + + li:nth-child(2) { a { border-radius: 3px 3px 0 0; } } - li:last-child { - a { - border-radius: 0 0 3px 3px; - } - } - a { + @include clearfix(); display: block; padding: 7px 20px; border-bottom: none; font-weight: 300; + + .name { + float: left; + + .ss-icon { + @include transition(opacity .15s); + position: relative; + top: 1px; + font-size: 13px; + margin-right: 5px; + opacity: 0.5; + } + } + + .editor-indicator { + @include transition(opacity .15s); + float: right; + position: relative; + top: 3px; + font-size: 12px; + opacity: 0.1; + } + + &:hover { + + .ss-icon { + opacity: 1.0; + } + + .editor-indicator { + opacity: 1.0; + } + } + } + + // specific editor types + .empty { + @include box-shadow(0 1px 3px rgba(0,0,0,0.2)); + margin-bottom: 10px; + + a { + border-bottom: 1px solid $darkGreen; + border-radius: 3px; + font-weight: 500; + background: $green; + } } } diff --git a/cms/templates/unit.html b/cms/templates/unit.html index 978bc74245..abf4a876a3 100644 --- a/cms/templates/unit.html +++ b/cms/templates/unit.html @@ -14,7 +14,6 @@ }); (function() { - $('.new-component-template').each(function(){ $emptyEditor = $(this).find('.empty'); $(this).prepend($emptyEditor); @@ -158,27 +157,32 @@ % for type, templates in sorted(component_templates.items()):
+

Select ${type} component type:

+