2011-05-20 01:29:40 +02:00
|
|
|
/**
|
|
|
|
* Styles for the left hand side menu
|
|
|
|
*
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage admin
|
|
|
|
*/
|
2011-08-01 00:54:31 +02:00
|
|
|
|
2011-05-20 01:29:40 +02:00
|
|
|
/** -------------------------------------------------------
|
|
|
|
* CMS Menu Bar
|
|
|
|
* -------------------------------------------------------- */
|
2011-04-15 01:27:23 +02:00
|
|
|
.cms-menu {
|
2011-08-01 00:54:31 +02:00
|
|
|
z-index: 80;
|
2011-05-20 01:29:40 +02:00
|
|
|
background: $color-menu-background;
|
|
|
|
border-right: 1px solid $color-menu-border;
|
2011-08-01 00:54:31 +02:00
|
|
|
width: ($grid-horizontal * 24) - 1; /* 8x24 - 1 */
|
2011-05-20 01:29:40 +02:00
|
|
|
overflow: auto;
|
2011-04-15 01:27:23 +02:00
|
|
|
|
2011-08-01 00:54:31 +02:00
|
|
|
@include box-shadow($color-shadow-dark 0 0 $grid-horizontal);
|
2011-05-20 01:29:40 +02:00
|
|
|
|
2011-04-15 01:27:23 +02:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2011-05-13 03:30:49 +02:00
|
|
|
|
|
|
|
.cms-panel-content {
|
2011-08-01 00:54:31 +02:00
|
|
|
width: ($grid-horizontal * 24) - 1; /* 8x24 - 1 */
|
2011-07-28 06:57:41 +02:00
|
|
|
overflow: hidden
|
2011-05-13 03:30:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.collapsed {
|
|
|
|
width: 40px;
|
|
|
|
cursor: auto;
|
2011-07-28 06:57:41 +02:00
|
|
|
z-index: 1000;
|
|
|
|
|
|
|
|
.cms-header {
|
|
|
|
width: 30px;
|
|
|
|
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2011-05-13 03:30:49 +02:00
|
|
|
|
|
|
|
.cms-menu-list {
|
2011-07-28 06:57:41 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
2011-05-13 03:30:49 +02:00
|
|
|
li span.text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
li ul {
|
2011-07-29 05:10:14 +02:00
|
|
|
display: none !important;
|
2011-05-13 03:30:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.cms-panel .cms-panel-content {
|
|
|
|
display: block; // override panel defaults
|
|
|
|
}
|
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.cms-menu-list {
|
|
|
|
li {
|
|
|
|
a {
|
|
|
|
display: block;
|
2011-08-01 00:54:31 +02:00
|
|
|
height: $grid-vertical * 3;
|
|
|
|
line-height: $grid-vertical * 3;
|
2011-05-20 01:29:40 +02:00
|
|
|
font-size: $font-base-size;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2011-06-10 03:37:54 +02:00
|
|
|
text-shadow: lighten($color-base, 5%) 1px 1px 0;
|
2011-04-19 06:34:30 +02:00
|
|
|
color: $color-text-dark;
|
2011-08-01 00:54:31 +02:00
|
|
|
padding: ($grid-vertical - 1) 5px ($grid-vertical - 1) 8px;
|
2011-05-20 01:29:40 +02:00
|
|
|
background-color: $color-base;
|
2011-08-16 04:57:30 +02:00
|
|
|
cursor: pointer;
|
2011-05-20 01:29:40 +02:00
|
|
|
|
2011-07-28 06:57:41 +02:00
|
|
|
@include background-image(linear-gradient(
|
2011-05-20 01:29:40 +02:00
|
|
|
$color-base,
|
2011-07-06 15:22:13 +02:00
|
|
|
darken($color-base, 12%)
|
2011-05-20 01:29:40 +02:00
|
|
|
));
|
|
|
|
|
|
|
|
border-top: 1px solid lighten($color-base, 10%);
|
|
|
|
border-bottom: 1px solid darken($color-base, 20%);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: lighten($color-base, 2%);
|
|
|
|
border-bottom: 1px solid darken($color-base, 15%);
|
|
|
|
color: lighten($color-text-dark, 5%);
|
|
|
|
|
2011-07-28 06:57:41 +02:00
|
|
|
@include background-image(linear-gradient(
|
2011-05-20 01:29:40 +02:00
|
|
|
lighten($color-base, 5%),
|
|
|
|
$color-base
|
|
|
|
));
|
|
|
|
}
|
2011-08-04 02:02:39 +02:00
|
|
|
&:focus,
|
|
|
|
&:active {
|
2011-05-20 01:29:40 +02:00
|
|
|
border-top: 1px solid darken($color-base, 5%);
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: darken($color-base, 5%);
|
|
|
|
color: lighten($color-text-dark, 10%);
|
|
|
|
|
2011-07-28 06:57:41 +02:00
|
|
|
@include background-image(linear-gradient(
|
2011-05-20 01:29:40 +02:00
|
|
|
darken($color-base, 10%),
|
|
|
|
darken($color-base, 5%)
|
|
|
|
));
|
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: block;
|
|
|
|
float: left;
|
2011-08-09 01:39:12 +02:00
|
|
|
margin: 4px 10px 0 4px;
|
2011-07-28 06:57:41 +02:00
|
|
|
|
|
|
|
@include opacity(0.7);
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2011-08-16 05:36:39 +02:00
|
|
|
|
|
|
|
ul {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2011-04-15 01:27:23 +02:00
|
|
|
&.current {
|
2011-05-20 01:29:40 +02:00
|
|
|
a {
|
|
|
|
color: $color-text-light;
|
|
|
|
text-shadow: darken($color-menu-button, 20%) 0 -1px 0;
|
|
|
|
border-top: 1px solid lighten($color-menu-button, 10%);
|
|
|
|
border-bottom: 1px solid darken($color-menu-button, 20%);
|
|
|
|
background-color: $color-menu-button;
|
2011-07-28 06:57:41 +02:00
|
|
|
@include background-image(linear-gradient(
|
2011-05-20 01:29:40 +02:00
|
|
|
$color-menu-button,
|
2011-04-19 06:34:30 +02:00
|
|
|
darken($color-menu-button, 10%)
|
|
|
|
));
|
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
|
2011-05-20 01:29:40 +02:00
|
|
|
ul {
|
|
|
|
border-top: 1px solid darken($color-menu-button, 20%);
|
2011-08-18 01:26:24 +02:00
|
|
|
display: block;
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
|
|
|
|
2011-05-20 01:29:40 +02:00
|
|
|
li {
|
|
|
|
background-color: darken($color-menu-button, 10%);
|
|
|
|
|
|
|
|
a {
|
2011-06-10 03:37:54 +02:00
|
|
|
font-size: $font-base-size - 1;
|
2011-07-28 06:57:41 +02:00
|
|
|
padding: 0 10px 0 40px;
|
2011-05-20 01:29:40 +02:00
|
|
|
height: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
color: lighten($color-menu-button, 45%);
|
|
|
|
background: none;
|
|
|
|
border-top: 1px solid $color-menu-button;
|
|
|
|
border-bottom: 1px solid darken($color-menu-button, 20%);
|
|
|
|
|
|
|
|
&.current,
|
|
|
|
&:hover {
|
|
|
|
background: darken($color-menu-button, 5%);
|
|
|
|
border-top: 1px solid darken($color-menu-button, 5%);
|
|
|
|
color: $color-text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: darken($color-menu-button, 15%);
|
|
|
|
border-top: 1px solid darken($color-menu-button, 20%);
|
|
|
|
color: lighten($color-menu-button, 60%);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.current a {
|
|
|
|
font-weight: bold;
|
|
|
|
color: $color-text-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.first a {
|
|
|
|
border-top: none;
|
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-08-16 05:36:39 +02:00
|
|
|
|
2011-05-13 03:30:49 +02:00
|
|
|
&.collapsed {
|
|
|
|
li .text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li > li {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2011-04-15 01:27:23 +02:00
|
|
|
}
|