diff --git a/Gemfile.lock b/Gemfile.lock index 7090555883f..03296508e4f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -88,7 +88,7 @@ GEM prism (0.30.0) public_suffix (6.0.0) racc (1.8.0) - rack (3.1.4) + rack (3.1.6) rack-protection (4.0.0) base64 (>= 0.1.0) rack (>= 3.0.0, < 4) @@ -130,9 +130,8 @@ GEM ruby2_keywords (0.0.5) safe_yaml (1.0.5) sass (3.4.25) - sass-embedded (1.77.5) + sass-embedded (1.77.5-x86_64-linux-gnu) google-protobuf (>= 3.25, < 5.0) - rake (>= 13) sass-globbing (1.1.5) sass (>= 3.1) sassc (2.1.0-x86_64-linux) @@ -143,7 +142,7 @@ GEM rack-protection (= 4.0.0) rack-session (>= 2.0.0, < 3) tilt (~> 2.0) - sorbet-runtime (0.5.11460) + sorbet-runtime (0.5.11466) stringex (2.8.6) strscan (3.1.0) terminal-table (3.0.2) diff --git a/sass/homeassistant/_overrides.scss b/sass/homeassistant/_overrides.scss index 879811d10b1..efa5eefd6e7 100644 --- a/sass/homeassistant/_overrides.scss +++ b/sass/homeassistant/_overrides.scss @@ -286,11 +286,12 @@ header .breadcrumbs { .links { margin-top: 12px; margin-right: -8px; + margin-bottom: -8px; font-size: .9rem; text-align: right; a { - background: #e8edf0; + background: #e8edf0; font-family: $heading-font; text-decoration: none; font-weight: 650; @@ -363,7 +364,7 @@ a.material-card:hover { border-radius: 24px; margin: 8px 0; transition: box-shadow .33s; - + &::before { content: " "; position: absolute; @@ -401,7 +402,13 @@ a.material-card:hover { } } +/* not contained inside frontpage class */ +.hero { + display: flex; +} + .frontpage { + .material-card { margin-bottom: 24px; } @@ -483,11 +490,11 @@ a.material-card:hover { border: none; .caption { - padding: 16px 12px 12px; + padding: 8px 12px 12px; background-color: rgba(0, 0, 0, 0.54); color: white; - border-bottom-left-radius: 8px; - border-bottom-right-radius: 8px; + border-bottom-left-radius: 16px; + border-bottom-right-radius: 16px; display: flex; justify-content: space-between; align-items: center; @@ -495,9 +502,12 @@ a.material-card:hover { .title { font-size: 20px; font-weight: 400; + line-height: 1.2em; } .subtitle { + margin-top: 4px; + line-height: 1.4em; font-size: 12px; font-weight: initial; } @@ -532,26 +542,37 @@ a.material-card:hover { margin-top: 24px; } - .sponsored-by { - img { - border: 0; - border-radius: 0; - box-shadow: none; - margin: 15px; - max-width: 40%; - max-height: 80px; + .seen-press { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); + column-gap: 24px; + row-gap: 24px; + margin: 48px 0; + + h2 { + grid-column: 1/-1; + margin: 0; + text-align: center; } - } - - .seen-press { + a { + aspect-ratio: 1; + } img { border: 0; box-shadow: none; - margin: 15px; - max-width: 40%; - max-height: 70px; + margin: 24px; + width: calc(100% - 48px); + max-height: 128px; + border-radius: 0; + } + + .material-card { + height: 100%; + align-content: center; + text-align: center; + margin: 0; } .square { @@ -562,6 +583,18 @@ a.material-card:hover { border-radius: 50%; } } + + .sponsored-by { + text-align: center; + + img { + border: 0; + border-radius: 0; + box-shadow: none; + margin: 24px; + max-height: 160px; + } + } } @media screen and (max-width: 700px) { @@ -620,7 +653,6 @@ article.page, article.listing { font-size: 1.125em; line-height: 1.6; - overflow: hidden; img, table { @@ -681,6 +713,7 @@ article.listing { overflow-wrap: break-word; &.btn { + font-size: 1.1em; text-decoration: none; transition: box-shadow .33; @@ -728,8 +761,8 @@ article.listing { &>li.toc-entry:first-child{ padding-top: 0; - } - + } + &>li.toc-entry { list-style-type: none; } @@ -895,7 +928,7 @@ div.config-vars { .config-vars-label { padding-bottom: 4px; position: relative; - + a.title-link { text-decoration: none; } @@ -1052,4 +1085,4 @@ a.my { position: fixed; width: 100%; z-index: 999; -} \ No newline at end of file +} diff --git a/sass/homeassistant/base/_sidebar.scss b/sass/homeassistant/base/_sidebar.scss index d4af6318959..f0ad38166e1 100644 --- a/sass/homeassistant/base/_sidebar.scss +++ b/sass/homeassistant/base/_sidebar.scss @@ -44,6 +44,8 @@ @media only screen and (max-width: $lap-end) { #sidebar { + max-height: fit-content; + .grid { position: initial; width: 100%; diff --git a/sass/homeassistant/homepage/_features.scss b/sass/homeassistant/homepage/_features.scss index ad044177616..bc8e51dfbcc 100644 --- a/sass/homeassistant/homepage/_features.scss +++ b/sass/homeassistant/homepage/_features.scss @@ -26,11 +26,11 @@ } .card-content { - padding-left: 24px; + padding-bottom: 24px; p:last-of-type, ul { - margin-bottom: 12px; + margin-bottom: 32px; } } } diff --git a/sass/homeassistant/homepage/_hero_unit.scss b/sass/homeassistant/homepage/_hero_unit.scss index 757132ffc61..400531e805d 100644 --- a/sass/homeassistant/homepage/_hero_unit.scss +++ b/sass/homeassistant/homepage/_hero_unit.scss @@ -8,7 +8,7 @@ padding-bottom: 0; margin-top: -88px; margin-bottom: 24px; - padding-top: 88px; + padding-top: 88px; overflow: hidden; border-bottom: 1px solid rgba(0, 0, 0, 0.1); max-height: 1080px; @@ -62,7 +62,7 @@ background-color: $link-color; font-size: 2rem; font-weight: 700; - padding: 8px 24px; + padding: 8px 20px 8px 28px; margin-bottom: 16px; } } @@ -84,7 +84,7 @@ // animation-duration: 3s; // animation-iteration-count: infinite; // animation-direction: alternate; - + @media only screen and (max-height: 720px) { border-bottom: 0; margin-bottom: -8px; @@ -114,7 +114,7 @@ .lead { font-size: 1.15rem; } - + .hero-buttons a { &.primary { font-size: 1.25rem; @@ -123,15 +123,19 @@ } } -@media only screen and (max-width: $palm-end) { +@media only screen and (max-width: 760px) { .hero { - + .flex { + flex-direction: column; + } + #HAdemo { display: none; } - + #HAdemoScreenshot { display: block; } + } -} \ No newline at end of file +} diff --git a/sass/homeassistant/pages/_getting_started.scss b/sass/homeassistant/pages/_getting_started.scss index c088c200a13..3428bc24524 100644 --- a/sass/homeassistant/pages/_getting_started.scss +++ b/sass/homeassistant/pages/_getting_started.scss @@ -126,19 +126,32 @@ .button { display: flex; + align-items: center; padding-right: 20px; + border-radius: 32px; + &:not(:first-child) { margin-top: 12px; } - &.accent { - background-color: #34b155; + iconify-icon.external-link { + padding-top: 4px; } + svg { - fill: white; + fill: $link-color; height: 24px; min-width: 24px; } + + &.accent { + background-color: #34b155; + color: white; + + svg { + fill: white; + } + } } } } diff --git a/sass/homeassistant/pages/_landingpage.scss b/sass/homeassistant/pages/_landingpage.scss index 5309612b7ba..645bfbeaf60 100644 --- a/sass/homeassistant/pages/_landingpage.scss +++ b/sass/homeassistant/pages/_landingpage.scss @@ -11,6 +11,13 @@ $ha__primary_color: #03a9f4; } } + footer { + .grid-wrapper { + max-width: 1100px !important; + padding: 0 25px !important; + } + } + .grid-wrapper { max-width: 1500px; padding: 0; diff --git a/source/_docs/backend/database.markdown b/source/_docs/backend/database.markdown index 53acac2ad04..743d26c0ed8 100644 --- a/source/_docs/backend/database.markdown +++ b/source/_docs/backend/database.markdown @@ -5,7 +5,7 @@ description: "Details about the database used by Home Assistant." Home Assistant uses databases to store {% term events %} and parameters for history and tracking. The default database used is [SQLite](https://www.sqlite.org/). -The database file is stored in your [configuration directory](/getting-started/configuration/) (e.g., `/home-assistant_v2.db`); however, other databases can be used. If you prefer to run a database server (e.g., PostgreSQL), use the [`recorder`](/integrations/recorder/) integration. +The database file is stored in your [configuration directory](/docs/configuration/#to-find-the-configuration-directory) (e.g., `/home-assistant_v2.db`); however, other databases can be used. If you prefer to run a database server (e.g., PostgreSQL), use the [`recorder`](/integrations/recorder/) integration. To work with SQLite database manually from the command-line, you will need an [installation](https://www.sqlitetutorial.net/download-install-sqlite/) of `sqlite3`. Alternatively [DB Browser for SQLite](https://sqlitebrowser.org/) provides a viewer for exploring the database data and an editor for executing SQL commands. First load your database with `sqlite3`: diff --git a/source/_docs/configuration.markdown b/source/_docs/configuration.markdown index 4f08b345dad..e43dedaa223 100644 --- a/source/_docs/configuration.markdown +++ b/source/_docs/configuration.markdown @@ -70,6 +70,12 @@ To set up file access, follow the steps for your [installation method](/installa - {% term "Home Assistant Core" %}: the `configuration.yaml` is in the config folder passed to the `hass` command (default is `~/.homeassistant`). 3. Once you located the config folder, you can edit your `configuration.yaml` file. +{% note %} + +If you have watched any videos about setting up Home Assistant using `configuration.yaml` (particularly ones that are old), you might notice your default configuration file is much smaller than what the videos show. Don't be concerned, you haven't done anything wrong. Many items in the default configuration files shown in those old videos are now included in the `default_config:` line that you see in your configuration file. Refer to the [default config integration](/integrations/default_config/) for more information on what's included in that line. + +{% endnote %} + ## Validating the configuration After changing configuration or automation files, you can check if the configuration is valid. A configuration check is also applied automatically when you reload the configuration or when you restart Home Assistant. diff --git a/source/_faq/python.markdown b/source/_faq/python.markdown deleted file mode 100644 index d46767dd774..00000000000 --- a/source/_faq/python.markdown +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "Python 2" -description: "Support for Python 2" -ha_category: Common ---- - - -There will be no support for Python 2.x. Python 2 will be EOL in [2020](https://www.python.org/dev/peps/pep-0373/#id2) and it doesn't make any sense to support a release which was planned to be retired in 2015. diff --git a/source/_includes/asides/about.html b/source/_includes/asides/about.html index a6322ca06ac..1c6c6e0bd26 100644 --- a/source/_includes/asides/about.html +++ b/source/_includes/asides/about.html @@ -1,5 +1,5 @@
-

About Home Assistant

+

About Home Assistant