addons/shared/ContextMenu.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.context-menu-container,
b69ab319.context-menu-submenu-navigation,
b69ab3110.context-menu-tooltip {
b69ab3111 position: absolute;
b69ab3112 padding: var(--halfpad);
b69ab3113 background-color: var(--tooltip-background);
b69ab3114 color: var(--foreground);
b69ab3115 border: 1px solid var(--tooltip-border);
b69ab3116 display: flex;
b69ab3117 flex-direction: column;
b69ab3118 z-index: 2000;
b69ab3119 min-width: 180px;
b69ab3120 box-sizing: border-box;
b69ab3121}
b69ab3122
b69ab3123.context-menu {
b69ab3124 overflow-y: auto;
b69ab3125 position: relative;
b69ab3126}
b69ab3127
b69ab3128.context-menu-divider {
b69ab3129 border-top: 1px solid var(--tooltip-border);
b69ab3130 height: 0;
b69ab3131 margin: var(--halfpad);
b69ab3132}
b69ab3133
b69ab3134.context-menu-item {
b69ab3135 padding: var(--halfpad);
b69ab3136 border-radius: var(--halfpad);
b69ab3137 cursor: pointer;
b69ab3138}
b69ab3139.context-menu-submenu {
b69ab3140 display: flex;
b69ab3141 flex-direction: row;
b69ab3142 align-items: center;
b69ab3143 justify-content: space-between;
b69ab3144}
b69ab3145
b69ab3146.context-menu-item:hover,
b69ab3147.context-menu-item:focus {
b69ab3148 background-color: var(--hover-darken);
b69ab3149}
b69ab3150
b69ab3151.context-menu-arrow {
b69ab3152 --arrow-height: calc(var(--pad) - 4px);
b69ab3153 --arrow-half-width: calc(var(--arrow-height) / 2);
b69ab3154 position: absolute;
b69ab3155}
b69ab3156
b69ab3157.context-menu-arrow::after {
b69ab3158 content: ' ';
b69ab3159 position: absolute;
b69ab3160 width: var(--arrow-height);
b69ab3161 height: var(--arrow-height);
b69ab3162 background-color: var(--tooltip-background);
b69ab3163 border-right: 1px solid var(--tooltip-border);
b69ab3164 border-bottom: 1px solid var(--tooltip-border);
b69ab3165}
b69ab3166
b69ab3167.context-menu-arrow-top::after {
b69ab3168 transform: rotate(225deg);
b69ab3169}
b69ab3170.context-menu-arrow-bottom::after {
b69ab3171 transform: rotate(45deg);
b69ab3172}
b69ab3173
b69ab3174.context-menu-arrow-top {
b69ab3175 left: calc(50% - var(--arrow-half-width));
b69ab3176 top: calc(-1px - var(--arrow-half-width));
b69ab3177}
b69ab3178.context-menu-arrow-bottom {
b69ab3179 left: calc(50% - var(--arrow-half-width));
b69ab3180 bottom: calc(var(--arrow-half-width));
b69ab3181}
b69ab3182
b69ab3183.context-menu-arrow-left {
b69ab3184 left: var(--pad);
b69ab3185}
b69ab3186
b69ab3187.context-menu-arrow-right {
b69ab3188 right: var(--pad);
b69ab3189 left: unset;
b69ab3190}
b69ab3191
b69ab3192.context-menu-disabled-option {
b69ab3193 cursor: not-allowed;
b69ab3194 opacity: 0.8;
b69ab3195}