Commit 66004aeb by Tom Giannattasio Committed by Brian Talbot

pulled out component types from behind add component button

parent 5b81d6b8
...@@ -57,14 +57,10 @@ ...@@ -57,14 +57,10 @@
margin: 20px 40px; margin: 20px 40px;
&.new-component-item { &.new-component-item {
padding: 0; padding: 20px;
border: none; border: none;
border-radius: 0; border-radius: 3px;
background: $lightGrey;
&.adding {
background-color: $blue;
border-color: #437fbf;
}
.new-component-button { .new-component-button {
display: block; display: block;
...@@ -88,14 +84,20 @@ ...@@ -88,14 +84,20 @@
.new-component-type, .new-component-template { .new-component-type, .new-component-template {
@include clearfix; @include clearfix;
li {
display: inline-block;
}
a { a {
position: relative; position: relative;
float: left; display: inline-block;
width: 100px; width: 100px;
height: 100px; height: 100px;
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px; margin-bottom: 10px;
border-radius: 8px; border-radius: 8px;
border: 1px solid $darkGreen;
background: $green;
font-size: 13px; font-size: 13px;
line-height: 14px; line-height: 14px;
color: #fff; color: #fff;
...@@ -104,7 +106,7 @@ ...@@ -104,7 +106,7 @@
@include transition(background-color .15s); @include transition(background-color .15s);
&:hover { &:hover {
background-color: rgba(255, 255, 255, .2); background: $brightGreen;
} }
.name { .name {
...@@ -124,7 +126,15 @@ ...@@ -124,7 +126,15 @@
} }
} }
.new-component, .new-component {
text-align: center;
h5 {
color: $green;
}
}
.new-component-templates { .new-component-templates {
display: none; display: none;
position: absolute; position: absolute;
......
...@@ -32,12 +32,9 @@ ...@@ -32,12 +32,9 @@
% for id in components: % for id in components:
<li class="component" data-id="${id}"/> <li class="component" data-id="${id}"/>
% endfor % endfor
<li class="new-component-item"> <li class="new-component-item adding">
<a href="#" class="new-component-button new-button big">
<span class="plus-icon"></span>New Component
</a>
<div class="new-component"> <div class="new-component">
<h5>Select Component Type</h5> <h5>Add New Component</h5>
<ul class="new-component-type"> <ul class="new-component-type">
% for type in sorted(component_templates.keys()): % for type in sorted(component_templates.keys()):
<li> <li>
...@@ -48,7 +45,6 @@ ...@@ -48,7 +45,6 @@
</li> </li>
% endfor % endfor
</ul> </ul>
<a href="#" class="cancel-button">Cancel</a>
</div> </div>
% for type, templates in sorted(component_templates.items()): % for type, templates in sorted(component_templates.items()):
<div class="new-component-templates new-component-${type}"> <div class="new-component-templates new-component-${type}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment