engine/app/assets/stylesheets/locomotive/inline_editor/toolbar.css.scss

160 lines
4.0 KiB
SCSS
Raw Normal View History

@import "compass/css3/images";
@import "compass/css3/opacity";
@import "compass/css3/box-shadow";
@import "compass/css3/text-shadow";
2012-01-17 02:21:30 +00:00
@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%;
2012-01-17 02:21:30 +00:00
@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);
}
2012-01-17 02:21:30 +00:00
.col {
2012-01-17 11:05:39 +00:00
float: right;
line-height: 50px;
2012-01-17 02:21:30 +00:00
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);
2012-01-17 11:05:39 +00:00
label {
@include single-text-shadow(#000, 0px, 1px, 0px);
}
}
2012-01-17 02:21:30 +00:00
2012-01-17 11:05:39 +00:00
.back {
a {
color: #1F82BC;
@include single-text-shadow(#000, 0px, 1px, 0px);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
2012-01-17 11:05:39 +00:00
.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 {
2012-01-17 02:21:30 +00:00
.button {
display: inline-block;
2012-01-17 11:05:39 +00:00
height: 22px;
line-height: 22px;
2012-01-17 02:21:30 +00:00
margin: 0 5px;
padding: 0 14px;
2012-01-17 11:05:39 +00:00
@include border-radius(14px);
2012-01-17 02:21:30 +00:00
@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;
2012-01-17 11:05:39 +00:00
// font-size: 13px;
color: #fff;
font-size: 12px;
@include single-text-shadow(rgba(0, 0, 0, 1), 1px, 1px, 1px);
2012-01-17 02:21:30 +00:00
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);
}
2012-01-17 11:05:39 +00:00
&.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
}
}