[ ] Angular 2+ |
.my-button {
padding: 10px;
font-size: 14px;
color: midnightblue;
border: 1px solid mdnightblue;
background: white;
cursor: pointer;
}
my-button:disabled {
pointer-events: none;
cursor: default;
color: grey;
border: 1px solid grey;
}
.my-button {
padding: 10px;
font-size: 14px;
color: lightblue;
border: 1px solid lightblue;
background: midnightblue;
cursor: pointer;
}
.my-button:disabled {
pointer-events: none;
cursor: default;
background: grey;
color: lightgrey;
border: 1px solid lightgrey;
}
.my-button {
padding: 10px;
font-size: 14px;
cursor: pointer;
}
.my-button:disabled {
pointer-events: none;
cursor: default;
}
.my-button {
color: midnightblue;
border: 1px solid mdnightblue;
background: white;
}
my-button:disabled {
color: grey;
border: 1px solid grey;
}
.my-button {
color: lightblue;
border: 1px solid lightblue;
background: midnightblue;
}
.my-button:disabled {
background: grey;
color: lightgrey;
border: 1px solid lightgrey;
}
@import 'button-core.css'
@import 'button-light.css'
@import 'button-dark.css'
:host-context(.parent-component:hover) .child-component {
background: lightcoral;
}
:host-context(.light-theme) .my-button {
color: midnightblue;
border: 1px solid mdnightblue;
background: white;
}
:host-context(.light-theme) my-button:disabled {
color: grey;
border: 1px solid grey;
}
[ngClass]="{'light-theme': theme === 'light', 'dark-theme': theme === 'dark'}".