mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 02:06:42 +00:00
Fix ha-card outline box shadow in firefox (#6174)
* Fix ha-card outline box shadow in firefox * Add fallback for markdown code background
This commit is contained in:
parent
d4e137bb58
commit
61fdab294a
@ -8,6 +8,9 @@ class HaProgressButton extends PolymerElement {
|
||||
static get template() {
|
||||
return html`
|
||||
<style>
|
||||
:host {
|
||||
outline: none;
|
||||
}
|
||||
.container {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
@ -35,7 +35,7 @@ class HaCard extends LitElement {
|
||||
}
|
||||
|
||||
:host([outlined]) {
|
||||
box-shadow: 0 0 0 0;
|
||||
box-shadow: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: var(
|
||||
|
@ -54,7 +54,7 @@ class HaMarkdown extends LitElement {
|
||||
}
|
||||
ha-markdown-element code,
|
||||
pre {
|
||||
background-color: var(--markdown-code-background-color, #f6f8fa);
|
||||
background-color: var(--markdown-code-background-color, none);
|
||||
border-radius: 3px;
|
||||
}
|
||||
ha-markdown-element code {
|
||||
|
@ -86,6 +86,9 @@ documentContainer.innerHTML = `<custom-style>
|
||||
/* set our slider style */
|
||||
--ha-paper-slider-pin-font-size: 15px;
|
||||
|
||||
/* markdown styles */
|
||||
--markdown-code-background-color: #f6f8fa;
|
||||
|
||||
/* rgb */
|
||||
--rgb-primary-color: 3, 169, 244;
|
||||
--rgb-accent-color: 255, 152, 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user