| // Copyright (C) 2023 The Android Open Source Project |
| // |
| // 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. |
| |
| @import "theme"; |
| |
| .pf-anchor { |
| // Converting this element to a block type here ensures this element is the |
| // containing box for the icon when when floating the icon. |
| display: inline-block; |
| line-height: 1; |
| text-decoration: none; // Remove the default underling if href exists. |
| color: $pf-primary-background; |
| cursor: pointer; |
| border-bottom: dotted 1px $pf-primary-background; |
| transition: |
| box-shadow $pf-anim-timing, |
| background $pf-anim-timing; |
| |
| & > .material-icons { |
| vertical-align: bottom; |
| margin: 0 0 0 0px; |
| font-size: inherit; |
| line-height: inherit; |
| color: inherit; |
| } |
| |
| &:hover { |
| // Gently darken the background and thicken the underline. |
| border-bottom-style: solid; |
| background: $pf-minimal-background-hover; |
| box-shadow: 0 1px 0 $pf-primary-background; |
| } |
| |
| &:focus-visible { |
| @include focus; |
| } |
| } |