_tooltips.scss in Code Snippets 3.5.0, at css/edit/_tooltips.scss
| 1 | |
| 2 | .editor-help-tooltip { |
| 3 | cursor: help; |
| 4 | padding: 0.3em 0.3em 0; |
| 5 | display: inline-block; |
| 6 | font-size: 10px; |
| 7 | background: transparent !important; |
| 8 | } |
| 9 | |
| 10 | .snippet-editor-help { |
| 11 | position: absolute; |
| 12 | right: 5px; |
| 13 | top: 5px; |
| 14 | |
| 15 | &:hover .editor-help-text { |
| 16 | visibility: visible; |
| 17 | opacity: 1; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | .editor-help-text { |
| 22 | visibility: hidden; |
| 23 | background-color: #555; |
| 24 | color: #fff; |
| 25 | padding: 5px; |
| 26 | border-radius: 6px; |
| 27 | position: absolute; |
| 28 | z-index: 99; |
| 29 | top: 125%; |
| 30 | right: 0; |
| 31 | margin-right: -10px; |
| 32 | opacity: 0; |
| 33 | transition: opacity 0.3s; |
| 34 | white-space: nowrap; |
| 35 | font-size: small; |
| 36 | |
| 37 | &::after { |
| 38 | content: ""; |
| 39 | position: absolute; |
| 40 | bottom: 100%; |
| 41 | right: 0; |
| 42 | margin-right: 10px; |
| 43 | border: 5px solid transparent; |
| 44 | border-bottom-color: #555; |
| 45 | } |
| 46 | |
| 47 | td:first-child { |
| 48 | padding-right: 0.5em; |
| 49 | } |
| 50 | |
| 51 | .mac-key { |
| 52 | display: none; |
| 53 | } |
| 54 | |
| 55 | &.platform-mac { |
| 56 | .mac-key { |
| 57 | display: inline; |
| 58 | } |
| 59 | |
| 60 | .pc-key { |
| 61 | display: none; |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 |