File size: 1,595 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";
@import "@automattic/color-studio/dist/color-variables";
@import "@automattic/typography/styles/variables";
.panel-with-sidebar {
display: flex;
gap: 20px;
flex-direction: column;
.navigation-header {
margin-bottom: 16px;
}
.header-cake__back {
font-size: 0.875rem;
}
> div:not(:first-child),
> main:not(:first-child) {
width: 100%;
}
.form-text-input, .form-select {
font-size: 0.875rem !important;
}
@include break-small {
flex-direction: row;
align-items: flex-start;
}
}
.panel-sidebar {
position: sticky;
top: -24px;
flex-shrink: 0;
padding: 24px 24px 20px;
margin: -23px -24px -19px;
list-style: none;
background: #fff;
z-index: 99;
@include break-small {
top: 0;
min-width: 160px;
padding: 0;
margin: 0;
}
}
.components-button.panel-sidebar-tab {
border-radius: 4px;
width: 100%;
padding: 8px;
margin-bottom: 2px;
height: 40px;
justify-content: flex-start;
color: var(--studio-gray-100);
white-space: nowrap;
font-size: $font-body-small;
&:visited, &:hover:not(:disabled):not([aria-disabled="true"]) {
color: var(--studio-gray-100);
}
&:active, &:focus {
outline: none;
box-shadow: none;
.accessible-focus & {
box-shadow: inset 0 0 0 2px var(--color-primary-light) !important;
}
}
&:hover {
background-color: #f7f7f7;
border-radius: 4px;
}
&--active {
background-color: #f0f0f0;
font-weight: 600;
border-radius: 4px;
}
}
.panel-sidebar-dropdown {
.select-dropdown__container {
display: block;
}
}
|