mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +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() {
|
static get template() {
|
||||||
return html`
|
return html`
|
||||||
<style>
|
<style>
|
||||||
|
:host {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
.container {
|
.container {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -35,7 +35,7 @@ class HaCard extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host([outlined]) {
|
:host([outlined]) {
|
||||||
box-shadow: 0 0 0 0;
|
box-shadow: none;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: var(
|
border-color: var(
|
||||||
|
@ -54,7 +54,7 @@ class HaMarkdown extends LitElement {
|
|||||||
}
|
}
|
||||||
ha-markdown-element code,
|
ha-markdown-element code,
|
||||||
pre {
|
pre {
|
||||||
background-color: var(--markdown-code-background-color, #f6f8fa);
|
background-color: var(--markdown-code-background-color, none);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
ha-markdown-element code {
|
ha-markdown-element code {
|
||||||
|
@ -86,6 +86,9 @@ documentContainer.innerHTML = `<custom-style>
|
|||||||
/* set our slider style */
|
/* set our slider style */
|
||||||
--ha-paper-slider-pin-font-size: 15px;
|
--ha-paper-slider-pin-font-size: 15px;
|
||||||
|
|
||||||
|
/* markdown styles */
|
||||||
|
--markdown-code-background-color: #f6f8fa;
|
||||||
|
|
||||||
/* rgb */
|
/* rgb */
|
||||||
--rgb-primary-color: 3, 169, 244;
|
--rgb-primary-color: 3, 169, 244;
|
||||||
--rgb-accent-color: 255, 152, 0;
|
--rgb-accent-color: 255, 152, 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user