From 50e803f1a02a6191228ac9afe7f35be619e5fa2d Mon Sep 17 00:00:00 2001 From: yanas Date: Fri, 9 Sep 2016 21:26:29 -0500 Subject: [PATCH] Fixes side toolbar container behavior --- css/_contact_list.scss | 5 + css/_toolbars.scss | 38 +++-- css/_variables.scss | 5 + index.html | 130 +++++++++--------- .../UI/side_pannels/SideContainerToggler.js | 26 +++- modules/UI/toolbars/Toolbar.js | 40 ++++-- modules/UI/toolbars/ToolbarToggler.js | 29 +++- 7 files changed, 184 insertions(+), 89 deletions(-) diff --git a/css/_contact_list.scss b/css/_contact_list.scss index d9e46261f..ac55c6691 100644 --- a/css/_contact_list.scss +++ b/css/_contact_list.scss @@ -28,6 +28,11 @@ padding: 7px 10px; margin: 2px; + &:hover, + &:active { + background: $toolbarSelectBackground; + } + > p { display: inline-block; vertical-align: middle; diff --git a/css/_toolbars.scss b/css/_toolbars.scss index 53b7c064c..0b4f59623 100644 --- a/css/_toolbars.scss +++ b/css/_toolbars.scss @@ -79,7 +79,7 @@ position:absolute; top: 0px; left: $defaultToolbarSize; - width:0%; + width: 0%; height: 100%; max-width: 200px; background-color: rgba(0,0,0,0.8); @@ -145,7 +145,7 @@ a.button:active, a.button.selected { cursor: pointer; // sum opacity with background layer should give us 0.8 - background: rgba(0, 0, 0, 0.6); + background: $toolbarSelectBackground; } a.button>#avatar { @@ -163,7 +163,8 @@ a.button>#avatar { * START of slide in animation for extended toolbar. */ @include keyframes(slideInX) { - 100% { transform: translateX(0%); } + 0% { transform: translateX(-100%); } + 100% { transform: translateX(0%); } } .slideInX { @@ -171,13 +172,32 @@ a.button>#avatar { } @include keyframes(slideOutX) { - 0% { transform: translateX(0%); } - 100% { transform: translateX(-100%); } + 0% { transform: translateX(0%); } + 100% { transform: translateX(-100%); } } .slideOutX { @include animation('slideOutX .5s forwards'); } + +@include keyframes(slideInExtX) { + 0% { transform: translateX(-500%); } + 100% { transform: translateX(0%); } +} + +.slideInExtX { + @include animation('slideInExtX .5s forwards'); +} + +@include keyframes(slideOutExtX) { + 0% { transform: translateX(0%); } + 100% { transform: translateX(-500%); } +} + +.slideOutExtX { + @include animation('slideOutExtX .5s forwards'); +} + /** * END of slide out animation for extended toolbar. */ @@ -209,8 +229,8 @@ a.button>#avatar { * START of slide in animation for extended toolbar panel. */ @include keyframes(slideInExt) { - from { width: 0%; } - to { width: 20%; } + from { width: 0px; } + to { width: 200px; } // TO FIX: Make this value a percentage. } .slideInExt { @@ -218,8 +238,8 @@ a.button>#avatar { } @include keyframes(slideOutExt) { - from { width: 20%; } - to { width: 0%; } + from { width: 200px; } // TO FIX: Make this value a percentage. + to { width: 0px; } } .slideOutExt { diff --git a/css/_variables.scss b/css/_variables.scss index 4469eb64a..c0e2d053f 100644 --- a/css/_variables.scss +++ b/css/_variables.scss @@ -8,3 +8,8 @@ $baseFontFamily: 'open_sanslight', 'Helvetica Neue', Helvetica, Arial, sans-seri */ $defaultToolbarSize: 50px; +/** + * Miscellaneous. + */ +$toolbarSelectBackground: rgba(0, 0, 0, 0.6); + diff --git a/index.html b/index.html index 8104aa448..1583ee123 100644 --- a/index.html +++ b/index.html @@ -116,7 +116,7 @@
- +
@@ -133,6 +133,7 @@ + @@ -141,7 +142,6 @@ -
    - +
    +
    +
    + +
    + +
    +
    + +
    + + +
    +
    + +
    +
    +
    +
    +
    +
      +
      +
      +
      +
      + + + +
      + + +
      +
      + + + +
      +
      + +
      + +
      +
      +
    @@ -169,7 +230,7 @@
    - +
    HD @@ -191,67 +252,6 @@
    -
    -
    -
    - -
    - -
    -
    - -
    - - -
    -
    - -
    -
    -
    -
    -
    -
      -
      -
      -
      -
      - - - -
      - - -
      -
      - - - -
      -
      - -
      - -
      -