Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Page sidebar |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | /* IE8 fix */ |
||
| 6 | .ie8 .page-sidebar { |
||
| 7 | width: $sidebar-width; |
||
| 8 | float: left; |
||
| 9 | position: relative; |
||
| 10 | margin-right: -100%; |
||
| 11 | } |
||
| 12 | |||
| 13 | /* Page Sidebar */ |
||
| 14 | |||
| 15 | .page-sidebar, |
||
| 16 | .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover { |
||
| 17 | |||
| 18 | &.navbar-collapse { |
||
| 19 | padding: 0; |
||
| 20 | box-shadow: none; |
||
| 21 | } |
||
| 22 | |||
| 23 | /* Default sidebar menu */ |
||
| 24 | .page-sidebar-menu { |
||
| 25 | list-style: none; |
||
| 26 | margin: 0; |
||
| 27 | padding: 0; |
||
| 28 | |||
| 29 | /* 1st level links */ |
||
| 30 | > li { |
||
| 31 | display: block; |
||
| 32 | margin: 0; |
||
| 33 | padding: 0; |
||
| 34 | border: 0px; |
||
| 35 | |||
| 36 | &.sidebar-toggler-wrapper, |
||
| 37 | &.sidebar-search-wrapper { |
||
| 38 | border: 0 !important; |
||
| 39 | @include clearfix(); |
||
| 40 | } |
||
| 41 | |||
| 42 | &.start { |
||
| 43 | > a { |
||
| 44 | border-top-color: transparent !important; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | &.last { |
||
| 49 | > a { |
||
| 50 | border-bottom-color: transparent !important; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | > a { |
||
| 55 | display: block; |
||
| 56 | position: relative; |
||
| 57 | margin: 0; |
||
| 58 | border: 0px; |
||
| 59 | padding: 10px 15px; |
||
| 60 | text-decoration: none; |
||
| 61 | font-size: $sidebar-menu-link-font-size; |
||
| 62 | font-weight: 300; |
||
| 63 | |||
| 64 | > i { |
||
| 65 | font-size: $sidebar-menu-link-icon-font-size; |
||
| 66 | margin-right: 5px; |
||
| 67 | text-shadow:none; |
||
| 68 | } |
||
| 69 | |||
| 70 | > i.glyphicon { |
||
| 71 | top: 3px; |
||
| 72 | margin-left: 1px; |
||
| 73 | margin-right: 4px; |
||
| 74 | } |
||
| 75 | |||
| 76 | > [class^="icon-"] { |
||
| 77 | top: 2px; |
||
| 78 | margin-left: 1px; |
||
| 79 | margin-right: 4px; |
||
| 80 | } |
||
| 81 | |||
| 82 | .page-sidebar-fixed & { |
||
| 83 | transition: all 0.2s ease; |
||
| 84 | } |
||
| 85 | |||
| 86 | .page-sidebar-reversed.page-sidebar-fixed & { |
||
| 87 | transition: none; |
||
| 88 | } |
||
| 89 | } |
||
| 90 | |||
| 91 | &.heading { |
||
| 92 | padding: 15px 15px 15px 15px; |
||
| 93 | > h3 { |
||
| 94 | margin: 0; |
||
| 95 | padding: 0; |
||
| 96 | font-size: $sidebar-menu-head-font-size; |
||
| 97 | font-weight: 300; |
||
| 98 | } |
||
| 99 | } |
||
| 100 | |||
| 101 | &.heading + li > a { |
||
| 102 | border-top: 0; |
||
| 103 | } |
||
| 104 | |||
| 105 | &.open { |
||
| 106 | > a { |
||
| 107 | font-size: $sidebar-menu-link-font-size; |
||
| 108 | } |
||
| 109 | } |
||
| 110 | |||
| 111 | &.active { |
||
| 112 | > a { |
||
| 113 | border: none; |
||
| 114 | text-shadow:none; |
||
| 115 | font-size: $sidebar-menu-link-font-size; |
||
| 116 | |||
| 117 | > .selected { |
||
| 118 | display: block; |
||
| 119 | background-image: none; /* will be set in a theme css file*/ |
||
| 120 | float: right; |
||
| 121 | position: absolute; |
||
| 122 | right:0px; |
||
| 123 | top:8px; |
||
| 124 | |||
| 125 | background: none; |
||
| 126 | width: 0; |
||
| 127 | height: 0; |
||
| 128 | border-top: 12px solid transparent; |
||
| 129 | border-bottom: 12px solid transparent; |
||
| 130 | border-right: 12px solid #ffffff; |
||
| 131 | |||
| 132 | .page-sidebar-reversed & { |
||
| 133 | right: auto; |
||
| 134 | left:0; |
||
| 135 | border-right: 0; |
||
| 136 | border-left:8px solid #ffffff; |
||
| 137 | } |
||
| 138 | |||
| 139 | .page-container-bg-solid & { |
||
| 140 | border-color: transparent $page-content-solid-bg-color transparent transparent; |
||
| 141 | } |
||
| 142 | |||
| 143 | .page-container-bg-solid.page-sidebar-reversed & { |
||
| 144 | border-color: transparent transparent transparent $page-content-solid-bg-color; |
||
| 145 | } |
||
| 146 | } |
||
| 147 | } |
||
| 148 | } |
||
| 149 | } |
||
| 150 | |||
| 151 | /* all links */ |
||
| 152 | li { |
||
| 153 | > a { |
||
| 154 | > .arrow { |
||
| 155 | |||
| 156 | &:before { |
||
| 157 | float: right; |
||
| 158 | width: 10px; |
||
| 159 | text-align: center; |
||
| 160 | margin-top: -1px; |
||
| 161 | margin-right: 5px; |
||
| 162 | margin-left: 5px; |
||
| 163 | display: inline; |
||
| 164 | font-size: $sidebar-menu-link-icon-font-size; |
||
| 165 | font-family: FontAwesome; |
||
| 166 | height: auto; |
||
| 167 | content: "\f104"; |
||
| 168 | font-weight: 300; |
||
| 169 | text-shadow:none; |
||
| 170 | } |
||
| 171 | |||
| 172 | &.open:before { |
||
| 173 | content: "\f107"; |
||
| 174 | } |
||
| 175 | } |
||
| 176 | |||
| 177 | > .badge { |
||
| 178 | float: right; |
||
| 179 | margin-top: 1px; |
||
| 180 | margin-right: 0px; |
||
| 181 | } |
||
| 182 | } |
||
| 183 | } |
||
| 184 | |||
| 185 | .sub-menu { |
||
| 186 | list-style: none; |
||
| 187 | display: none; |
||
| 188 | padding: 0; |
||
| 189 | margin: 8px 0px 8px 0px; |
||
| 190 | |||
| 191 | li { |
||
| 192 | background: none; |
||
| 193 | margin: 0px; |
||
| 194 | padding: 0px; |
||
| 195 | margin-top: 1px !important; |
||
| 196 | |||
| 197 | > a { |
||
| 198 | display: block; |
||
| 199 | margin: 0; |
||
| 200 | padding: 6px 15px 6px 43px; |
||
| 201 | text-decoration: none; |
||
| 202 | font-size: $sidebar-menu-link-font-size; |
||
| 203 | font-weight: 300; |
||
| 204 | background: none; |
||
| 205 | |||
| 206 | > i { |
||
| 207 | font-size: $sidebar-menu-sub-menu-link-icon-font-size; |
||
| 208 | } |
||
| 209 | } |
||
| 210 | |||
| 211 | /* 2nd level sub menu */ |
||
| 212 | > .sub-menu { |
||
| 213 | margin: 0; |
||
| 214 | > li { |
||
| 215 | > a { |
||
| 216 | padding-left: 60px; |
||
| 217 | } |
||
| 218 | /* 3rd level sub menu */ |
||
| 219 | > .sub-menu { |
||
| 220 | margin: 0; |
||
| 221 | > li { |
||
| 222 | > a { |
||
| 223 | padding-left: 80px; |
||
| 224 | } |
||
| 225 | } |
||
| 226 | } |
||
| 227 | } |
||
| 228 | } |
||
| 229 | } |
||
| 230 | } |
||
| 231 | |||
| 232 | li.active { |
||
| 233 | > .sub-menu { |
||
| 234 | display: block; |
||
| 235 | } |
||
| 236 | } |
||
| 237 | } |
||
| 238 | |||
| 239 | /* light sidebar menu */ |
||
| 240 | .page-sidebar-menu.page-sidebar-menu-light { |
||
| 241 | > li { |
||
| 242 | > a { |
||
| 243 | border: 0; |
||
| 244 | margin: 0; |
||
| 245 | padding-left: 11px; |
||
| 246 | border-left: 4px solid transparent; |
||
| 247 | } |
||
| 248 | |||
| 249 | .sub-menu { |
||
| 250 | margin: 0; |
||
| 251 | padding: 1px 0; |
||
| 252 | |||
| 253 | li { |
||
| 254 | > a { |
||
| 255 | padding-top: 8px; |
||
| 256 | padding-bottom: 8px; |
||
| 257 | } |
||
| 258 | |||
| 259 | &:first-child { |
||
| 260 | margin-top: 0 !important; |
||
| 261 | } |
||
| 262 | } |
||
| 263 | } |
||
| 264 | } |
||
| 265 | |||
| 266 | .page-sidebar-reversed & { |
||
| 267 | > li { |
||
| 268 | > a { |
||
| 269 | padding-left: 15px; |
||
| 270 | padding-right: 11px; |
||
| 271 | border-left: 0; |
||
| 272 | border-right: 4px solid transparent; |
||
| 273 | } |
||
| 274 | } |
||
| 275 | } |
||
| 276 | } |
||
| 277 | |||
| 278 | .sidebar-toggler { |
||
| 279 | display: block; |
||
| 280 | cursor: pointer; |
||
| 281 | opacity: 0.7; |
||
| 282 | filter: alpha(opacity=70); |
||
| 283 | width: 30px; |
||
| 284 | height: 27px; |
||
| 285 | margin-top: 15px; |
||
| 286 | margin-right: 19px; |
||
| 287 | float: right; |
||
| 288 | |||
| 289 | @include border-radius($general-border-radius); |
||
| 290 | |||
| 291 | &:hover { |
||
| 292 | filter: alpha(opacity=100); |
||
| 293 | opacity: 1; |
||
| 294 | } |
||
| 295 | } |
||
| 296 | |||
| 297 | .sidebar-search { |
||
| 298 | padding:0; |
||
| 299 | margin: 22px 18px 22px 18px; |
||
| 300 | |||
| 301 | .remove { |
||
| 302 | display: none; |
||
| 303 | |||
| 304 | > i { |
||
| 305 | font-size: 16px; |
||
| 306 | } |
||
| 307 | } |
||
| 308 | |||
| 309 | .input-group { |
||
| 310 | |||
| 311 | @include border-radius($general-border-radius); |
||
| 312 | |||
| 313 | .form-control { |
||
| 314 | border: 0; |
||
| 315 | font-size: 14px; |
||
| 316 | padding: 0; |
||
| 317 | height: auto; |
||
| 318 | line-height: auto; |
||
| 319 | @include border-radius($general-border-radius); |
||
| 320 | } |
||
| 321 | |||
| 322 | .input-group-btn { |
||
| 323 | |||
| 324 | .btn { |
||
| 325 | padding: 2px 0 0 0; |
||
| 326 | background-color: transparent; |
||
| 327 | background-repeat: no-repeat; |
||
| 328 | background-position: 100% 3px; |
||
| 329 | |||
| 330 | > i { |
||
| 331 | font-size: 15px; |
||
| 332 | } |
||
| 333 | } |
||
| 334 | } |
||
| 335 | } |
||
| 336 | } |
||
| 337 | |||
| 338 | .sidebar-search.sidebar-search-bordered { |
||
| 339 | margin: 25px 18px 25px 18px; |
||
| 340 | |||
| 341 | .input-group { |
||
| 342 | |||
| 343 | .form-control { |
||
| 344 | font-size: 13px; |
||
| 345 | padding: 6px 8px; |
||
| 346 | } |
||
| 347 | |||
| 348 | .input-group-btn { |
||
| 349 | |||
| 350 | .btn { |
||
| 351 | margin-right: 6px; |
||
| 352 | } |
||
| 353 | } |
||
| 354 | } |
||
| 355 | } |
||
| 356 | } |
||
| 357 | |||
| 358 | @media (min-width: $screen-md-min) { /* 992px */ |
||
| 359 | |||
| 360 | .page-sidebar { |
||
| 361 | width: $sidebar-width; |
||
| 362 | float: left; |
||
| 363 | position: relative; |
||
| 364 | margin-right: -100%; |
||
| 365 | |||
| 366 | .page-full-width & { |
||
| 367 | display: none !important; |
||
| 368 | } |
||
| 369 | |||
| 370 | &.navbar-collapse { |
||
| 371 | max-height: none !important; |
||
| 372 | } |
||
| 373 | } |
||
| 374 | |||
| 375 | .page-sidebar-reversed { |
||
| 376 | .page-sidebar { |
||
| 377 | float: right; |
||
| 378 | margin-right: 0; |
||
| 379 | margin-left: -100%; |
||
| 380 | } |
||
| 381 | |||
| 382 | &.page-sidebar-fixed .page-sidebar { |
||
| 383 | margin-left: -$sidebar-width; |
||
| 384 | } |
||
| 385 | |||
| 386 | &.page-sidebar-fixed .page-sidebar-wrapper { |
||
| 387 | position: relative; |
||
| 388 | float: right; |
||
| 389 | } |
||
| 390 | } |
||
| 391 | |||
| 392 | .page-sidebar-fixed { |
||
| 393 | |||
| 394 | .page-sidebar { |
||
| 395 | position: fixed !important; |
||
| 396 | margin-left: 0; |
||
| 397 | top: $header-height; |
||
| 398 | } |
||
| 399 | |||
| 400 | .page-sidebar-menu { |
||
| 401 | > li { |
||
| 402 | &.last { |
||
| 403 | margin-bottom: 15px !important; |
||
| 404 | } |
||
| 405 | } |
||
| 406 | |||
| 407 | .sub-menu { |
||
| 408 | height: auto !important; |
||
| 409 | } |
||
| 410 | } |
||
| 411 | } |
||
| 412 | |||
| 413 | /* Sidebar Closed */ |
||
| 414 | |||
| 415 | .page-sidebar-closed { |
||
| 416 | .page-sidebar { |
||
| 417 | width: $sidebar-collapsed-width !important; |
||
| 418 | |||
| 419 | .page-sidebar-menu.page-sidebar-menu-closed { |
||
| 420 | |||
| 421 | /* sidebar */ |
||
| 422 | width: $sidebar-collapsed-width !important; |
||
| 423 | |||
| 424 | > li { |
||
| 425 | |||
| 426 | /* hide opened sub menu */ |
||
| 427 | &.open > .sub-menu, |
||
| 428 | > .sub-menu { |
||
| 429 | display: none !important; |
||
| 430 | } |
||
| 431 | |||
| 432 | &:hover { |
||
| 433 | width: ($sidebar-collapsed-submenu-width-on-hover + $sidebar-collapsed-width + 1) !important; |
||
| 434 | position: relative !important; |
||
| 435 | z-index: $zindex-sidebar-fixed; |
||
| 436 | display: block !important; |
||
| 437 | |||
| 438 | > a { |
||
| 439 | @include border-radius(0 $general-border-radius 0 0); |
||
| 440 | |||
| 441 | > i { |
||
| 442 | margin-right: 10px; |
||
| 443 | } |
||
| 444 | |||
| 445 | > .title { |
||
| 446 | display: inline !important; |
||
| 447 | padding-left: 15px; |
||
| 448 | } |
||
| 449 | |||
| 450 | > .badge { |
||
| 451 | display: block !important; |
||
| 452 | } |
||
| 453 | |||
| 454 | > .selected { |
||
| 455 | display: none; |
||
| 456 | } |
||
| 457 | } |
||
| 458 | |||
| 459 | &.heading { |
||
| 460 | width: $sidebar-collapsed-width !important; |
||
| 461 | box-shadow: none; |
||
| 462 | } |
||
| 463 | |||
| 464 | > .sub-menu { |
||
| 465 | width: $sidebar-collapsed-submenu-width-on-hover; |
||
| 466 | position: absolute; |
||
| 467 | z-index: $zindex-sidebar-submenu; |
||
| 468 | left: ($sidebar-collapsed-width + 1px); |
||
| 469 | margin-top: 0; |
||
| 470 | top: 100%; |
||
| 471 | display: block !important; |
||
| 472 | |||
| 473 | @include border-radius(0 0 $general-border-radius $general-border-radius); |
||
| 474 | |||
| 475 | > li { |
||
| 476 | > a { |
||
| 477 | padding-left: 15px !important; |
||
| 478 | } |
||
| 479 | |||
| 480 | > .sub-menu { |
||
| 481 | > li { |
||
| 482 | > a { |
||
| 483 | padding-left: 30px !important; |
||
| 484 | } |
||
| 485 | |||
| 486 | > .sub-menu { |
||
| 487 | > li { |
||
| 488 | > a { |
||
| 489 | padding-left: 45px !important; |
||
| 490 | } |
||
| 491 | } |
||
| 492 | } |
||
| 493 | } |
||
| 494 | } |
||
| 495 | } |
||
| 496 | } |
||
| 497 | } |
||
| 498 | |||
| 499 | &.heading { |
||
| 500 | > h3 { |
||
| 501 | display: none; |
||
| 502 | } |
||
| 503 | } |
||
| 504 | |||
| 505 | &.sidebar-toggler-wrapper { |
||
| 506 | .sidebar-toggler { |
||
| 507 | margin-right: 8px; |
||
| 508 | } |
||
| 509 | |||
| 510 | &:hover { |
||
| 511 | width: $sidebar-collapsed-width !important; |
||
| 512 | } |
||
| 513 | } |
||
| 514 | |||
| 515 | &.sidebar-search-wrapper { |
||
| 516 | &:hover { |
||
| 517 | width: $sidebar-collapsed-width !important; |
||
| 518 | } |
||
| 519 | } |
||
| 520 | |||
| 521 | > a { |
||
| 522 | padding-left: 11px; |
||
| 523 | |||
| 524 | .selected { |
||
| 525 | right: -3px !important; |
||
| 526 | } |
||
| 527 | |||
| 528 | > .badge, |
||
| 529 | > .title, |
||
| 530 | > .arrow { |
||
| 531 | display: none !important; |
||
| 532 | } |
||
| 533 | } |
||
| 534 | } |
||
| 535 | |||
| 536 | /* sidebar toggler */ |
||
| 537 | .sidebar-toggler { |
||
| 538 | margin-left: 3px; |
||
| 539 | margin-right: 3px; |
||
| 540 | } |
||
| 541 | |||
| 542 | /* sidebar search */ |
||
| 543 | .sidebar-search { |
||
| 544 | .input-group { |
||
| 545 | border-color: transparent; |
||
| 546 | margin-left: -4px; |
||
| 547 | |||
| 548 | .form-control { |
||
| 549 | display: none; |
||
| 550 | } |
||
| 551 | |||
| 552 | .input-group-btn { |
||
| 553 | |||
| 554 | .btn { |
||
| 555 | display: block; |
||
| 556 | } |
||
| 557 | } |
||
| 558 | } |
||
| 559 | } |
||
| 560 | |||
| 561 | /* sidebar bordered search */ |
||
| 562 | .sidebar-search.sidebar-search-bordered { |
||
| 563 | .input-group { |
||
| 564 | padding: 5px 0 3px 0; |
||
| 565 | } |
||
| 566 | } |
||
| 567 | |||
| 568 | /* sidebar search expanded */ |
||
| 569 | .sidebar-search.open { |
||
| 570 | height: 39px; |
||
| 571 | margin-top: 14px; |
||
| 572 | margin-bottom: 14px; |
||
| 573 | |||
| 574 | .input-group { |
||
| 575 | width: $sidebar-collapsed-submenu-width-on-hover; |
||
| 576 | position: relative; |
||
| 577 | z-index: 1; |
||
| 578 | margin-left: 24px; |
||
| 579 | padding: 0; |
||
| 580 | |||
| 581 | .form-control { |
||
| 582 | background: none; |
||
| 583 | border: 0; |
||
| 584 | display: block; |
||
| 585 | padding: 8px 8px; |
||
| 586 | } |
||
| 587 | |||
| 588 | .input-group-btn { |
||
| 589 | .btn { |
||
| 590 | display: block; |
||
| 591 | margin-right: 8px; |
||
| 592 | margin-top: 1px; |
||
| 593 | } |
||
| 594 | } |
||
| 595 | } |
||
| 596 | |||
| 597 | .remove { |
||
| 598 | background-repeat: no-repeat; |
||
| 599 | width: 11px; |
||
| 600 | height: 11px; |
||
| 601 | margin: 9px -5px 9px -7px; |
||
| 602 | display: block; |
||
| 603 | float: left; |
||
| 604 | } |
||
| 605 | } |
||
| 606 | |||
| 607 | /* sidebar bordered search expanded */ |
||
| 608 | .sidebar-search.open.sidebar-search-bordered { |
||
| 609 | height: 36px; |
||
| 610 | margin-top: 23px; |
||
| 611 | margin-bottom: 23px; |
||
| 612 | |||
| 613 | .input-group { |
||
| 614 | padding: 0; |
||
| 615 | } |
||
| 616 | } |
||
| 617 | } |
||
| 618 | |||
| 619 | .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed { |
||
| 620 | > li { |
||
| 621 | > a { |
||
| 622 | padding-right: 11px; |
||
| 623 | padding-left: 7px; |
||
| 624 | } |
||
| 625 | } |
||
| 626 | } |
||
| 627 | } |
||
| 628 | |||
| 629 | &.page-sidebar-reversed { |
||
| 630 | |||
| 631 | .page-sidebar { |
||
| 632 | margin-left: -$sidebar-collapsed-width; |
||
| 633 | width: $sidebar-collapsed-width; |
||
| 634 | |||
| 635 | .page-sidebar-menu.page-sidebar-menu-closed { |
||
| 636 | |||
| 637 | /* sidebar */ |
||
| 638 | > li { |
||
| 639 | > .sub-menu { |
||
| 640 | left:auto; |
||
| 641 | right: ($sidebar-collapsed-width + 1px); |
||
| 642 | } |
||
| 643 | |||
| 644 | &:hover { |
||
| 645 | margin-left: -($sidebar-collapsed-submenu-width-on-hover + 1px); |
||
| 646 | |||
| 647 | > a { |
||
| 648 | @include border-radius($general-border-radius 0 0 0); |
||
| 649 | |||
| 650 | > .title { |
||
| 651 | padding-left: 0; |
||
| 652 | padding-right: 15px; |
||
| 653 | } |
||
| 654 | |||
| 655 | > i { |
||
| 656 | margin-right: 0; |
||
| 657 | margin-left: 2px; |
||
| 658 | } |
||
| 659 | } |
||
| 660 | } |
||
| 661 | |||
| 662 | &.sidebar-search-wrapper, |
||
| 663 | &.sidebar-toggler-wrapper { |
||
| 664 | &:hover { |
||
| 665 | margin-left: 0; |
||
| 666 | } |
||
| 667 | } |
||
| 668 | } |
||
| 669 | |||
| 670 | /* sidebar search */ |
||
| 671 | .sidebar-search { |
||
| 672 | &.open { |
||
| 673 | .input-group { |
||
| 674 | margin-left: -($sidebar-collapsed-submenu-width-on-hover + 17px); |
||
| 675 | |||
| 676 | .input-group-btn { |
||
| 677 | .btn { |
||
| 678 | margin-right: 10px !important; |
||
| 679 | } |
||
| 680 | } |
||
| 681 | } |
||
| 682 | |||
| 683 | .remove { |
||
| 684 | margin: 9px 4px 12px -16px !important; |
||
| 685 | float: right !important; |
||
| 686 | } |
||
| 687 | } |
||
| 688 | } |
||
| 689 | } |
||
| 690 | |||
| 691 | .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-closed { |
||
| 692 | > li { |
||
| 693 | > a { |
||
| 694 | padding-right: 7px; |
||
| 695 | padding-left: 11px; |
||
| 696 | } |
||
| 697 | } |
||
| 698 | } |
||
| 699 | } |
||
| 700 | } |
||
| 701 | |||
| 702 | &.page-sidebar-fixed { |
||
| 703 | .page-sidebar { |
||
| 704 | &:hover { |
||
| 705 | width: $sidebar-width !important; |
||
| 706 | display: block; |
||
| 707 | z-index: $zindex-sidebar-fixed; |
||
| 708 | |||
| 709 | .page-sidebar-menu { |
||
| 710 | width: $sidebar-width !important; |
||
| 711 | |||
| 712 | .selected { |
||
| 713 | display: none !important; |
||
| 714 | } |
||
| 715 | } |
||
| 716 | } |
||
| 717 | } |
||
| 718 | } |
||
| 719 | |||
| 720 | &.page-sidebar-fixed.page-sidebar-reversed { |
||
| 721 | .page-sidebar { |
||
| 722 | &:hover { |
||
| 723 | width: $sidebar-width !important; |
||
| 724 | display: absolute; |
||
| 725 | z-index: $zindex-sidebar-fixed; |
||
| 726 | margin-left: -$sidebar-width !important; |
||
| 727 | |||
| 728 | .page-sidebar-menu { |
||
| 729 | width: $sidebar-width !important; |
||
| 730 | } |
||
| 731 | } |
||
| 732 | } |
||
| 733 | } |
||
| 734 | |||
| 735 | &.page-sidebar-hide { |
||
| 736 | .page-sidebar { |
||
| 737 | display: none !important; |
||
| 738 | } |
||
| 739 | } |
||
| 740 | } |
||
| 741 | |||
| 742 | /* Sidebar Menu Wirh Hoverable Submenu */ |
||
| 743 | .page-sidebar-menu.page-sidebar-menu-hover-submenu { |
||
| 744 | li { |
||
| 745 | .sub-menu { |
||
| 746 | display: none; |
||
| 747 | width: $sidebar-collapsed-submenu-width-on-hover; |
||
| 748 | z-index: $zindex-sidebar-submenu; |
||
| 749 | position: absolute; |
||
| 750 | |||
| 751 | @include border-radius($general-border-radius); |
||
| 752 | |||
| 753 | > li { |
||
| 754 | > a { |
||
| 755 | margin: 3px; |
||
| 756 | } |
||
| 757 | } |
||
| 758 | } |
||
| 759 | |||
| 760 | &.active, |
||
| 761 | &.open { |
||
| 762 | .sub-menu { |
||
| 763 | display: none !important; |
||
| 764 | } |
||
| 765 | } |
||
| 766 | |||
| 767 | a > .arrow { |
||
| 768 | display: none; |
||
| 769 | } |
||
| 770 | |||
| 771 | &:hover { |
||
| 772 | > a { |
||
| 773 | > .arrow { |
||
| 774 | display: block; |
||
| 775 | float: right; |
||
| 776 | position: absolute; |
||
| 777 | right: 0; |
||
| 778 | margin-top: -20px; |
||
| 779 | background: none; |
||
| 780 | width: 0; |
||
| 781 | height: 0; |
||
| 782 | border-style: solid; |
||
| 783 | border-top: 12px double transparent; |
||
| 784 | border-bottom: 12px double transparent; |
||
| 785 | border-left:0; |
||
| 786 | |||
| 787 | &:after, |
||
| 788 | &:before { |
||
| 789 | display: none; |
||
| 790 | } |
||
| 791 | |||
| 792 | .page-sidebar-reversed & { |
||
| 793 | right: auto; |
||
| 794 | left: 0; |
||
| 795 | border-right: 0; |
||
| 796 | } |
||
| 797 | } |
||
| 798 | } |
||
| 799 | |||
| 800 | > .sub-menu { |
||
| 801 | display: inline-block !important; |
||
| 802 | } |
||
| 803 | } |
||
| 804 | } |
||
| 805 | |||
| 806 | > li:hover { |
||
| 807 | > a { |
||
| 808 | > .arrow { |
||
| 809 | z-index: 1; |
||
| 810 | right: 0px; |
||
| 811 | margin-top: -23px; |
||
| 812 | } |
||
| 813 | > .selected { |
||
| 814 | display: none; |
||
| 815 | } |
||
| 816 | } |
||
| 817 | |||
| 818 | > .sub-menu { |
||
| 819 | margin-left: $sidebar-width; |
||
| 820 | margin-top: -40px; |
||
| 821 | |||
| 822 | .page-sidebar-reversed & { |
||
| 823 | margin-left: -($sidebar-collapsed-submenu-width-on-hover) !important; |
||
| 824 | } |
||
| 825 | |||
| 826 | .page-sidebar-closed & { |
||
| 827 | margin-left: 0; |
||
| 828 | } |
||
| 829 | |||
| 830 | > li { |
||
| 831 | |||
| 832 | > a { |
||
| 833 | padding-left: 15px; |
||
| 834 | } |
||
| 835 | |||
| 836 | .sub-menu { |
||
| 837 | margin-left: $sidebar-collapsed-submenu-width-on-hover; |
||
| 838 | margin-top: -38px !important; |
||
| 839 | |||
| 840 | .page-sidebar-reversed & { |
||
| 841 | margin-left: -$sidebar-collapsed-submenu-width-on-hover !important; |
||
| 842 | } |
||
| 843 | |||
| 844 | > li > a { |
||
| 845 | padding-left: 10px; |
||
| 846 | padding-right: 10px; |
||
| 847 | } |
||
| 848 | } |
||
| 849 | } |
||
| 850 | } |
||
| 851 | } |
||
| 852 | } |
||
| 853 | |||
| 854 | .page-sidebar-menu.page-sidebar-menu-light.page-sidebar-menu-hover-submenu { |
||
| 855 | li:hover { |
||
| 856 | > .sub-menu { |
||
| 857 | margin-top: -41px; |
||
| 858 | |||
| 859 | > li { |
||
| 860 | > .sub-menu { |
||
| 861 | margin-top: -41px; |
||
| 862 | } |
||
| 863 | } |
||
| 864 | } |
||
| 865 | } |
||
| 866 | } |
||
| 867 | } |
||
| 868 | |||
| 869 | @media (max-width: $screen-sm-max) { /* 991px */ |
||
| 870 | |||
| 871 | .page-sidebar { |
||
| 872 | border-top: 0 !important; |
||
| 873 | margin: 20px; |
||
| 874 | |||
| 875 | .sidebar-toggler { |
||
| 876 | display: none; |
||
| 877 | } |
||
| 878 | |||
| 879 | .selected { |
||
| 880 | display: none !important; |
||
| 881 | } |
||
| 882 | |||
| 883 | &.navbar-collapse { |
||
| 884 | max-height: none; /* set some max height to have a scrollable menu on mobile devices */ |
||
| 885 | |||
| 886 | &.collapse { |
||
| 887 | display: none !important; |
||
| 888 | } |
||
| 889 | |||
| 890 | &.in { |
||
| 891 | border-top: 0 !important; |
||
| 892 | margin: 20px; |
||
| 893 | position: relative; |
||
| 894 | overflow: hidden !important; |
||
| 895 | overflow-y: auto !important; |
||
| 896 | display: block !important; |
||
| 897 | } |
||
| 898 | |||
| 899 | &.navbar-no-scroll { |
||
| 900 | max-height: none !important; |
||
| 901 | } |
||
| 902 | } |
||
| 903 | |||
| 904 | .mega-menu-responsive-content { |
||
| 905 | padding: 10px 18px 10px 45px; |
||
| 906 | } |
||
| 907 | } |
||
| 908 | |||
| 909 | .page-full-width { |
||
| 910 | .page-sidebar-menu { |
||
| 911 | display: block; |
||
| 912 | } |
||
| 913 | } |
||
| 914 | } |
||
| 915 | |||
| 916 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { /* 768px & 991px */ |
||
| 917 | .page-sidebar { |
||
| 918 | .btn-navbar { |
||
| 919 | |||
| 920 | &.collapsed .arrow { |
||
| 921 | display: none; |
||
| 922 | } |
||
| 923 | |||
| 924 | .arrow { |
||
| 925 | position: absolute; |
||
| 926 | right: 25px; |
||
| 927 | width: 0; |
||
| 928 | height: 0; |
||
| 929 | top:50px; |
||
| 930 | border-bottom: 15px solid #5f646b; |
||
| 931 | border-left: 15px solid transparent; |
||
| 932 | border-right: 15px solid transparent; |
||
| 933 | } |
||
| 934 | } |
||
| 935 | } |
||
| 936 | } |
||
| 937 | |||
| 938 | @media (max-width: $screen-xs-min) { /* 480px */ |
||
| 939 | |||
| 940 | /* Page sidebar */ |
||
| 941 | |||
| 942 | .page-sidebar, |
||
| 943 | .page-sidebar.in { |
||
| 944 | margin: 0 10px 10px 10px !important; |
||
| 945 | |||
| 946 | .page-header-fixed.page-header-fixed-mobile & { |
||
| 947 | margin-top: 10px !important; |
||
| 948 | } |
||
| 949 | } |
||
| 950 | } |