mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
Simplified transform css
This commit is contained in:
parent
3b53e7b36a
commit
8329322693
@ -89,23 +89,14 @@ span[class^='bn-icon'], span[class*=' bn-icon'] {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
#BetterNavigator.collapsed {
|
#BetterNavigator.collapsed {
|
||||||
right: auto;
|
-moz-transform-origin: right top;
|
||||||
left: 100%;
|
-ms-transform-origin: right top;
|
||||||
width: auto;
|
-webkit-transform-origin: right top;
|
||||||
overflow: visible;
|
transform-origin: right top;
|
||||||
}
|
-moz-transform: rotate(90deg) translate(100%, 0);
|
||||||
#BetterNavigator.collapsed #BetterNavigatorStatus {
|
-ms-transform: rotate(90deg) translate(100%, 0);
|
||||||
-moz-transform: rotate(90deg);
|
-webkit-transform: rotate(90deg) translate(100%, 0);
|
||||||
-ms-transform: rotate(90deg);
|
transform: rotate(90deg) translate(100%, 0);
|
||||||
-webkit-transform: rotate(90deg);
|
|
||||||
transform: rotate(90deg);
|
|
||||||
-moz-transform-origin: 0 0;
|
|
||||||
-ms-transform-origin: 0 0;
|
|
||||||
-webkit-transform-origin: 0 0;
|
|
||||||
transform-origin: 0 0;
|
|
||||||
white-space: nowrap;
|
|
||||||
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.5);
|
|
||||||
border: 1px solid #fff;
|
|
||||||
border-width: 0 1px 1px 0;
|
border-width: 0 1px 1px 0;
|
||||||
}
|
}
|
||||||
#BetterNavigator.collapsed #BetterNavigatorStatus .bn-icon-close {
|
#BetterNavigator.collapsed #BetterNavigatorStatus .bn-icon-close {
|
||||||
|
@ -16,6 +16,8 @@ span[class^='bn-icon'],span[class*=' bn-icon']{
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
|
max-height: 100%;
|
||||||
|
overflow: auto;
|
||||||
background: #cfd8de;
|
background: #cfd8de;
|
||||||
border: 1px solid #ecf0f2;
|
border: 1px solid #ecf0f2;
|
||||||
border-width: 0 0 1px 1px;
|
border-width: 0 0 1px 1px;
|
||||||
@ -27,30 +29,23 @@ span[class^='bn-icon'],span[class*=' bn-icon']{
|
|||||||
//Toggle states
|
//Toggle states
|
||||||
|
|
||||||
&.collapsed {
|
&.collapsed {
|
||||||
right: auto;
|
@include transform-origin(right,top);
|
||||||
left: 100%;
|
@include transform(rotate(90deg) translate(100%,0));
|
||||||
width: auto;
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
&.collapsed #BetterNavigatorStatus {
|
|
||||||
@include rotate(90deg);
|
|
||||||
@include transform-origin(0,0);
|
|
||||||
white-space: nowrap;
|
|
||||||
box-shadow: 0px 0px 1px rgba(0,0,0,0.5);
|
|
||||||
border: 1px solid #fff;
|
|
||||||
border-width: 0 1px 1px 0;
|
border-width: 0 1px 1px 0;
|
||||||
|
|
||||||
.bn-icon-close {
|
#BetterNavigatorStatus {
|
||||||
|
|
||||||
|
.bn-icon-close {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.bn-icon-cog {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#BetterNavigatorContent {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.bn-icon-cog {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&.collapsed #BetterNavigatorStatus {
|
|
||||||
}
|
|
||||||
&.collapsed #BetterNavigatorContent {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user