Adding a little bit of style
This commit is contained in:
parent
bece9b724e
commit
ca765a1328
5 changed files with 225 additions and 219 deletions
|
@ -1,4 +1,10 @@
|
||||||
@import url(https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap);
|
@import url(https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap);
|
||||||
|
@font-face {
|
||||||
|
font-family: "Digital7";
|
||||||
|
src: url("/fonts/digital.ttf") format("truetype");
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* SETTINGS
|
* SETTINGS
|
||||||
**/
|
**/
|
||||||
|
@ -167,6 +173,19 @@ html body .inactive {
|
||||||
background-color: #dfdfdf !important;
|
background-color: #dfdfdf !important;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
html body .refreshed-time {
|
||||||
|
text-align: right;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
html body .refreshed-time .clock {
|
||||||
|
font-family: Digital7;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
background-color: #000;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #FFF;
|
||||||
|
padding: 0.3rem 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
@-webkit-keyframes shake {
|
@-webkit-keyframes shake {
|
||||||
10%, 90% {
|
10%, 90% {
|
||||||
|
|
BIN
public/fonts/digital.ttf
Normal file
BIN
public/fonts/digital.ttf
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,15 @@
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap');
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Digital7';
|
||||||
|
src:
|
||||||
|
url('/fonts/digital.ttf') format('truetype')
|
||||||
|
;
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SETTINGS
|
* SETTINGS
|
||||||
**/
|
**/
|
||||||
|
@ -15,226 +25,241 @@ $inactive_color: #dfdfdf;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
font-family: 'Hind', sans-serif;
|
font-family: 'Hind', sans-serif;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
background-image: url(../img/bush.png);
|
background-image: url(../img/bush.png);
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
|
|
||||||
|
|
||||||
a, a:visited {
|
a, a:visited {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: inherit;
|
text-decoration: inherit;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4 {
|
h1, h2, h3, h4 {
|
||||||
margin-top: .8rem;
|
margin-top: .8rem;
|
||||||
margin-bottom: .8rem;
|
margin-bottom: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 3rem 0;
|
margin: 3rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
background-color: $bg_color;
|
background-color: $bg_color;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: .8rem;
|
padding: .8rem;
|
||||||
color: rgb(240, 240, 240);
|
color: rgb(240, 240, 240);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: .9rem;
|
font-size: .9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.context-menu {
|
.context-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: .7rem;
|
right: .7rem;
|
||||||
top: .7rem;
|
top: .7rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
vertical-align: sub;
|
vertical-align: sub;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border: 1px solid #ABC;
|
border: 1px solid #ABC;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border-spacing : 0;
|
border-spacing : 0;
|
||||||
border-collapse : collapse;
|
border-collapse : collapse;
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background-color: #e6EEEE;
|
background-color: #e6EEEE;
|
||||||
border: 1px solid #9ccece;
|
border: 1px solid #9ccece;
|
||||||
padding: 0.3rem;
|
padding: 0.3rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
color: #3D3D3D;
|
color: #3D3D3D;
|
||||||
padding: 0.3rem;
|
padding: 0.3rem;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
border: 1px solid #9ccece;
|
border: 1px solid #9ccece;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.right {
|
&.right {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&#tasks_tbl, &#contacts_tbl {
|
&#tasks_tbl, &#contacts_tbl {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.quick-view {
|
.quick-view {
|
||||||
-webkit-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
-webkit-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
||||||
-moz-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
-moz-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
||||||
box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.new-group {
|
.new-group {
|
||||||
margin: .2rem;
|
margin: .2rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: .4rem;
|
border-radius: .4rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.square {
|
.square {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
float: left;
|
float: left;
|
||||||
line-height: 1.2rem;
|
line-height: 1.2rem;
|
||||||
min-width: 1.4rem;
|
min-width: 1.4rem;
|
||||||
padding: .2rem .6rem;
|
padding: .2rem .6rem;
|
||||||
|
|
||||||
&:not(:first-of-type) {
|
&:not(:first-of-type) {
|
||||||
border-left: 1px solid white;
|
border-left: 1px solid white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.tasks {
|
.tasks {
|
||||||
.task {
|
.task {
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
-webkit-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
-webkit-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
||||||
-moz-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
-moz-box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
||||||
box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
box-shadow: 3px 3px 6px 0px rgba(0,0,0,0.3);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.spacer {
|
.spacer {
|
||||||
clear:both;
|
clear:both;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin:0;
|
margin:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-content {
|
.block-content {
|
||||||
padding: .8rem;
|
padding: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
background-color: #166260;
|
background-color: #166260;
|
||||||
padding: 0px 1rem;
|
padding: 0px 1rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-radius: .5rem;
|
border-radius: .5rem;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
font-size: .8rem;
|
font-size: .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.up {
|
.up {
|
||||||
background-color: $up_color;
|
background-color: $up_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.down {
|
.down {
|
||||||
background-color: $down_color;
|
background-color: $down_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.unknown {
|
.unknown {
|
||||||
background-color: $unknown_color;
|
background-color: $unknown_color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inactive {
|
.inactive {
|
||||||
background-color: $inactive_color !important;
|
background-color: $inactive_color !important;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
.refreshed-time {
|
||||||
|
text-align: right;
|
||||||
|
font-size: .8rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
|
||||||
|
.clock {
|
||||||
|
font-family: Digital7;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
background-color: #000;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #FFF;
|
||||||
|
padding: .3rem .5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@keyframes shake {
|
@keyframes shake {
|
||||||
10%, 90% {
|
10%, 90% {
|
||||||
transform: translate3d(-1px, 0, 0);
|
transform: translate3d(-1px, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
20%, 80% {
|
20%, 80% {
|
||||||
transform: translate3d(2px, 0, 0);
|
transform: translate3d(2px, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
30%, 50%, 70% {
|
30%, 50%, 70% {
|
||||||
transform: translate3d(-4px, 0, 0);
|
transform: translate3d(-4px, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
40%, 60% {
|
40%, 60% {
|
||||||
transform: translate3d(4px, 0, 0);
|
transform: translate3d(4px, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>MonitoLite Dashboard</h1>
|
<h1>MonitoLite Dashboard</h1>
|
||||||
<p class="refreshed-time">Data refreshed: {{ refreshedTime }}</p>
|
<p class="refreshed-time">Last refresh: <br /><span class="clock">{{ refreshedTime }}</span></p>
|
||||||
<quick-view></quick-view>
|
<quick-view></quick-view>
|
||||||
<task-list></task-list>
|
<task-list></task-list>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,8 +48,5 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.refreshed-time {
|
|
||||||
text-align: right;
|
|
||||||
font-size: .8rem;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
Loading…
Add table
Reference in a new issue