Commit 6cfabb76 by Tom Giannattasio

finished styling for static tabs; required some rework of global styles

parent 6ad8a9ac
...@@ -352,4 +352,19 @@ body.show-wip { ...@@ -352,4 +352,19 @@ body.show-wip {
&.big { &.big {
display: block; display: block;
} }
}
.edit-button.standard,
.delete-button.standard {
float: left;
@include white-button;
padding: 3px 10px 4px;
margin-left: 7px;
font-size: 12px;
font-weight: 400;
.edit-icon,
.delete-icon {
margin-right: 4px;
}
} }
\ No newline at end of file
...@@ -48,18 +48,18 @@ ...@@ -48,18 +48,18 @@
} }
@mixin white-button { @mixin white-button {
@include button; @include button;
border: 1px solid $darkGrey; border: 1px solid $darkGrey;
border-radius: 3px; border-radius: 3px;
@include linear-gradient(top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%); @include linear-gradient(top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
background-color: #dfe5eb; background-color: #dfe5eb;
@include box-shadow(0 1px 0 rgba(255, 255, 255, .3) inset); @include box-shadow(0 1px 0 rgba(255, 255, 255, .3) inset);
color: #5d6779; color: #778192;
&:hover { &:hover {
background-color: #f2f6f9; background-color: #f2f6f9;
color: #5d6779; color: #778192;
} }
} }
@mixin orange-button { @mixin orange-button {
......
...@@ -11,14 +11,29 @@ ...@@ -11,14 +11,29 @@
} }
.components > li { .components > li {
margin: 20px 0; margin: 0;
border-radius: 0;
&.new-component-item {
margin-top: 20px;
}
} }
.component { .component {
border: none; border: 1px solid $mediumGrey;
border-top: none;
&:first-child {
border-top: 1px solid $mediumGrey;
}
&:hover { &:hover {
border: none; border: 1px solid $mediumGrey;
border-top: none;
&:first-child {
border-top: 1px solid $mediumGrey;
}
.drag-handle { .drag-handle {
background: url(../img/drag-handles.png) center no-repeat $lightGrey; background: url(../img/drag-handles.png) center no-repeat $lightGrey;
...@@ -42,14 +57,6 @@ ...@@ -42,14 +57,6 @@
top: 26px; top: 26px;
right: 44px; right: 44px;
} }
.edit-button,
.delete-button {
// @include grey-button;
border: none;
background: none;
color: $darkGrey;
}
} }
.component.editing { .component.editing {
......
...@@ -149,12 +149,8 @@ ...@@ -149,12 +149,8 @@
&:hover { &:hover {
border-color: #6696d7; border-color: #6696d7;
.drag-handle,
.component-actions a {
background-color: $blue;
}
.drag-handle { .drag-handle {
background-color: $blue;
border-color: $blue; border-color: $blue;
} }
} }
...@@ -174,31 +170,12 @@ ...@@ -174,31 +170,12 @@
.component-actions { .component-actions {
position: absolute; position: absolute;
top: 4px; top: 7px;
right: 4px; right: 9px;
@include transition(opacity .15s); @include transition(opacity .15s);
}
.edit-button,
.delete-button {
float: left;
padding: 3px 10px 4px;
margin-left: 3px;
border: 1px solid #fff;
border-radius: 3px;
background: #d1ddec;
font-size: 12px;
color: #fff;
@include transition(all .15s);
&:hover {
background-color: $blue;
color: #fff;
}
.edit-icon, a {
.delete-icon { color: $darkGrey;
margin-right: 4px;
} }
} }
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<a href="#" class="cancel-button">Cancel</a> <a href="#" class="cancel-button">Cancel</a>
</div> </div>
<div class="component-actions"> <div class="component-actions">
<a href="#" class="edit-button"><span class="edit-icon white"></span>Edit</a> <a href="#" class="edit-button standard"><span class="edit-icon"></span>Edit</a>
<a href="#" class="delete-button"><span class="delete-icon white"></span>Delete</a> <a href="#" class="delete-button standard"><span class="delete-icon"></span>Delete</a>
</div> </div>
<a href="#" class="drag-handle"></a> <a href="#" class="drag-handle"></a>
${preview} ${preview}
\ No newline at end of file
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