engine/app/assets/stylesheets/locomotive/inline_editor/toolbar.css.scss
2012-01-17 12:05:39 +01:00

160 lines
4.0 KiB
SCSS

@import "compass/css3/images";
@import "compass/css3/opacity";
@import "compass/css3/box-shadow";
@import "compass/css3/text-shadow";
@import "compass/css3/border-radius";
#toolbar {
position: fixed;
top: 0px;
left: 0px;
height: 50px;
width: 100%;
.background {
z-index: 100;
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
@include background-image(linear-gradient(#3F3F45, #23242B));
@include box-shadow(rgba(0, 0, 0, 0.6) 0px -1px 10px 0px, rgba(0, 0, 0, 0.2) 0px 4px 6px 4px, rgba(255, 255, 255, 0.4) 0 1px 0 0 inset);
@include opacity(0.95);
}
.inner {
position: relative;
height: 100%;
z-index: 200;
color: #fff;
h1 {
float: left;
margin: 0 0 0 10px;
position: relative;
top: -2px;
width: 200px;
line-height: 50px;
font-size: 18px;
font-weight: bold;
color: #fff;
@include single-text-shadow(#000, 0px, 1px, 0px);
}
.col {
float: right;
line-height: 50px;
margin-right: 10px;
padding-left: 14px;
border-left: 1px solid rgba(0, 0, 0, 0.3);
@include box-shadow(rgba(255, 255, 255, 0.1) 1px 0 0 0 inset);
label {
@include single-text-shadow(#000, 0px, 1px, 0px);
}
}
.back {
a {
color: #1F82BC;
@include single-text-shadow(#000, 0px, 1px, 0px);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
.editing-mode {
.toggleSwitch {
position: relative;
top: 0px;
margin-left: 3px;
display: inline-block;
div.switchArea {
@include box-shadow(rgba(0, 0, 0, 0.8) 0px 1px 0px 0px);
}
}
}
.element-actions {
.button {
display: inline-block;
height: 22px;
line-height: 22px;
margin: 0 5px;
padding: 0 14px;
@include border-radius(14px);
@include background-image(linear-gradient(#303138, #1e1e24));
@include box-shadow(rgba(255, 255, 255, 0.1) 0 1px 0 0 inset, rgba(255, 255, 255, 0.1) 0 1px 0 0);
border: 1px solid rgba(0, 0, 0, 0.2);
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(0, 0, 0, 0.6);
text-decoration: none;
// font-size: 13px;
color: #fff;
font-size: 12px;
@include single-text-shadow(rgba(0, 0, 0, 1), 1px, 1px, 1px);
em {
display: inline-block;
position: relative;
background: transparent image-url("locomotive/menu/icons.png") no-repeat 0 0px;
height: 11px;
width: 11px;
top: 2px;
left: -5px;
}
&:hover {
border: 1px solid rgba(255, 255, 255, 0.5);
border-top: 1px solid rgba(255, 255, 255, 0.4);
}
&.on, &:active {
border: 1px solid rgba(0, 0, 0, 0.4);
border-top: 1px solid rgba(0, 0, 0, 0.6);
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
@include background-image(linear-gradient(#1e1e24, #212229));
@include box-shadow(rgba(0, 0, 0, 0) 0 1px 0 0 inset, rgba(255, 255, 255, 0.2) 0 1px 0 0);
}
&.save {
@include single-text-shadow(rgba(0, 0, 0, 0.6), 1px, 1px, 1px);
@include background-image(linear-gradient(#2abaf1, #228dda));
@include box-shadow(rgba(255, 255, 255, 0.4) 0 1px 0 0 inset, rgba(127, 177, 211, 0.3) 0 1px 0 0);
border: 1px solid rgba(13, 56, 87, 1);
border-top: 1px solid rgba(13, 56, 87, 1);
border-bottom: 1px solid rgba(13, 56, 87, 1);
&.on, &:active {
@include box-shadow(rgba(0, 0, 0, 0) 0 1px 0 0 inset, rgba(255, 255, 255, 0.2) 0 1px 0 0);
@include background-image(linear-gradient(#26a1e9, #26a1e9));
}
&:hover {
border: 1px solid rgba(255, 255, 255, 0.5);
border-top: 1px solid rgba(255, 255, 255, 0.4);
}
}
} // .button
} // .element-actions
}
}