mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
style(components): remove unneeded css variables
This commit is contained in:
@ -4,16 +4,12 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
--text-decoration: none;
|
|
||||||
|
|
||||||
// default background / color
|
// default background / color
|
||||||
--color: #{ion-color(primary, base)};
|
--color: #{ion-color(primary, base)};
|
||||||
--background: transparent;
|
--background: transparent;
|
||||||
|
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
color: var(--color);
|
color: var(--color);
|
||||||
|
|
||||||
text-decoration: var(--text-decoration);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.ion-color) {
|
:host(.ion-color) {
|
||||||
|
@ -28,7 +28,11 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<ion-anchor href="#" class="underline">Underline Anchor</ion-anchor>
|
<ion-anchor href="#" style="text-decoration: underline">Underline Anchor</ion-anchor>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<ion-anchor href="#" class="custom">Custom Anchor</ion-anchor>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -60,8 +64,14 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.underline {
|
.custom {
|
||||||
--text-decoration: underline;
|
font-family: cursive;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 5px;
|
||||||
|
text-decoration: dotted underline;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: magenta;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</body>
|
</body>
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
:host(.button-outline.activated.focused) {
|
:host(.button-outline.activated.focused) {
|
||||||
--border-color: #{current-color(shade)};
|
--border-color: #{current-color(shade)};
|
||||||
--background-color: #{current-color(shade)};
|
--background: #{current-color(shade)};
|
||||||
}
|
}
|
||||||
|
|
||||||
// iOS Clear Button
|
// iOS Clear Button
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
--ion-card-text: currentColor;
|
|
||||||
|
|
||||||
@include font-smoothing();
|
@include font-smoothing();
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
|
Reference in New Issue
Block a user