| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,6 @@ | |||
| 43 | 43 | /*------------------------------------*\ | |
| 44 | 44 | #COMPONENTS | |
| 45 | 45 | \*------------------------------------*/ | |
| 46 | - | ||
| 47 | 46 | @import '../scripts/components/pl-nav/pl-nav.scss'; | |
| 48 | 47 | @import '../scripts/components/pl-search/pl-search.scss'; | |
| 49 | 48 | @import '../scripts/components/pl-tooltip/pl-tooltip.scss'; | |
@@ -112,6 +111,10 @@ | |||
| 112 | 111 | } | |
| 113 | 112 | } | |
| 114 | 113 | ||
| 114 | + .pl-c-body { | ||
| 115 | + overflow: hidden; | ||
| 116 | + } | ||
| 117 | + | ||
| 115 | 118 | .pl-c-main { | |
| 116 | 119 | overflow: hidden; | |
| 117 | 120 | max-width: 100vw; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,14 +12,15 @@ | |||
| 12 | 12 | margin-bottom: 0.5rem; | |
| 13 | 13 | display: flex; | |
| 14 | 14 | font-size: $pl-font-size-sm; | |
| 15 | - color: currentColor; | ||
| 15 | + color: inherit; | ||
| 16 | 16 | text-transform: capitalize; | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | /** | |
| 20 | 20 | * Breadcrumb Item | |
| 21 | 21 | */ | |
| 22 | 22 | .pl-c-breadcrumb__item { | |
| 23 | + color: inherit; | ||
| 23 | 24 | &:after { | |
| 24 | 25 | content: '\25b6'; | |
| 25 | 26 | opacity: 0.4; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,12 +19,13 @@ | |||
| 19 | 19 | .pl-c-pattern & { | |
| 20 | 20 | max-height: 30rem; | |
| 21 | 21 | overflow: scroll; | |
| 22 | - display: flex; | ||
| 22 | + display: block; | ||
| 23 | 23 | -webkit-overflow-scrolling: touch; | |
| 24 | 24 | ||
| 25 | 25 | @media all and (min-width: $pl-bp-large) { | |
| 26 | 26 | max-height: none; | |
| 27 | 27 | height: 18rem; | |
| 28 | + display: flex; | ||
| 28 | 29 | flex-direction: row; | |
| 29 | 30 | overflow: visible; | |
| 30 | 31 | } | |
@@ -52,16 +53,19 @@ | |||
| 52 | 53 | * Right side contains pattern code | |
| 53 | 54 | */ | |
| 54 | 55 | .pl-c-pattern-info__panel { | |
| 55 | - padding: 1rem; | ||
| 56 | - width: auto; | ||
| 57 | - flex-shrink: 0; | ||
| 56 | + padding: .5rem; | ||
| 57 | + flex-shrink: 1; | ||
| 58 | 58 | display: flex; | |
| 59 | 59 | flex-direction: column; | |
| 60 | 60 | ||
| 61 | + pl-drawer & { | ||
| 62 | + padding: 1rem; | ||
| 63 | + } | ||
| 64 | + | ||
| 61 | 65 | @media all and (min-width: $pl-bp-large) { | |
| 62 | 66 | flex-basis: 50%; | |
| 63 | 67 | flex-grow: 1; | |
| 64 | - overflow: auto; | ||
| 68 | + padding: 1.5rem; | ||
| 65 | 69 | } | |
| 66 | 70 | } | |
| 67 | 71 | ||
@@ -77,7 +81,7 @@ | |||
| 77 | 81 | } | |
| 78 | 82 | ||
| 79 | 83 | @media all and (min-width: $pl-bp-xl) { | |
| 80 | - width: 55%; | ||
| 84 | + min-width: 50%; | ||
| 81 | 85 | } | |
| 82 | 86 | } | |
| 83 | 87 | ||
@@ -92,11 +96,14 @@ | |||
| 92 | 96 | .pl-c-pattern-info__panel--info + .pl-c-pattern-info__panel--code, | |
| 93 | 97 | .pl-c-pattern-info__panel--code:first-child { | |
| 94 | 98 | flex-grow: 1; | |
| 95 | - flex-shrink: 1; | ||
| 99 | + flex-shrink: 0; // so the code panel doesn't get chopped off accidently | ||
| 100 | + min-width: 50%; | ||
| 96 | 101 | } | |
| 97 | 102 | ||
| 98 | - .pl-c-pattern-info__panel--code:first-child { | ||
| 99 | - padding-top: 0; | ||
| 103 | + .pl-c-pattern-info__panel--info + .pl-c-pattern-info__panel--code { | ||
| 104 | + @media all and (max-width: $pl-bp-large) { | ||
| 105 | + padding-top: 0; | ||
| 106 | + } | ||
| 100 | 107 | } | |
| 101 | 108 | ||
| 102 | 109 | /** | |
@@ -111,7 +118,7 @@ | |||
| 111 | 118 | */ | |
| 112 | 119 | .pl-c-pattern-info__title { | |
| 113 | 120 | font-size: 1.4rem !important; | |
| 114 | - font-weight: normal; | ||
| 121 | + font-weight: bold; | ||
| 115 | 122 | margin-top: 0; | |
| 116 | 123 | margin-bottom: 0; | |
| 117 | 124 | color: inherit; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -187,7 +187,6 @@ class Nav extends BaseComponent { | |||
| 187 | 187 | e.target.closest('pl-toggle-layout') === null | |
| 188 | 188 | ) { | |
| 189 | 189 | if (this.layoutMode !== 'vertical' && window.innerWidth > 670) { | |
| 190 | - console.log('handlePageClick + cleaning up...'); | ||
| 191 | 190 | this.cleanupActiveNav(true); | |
| 192 | 191 | } | |
| 193 | 192 | } | |
@@ -326,24 +325,12 @@ class Nav extends BaseComponent { | |||
| 326 | 325 | activeLink.classList.add('pl-is-active'); | |
| 327 | 326 | this.previousActiveLinks.push(activeLink); | |
| 328 | 327 | ||
| 329 | - // handle overview links vs nested links | ||
| 330 | - if (activeLink.classList.contains('pl-js-link-overview')) { | ||
| 331 | - const childDropdownTrigger = activeLink.nextSibling; | ||
| 332 | - const childDropdown = activeLink.parentNode.nextSibling; | ||
| 333 | - | ||
| 334 | - if (childDropdown && shouldAutoOpenNav) { | ||
| 335 | - if (childDropdown.tagName) { | ||
| 336 | - childDropdown.classList.add('pl-is-active'); | ||
| 337 | - this.previousActiveLinks.push(childDropdown); | ||
| 338 | - } | ||
| 339 | - } | ||
| 340 | - | ||
| 341 | - if (childDropdownTrigger && shouldAutoOpenNav) { | ||
| 342 | - if (childDropdownTrigger.tagName) { | ||
| 343 | - childDropdownTrigger.classList.add('pl-is-active'); | ||
| 344 | - this.previousActiveLinks.push(childDropdownTrigger); | ||
| 345 | - } | ||
| 346 | - } | ||
| 328 | + if ( | ||
| 329 | + activeLink.parentNode.classList.contains( | ||
| 330 | + 'pl-c-nav__link--overview-wrapper' | ||
| 331 | + ) | ||
| 332 | + ) { | ||
| 333 | + activeLink.parentNode.classList.add('pl-is-active'); | ||
| 347 | 334 | } | |
| 348 | 335 | ||
| 349 | 336 | const parentDropdown = activeLink.closest('.pl-js-acc-panel'); | |
@@ -372,31 +359,6 @@ class Nav extends BaseComponent { | |||
| 372 | 359 | const grandparentDropdownTrigger = | |
| 373 | 360 | grandparentDropdown.previousSibling; | |
| 374 | 361 | ||
| 375 | - if (parentDropdown && shouldAutoOpenNav) { | ||
| 376 | - parentDropdown.classList.add('pl-is-active'); | ||
| 377 | - this.previousActiveLinks.push(parentDropdown); | ||
| 378 | - } | ||
| 379 | - | ||
| 380 | - // don't auto-open | ||
| 381 | - if (parentDropdownTrigger) { | ||
| 382 | - if ( | ||
| 383 | - shouldAutoOpenNav === true || | ||
| 384 | - parentDropdownTrigger.classList.contains( | ||
| 385 | - 'pl-c-nav__link--title' | ||
| 386 | - ) === false | ||
| 387 | - ) { | ||
| 388 | - parentDropdownTrigger.classList.add('pl-is-active'); | ||
| 389 | - this.previousActiveLinks.push(parentDropdownTrigger); | ||
| 390 | - } | ||
| 391 | - } | ||
| 392 | - | ||
| 393 | - if (grandparentDropdown && shouldAutoOpenNav) { | ||
| 394 | - if (shouldAutoOpenNav) { | ||
| 395 | - grandparentDropdown.classList.add('pl-is-active'); | ||
| 396 | - } | ||
| 397 | - this.previousActiveLinks.push(grandparentDropdown); | ||
| 398 | - } | ||
| 399 | - | ||
| 400 | 362 | if (grandparentDropdownTrigger && shouldAutoOpenNav) { | |
| 401 | 363 | if (shouldAutoOpenNav) { | |
| 402 | 364 | grandparentDropdownTrigger.classList.add('pl-is-active'); | |
@@ -425,72 +387,12 @@ class Nav extends BaseComponent { | |||
| 425 | 387 | ||
| 426 | 388 | toggleSpecialNavPanel(e) { | |
| 427 | 389 | const target = e.target; | |
| 428 | - const panel = target.parentNode.nextSibling; | ||
| 429 | - const subnav = panel.parentNode.parentNode.classList.contains( | ||
| 430 | - 'pl-js-acc-panel' | ||
| 431 | - ); | ||
| 432 | - | ||
| 433 | - if (!subnav) { | ||
| 434 | - const navTriggers = document.querySelectorAll( | ||
| 435 | - `.pl-js-acc-handle.pl-is-active` | ||
| 436 | - ); | ||
| 437 | - const navPanels = document.querySelectorAll( | ||
| 438 | - `.pl-js-acc-panel.pl-is-active` | ||
| 439 | - ); | ||
| 440 | - | ||
| 441 | - navTriggers.forEach(navTrigger => { | ||
| 442 | - if (navTrigger !== target) { | ||
| 443 | - navTrigger.classList.remove('pl-is-active'); | ||
| 444 | - } | ||
| 445 | - }); | ||
| 446 | - | ||
| 447 | - navPanels.forEach(navPanel => { | ||
| 448 | - if (navPanel !== target) { | ||
| 449 | - navPanel.classList.remove('pl-is-active'); | ||
| 450 | - } | ||
| 451 | - }); | ||
| 452 | - } | ||
| 453 | - | ||
| 454 | - if (target.classList.contains('pl-is-active')) { | ||
| 455 | - target.classList.remove('pl-is-active'); | ||
| 456 | - panel.classList.remove('pl-is-active'); | ||
| 457 | - } else { | ||
| 458 | - target.classList.add('pl-is-active'); | ||
| 459 | - panel.classList.add('pl-is-active'); | ||
| 460 | - } | ||
| 390 | + target.parentNode.classList.toggle('pl-is-active'); | ||
| 461 | 391 | } | |
| 462 | 392 | ||
| 463 | 393 | toggleNavPanel(e) { | |
| 464 | 394 | const target = e.target; | |
| 465 | - const panel = target.nextSibling; | ||
| 466 | - const subnav = target.parentNode.parentNode.classList.contains( | ||
| 467 | - 'pl-js-acc-panel' | ||
| 468 | - ); | ||
| 469 | - | ||
| 470 | - if (!subnav) { | ||
| 471 | - const navTriggers = document.querySelectorAll('.pl-js-acc-handle'); | ||
| 472 | - const navPanels = document.querySelectorAll('.pl-js-acc-panel'); | ||
| 473 | - | ||
| 474 | - navTriggers.forEach(navTrigger => { | ||
| 475 | - if (navTrigger !== target) { | ||
| 476 | - navTrigger.classList.remove('pl-is-active'); | ||
| 477 | - } | ||
| 478 | - }); | ||
| 479 | - | ||
| 480 | - navPanels.forEach(navPanel => { | ||
| 481 | - if (navPanel !== target) { | ||
| 482 | - navPanel.classList.remove('pl-is-active'); | ||
| 483 | - } | ||
| 484 | - }); | ||
| 485 | - } | ||
| 486 | - | ||
| 487 | - if (target.classList.contains('pl-is-active')) { | ||
| 488 | - target.classList.remove('pl-is-active'); | ||
| 489 | - panel.classList.remove('pl-is-active'); | ||
| 490 | - } else { | ||
| 491 | - target.classList.add('pl-is-active'); | ||
| 492 | - panel.classList.add('pl-is-active'); | ||
| 493 | - } | ||
| 395 | + target.classList.toggle('pl-is-active'); | ||
| 494 | 396 | } | |
| 495 | 397 | ||
| 496 | 398 | rendered() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -312,6 +312,7 @@ pl-nav { | |||
| 312 | 312 | .pl-c-body--theme-sidebar & { | |
| 313 | 313 | border-width: 0; | |
| 314 | 314 | transform: none; | |
| 315 | + box-shadow: none; | ||
| 315 | 316 | } | |
| 316 | 317 | ||
| 317 | 318 | .pl-c-body--theme-light & { | |
@@ -556,6 +557,7 @@ pl-nav { | |||
| 556 | 557 | .pl-is-active + .pl-js-acc-panel { | |
| 557 | 558 | visibility: visible; | |
| 558 | 559 | max-height: none; | |
| 560 | + transform: translateY(0); | ||
| 559 | 561 | ||
| 560 | 562 | .pl-c-body--theme-horizontal & { | |
| 561 | 563 | overflow: auto; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,10 @@ pl-button { | |||
| 12 | 12 | @include buttonStyles; | |
| 13 | 13 | } | |
| 14 | 14 | ||
| 15 | + .pl-c-button__text { | ||
| 16 | + text-align: left; | ||
| 17 | + } | ||
| 18 | + | ||
| 15 | 19 | .pl-c-button--medium { | |
| 16 | 20 | padding: 0.65rem 1rem; | |
| 17 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,6 +62,7 @@ pl-drawer { | |||
| 62 | 62 | will-change: height; | |
| 63 | 63 | overflow: hidden; | |
| 64 | 64 | margin-top: calc(#{$pl-drawer-resizer-height * -1} + 1px); | |
| 65 | + padding-top: $pl-drawer-resizer-height; | ||
| 65 | 66 | } | |
| 66 | 67 | ||
| 67 | 68 | .pl-c-drawer__wrapper > * { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,7 @@ pl-header { | |||
| 31 | 31 | .pl-c-body--theme-sidebar & { | |
| 32 | 32 | position: fixed; | |
| 33 | 33 | position: sticky; | |
| 34 | + overflow: auto; | ||
| 34 | 35 | /** | |
| 35 | 36 | * Header | |
| 36 | 37 | * 1) Set width to sidebar width defined above | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ pl-logo { | |||
| 49 | 49 | ||
| 50 | 50 | .pl-c-logo__img { | |
| 51 | 51 | display: block; | |
| 52 | - height: auto; | ||
| 52 | + height: 100%; // fix to address scaling issue in ie 11 on windows 7 | ||
| 53 | 53 | max-width: 100%; | |
| 54 | 54 | max-height: 23px; | |
| 55 | 55 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,17 +1,13 @@ | |||
| 1 | 1 | @import '../../../sass/scss/core.scss'; | |
| 2 | 2 | ||
| 3 | 3 | pl-toggle-layout { | |
| 4 | - display: none; | ||
| 4 | + display: flex; | ||
| 5 | 5 | align-self: center; | |
| 6 | 6 | justify-content: center; | |
| 7 | 7 | align-items: center; | |
| 8 | 8 | z-index: 10; | |
| 9 | 9 | width: 100%; | |
| 10 | 10 | cursor: pointer; | |
| 11 | - | ||
| 12 | - @media all and (min-width: $pl-bp-med) { | ||
| 13 | - display: flex; | ||
| 14 | - } | ||
| 15 | 11 | } | |
| 16 | 12 | ||
| 17 | 13 | .pl-c-toggle-layout, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments