budibase/packages/standard-components/node_modules/@spectrum-css/link/index.css

77 lines
1.9 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.
*/
@import "../vars/css/components/spectrum-link.css";
.spectrum-Link--sizeS {
@remapvars {
find: /--spectrum-link-(.*?)-s-/;
replace: --spectrum-link-$1-;
filter: color;
}
}
.spectrum-Link--sizeM {
@remapvars {
find: /--spectrum-link-(.*?)-m-/;
replace: --spectrum-link-$1-;
filter: color;
}
}
.spectrum-Link--sizeL {
@remapvars {
find: /--spectrum-link-(.*?)-l-/;
replace: --spectrum-link-$1-;
filter: color;
}
}
.spectrum-Link--sizeXL {
@remapvars {
find: /--spectrum-link-(.*?)-xl-/;
replace: --spectrum-link-$1-;
filter: color;
}
}
.spectrum-Link--sizeS,
.spectrum-Link--sizeM,
.spectrum-Link--sizeL,
.spectrum-Link--sizeXL {
font-size: var(--spectrum-link-primary-text-size);
}
.spectrum-Link {
/* Remove the gray background on active links in IE 10. */
background-color: transparent;
/* Remove gaps in links underline in iOS 8+ and Safari 8+. */
-webkit-text-decoration-skip: objects;
text-decoration: underline;
transition: color var(--spectrum-global-animation-duration-100) ease-in-out;
outline: none;
cursor: pointer;
&:focus-ring {
text-decoration: underline;
text-decoration-style: double;
}
}
.spectrum-Link--quiet {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}