Matteo Scandolo | fb46ae6 | 2017-08-08 09:10:50 -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 | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 19 | @import './../../style/vars.scss'; |
| 20 | @import '../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables'; |
| 21 | |
Matteo Scandolo | d62ea79 | 2016-12-22 14:02:28 -0800 | [diff] [blame] | 22 | xos-table { |
| 23 | .row + .table-responsive { |
| 24 | margin-top: 10px; |
| 25 | } |
| 26 | } |
| 27 | |
Matteo Scandolo | 035c593 | 2016-12-14 09:55:15 -0800 | [diff] [blame] | 28 | table { |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 29 | border: 1px solid $background-dark-color; |
Matteo Scandolo | 035c593 | 2016-12-14 09:55:15 -0800 | [diff] [blame] | 30 | |
| 31 | td, th { |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 32 | position: relative; |
Matteo Scandolo | 035c593 | 2016-12-14 09:55:15 -0800 | [diff] [blame] | 33 | } |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 34 | |
| 35 | .xos-table-hover { |
| 36 | position: absolute; |
| 37 | top: -$padding-large-vertical; |
| 38 | left: $padding-large-horizontal; |
| 39 | opacity: 0; |
| 40 | transition: all .5s; |
| 41 | z-index: -1; |
| 42 | width: 250px; |
| 43 | |
| 44 | &:hover { |
| 45 | cursor: pointer; |
| 46 | } |
Matteo Scandolo | 035c593 | 2016-12-14 09:55:15 -0800 | [diff] [blame] | 47 | } |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 48 | |
| 49 | td:hover .xos-table-hover { |
| 50 | opacity: 1; |
| 51 | z-index: 2; |
Matteo Scandolo | 035c593 | 2016-12-14 09:55:15 -0800 | [diff] [blame] | 52 | } |
Matteo Scandolo | 8b2370c | 2017-02-02 17:19:07 -0800 | [diff] [blame] | 53 | |
Matteo Scandolo | cc4bce8 | 2017-08-07 13:11:47 -0700 | [diff] [blame] | 54 | td.xos-table-actions { |
| 55 | a + a { |
| 56 | margin-left: $padding-base-horizontal; |
| 57 | } |
| 58 | } |
| 59 | |
Matteo Scandolo | 035c593 | 2016-12-14 09:55:15 -0800 | [diff] [blame] | 60 | } |