Skip to content

armgit / core

Public Imported from GitHub
0

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

Style improvements

robindekkersa010acca541d
diff --git a/ui/component/or-header/src/or-header-style.ts b/ui/component/or-header/src/or-header-style.ts
index 0ed00c151..951907d32 100644
--- a/ui/component/or-header/src/or-header-style.ts
+++ b/ui/component/or-header/src/or-header-style.ts
@@ -8,72 +8,83 @@ export const OrHeaderStyle = css`
or-header a, a:link, a:visited {
display: inline-block;
- color: rgba(255,255,255, 0.8);
+ color: rgba(255, 255, 255, 0.8);
line-height: 60px;
padding: 0 5px;
text-transform: uppercase;
font-size: 14px;
text-decoration: none !important;
cursor: pointer;
- }
- or-header a[selected]{
+ transition: color 200ms ease-in;
+ }
+
+ or-header a[selected] {
color: var(--app-light-text-color);
font-weight: 400;
- }
-
- or-header a[selected] svg path{
+ }
+
+ or-header a:hover {
+ color: rgba(255, 255, 255, 1);
+ }
+
+ or-header a[selected] svg path {
fill: var(--app-light-text-color);
- }
-
- [slot="mobile-top"] > a,
- [slot="mobile-bottom"] > a {
+ }
+
+ or-header or-icon {
+ margin-right: 10px;
+ }
+
+ [slot="mobile-top"] > a,
+ [slot="mobile-bottom"] > a {
color: var(--app-drawer-text-color);
display: block;
- }
- [slot="mobile-top"] > a[selected] svg path,
- [slot="mobile-bottom"] > a[selected] svg path {
+ }
+
+ [slot="mobile-top"] > a[selected] svg path,
+ [slot="mobile-bottom"] > a[selected] svg path {
fill: var(--app-drawer-text-color);
- }
-
- [slot="mobile-top"] > a[selected],
- [slot="mobile-bottom"] > a[selected] {
+ }
+
+ [slot="mobile-top"] > a[selected],
+ [slot="mobile-bottom"] > a[selected] {
color: var(--app-drawer-text-color);
/*border-bottom: 4px solid #A3BDD0;*/
- }
-
-
- or-header .svg-inline--fa {
+ }
+
+
+ or-header .svg-inline--fa {
height: 14px;
width: 14px;
margin: -2px 4px;
- }
+ }
- [slot="desktop-right"] {
+ [slot="desktop-right"] {
margin-left: auto;
- }
-
- [slot="desktop-left"] svg path {
- fill: rgba(255,255,255, 0.8);
- }
-
- [slot="desktop-left"] > a {
+ }
+
+ [slot="desktop-left"] svg path {
+ fill: rgba(255, 255, 255, 0.8);
+ }
+
+ [slot="desktop-left"] > a {
display: none;
line-height: 60px;
padding: 0 24px;
- }
-
-
- [slot="desktop-left"] > a[selected] {
- display:inline-block;
- }
-
+ }
+
+
+ [slot="desktop-left"] > a[selected] {
+ display: inline-block;
+ }
+
@media (min-width: 460px) {
- [slot="desktop-left"] > a {
- display:inline-block;
- line-height: 56px;
- }
-
- [slot="desktop-left"] > a[selected] {
- border-bottom: 4px solid var(--app-header-selected-border);
- }
+ [slot="desktop-left"] > a {
+ display: inline-block;
+ line-height: 56px;
+ }
+
+ [slot="desktop-left"] > a[selected] {
+ border-bottom: 4px solid var(--app-header-selected-border);
+ }
`;
diff --git a/ui/component/or-input/src/style.ts b/ui/component/or-input/src/style.ts
index 7486ed710..5aa0ee6ac 100644
--- a/ui/component/or-input/src/style.ts
+++ b/ui/component/or-input/src/style.ts
@@ -15,5 +15,5 @@ export const orInputStyle = css`
background-color: var(--or-input-background, #f2f2f2);
}
- input:invalid { border-bottom: 2px solid red;}
+ input.invalid { border-bottom: 2px solid red;}
`;
diff --git a/ui/component/or-rules-editor/src/style.ts b/ui/component/or-rules-editor/src/style.ts
index dff9747fc..2671be250 100644
--- a/ui/component/or-rules-editor/src/style.ts
+++ b/ui/component/or-rules-editor/src/style.ts
@@ -187,31 +187,37 @@ export const ruleListStyle = css`
flex: 1;
}
- .list-container {
- }
.list-title {
display: block;
- padding: 17px 33px 10px 33px;
+ padding: 30px 30px 5px 20px;
text-transform: uppercase;
- color: var(--app-grey-color);
+ color: var(--app-grey-color, #808080);
opacity: 0.87;
+ font-size:14px;
+ font-weight: bold;
+ text-align: left;
}
.list-item {
text-decoration: none;
height: 24px;
font-size: 15px;
- padding: 17px 0;
+ padding: 17px 0 17px 17px;
border-left: 5px solid transparent;
- color: var(--app-grey-color);
+ color: var(--app-grey-color, #808080);
cursor: pointer;
- transition: all 300ms ease-in;
+ transition: all 200ms ease-in;
+ }
+
+ .list-item:hover {
+ border-left-color: transparent;
+ background-color: #f7f7f7;
+ color: #000000;
}
- .list-item[selected],
- .list-item:hover {
+ .list-item[selected] {
border-left-color: var(--app-primary-color);
background-color: #f7f7f7;
color: #000000;