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