addons/isl/src/icons/IconStack.cssblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318.icon-stack {
b69ab319 --icon-stack-size: 16px;
b69ab3110 position: relative;
b69ab3111 width: var(--icon-stack-size);
b69ab3112 height: var(--icon-stack-size);
b69ab3113}
b69ab3114
b69ab3115.icon-stack > *:last-child {
b69ab3116 position: absolute;
b69ab3117 bottom: -2px;
b69ab3118 right: -2px;
b69ab3119}
b69ab3120
b69ab3121.icon-stack > *:last-child,
b69ab3122.icon-stack > .codicon[class*='codicon-']:last-child {
b69ab3123 font-size: calc(var(--icon-stack-size) / 2);
b69ab3124}
b69ab3125
b69ab3126/* Cut out a circle in the corner to fit the stacked icon into */
b69ab3127.icon-stack > *:first-child {
b69ab3128 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');
b69ab3129}