.tribe-events { /* ----------------------------------------------------------------------------- * * View Selector * * Example (Select): *
* * *
* * Example (Tabs): *
* ... (same as above) *
* * ----------------------------------------------------------------------------- */ .tribe-events-c-view-selector { position: relative; width: 29px; .tribe-common--breakpoint-medium& { width: auto; } } .tribe-events-c-view-selector--labels { .tribe-events-c-view-selector__button { .tribe-common--breakpoint-medium& { height: 100%; padding: var(--spacer-4) var(--spacer-5); } } .tribe-events-c-view-selector__button-icon { .tribe-common--breakpoint-medium& { @mixin hidden; } } .tribe-events-c-view-selector__button-text { .tribe-common--breakpoint-medium& { @mixin visually-show; flex: auto; } } .tribe-events-c-view-selector__content { .tribe-common--breakpoint-medium& { left: 0; padding: var(--spacer-1); right: auto; transform: translateY(var(--spacer-1)); width: auto; } } .tribe-events-c-view-selector__list-item-link { .tribe-common--breakpoint-medium& { padding: var(--spacer-0) var(--spacer-7) var(--spacer-0) var(--spacer-3); } } .tribe-events-c-view-selector__list-item-icon { .tribe-common--breakpoint-medium& { @mixin hidden; } } } .tribe-events-c-view-selector--tabs { .tribe-events-c-view-selector__button { .tribe-common--breakpoint-medium& { @mixin hidden; } } .tribe-events-c-view-selector__content { .tribe-common--breakpoint-medium& { display: block; height: 100%; padding: 0 var(--spacer-2); position: static; transform: none; } } .tribe-events-c-view-selector__list { .tribe-common--breakpoint-medium& { display: flex; height: 100%; } } .tribe-events-c-view-selector__list-item { .tribe-common--breakpoint-medium& { margin: 0 var(--spacer-2); } } .tribe-events-c-view-selector__list-item-link { .tribe-common--breakpoint-medium& { height: 100%; padding: var(--spacer-4) 0; position: relative; } } } .tribe-events-c-view-selector__button { align-items: center; display: flex; padding: var(--spacer-0); position: relative; width: 100%; .tribe-common--breakpoint-medium& { padding: var(--spacer-1); } } .tribe-events-c-view-selector__button-icon { display: block; height: 21px; width: 21px; .tribe-common--breakpoint-medium& { height: 23px; width: 23px; } } .tribe-events-c-view-selector__content { display: none; background-color: var(--color-background); padding: var(--spacer-2) calc(var(--spacer-2) / 2); position: absolute; right: 0; top: 100%; transform: translateY(var(--spacer-3)); z-index: var(--z-index-dropdown); .tribe-common--breakpoint-medium& { transform: translateY(var(--spacer-2)); } } .tribe-events-c-view-selector__list-item-link { align-items: center; display: flex; padding: var(--spacer-1) var(--spacer-5) var(--spacer-1) var(--spacer-2); } .tribe-events-c-view-selector__list-item-icon { flex: none; height: 18px; margin-right: 12px; width: 18px; } .tribe-events-c-view-selector__list-item-text { flex: auto; } }