diff --git a/_includes/sidebar.html b/_includes/sidebar.html index c0d11f36e..db0913d46 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,4 +1,4 @@ - + diff --git a/_includes/tablerow.html b/_includes/tablerow.html index a4b90b850..dfb69ce24 100644 --- a/_includes/tablerow.html +++ b/_includes/tablerow.html @@ -1,11 +1,23 @@ - {{ template.vendor }} {{ template.model }} + {{ template.vendor }} {{ template.model }} + + {{ template.vendor }} {{ template.title }} - {{ template.model | truncate: 18, '...'}} - {% if template.compatible contains "zha" %}Zigbee Home Automation for Home Assistant{% else %} {% endif %} - {% if template.compatible contains "tasmota" or template.category == "light" or template.category == "dimmer" %}Tasmota{% else %} {% endif %} - {% if template.compatible contains "z2m" %}Zigbee2MQTT{% else %} {% endif %} - {% if template.compatible contains "deconz" %}deCONZ{% else %} {% endif %} - {% if template.compatible contains "z4d" %}Zigbee for Domoticz{% else %} {% endif %} - {% if template.compatible contains "iob" or template.compatible contains "z2m" %}ioBroker.zigbee{% else %} {% endif %} + + {{ template.model }} + +{% if include.hide_compat %} + {# A hacky way of keeping a table layout more stable #} +{% else %} + + + {% if template.compatible contains "zha" %}Zigbee Home Automation for Home Assistant{% endif %} + {% if template.compatible contains "tasmota" or template.category == "light" or template.category == "dimmer" %}Tasmota{% endif %} + {% if template.compatible contains "z2m" %}Zigbee2MQTT{% endif %} + {% if template.compatible contains "deconz" %}deCONZ{% endif %} + {% if template.compatible contains "z4d" %}Zigbee for Domoticz{% endif %} + {% if template.compatible contains "iob" or template.compatible contains "z2m" %}ioBroker.zigbee{% endif %} + + +{% endif %} diff --git a/_sass/milligram.scss b/_sass/milligram.scss index 2af1a5d1e..60dcd1c9c 100644 --- a/_sass/milligram.scss +++ b/_sass/milligram.scss @@ -328,10 +328,15 @@ input[type='radio'] { .container { margin: 0 auto; max-width: 112.0rem; - padding: 0 2.0rem; + padding: 0; position: relative; width: 100%; } +@media (min-width: 40rem) { + .container { + padding: 0 2rem; + } +} .row { display: flex; @@ -576,7 +581,7 @@ table { td, th { - border-bottom: 0.1rem solid #e1e1e1; + border-bottom: 2px solid #e1e1e1; padding: 0.2rem 0.5rem; text-align: left; } @@ -598,7 +603,7 @@ th:last-child { .td-list, .th-list { - border-bottom: 0.1rem solid #e1e1e1; + border-bottom: 2px solid #e1e1e1; padding: 0.1rem 0.5rem; text-align: left; vertical-align: middle; @@ -606,10 +611,15 @@ th:last-child { .td-first, .th-first { - padding-left: 1; text-align: center; - width: 14%; - min-width: 40px; + width: 8%; + min-width: 80px; +} + +.td-first img { + display: block; + max-height:75px; + vertical-align: middle; } .td-10, @@ -622,14 +632,18 @@ th:last-child { // width: 150px; } -.td-compat { - text-align: center; - width: 30px; - min-width: 25px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - padding: 0.1rem 0rem; +td.td-compat { + display: flex; + gap: 8px; + padding-bottom: 8px; + padding-left: 16px; +} + +.td-compat img { + width: 24px; + display: block; + margin-bottom: 8px; + margin-top: 8px; } .th-compat { @@ -644,7 +658,21 @@ th:last-child { .th-second { padding-left: 0.6rem; width: 40%; + font-size: 1.1em; + line-height: 1.3; + border-bottom: 0; +} +td.td-second { + padding-top: 8px; + padding-left: 16px; +} + +td.model { + font-size: 0.9em; + border-bottom: 0; + line-height: 1.2; + padding-left: 16px; } .td-last, diff --git a/assets/css/docs.scss b/assets/css/docs.scss index 43ebd2c50..e447ab902 100644 --- a/assets/css/docs.scss +++ b/assets/css/docs.scss @@ -69,6 +69,7 @@ a.menu { background: $navigation-background; padding: $base-height; overflow: auto; + padding-bottom: 4em; } .sidebar-mobile { @@ -76,6 +77,7 @@ a.menu { height: $header-height; padding: $base-height; text-align: right; + border-bottom: 2px solid #e1e1e1; .close-icon, .menu-icon { width: 18px; @@ -188,6 +190,10 @@ a.menu { border-right: none; height: $header-height; + .sidebar-main { + padding-bottom: 8em; + } + .sidebar-mobile { display: block; @@ -199,6 +205,7 @@ a.menu { &.opened { overflow: visible; height: auto; + max-height: 100dvh; border-bottom: $sidebar-border; .sidebar-mobile { diff --git a/deconz.html b/deconz.html index 27dcb182f..526ee1772 100644 --- a/deconz.html +++ b/deconz.html @@ -16,7 +16,7 @@

{{ type.name | capitalize }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} diff --git a/index.html b/index.html index 7cd377992..ba6315701 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@

-
+
Recently added:
{% assign sorted = site.zigbee | sort: "date_added" | reverse %} @@ -42,4 +42,4 @@
Recently added:
-As an Amazon Associate I earn from qualifying purchases from provided device links. \ No newline at end of file +As an Amazon Associate I earn from qualifying purchases from provided device links. diff --git a/iobroker.html b/iobroker.html index 906053541..2a6a1a799 100644 --- a/iobroker.html +++ b/iobroker.html @@ -16,7 +16,7 @@

{{ type.name | capitalize }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} diff --git a/vendors.html b/vendors.html index 56b201e2e..f7bd5682d 100644 --- a/vendors.html +++ b/vendors.html @@ -15,7 +15,7 @@

{{ type.name }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} diff --git a/z4d.html b/z4d.html index 70859490a..adbed242f 100644 --- a/z4d.html +++ b/z4d.html @@ -16,7 +16,7 @@

{{ type.name | capitalize }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} diff --git a/zha.html b/zha.html index de34a977d..2c816aad5 100644 --- a/zha.html +++ b/zha.html @@ -14,12 +14,12 @@

{{ type.name | capitalize }}

{% assign vendor = type.items | group_by: 'vendor' %} {% assign vendors = vendor | sort_natural: 'name' %} {% for type in vendors %} - {% assign type_sorted = type.items | sort_natural: 'title' %} + {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} - - + + {% endfor %} \ No newline at end of file diff --git a/zigate.html b/zigate.html index 54eefcf28..bed9b7560 100644 --- a/zigate.html +++ b/zigate.html @@ -16,7 +16,7 @@

{{ type.name | capitalize }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} diff --git a/zigbee2mqtt.html b/zigbee2mqtt.html index df52051d3..be477cf4c 100644 --- a/zigbee2mqtt.html +++ b/zigbee2mqtt.html @@ -16,7 +16,7 @@

{{ type.name | capitalize }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %} diff --git a/zigbee2tasmota.html b/zigbee2tasmota.html index 2b433f1c8..248971b22 100644 --- a/zigbee2tasmota.html +++ b/zigbee2tasmota.html @@ -17,7 +17,7 @@

{{ type.name | capitalize }}

{% for type in vendors %} {% assign type_sorted = type.items | sort_natural: 'title' %} {% for template in type_sorted %} - {% include tablerow_nocompatibility.html %} + {% include tablerow.html hide_compat=true %} {% endfor %} {% endfor %}