/*-
 * #%L
 * Enhanced Tabs Add-on
 * %%
 * Copyright (C) 2023 Flowing Code
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
/** EnhancedTabs styles for Vaadin 23*/

vaadin-context-menu-item[theme="fc-enhanced-tabs"] vaadin-tab {
  box-sizing: content-box
}

vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-context-menu-item::part(checkmark) {
  display: none
}

vaadin-context-menu-item[theme="fc-enhanced-tabs"]::before {
  display: none;
}

vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-context-menu-item {
  margin: 0;
  padding: 0;
}

vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-tab {
  text-align: start;
  transform-origin: 0% 50%;
  padding: 0.25rem 1rem;
  min-height: var(--lumo-size-m);
  min-width: 0;
}

vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-tab::before, 
vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-tab::after {
  left: 0;
  bottom: 50%;
  transform: translateY(50%) scale(0);
  width: 2px;
  height: var(--lumo-size-xs);
  border-radius: 0 var(--lumo-border-radius) var(--lumo-border-radius) 0;
  transform-origin: 100% 50%;
}

vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-tab[selected]::before, 
vaadin-context-menu-list-box[theme="fc-enhanced-tabs"] vaadin-tab[selected]::after {
  transform: translateY(50%) scale(1);
}
