From 629578fb33d603f61ee01b11fbc4e43d2777f7f3 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Fri, 7 Apr 2017 22:26:47 +0200 Subject: [PATCH] Add basic icons --- images/close.svg | 4 ++++ images/key.svg | 5 +++++ images/lock.svg | 4 ++++ images/poweroff.svg | 4 ++++ images/user.svg | 5 +++++ index.php | 8 ++++---- main.css | 11 +++++++++-- main.js | 2 +- 8 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 images/close.svg create mode 100644 images/key.svg create mode 100644 images/lock.svg create mode 100644 images/poweroff.svg create mode 100644 images/user.svg diff --git a/images/close.svg b/images/close.svg new file mode 100644 index 0000000..efd1b70 --- /dev/null +++ b/images/close.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/images/key.svg b/images/key.svg new file mode 100644 index 0000000..11d9925 --- /dev/null +++ b/images/key.svg @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/images/lock.svg b/images/lock.svg new file mode 100644 index 0000000..763bc39 --- /dev/null +++ b/images/lock.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/images/poweroff.svg b/images/poweroff.svg new file mode 100644 index 0000000..e00a0d3 --- /dev/null +++ b/images/poweroff.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/images/user.svg b/images/user.svg new file mode 100644 index 0000000..e5909d2 --- /dev/null +++ b/images/user.svg @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/index.php b/index.php index 569ab30..8d5049b 100755 --- a/index.php +++ b/index.php @@ -22,18 +22,18 @@ require_once("helpers/position.php"); require_once("helpers/track.php"); if ($user->isValid) { - $itemPass = '' . $lang["changepass"] . ''; - $itemLogout = '' . $lang["logout"] . ''; + $itemPass = ' ' . $lang["changepass"] . ''; + $itemLogout = ' ' . $lang["logout"] . ''; $userHeader = '
- ' . $user->login . ' + ' . $user->login . '
'; } else { - $userHeader = '' . $lang["login"] . ''; + $userHeader = ' ' . $lang["login"] . ''; } $lastUserId = NULL; $userForm = ''; diff --git a/main.css b/main.css index d4e7992..d40ce91 100755 --- a/main.css +++ b/main.css @@ -203,7 +203,7 @@ select { } #modal-header { - top: 15px; + top: 20px; position: relative; text-align: right; margin: 0 auto; @@ -211,6 +211,11 @@ select { min-width: 300px; } +#modal-header button { + background-color: rgba(0, 0, 0, 0); + border: none; +} + #modal-body { font-size: 0.9em; font-family: Verdana, sans-serif; @@ -261,4 +266,6 @@ button { padding-top: .5em; } -.show { display: block; } \ No newline at end of file +.show { display: block; } + +.icon { height: 1.4em; } \ No newline at end of file diff --git a/main.js b/main.js index 0156073..0c31aa3 100755 --- a/main.js +++ b/main.js @@ -406,7 +406,7 @@ function setUnits(unit) { function showModal(contentHTML) { var div = document.createElement('div'); div.setAttribute('id', 'modal'); - div.innerHTML = ''; + div.innerHTML = ''; document.body.appendChild(div); var modalBody = document.getElementById('modal-body'); modalBody.innerHTML = contentHTML;