mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Add print friendly style overrides (#3621)
This commit is contained in:
parent
dfb11dbd9d
commit
051997c9b8
39
sass/custom/_print.scss
Normal file
39
sass/custom/_print.scss
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
@media print {
|
||||||
|
|
||||||
|
/* General Overrides */
|
||||||
|
header div.grid__item nav {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
aside#sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.grid__item {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Components List */
|
||||||
|
div.filter-button-group {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.hass-option-cards.show-items {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.hass-option-cards.show-items a.option-card {
|
||||||
|
display: block;
|
||||||
|
opacity: 1;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
min-height: 80px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.hass-option-cards.show-items a.option-card .img-container {
|
||||||
|
float: left;
|
||||||
|
width: 33%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.hass-option-cards.show-items a.option-card div.title {
|
||||||
|
height: 1.5em;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
}
|
@ -2,3 +2,4 @@
|
|||||||
@import 'custom/paulus';
|
@import 'custom/paulus';
|
||||||
@import 'custom/component_page';
|
@import 'custom/component_page';
|
||||||
@import 'custom/syntax';
|
@import 'custom/syntax';
|
||||||
|
@import 'custom/print';
|
@ -32,7 +32,7 @@
|
|||||||
<meta name="twitter:description" content="{{ fb_description | truncate:200 }}">
|
<meta name="twitter:description" content="{{ fb_description | truncate:200 }}">
|
||||||
<meta name="twitter:image" content="{{ social_image }}">
|
<meta name="twitter:image" content="{{ social_image }}">
|
||||||
|
|
||||||
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
<link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection, print" rel="stylesheet">
|
||||||
<link href="{{ root_url }}{{ site.subscribe_rss }}" rel="alternate" title="{{ site.title }}" type="application/atom+xml">
|
<link href="{{ root_url }}{{ site.subscribe_rss }}" rel="alternate" title="{{ site.title }}" type="application/atom+xml">
|
||||||
<link rel='shortcut icon' href='{{ root_url }}/images/favicon.ico' />
|
<link rel='shortcut icon' href='{{ root_url }}/images/favicon.ico' />
|
||||||
<link rel='icon' type='image/png' href='{{ root_url }}/images/favicon-192x192.png' sizes='192x192' />
|
<link rel='icon' type='image/png' href='{{ root_url }}/images/favicon-192x192.png' sizes='192x192' />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user