diff --git a/esphome/dashboard/static/fonts/MaterialIcons-Regular.eot b/esphome/dashboard/static/fonts/MaterialIcons-Regular.eot new file mode 100644 index 0000000000..70508ebabc Binary files /dev/null and b/esphome/dashboard/static/fonts/MaterialIcons-Regular.eot differ diff --git a/esphome/dashboard/static/fonts/MaterialIcons-Regular.ttf b/esphome/dashboard/static/fonts/MaterialIcons-Regular.ttf new file mode 100644 index 0000000000..7015564ad1 Binary files /dev/null and b/esphome/dashboard/static/fonts/MaterialIcons-Regular.ttf differ diff --git a/esphome/dashboard/static/fonts/MaterialIcons-Regular.woff b/esphome/dashboard/static/fonts/MaterialIcons-Regular.woff new file mode 100644 index 0000000000..b648a3eea2 Binary files /dev/null and b/esphome/dashboard/static/fonts/MaterialIcons-Regular.woff differ diff --git a/esphome/dashboard/static/fonts/MaterialIcons-Regular.woff2 b/esphome/dashboard/static/fonts/MaterialIcons-Regular.woff2 new file mode 100644 index 0000000000..9fa2112520 Binary files /dev/null and b/esphome/dashboard/static/fonts/MaterialIcons-Regular.woff2 differ diff --git a/esphome/dashboard/static/fonts/README.md b/esphome/dashboard/static/fonts/README.md new file mode 100644 index 0000000000..34d980de08 --- /dev/null +++ b/esphome/dashboard/static/fonts/README.md @@ -0,0 +1,12 @@ +The recommended way to use the Material Icons font is by linking to the web font hosted on Google Fonts: + +```html + +``` + +Read more in our full usage guide: +http://google.github.io/material-design-icons/#icon-font-for-the-web + +Source: +https://github.com/google/material-design-icons diff --git a/esphome/dashboard/static/fonts/material-icons.css b/esphome/dashboard/static/fonts/material-icons.css new file mode 100644 index 0000000000..2270c09d01 --- /dev/null +++ b/esphome/dashboard/static/fonts/material-icons.css @@ -0,0 +1,36 @@ +@font-face { + font-family: 'Material Icons'; + font-style: normal; + font-weight: 400; + src: url(MaterialIcons-Regular.eot); /* For IE6-8 */ + src: local('Material Icons'), + local('MaterialIcons-Regular'), + url(MaterialIcons-Regular.woff2) format('woff2'), + url(MaterialIcons-Regular.woff) format('woff'), + url(MaterialIcons-Regular.ttf) format('truetype'); +} + +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; /* Preferred icon size */ + display: inline-block; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + white-space: nowrap; + direction: ltr; + + /* Support for all WebKit browsers. */ + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + text-rendering: optimizeLegibility; + + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + + /* Support for IE. */ + font-feature-settings: 'liga'; +} diff --git a/esphome/dashboard/templates/index.html b/esphome/dashboard/templates/index.html index 8e3cd465b5..fe80392fe6 100644 --- a/esphome/dashboard/templates/index.html +++ b/esphome/dashboard/templates/index.html @@ -3,7 +3,7 @@