silverstripe-betternavigator/scss/betternavigator.scss

181 lines
3.4 KiB
SCSS
Raw Normal View History

2014-08-13 02:41:18 +02:00
@import "compass/css3";
@import "compass/utilities/sprites";
//Icons
$bn-icon-sprite-dimensions: true;
@import "bn-icon/*.png";
@include all-bn-icon-sprites;
span[class^='bn-icon'],span[class*=' bn-icon']{
display: inline-block;
}
//Container
#BetterNavigator {
2015-12-18 00:58:50 +01:00
position: fixed;
top: 0;
right: 0;
z-index: 99999;
max-height: 100%;
overflow: auto;
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
2015-12-18 01:42:25 +01:00
line-height: 16px;
2015-12-18 00:58:50 +01:00
text-align: left;
2015-12-18 01:42:25 +01:00
a {
text-decoration: none;
}
form {
display:none;
}
2015-12-18 00:58:50 +01:00
//Toggle states
&.collapsed {
2015-12-18 01:42:25 +01:00
box-shadow: 0px 0px 3px rgba(0,0,0,0.5);
2015-12-18 00:58:50 +01:00
@include transform-origin(right,top);
@include transform(rotate(90deg) translate(100%,0));
border-width: 0 1px 1px 0;
#BetterNavigatorStatus {
2015-12-18 01:42:25 +01:00
border-width: 0 1px 1px 0;
2015-12-18 00:58:50 +01:00
.bn-icon-close {
display: none;
}
.bn-icon-cog {
display: inline-block;
}
}
#BetterNavigatorContent {
display: none;
}
}
2014-08-13 02:41:18 +02:00
}
//Status
2015-12-18 01:42:25 +01:00
$liveColor: #39b54a;
$stageColor: #f26c4f;
$archiveColor: #6f6f6f;
2014-08-13 02:41:18 +02:00
#BetterNavigatorStatus {
2015-12-18 00:58:50 +01:00
color: #fff;
2015-12-18 01:42:25 +01:00
background: $archiveColor;
border: 1px solid shade($archiveColor, 10);
border-width: 0 0 0 1px;
2015-12-18 00:58:50 +01:00
text-transform: uppercase;
cursor: pointer;
padding: 10px 15px 8px;
font-weight: bold;
.bn-icon-cog {
margin: -4px 8px -4px -4px;
display: none;
}
.bn-icon-close {
float: right;
margin: 1px 0 0 0;
}
.bn-icon-cog,
.bn-icon-close {
opacity: .7;
}
&:hover {
2015-12-18 01:42:25 +01:00
background: shade($archiveColor, 5);
2015-12-18 00:58:50 +01:00
.bn-icon-cog,
.bn-icon-close {
opacity: 1;
}
}
2015-12-18 01:42:25 +01:00
&.Live {
background: $liveColor;
border-color: shade($liveColor, 10);
&:hover {
background: shade($liveColor, 5);
}
}
2015-12-18 02:25:04 +01:00
&.Draft {
2015-12-18 01:42:25 +01:00
background: $stageColor;
border-color: shade($stageColor, 10);
&:hover {
background: shade($stageColor, 5);
}
}
2014-08-13 02:41:18 +02:00
}
//Content
#BetterNavigatorContent {
2015-12-18 00:58:50 +01:00
padding: 6px;
color: #71767a;
2015-12-18 01:42:25 +01:00
background: #cfd8de;
border: 1px solid shade(#cfd8de, 10);
border-width: 0 0 1px 1px;
2015-12-18 00:58:50 +01:00
.bn-heading {
text-align: center;
text-transform: uppercase;
font-size: 11px;
margin: 8px 0 4px 0;
}
span[class^='bn-icon'],span[class*=' bn-icon']{
margin: -2px 5px -3px -2px;
}
a,
span.bn-disabled {
display: block;
background: #eceff2;
color: #313639;
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
border-radius: 5px;
border-bottom: 1px solid #a3aaaf;
margin: 0 0 4px 0;
padding: 6px 10px 5px 10px;
line-height: 16px;
font-weight: bold;
.light {
font-weight: normal;
}
}
a:focus,
a:hover,
a:active {
background: #fff;
color: #000;
}
span.bn-disabled {
background: #afbac0;
color: #51565a;
cursor: default;
}
2014-08-13 02:41:18 +02:00
}
//Some help for debugging info
2014-08-13 02:41:18 +02:00
body > p.message {
2015-12-18 00:58:50 +01:00
text-align: left;
background: #fff;
color: #222;
padding: 10px 20px;
margin: 0;
border-bottom: 1px solid #ccc;
border-left: 5px solid #1d8aff;
}