Skip to content

Commit

Permalink
Add stylesheet for truncated content
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger committed Aug 27, 2020
1 parent 7d96b7c commit 296d9ac
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

.truncated-content {
position: relative;
z-index: 2;
display: inline-block;
white-space: nowrap;

&__tooltip {
@include position('vertical');
left: -3px;
margin-top: -1px;
background: $euiColorEmptyShade;
border-radius: 2px;
width: calc(100% + 4px);
height: calc(100% + 4px);
padding: 0 2px;
display: none;
align-items: center;
box-shadow: 0 1px 3px rgba(black, 0.1);
border: 1px solid $euiBorderColor;
width: auto;
white-space: nowrap;

.truncated-content:hover & {
display: flex;
}
}
}

0 comments on commit 296d9ac

Please sign in to comment.