Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | |
Matteo Scandolo | e6393f0 | 2016-05-23 14:27:52 -0700 | [diff] [blame] | 19 | @import '../../../../style/sass/lib/_variables.scss'; |
| 20 | |
| 21 | xos-side-panel{ |
| 22 | |
| 23 | .xos-side-panel-content{ |
| 24 | position: fixed; |
| 25 | width: 30%; |
| 26 | height: 100%; |
| 27 | padding: 25px; |
| 28 | background: #fff; |
| 29 | overflow: scroll; |
| 30 | |
| 31 | &.right { |
| 32 | border-left: 1px solid $gray; |
| 33 | top: 0; |
| 34 | //right: -35%; |
| 35 | right: 0; |
| 36 | visibility: hidden; |
| 37 | box-shadow: -10px 0px 20px -8px rgba(0,0,0,0.75); |
| 38 | } |
| 39 | |
| 40 | &.right.out { |
| 41 | animation: 0.5s slideOutRight ease-in-out; |
| 42 | visibility: visible; |
| 43 | } |
| 44 | |
| 45 | &.right.in { |
| 46 | animation: 0.5s slideInRight ease-in-out; |
| 47 | visibility: visible; |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | @keyframes slideInRight { |
| 53 | from { |
| 54 | transform: translate3d(100%, 0, 0); |
| 55 | visibility: visible; |
| 56 | } |
| 57 | |
| 58 | to { |
| 59 | transform: translate3d(0, 0, 0); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | @keyframes slideOutRight { |
| 64 | from { |
| 65 | transform: translate3d(0, 0, 0); |
| 66 | } |
| 67 | |
| 68 | to { |
| 69 | visibility: hidden; |
| 70 | transform: translate3d(100%, 0, 0); |
| 71 | } |
| 72 | } |