| b69ab31 | | | 1 | /** |
| b69ab31 | | | 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| b69ab31 | | | 3 | * |
| b69ab31 | | | 4 | * This source code is licensed under the MIT license found in the |
| b69ab31 | | | 5 | * LICENSE file in the root directory of this source tree. |
| b69ab31 | | | 6 | */ |
| b69ab31 | | | 7 | |
| b69ab31 | | | 8 | .icon-stack { |
| b69ab31 | | | 9 | --icon-stack-size: 16px; |
| b69ab31 | | | 10 | position: relative; |
| b69ab31 | | | 11 | width: var(--icon-stack-size); |
| b69ab31 | | | 12 | height: var(--icon-stack-size); |
| b69ab31 | | | 13 | } |
| b69ab31 | | | 14 | |
| b69ab31 | | | 15 | .icon-stack > *:last-child { |
| b69ab31 | | | 16 | position: absolute; |
| b69ab31 | | | 17 | bottom: -2px; |
| b69ab31 | | | 18 | right: -2px; |
| b69ab31 | | | 19 | } |
| b69ab31 | | | 20 | |
| b69ab31 | | | 21 | .icon-stack > *:last-child, |
| b69ab31 | | | 22 | .icon-stack > .codicon[class*='codicon-']:last-child { |
| b69ab31 | | | 23 | font-size: calc(var(--icon-stack-size) / 2); |
| b69ab31 | | | 24 | } |
| b69ab31 | | | 25 | |
| b69ab31 | | | 26 | /* Cut out a circle in the corner to fit the stacked icon into */ |
| b69ab31 | | | 27 | .icon-stack > *:first-child { |
| b69ab31 | | | 28 | clip-path: path('M 0 0 L 16 0 L 19 12 A 1 1 0 1 0 9 16 L 0 16 L 0 0'); |
| b69ab31 | | | 29 | } |