Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
346 changes: 346 additions & 0 deletions css/simple.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,346 @@
* {
box-sizing:border-box;
}
html {
height:100%;
background:#080b0f;
}
body {
margin:0;
height:100%;
color:#f5f7fa;
background:#080b0f;
font:16px/1.25 Verdana,Arial,Helvetica,sans-serif;
overflow:hidden;
}
button {
font:inherit;
}
.simple-app {
height:100vh;
min-width:320px;
display:flex;
flex-direction:column;
}
.topbar {
height:48px;
display:grid;
grid-template-columns:auto 1fr auto;
align-items:center;
gap:14px;
padding:6px 14px;
background:#121a24;
border-bottom:2px solid #2c4054;
}
.brand {
color:#91d79c;
font-size:20px;
font-weight:bold;
text-decoration:none;
}
.node-title {
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
color:#d7e1ea;
font-size:17px;
}
.node-number {
color:#9db2c4;
font-size:16px;
white-space:nowrap;
}
.simple-main {
flex:1;
min-height:0;
display:grid;
grid-template-rows:auto auto auto 1fr;
gap:8px;
padding:8px;
}
.status-panel,
.warning-panel,
.readonly-panel {
display:grid;
grid-template-columns:1fr auto;
align-items:center;
gap:10px;
border:2px solid #314b61;
padding:8px 10px;
min-height:76px;
background:#101820;
}
.status-label {
font-size:34px;
font-weight:bold;
line-height:1;
letter-spacing:0;
}
.status-detail,
.warning-detail,
.readonly-detail {
margin-top:5px;
color:#d5dde4;
font-size:16px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
.state-idle {
border-color:#3d4e5e;
}
.state-connected {
border-color:#20a35b;
background:#0e261a;
}
.state-connecting {
border-color:#d2bd4a;
background:#292612;
}
.state-rx {
border-color:#32b876;
background:#102c20;
}
.state-tx {
border-color:#ce4b4b;
background:#331313;
}
.state-warning,
.warning-panel {
border-color:#ffcf3f;
background:#3b2d08;
}
.disconnect-btn,
.disconnect-all-btn,
.scroll-btn {
min-width:132px;
min-height:56px;
border:0;
border-radius:6px;
font-weight:bold;
color:#fff;
background:#3a4957;
}
.disconnect-btn:enabled {
background:#9b3434;
}
.disconnect-all-btn {
min-width:210px;
min-height:64px;
font-size:23px;
background:#c01818;
}
button:disabled {
opacity:0.38;
}
.hidden {
display:none;
}
.warning-title {
font-size:24px;
font-weight:bold;
color:#fff0a3;
}
.readonly-panel {
border-color:#5a7188;
background:#182534;
}
.readonly-title {
font-size:24px;
font-weight:bold;
color:#c9d8e6;
}
.login-btn {
min-width:132px;
min-height:56px;
border:0;
border-radius:6px;
font-weight:bold;
color:#07100a;
background:#91d79c;
}
.channels-shell {
min-height:0;
display:grid;
grid-template-columns:64px 1fr 64px;
gap:8px;
}
.channels-viewport {
min-height:0;
overflow-y:auto;
scrollbar-width:none;
}
.channels-viewport::-webkit-scrollbar {
display:none;
}
.channels-grid {
display:grid;
grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
gap:8px;
align-content:start;
padding-bottom:2px;
}
.channel-btn {
position:relative;
display:grid;
grid-template-columns:auto 1fr;
grid-template-rows:auto auto;
gap:3px 8px;
align-items:center;
min-height:104px;
padding:10px;
border:2px solid #2f4559;
border-radius:8px;
background:#162331;
color:#f8fbff;
text-align:left;
overflow:hidden;
}
.channel-btn:enabled:active {
transform:translateY(1px);
}
.channel-btn.active {
border-color:#30c66d;
background:#123d27;
box-shadow:inset 0 0 0 2px rgba(255,255,255,0.12);
}
.channel-btn.connected-extra {
border-color:#ffcf3f;
background:#3b2d08;
}
.channel-index {
grid-row:1 / span 2;
display:flex;
align-items:center;
justify-content:center;
width:34px;
height:34px;
border-radius:50%;
background:#2f4255;
color:#dce8f2;
font-weight:bold;
}
.channel-label {
font-size:18px;
font-weight:bold;
line-height:1.12;
text-align:center;
overflow:hidden;
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
}
.channel-meta {
grid-column:2;
font-size:14px;
font-weight:normal;
color:#9ee0a8;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.scroll-btn {
height:100%;
min-width:0;
font-size:22px;
background:#263646;
}
.scroll-btn:enabled {
background:#36516a;
}
.simple-footer {
height:30px;
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
align-items:center;
padding:3px 8px;
border-top:1px solid #263646;
color:#9eacb7;
font-size:12px;
overflow:hidden;
}
#scanmsg,
#statmsg {
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
.empty-channels {
padding:28px;
border:2px dashed #384c5f;
color:#b8c6d1;
text-align:center;
font-size:22px;
}
@media (max-width:700px) {
body {
font-size:14px;
}
.topbar {
grid-template-columns:1fr auto;
height:44px;
}
.brand {
display:none;
}
.node-title {
font-size:15px;
}
.status-label {
font-size:26px;
}
.status-panel,
.warning-panel,
.readonly-panel {
min-height:66px;
}
.disconnect-btn,
.disconnect-all-btn,
.login-btn {
min-width:120px;
min-height:50px;
font-size:15px;
}
.channels-shell {
grid-template-columns:48px 1fr 48px;
}
.channels-grid {
grid-template-columns:repeat(auto-fit, minmax(145px, 1fr));
}
.channel-btn {
min-height:94px;
}
.channel-label {
font-size:16px;
}
}
@media (max-height:430px) {
.topbar {
height:40px;
}
.simple-main {
gap:6px;
padding:6px;
}
.status-panel,
.warning-panel {
min-height:62px;
padding:6px 8px;
}
.status-label {
font-size:27px;
}
.warning-title {
font-size:20px;
}
.readonly-title {
font-size:20px;
}
.channel-btn {
min-height:86px;
}
.simple-footer {
display:none;
}
}
5 changes: 5 additions & 0 deletions include/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ function checkTitleCfgs() {
function getHdrLinks() {
global $html, $urlbase, $user;
$lnk = [];
if(readOk()) {
$url = "$urlbase/simple/";
$title = 'Simple';
$lnk[] = ($url === getScriptName()) ? $title : $html->a($url, null, $title);
}
if(isset($user->user_id) && validDbID($user->user_id)) {
// Show links to Cfg and User modules if Admin user
if(adminUser()) {
Expand Down
Loading