Skip to content

Commit

Permalink
Custom/keaz (#612)
Browse files Browse the repository at this point in the history
* add theme variables

* add keaz theme
  • Loading branch information
ninedev-i authored Oct 15, 2024
1 parent ca41cd2 commit 92a9a8e
Show file tree
Hide file tree
Showing 15 changed files with 85 additions and 154 deletions.
Binary file modified app/favicon.ico
Binary file not shown.
Binary file added app/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 0 additions & 120 deletions app/images/logo.svg

This file was deleted.

4 changes: 2 additions & 2 deletions app/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html class="no-js">
<head>
<meta charset="utf-8">
<title>Wiren Board Web UI</title>
<title>KEAZ OptiSmart WEB</title>
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down Expand Up @@ -36,7 +36,7 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand wb-navbar-brand" ui-sref="home">
<img src="images/logo.svg" alt="Wiren Board Web UI">
<img src="images/logo.png" alt="KEAZ OptiSmart WEB">
</a>
<p class="navbar-text navbar-right connection-status">
<span class="label label-custom access-level-label" ng-class="roles.current.roles.isAdmin ? 'label label-custom label-danger' : 'label label-custom label-warning'"
Expand Down
1 change: 1 addition & 0 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

// Import slylesheets
import '../styles/css/keaz-theme.css';
import '../styles/css/bootstrap.min.css';
import '../styles/css/font-awesome.min.css';
import '../styles/css/fontawesome.min.css';
Expand Down
4 changes: 2 additions & 2 deletions app/styles/css/bootstrap.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/styles/css/device-manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@
@media (min-width: 992px) {
.device-manager-page .nav-stacked li.active {
color: #fff;
background-color: #3276b1;
background-color: var(--primary-color);
}

.device-manager-page li:not(.active):not(:hover):not(:focus) .port-tab {
background-color: #f5f5f5;
}

.device-manager-page li.active .settings-tab {
border: 1px solid #3276b1;
border: 1px solid var(--primary-color);
}

.device-manager-page .group-editor {
Expand Down
33 changes: 33 additions & 0 deletions app/styles/css/keaz-theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
:root {
--primary-color: #0a08ef;
--primary-color-hover: #0046ff;
--secondary-color: #ff4700;
--secondary-color-hover: #ffa27f;
--success-color: var(--secondary-color);
--success-color-hover: var(--secondary-color-hover);
--success-color-border: var(--secondary-color);
--gray-color: #cfdae2;

--bar-color: #e7ecf0;
--bar-border: var(--gray-color);
--bar-hover-color: var(--secondary-color);
--bar-inside-color: var(--gray-color);
--bar-burger-color: var(--secondary-color);
--bar-burger-border-color: var(--bar-inside-color);
--bar-text-color: var(--primary-color);
--bar-inside-text-color: var(--primary-color);
--online-color: #27ae60;
--bar-font-size: 15px;

--font: "Loos Normal Regular", Sans Serif;
}

@font-face {
font-family: "Loos Normal Regular";
src: url("../fonts/Loos-Normal-Regular-Web.woff") format("woff");
}

.navbar-nav li:last-of-type {
display: none;
}

4 changes: 2 additions & 2 deletions app/styles/css/network-connections.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}

.network-connections-page .nav-tabs li.active {
box-shadow: 0 -2px 0 #3276b1;
box-shadow: 0 -2px 0 var(--primary-color);
border-top-width: 0 !important;
font-weight: 700;
border-left: 1px solid #ddd;
Expand Down Expand Up @@ -158,7 +158,7 @@
}
.network-connections-page .nav-stacked li.active {
color: #fff;
background-color: #3276b1;
background-color: var(--primary-color);
}
.network-connections-page .nav-stacked li > *:first-child {
padding: 10px 9px 10px;
Expand Down
12 changes: 8 additions & 4 deletions app/styles/css/new.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ div[uib-datepicker-popup-wrap] {
padding: 7px 10px;
}

.navbar-brand img {
max-height: 42px;
}

.devices-panel-list .device-panel:not(:last-child) {
margin-bottom: 18px;
}
Expand All @@ -192,7 +196,7 @@ div[uib-datepicker-popup-wrap] {
}

.device-panel > .panel-heading {
background-color: #3276b1;
background-color: var(--primary-color);
color: white;
padding: 0;
border: none !important;
Expand All @@ -219,7 +223,7 @@ div[uib-datepicker-popup-wrap] {

.device-panel__header-wrapper {
position: relative;
background-color: #3276b1;
background-color: var(--primary-color);
color: white;
}

Expand Down Expand Up @@ -249,7 +253,7 @@ div[uib-datepicker-popup-wrap] {
}

.device-panel__body {
border: 1px solid #3276b1;
border: 1px solid var(--primary-color);
border-top: 0px;
padding: 10px;
}
Expand Down Expand Up @@ -288,7 +292,7 @@ div[uib-datepicker-popup-wrap] {
}

.navbar-inverse > * {
background-color: black;
background-color: var(--bar-color);
}

.navbar-collapse {
Expand Down
12 changes: 6 additions & 6 deletions app/styles/css/smartadmin-production.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@

.ui-buttonset .ui-state-active.ui-state-hover {
color: #fff;
background-color: #3276b1;
background-color: var(--primary-color);
border-color: #285e8e
}

Expand Down Expand Up @@ -613,7 +613,7 @@ time.icon strong {
time.icon em {
position: absolute;
bottom: 3px;
color: #3276b1
color: var(--primary-color)
}

time.icon span {
Expand Down Expand Up @@ -645,7 +645,7 @@ h2,
h3,
h4 {
margin: 0;
font-family: "Open Sans", Arial, Helvetica, Sans-Serif;
font-family: var(--font);
font-weight: 300
}

Expand Down Expand Up @@ -802,7 +802,7 @@ h6 {

nav ul li a {
line-height: normal;
font-size: 14px;
font-size: var(--bar-font-size);
padding: 10px 10px 10px 11px;
color: #c0bbb7;
display: block;
Expand All @@ -814,7 +814,7 @@ nav ul li a {
nav ul ul {
margin: 0;
display: none;
background: rgba(69, 69, 69, .6);
background: var(--bar-inside-color);
padding: 7px 0
}

Expand Down Expand Up @@ -1627,7 +1627,7 @@ img.away {
}

.progress-bar-success {
background-color: #739e73
background-color: var(--success-color);
}

.progress-striped .progress-bar-success {
Expand Down
2 changes: 1 addition & 1 deletion app/styles/css/wb-switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}

.wb-switch-input:checked ~ .wb-switch-label {
background: #3276b1;
background: var(--primary-color);
}

.wb-switch-input:checked ~ .wb-switch-label:before {
Expand Down
Binary file added app/styles/fonts/Loos-Normal-Regular-Web.woff
Binary file not shown.
Loading

0 comments on commit 92a9a8e

Please sign in to comment.