Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Improve style for or-header

Robin Dekkers98ffe8364455
diff --git a/ui/component/or-header/src/style.ts b/ui/component/or-header/src/style.ts
index 1be0db339..0472170cb 100644
--- a/ui/component/or-header/src/style.ts
+++ b/ui/component/or-header/src/style.ts
@@ -161,6 +161,7 @@ export const style = css`
/* Wide layout: when the viewport width is bigger than 780px, layout
changes to a wide layout. */
+
@media (min-width: 780px) {
#desktop-menu-btn {
@@ -192,10 +193,20 @@ export const style = css`
#desktop-left .menu-item {
display: inline-block;
}
-
+
+ #desktop-left .menu-item or-icon{
+ display: none;
+ }
+
#desktop-left .menu-item[selected] {
border-bottom: 4px solid var(--internal-or-header-selected-color);
line-height: calc(var(--internal-or-header-height) - 4px);
}
}
+
+ @media (min-width: 1024px) {
+ #desktop-left .menu-item or-icon{
+ display: inline-block;
+ }
+ }
`;
\ No newline at end of file