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:
Bram Kragten 2020-06-16 22:29:38 +02:00 committed by GitHub
parent d4e137bb58
commit 61fdab294a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -8,6 +8,9 @@ class HaProgressButton extends PolymerElement {
static get template() {
return html`
<style>
:host {
outline: none;
}
.container {
position: relative;
display: inline-block;

View File

@ -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(

View File

@ -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 {

View File

@ -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;