130 lines
3.5 KiB
CSS
130 lines
3.5 KiB
CSS
/*
|
|
Copyright 2019 Adobe. All rights reserved.
|
|
This file is licensed to you 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 REPRESENTATIONS
|
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
governing permissions and limitations under the License.
|
|
*/
|
|
|
|
.spectrum-SideNav {
|
|
--spectrum-sidenav-item-padding-y: var(--spectrum-global-dimension-size-65);
|
|
}
|
|
|
|
.spectrum-SideNav {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.spectrum-SideNav-item {
|
|
list-style-type: none;
|
|
|
|
margin-block: var(--spectrum-sidenav-item-gap);
|
|
margin-inline: 0;
|
|
}
|
|
|
|
.spectrum-SideNav-itemLink {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: left;
|
|
box-sizing: border-box;
|
|
|
|
inline-size: 100%;
|
|
min-block-size: var(--spectrum-sidenav-item-height);
|
|
|
|
padding-inline: var(--spectrum-sidenav-item-padding-x);
|
|
padding-block: var(--spectrum-sidenav-item-padding-y);
|
|
|
|
border-radius: var(--spectrum-sidenav-item-border-radius);
|
|
|
|
font-size: var(--spectrum-sidenav-item-text-size);
|
|
font-weight: var(--spectrum-sidenav-item-text-font-weight);
|
|
font-style: normal;
|
|
text-decoration: none;
|
|
|
|
word-break: break-word;
|
|
hyphens: auto;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color var(--spectrum-global-animation-duration-100)
|
|
ease-out,
|
|
color var(--spectrum-global-animation-duration-100) ease-out;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&:focus-ring::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset-block-start: 0;
|
|
inset-inline-start: 0;
|
|
inset-inline-end: 0;
|
|
inset-block-end: 0;
|
|
|
|
border-block: var(--spectrum-tabs-m-focus-ring-size) solid transparent;
|
|
border-radius: var(--spectrum-sidenav-item-border-radius);
|
|
}
|
|
|
|
.spectrum-SideNav-itemIcon {
|
|
flex-shrink: 0;
|
|
margin-inline-end: var(--spectrum-sidenav-icon-gap);
|
|
}
|
|
}
|
|
|
|
.spectrum-SideNav-heading {
|
|
block-size: var(--spectrum-sidenav-heading-height);
|
|
line-height: var(--spectrum-sidenav-heading-height);
|
|
|
|
margin-block-start: var(--spectrum-sidenav-heading-gap-top);
|
|
margin-inline-end: 0;
|
|
margin-block-end: var(--spectrum-sidenav-heading-gap-bottom);
|
|
margin-inline-start: 0;
|
|
padding-block: 0;
|
|
padding-inline: var(--spectrum-sidenav-heading-padding-x);
|
|
|
|
border-radius: var(--spectrum-sidenav-heading-border-radius);
|
|
|
|
font-size: var(--spectrum-sidenav-heading-text-size);
|
|
font-weight: var(--spectrum-sidenav-heading-text-font-weight);
|
|
font-style: normal;
|
|
letter-spacing: var(--spectrum-sidenav-heading-text-letter-spacing);
|
|
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.spectrum-SideNav--multiLevel {
|
|
.spectrum-SideNav-itemLink {
|
|
font-weight: var(--spectrum-sidenav-multilevel-main-item-font-weight);
|
|
}
|
|
|
|
.spectrum-SideNav {
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
.spectrum-SideNav-itemLink {
|
|
font-weight: var(--spectrum-sidenav-item-text-font-weight);
|
|
|
|
padding-inline-start: calc(
|
|
var(--spectrum-sidenav-multilevel-item-indentation) +
|
|
var(--spectrum-sidenav-item-padding-x)
|
|
);
|
|
}
|
|
|
|
.spectrum-SideNav {
|
|
.spectrum-SideNav-itemLink {
|
|
padding-inline-start: calc(
|
|
var(--spectrum-sidenav-multilevel-item-indentation) +
|
|
var(--spectrum-sidenav-item-padding-x)
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|