[!!!][TASK] Refactor Scss, add Sass-lint and adjust styling
Add variables to allow easy modifications to color, font and also extending Style
This commit is contained in:
parent
6175d6bb7a
commit
ed06ff6b09
50 changed files with 762 additions and 888 deletions
|
@ -1,53 +0,0 @@
|
|||
.filters {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
font-family: Roboto, sans-serif;
|
||||
font-size: 0.83em;
|
||||
font-weight: bold;
|
||||
padding: 0 6pt 6pt !important;
|
||||
|
||||
li {
|
||||
border-radius: 20pt;
|
||||
display: flex;
|
||||
padding: 0 0 0 8pt;
|
||||
margin: 3pt;
|
||||
align-items: center;
|
||||
background: #009ee0;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
|
||||
strong {
|
||||
color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
}
|
||||
|
||||
&.not {
|
||||
background: #dc0067;
|
||||
}
|
||||
|
||||
button {
|
||||
box-shadow: none;
|
||||
margin: 2pt;
|
||||
padding: 0;
|
||||
width: 18pt;
|
||||
height: 18pt;
|
||||
background: rgba(255, 255, 255, 0.0);
|
||||
font-size: 12pt;
|
||||
vertical-align: middle;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
|
||||
&:hover {
|
||||
box-shadow: none !important;
|
||||
color: #dc0067;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
&:active {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
.legend .symbol {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
vertical-align: -5%;
|
||||
}
|
||||
|
||||
.legend-new .symbol {
|
||||
background-color: #93E929;
|
||||
}
|
||||
|
||||
.legend-online .symbol {
|
||||
background-color: #1566A9;
|
||||
}
|
||||
|
||||
.legend-offline .symbol {
|
||||
background-color: #D43E2A;
|
||||
}
|
||||
|
||||
.legend-online, .legend-offline {
|
||||
margin-left: 1em;
|
||||
}
|
|
@ -1,59 +0,0 @@
|
|||
.stroke-first {
|
||||
paint-order: stroke;
|
||||
}
|
||||
|
||||
.pick-coordinates {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.map {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.node-alert {
|
||||
-webkit-animation: blink 2s linear;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
animation: blink 2s linear;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
.leaflet-top button.leaflet-control {
|
||||
margin-top: $buttondistance;
|
||||
}
|
||||
|
||||
.leaflet-bottom button.leaflet-control {
|
||||
margin-bottom: $buttondistance;
|
||||
}
|
||||
|
||||
.leaflet-left button.leaflet-control {
|
||||
margin-left: $buttondistance;
|
||||
}
|
||||
|
||||
.leaflet-right button.leaflet-control {
|
||||
margin-right: $buttondistance;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes blink {
|
||||
0% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
80% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
90% {
|
||||
opacity: 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
80% {
|
||||
opacity: 1.0;
|
||||
}
|
||||
90% {
|
||||
opacity: 0.0;
|
||||
}
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
/* Original is in LESS and can be found here: https://gist.github.com/gefangenimnetz/3ef3e18364edf105c5af */
|
||||
|
||||
@mixin shadow($level:1) {
|
||||
@if $level == 1 {
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||
} @else if $level == 2 {
|
||||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
||||
} @else if $level == 3 {
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
|
||||
} @else if $level == 4 {
|
||||
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
||||
} @else if $level == 5 {
|
||||
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
}
|
10
scss/custom/_custom.scss
Normal file
10
scss/custom/_custom.scss
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Example of overwriting variables. Take a look at modules/variables
|
||||
// .node-links {
|
||||
// color: $color-primary;
|
||||
// }
|
||||
|
||||
// You can also include additional files for style example https://github.com/ffrgb/meshviewer/tree/ffrgb-config/scss/custom
|
||||
// Include syntax: @include "name" -> Filename: _name.scss
|
||||
|
||||
// SCSS supports css with a lot of additional features like variables or mixins.
|
||||
// Autoprefixer runs in postcss, no need to add browser-prefixes like -webkit, -moz or -ms
|
4
scss/custom/_variables.scss
Normal file
4
scss/custom/_variables.scss
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Example of overwriting variables. Take a look at modules/variables
|
||||
//$color-black: #fff;
|
||||
//$color-white: invert($color-white);
|
||||
//$color-primary: invert($color-primary);
|
521
scss/main.scss
521
scss/main.scss
|
@ -1,495 +1,26 @@
|
|||
@import '_reset';
|
||||
@import '_shadow';
|
||||
@import '_base';
|
||||
@import '_leaflet';
|
||||
@import '_leaflet.label';
|
||||
@import '_leaflet-layer';
|
||||
@import '_filters';
|
||||
@import '_loader';
|
||||
|
||||
$minscreenwidth: 630pt;
|
||||
$sidebarwidth: 420pt;
|
||||
$sidebarwidthsmall: 320pt;
|
||||
$buttondistance: 12pt;
|
||||
|
||||
@import '_sidebar';
|
||||
@import '_map';
|
||||
@import '_forcegraph';
|
||||
@import '_legend';
|
||||
|
||||
.content {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
||||
.buttons {
|
||||
direction: rtl;
|
||||
unicode-bidi: bidi-override;
|
||||
|
||||
z-index: 100;
|
||||
position: absolute;
|
||||
top: $buttondistance;
|
||||
right: $buttondistance;
|
||||
|
||||
button {
|
||||
margin-left: $buttondistance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tabs, header {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
}
|
||||
|
||||
.tabs {
|
||||
padding: 1em 0 0 !important;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
font-family: Roboto, sans-serif;
|
||||
@include shadow(1);
|
||||
}
|
||||
|
||||
.tabs li {
|
||||
flex: 1 1 auto;
|
||||
text-transform: uppercase;
|
||||
text-align: center;
|
||||
padding: 0.5em 0.5em 1em;
|
||||
cursor: pointer;
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.tabs li:hover {
|
||||
color: #dc0067;
|
||||
}
|
||||
|
||||
.tabs .visible {
|
||||
border-bottom: 2pt solid #dc0067;
|
||||
color: #dc0067;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Roboto Slab', serif;
|
||||
font-size: 11pt;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
th.sort-header::selection {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
th.sort-header {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
table th.sort-header:after {
|
||||
font-family: "ionicons";
|
||||
padding-left: 0.25em;
|
||||
content: '\f10d';
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
table th.sort-header:hover:after {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
table th.sort-up:after, table th.sort-down:after, table th.sort-down:hover:after {
|
||||
visibility: visible;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
table th.sort-up:after {
|
||||
content: '\f104';
|
||||
}
|
||||
|
||||
table.attributes th {
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
vertical-align: top;
|
||||
padding-right: 1em;
|
||||
white-space: nowrap;
|
||||
line-height: 1.41em;
|
||||
}
|
||||
|
||||
table.attributes td {
|
||||
text-align: left !important;
|
||||
width: 100%;
|
||||
line-height: 1.41em;
|
||||
}
|
||||
|
||||
table.attributes tr.routerpic {
|
||||
max-height: 128px;
|
||||
max-width: 128px;
|
||||
min-width: 128px;
|
||||
min-height: 128px;
|
||||
/*height: 128px;*/
|
||||
/*background-color: green;*/
|
||||
}
|
||||
|
||||
table.attributes tr.routerpic td {
|
||||
font-weight: bold;
|
||||
/*background-color: red;*/
|
||||
font-size: large;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
table.attributes tr.routerpic th {
|
||||
font-weight: bold;
|
||||
/*background-color: red;*/
|
||||
font-size: large;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.nodenamesidebar {
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
/*background-color: red;*/
|
||||
font-size: large;
|
||||
vertical-align: bottom;
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
.infobox, .container {
|
||||
@include shadow(2);
|
||||
background: rgba(255, 255, 255, 0.97);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.container.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.container table.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.67em;
|
||||
}
|
||||
}
|
||||
|
||||
.infobox .clients {
|
||||
font-family: "ionicons";
|
||||
color: #1566A9;
|
||||
word-spacing: -0.2em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.infobox .clientsMesh {
|
||||
font-family: "ionicons";
|
||||
color: #dbdbdb;
|
||||
word-spacing: -0.2em;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.infobox {
|
||||
position: relative;
|
||||
padding: 0.25em 0;
|
||||
margin-bottom: $buttondistance;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
input[type="text"], textarea {
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
||||
border-radius: 5px;
|
||||
border: none;
|
||||
line-height: 1.67em;
|
||||
vertical-align: bottom;
|
||||
margin-right: 0.7em;
|
||||
padding: 3px 6px;
|
||||
font-family: monospace;
|
||||
width: 70%;
|
||||
max-width: 500px;
|
||||
min-height: 42px;
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
overflow: auto;
|
||||
max-height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
font-family: "ionicons";
|
||||
@include shadow(1);
|
||||
border-radius: 0.9em;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
color: #333;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
height: 1.8em;
|
||||
width: 1.8em;
|
||||
font-size: 20pt;
|
||||
transition: box-shadow 0.5s, color 0.5s;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
button.active {
|
||||
color: #dc0067 !important;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: white;
|
||||
color: #dc0067;
|
||||
@include shadow(2);
|
||||
}
|
||||
|
||||
button:active {
|
||||
box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.19), inset 0 3px 6px rgba(0, 0, 0, 0.23);
|
||||
}
|
||||
|
||||
button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
button.close {
|
||||
width: auto;
|
||||
height: auto;
|
||||
font-size: 20pt;
|
||||
float: right;
|
||||
margin-right: $buttondistance;
|
||||
margin-top: $buttondistance;
|
||||
box-shadow: none;
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
font-family: "ionicons";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
|
||||
&:hover {
|
||||
color: #dc0067;
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '\f2d7';
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar h2, .sidebar h3 {
|
||||
padding-left: $buttondistance;
|
||||
padding-right: $buttondistance;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
p, pre, ul, h4 {
|
||||
padding: 0 $buttondistance 1em;
|
||||
}
|
||||
|
||||
table {
|
||||
padding: 0 $buttondistance;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
border-spacing: 0 0.5em;
|
||||
td, th {
|
||||
line-height: 1.41em;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar table {
|
||||
border-collapse: separate;
|
||||
}
|
||||
|
||||
.sidebar table th {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sidebar table:not(.node-links) th:first-child,
|
||||
.sidebar table:not(.node-links) td:first-child {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.sidebar table.node-links th:nth-child(2),
|
||||
.sidebar table.node-links td:nth-child(2) {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 45%;
|
||||
}
|
||||
|
||||
.sidebar table.node-links th:first-child,
|
||||
.sidebar table.node-links td:first-child {
|
||||
width: 1.5em;
|
||||
}
|
||||
|
||||
.sidebarhandle {
|
||||
position: fixed;
|
||||
left: $sidebarwidth + 2 * $buttondistance;
|
||||
top: $buttondistance;
|
||||
z-index: 10;
|
||||
transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
|
||||
}
|
||||
|
||||
.sidebarhandle:after {
|
||||
padding-right: 0.125em;
|
||||
content: "\f124";
|
||||
}
|
||||
|
||||
.sidebar.hidden .sidebarhandle {
|
||||
transform: scale(-1, 1);
|
||||
left: $buttondistance;
|
||||
}
|
||||
|
||||
.online {
|
||||
color: #558020 !important;
|
||||
}
|
||||
|
||||
.offline {
|
||||
color: #D43E2A !important;
|
||||
}
|
||||
|
||||
.unseen {
|
||||
color: #D89100 !important;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
z-index: 5;
|
||||
width: $sidebarwidth;
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
top: $buttondistance;
|
||||
left: $buttondistance;
|
||||
padding-bottom: $buttondistance;
|
||||
transition: left 0.5s;
|
||||
}
|
||||
|
||||
.sidebar.hidden {
|
||||
left: -$sidebarwidth - $buttondistance;
|
||||
}
|
||||
|
||||
.sidebar .icon {
|
||||
padding: 0 0.25em;
|
||||
}
|
||||
|
||||
.sidebar table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.sidebar table th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sidebar table:not(.node-links) td:not(:first-child),
|
||||
.sidebar table:not(.node-links) th:not(:first-child) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sidebar table.node-links td:not(:nth-child(-n+2)),
|
||||
.sidebar table.node-links th:not(:nth-child(-n+2)) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sidebar a {
|
||||
color: #1566A9;
|
||||
}
|
||||
|
||||
.bar {
|
||||
display: block;
|
||||
height: 1.4em;
|
||||
background: rgba(85, 128, 32, 0.5);
|
||||
position: relative;
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
height: 1.4em;
|
||||
background: rgba(85, 128, 32, 0.8);
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
color: white;
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0.1em;
|
||||
}
|
||||
}
|
||||
|
||||
.proportion th {
|
||||
font-weight: normal !important;
|
||||
text-align: right !important;
|
||||
font-size: 0.95em;
|
||||
padding-right: 0.71em;
|
||||
}
|
||||
|
||||
.proportion td {
|
||||
text-align: left !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.proportion td, .proportion th {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.proportion span {
|
||||
display: inline-block;
|
||||
background: black;
|
||||
padding: 0.25em 0.5em;
|
||||
font-weight: bold;
|
||||
min-width: 1.5em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 80em) {
|
||||
.sidebar {
|
||||
font-size: 0.8em;
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
width: $sidebarwidthsmall;
|
||||
min-height: 100vh;
|
||||
@include shadow(2);
|
||||
background: white;
|
||||
|
||||
.sidebarhandle {
|
||||
left: $sidebarwidthsmall + $buttondistance;
|
||||
}
|
||||
|
||||
.container, .infobox {
|
||||
margin: 0;
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $minscreenwidth) {
|
||||
.sidebarhandle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: relative;
|
||||
width: auto;
|
||||
height: 60vh;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: static;
|
||||
margin: 0 !important;
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.sidebar.hidden {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
// Set variables
|
||||
@import 'modules/variables';
|
||||
@import 'custom/variables';
|
||||
// Add modules
|
||||
@import 'mixins/shadow';
|
||||
@import 'mixins/icon-mixin';
|
||||
@import 'modules/reset';
|
||||
@import 'modules/base';
|
||||
@import 'modules/icon';
|
||||
@import 'leaflet';
|
||||
@import 'leaflet.label';
|
||||
@import 'modules/leaflet-layer';
|
||||
@import 'modules/table';
|
||||
@import 'modules/filter';
|
||||
@import 'modules/sidebar';
|
||||
@import 'modules/map';
|
||||
@import 'modules/forcegraph';
|
||||
@import 'modules/legend';
|
||||
@import 'modules/proportion';
|
||||
@import 'modules/tabs';
|
||||
@import 'modules/node';
|
||||
@import 'modules/infobox';
|
||||
@import 'modules/button';
|
||||
|
||||
// Make adjustments in custom scss
|
||||
@import 'custom/custom';
|
||||
|
|
1
scss/mixins/_icon-mixin.scss
Symbolic link
1
scss/mixins/_icon-mixin.scss
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../assets/icons/_icon-mixin.scss
|
14
scss/mixins/_shadow.scss
Normal file
14
scss/mixins/_shadow.scss
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Original is in LESS and can be found here: https://gist.github.com/gefangenimnetz/3ef3e18364edf105c5af
|
||||
@mixin shadow($level: 1) {
|
||||
@if $level == 1 {
|
||||
box-shadow: 0 1px 3px rgba($color-black, .12), 0 1px 2px rgba($color-black, .24);
|
||||
} @else if $level == 2 {
|
||||
box-shadow: 0 3px 6px rgba($color-black, .16), 0 3px 6px rgba($color-black, .23);
|
||||
} @else if $level == 3 {
|
||||
box-shadow: 0 10px 20px rgba($color-black, .19), 0 6px 6px rgba($color-black, .23);
|
||||
} @else if $level == 4 {
|
||||
box-shadow: 0 14px 28px rgba($color-black, .25), 0 10px 10px rgba($color-black, .22);
|
||||
} @else if $level == 5 {
|
||||
box-shadow: 0 19px 38px rgba($color-black, .3), 0 15px 12px rgba($color-black, .22);
|
||||
}
|
||||
}
|
56
scss/modules/_base.scss
Normal file
56
scss/modules/_base.scss
Normal file
|
@ -0,0 +1,56 @@
|
|||
body {
|
||||
background: $color-white;
|
||||
color: $color-black;
|
||||
font-family: $font-family;
|
||||
font-size: $font-size;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
header {
|
||||
background: rgba($color-black, .02);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
padding: .67em 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5em;
|
||||
padding: .83em 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.17em;
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
h2, h3 {
|
||||
padding-left: $buttondistance;
|
||||
padding-right: $buttondistance;
|
||||
}
|
||||
|
||||
p, pre, ul, h4 {
|
||||
padding: 0 $buttondistance 1em;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $color-online;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.67em;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
47
scss/modules/_button.scss
Normal file
47
scss/modules/_button.scss
Normal file
|
@ -0,0 +1,47 @@
|
|||
button {
|
||||
background: $color-white;
|
||||
border: 0;
|
||||
border-radius: .9em;
|
||||
color: $color-black;
|
||||
cursor: pointer;
|
||||
font-family: $font-family-icons;
|
||||
font-size: 20pt;
|
||||
height: 1.8em;
|
||||
opacity: .7;
|
||||
outline: none;
|
||||
transition: box-shadow .5s, color .5s;
|
||||
width: 1.8em;
|
||||
|
||||
&.active {
|
||||
color: $color-primary;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $color-white;
|
||||
color: $color-primary;
|
||||
}
|
||||
|
||||
&.shadow {
|
||||
@include shadow(1);
|
||||
|
||||
&:hover {
|
||||
@include shadow(2);
|
||||
}
|
||||
|
||||
&:active {
|
||||
box-shadow: inset 0 5px 20px rgba($color-black, .19), inset 0 3px 6px rgba($color-black, .23);
|
||||
}
|
||||
}
|
||||
|
||||
&.close {
|
||||
background: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
color: rgba($color-black, .5);
|
||||
float: right;
|
||||
font-size: 20pt;
|
||||
height: auto;
|
||||
margin: $buttondistance;
|
||||
width: auto;
|
||||
}
|
||||
}
|
40
scss/modules/_filter.scss
Normal file
40
scss/modules/_filter.scss
Normal file
|
@ -0,0 +1,40 @@
|
|||
.filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
font-size: .83em;
|
||||
padding: 0 6pt 6pt;
|
||||
|
||||
li {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 1px solid $color-primary;
|
||||
color: $color-primary;
|
||||
display: flex;
|
||||
margin: 3pt;
|
||||
padding: 0 0 0 8pt;
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button {
|
||||
background: none;
|
||||
color: $color-gray-light;
|
||||
font-size: 12pt;
|
||||
height: 18pt;
|
||||
margin: 2pt;
|
||||
width: 18pt;
|
||||
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
&.not {
|
||||
label {
|
||||
color: $color-primary;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
.graph {
|
||||
background: $color-gray-dark;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: #2B2B2B;
|
||||
|
||||
canvas {
|
||||
display: block;
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
}
|
27
scss/modules/_infobox.scss
Normal file
27
scss/modules/_infobox.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
.infobox {
|
||||
.clients {
|
||||
color: $color-online;
|
||||
font-family: $font-family-icons;
|
||||
}
|
||||
|
||||
input, textarea {
|
||||
border: 1px solid $color-gray-light;
|
||||
font-family: $font-family-monospace;
|
||||
font-size: 1.15em;
|
||||
line-height: 1.67em;
|
||||
margin-right: .7em;
|
||||
max-width: 500px;
|
||||
min-height: 42px;
|
||||
padding: 3px 6px;
|
||||
vertical-align: bottom;
|
||||
width: calc(100% - 80px);
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: .8em;
|
||||
height: 100px;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
resize: vertical;
|
||||
}
|
||||
}
|
|
@ -1,22 +1,21 @@
|
|||
.leaflet-control-layers {
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.leaflet-control-layers-toggle {
|
||||
background: none;
|
||||
|
||||
&::before {
|
||||
content: "\f229";
|
||||
color: $color-primary;
|
||||
content: '\f229';
|
||||
display: inline-block;
|
||||
font-family: "ionicons" !important;
|
||||
font-family: $font-family-icons;
|
||||
font-size: 2.3rem;
|
||||
line-height: 1;
|
||||
speak: none;
|
||||
text-rendering: auto;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: #e32d6d;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,8 +24,10 @@
|
|||
}
|
||||
|
||||
.leaflet-control-layers-list {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
background: rgba($color-white, .9);
|
||||
color: $color-gray-dark;
|
||||
padding: 10px;
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
}
|
32
scss/modules/_legend.scss
Normal file
32
scss/modules/_legend.scss
Normal file
|
@ -0,0 +1,32 @@
|
|||
.legend {
|
||||
.symbol {
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
vertical-align: -5%;
|
||||
width: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
// Dot looks compared to thin font a bit darker - lighten it 10%
|
||||
.legend-new {
|
||||
.symbol {
|
||||
background-color: lighten($color-new, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
.legend-online {
|
||||
.symbol {
|
||||
background-color: lighten($color-online, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
.legend-offline {
|
||||
.symbol {
|
||||
background-color: lighten($color-offline, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
.legend-online, .legend-offline {
|
||||
margin-left: 1em;
|
||||
}
|
41
scss/modules/_map.scss
Normal file
41
scss/modules/_map.scss
Normal file
|
@ -0,0 +1,41 @@
|
|||
.content {
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
|
||||
.buttons {
|
||||
direction: rtl;
|
||||
position: absolute;
|
||||
right: $buttondistance;
|
||||
top: $buttondistance;
|
||||
unicode-bidi: bidi-override;
|
||||
z-index: 100;
|
||||
|
||||
button {
|
||||
margin-left: $buttondistance;
|
||||
}
|
||||
@media screen and (max-width: $minscreenwidth) {
|
||||
right: 0;
|
||||
transform: scale(.8);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $minscreenwidth) {
|
||||
height: 60vh;
|
||||
position: relative;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.stroke-first {
|
||||
paint-order: stroke;
|
||||
}
|
||||
|
||||
.pick-coordinates {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.map {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
21
scss/modules/_node.scss
Normal file
21
scss/modules/_node.scss
Normal file
|
@ -0,0 +1,21 @@
|
|||
.bar {
|
||||
background: rgba($color-new, .5);
|
||||
display: block;
|
||||
height: 1.4em;
|
||||
position: relative;
|
||||
|
||||
span {
|
||||
background: rgba($color-new, .8);
|
||||
display: inline-block;
|
||||
height: 1.4em;
|
||||
}
|
||||
|
||||
label {
|
||||
color: $color-white;
|
||||
font-weight: bold;
|
||||
position: absolute;
|
||||
right: .5em;
|
||||
top: .1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
20
scss/modules/_proportion.scss
Normal file
20
scss/modules/_proportion.scss
Normal file
|
@ -0,0 +1,20 @@
|
|||
.proportion {
|
||||
th {
|
||||
font-size: .95em;
|
||||
font-weight: normal;
|
||||
padding-right: .71em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
span {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
min-width: 1.5em;
|
||||
padding: .25em .5em;
|
||||
}
|
||||
}
|
|
@ -1,7 +1,5 @@
|
|||
/**
|
||||
* Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
|
||||
* http://cssreset.com
|
||||
*/
|
||||
// Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
|
||||
// http://cssreset.com
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
|
@ -12,23 +10,17 @@ dl, dt, dd, ol, ul, li,
|
|||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
figure, figcaption, footer, header,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
border: 0;
|
||||
font: inherit;
|
||||
font-size: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
|
@ -41,12 +33,6 @@ blockquote, q {
|
|||
quotes: none;
|
||||
}
|
||||
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
127
scss/modules/_sidebar.scss
Normal file
127
scss/modules/_sidebar.scss
Normal file
|
@ -0,0 +1,127 @@
|
|||
.sidebar {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
transition: left .5s;
|
||||
width: $sidebarwidth;
|
||||
z-index: 5;
|
||||
|
||||
&.hidden {
|
||||
left: -$sidebarwidth - $buttondistance;
|
||||
|
||||
.sidebarhandle {
|
||||
left: $buttondistance;
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
@media screen and (max-width: $minscreenwidth) {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.node-list, .node-links {
|
||||
th, td {
|
||||
&:first-child {
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
overflow: hidden;
|
||||
text-align: left;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.node-links {
|
||||
th, td {
|
||||
&:first-child {
|
||||
width: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.link-list {
|
||||
th, td {
|
||||
&:nth-child(1) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 66%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.infobox, .container {
|
||||
@include shadow(2);
|
||||
background: rgba($color-white, .97);
|
||||
min-height: 100vh;
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
.container {
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 80em) {
|
||||
@include shadow(2);
|
||||
background: $color-white;
|
||||
font-size: .8em;
|
||||
margin: 0;
|
||||
width: $sidebarwidthsmall;
|
||||
|
||||
.sidebarhandle {
|
||||
left: $sidebarwidthsmall + $buttondistance;
|
||||
}
|
||||
|
||||
.container, .infobox {
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $minscreenwidth) {
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
position: static;
|
||||
width: auto;
|
||||
|
||||
.sidebarhandle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.content {
|
||||
height: 60vh;
|
||||
position: relative;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebarhandle {
|
||||
left: $sidebarwidth + 2 * $buttondistance;
|
||||
position: fixed;
|
||||
top: $buttondistance;
|
||||
transition: left .5s, box-shadow .5s, color .5s, transform .5s;
|
||||
z-index: 10;
|
||||
|
||||
&::after {
|
||||
content: '\f124';
|
||||
padding-right: .125em;
|
||||
}
|
||||
}
|
||||
|
||||
.online {
|
||||
color: $color-new;
|
||||
}
|
||||
|
||||
.offline {
|
||||
color: $color-offline;
|
||||
}
|
||||
|
||||
.unseen {
|
||||
color: #d89100;
|
||||
}
|
76
scss/modules/_table.scss
Normal file
76
scss/modules/_table.scss
Normal file
|
@ -0,0 +1,76 @@
|
|||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0 .5em;
|
||||
padding: 0 $buttondistance;
|
||||
width: 100%;
|
||||
|
||||
&.attributes {
|
||||
line-height: 1.41em;
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
padding-right: 1em;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td, th {
|
||||
line-height: 1.41em;
|
||||
text-align: right;
|
||||
|
||||
&:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: bold;
|
||||
|
||||
&.sort-header {
|
||||
cursor: pointer;
|
||||
|
||||
&::selection {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '\f10d';
|
||||
font-family: $font-family-icons;
|
||||
padding-left: .25em;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&::after {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.sort-up {
|
||||
&::after {
|
||||
content: '\f104';
|
||||
}
|
||||
}
|
||||
|
||||
&.sort-up, &.sort-down {
|
||||
&:after {
|
||||
opacity: .4;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tab {
|
||||
table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
}
|
27
scss/modules/_tabs.scss
Normal file
27
scss/modules/_tabs.scss
Normal file
|
@ -0,0 +1,27 @@
|
|||
.tabs {
|
||||
@include shadow(1);
|
||||
background: rgba($color-black, .02);
|
||||
display: flex;
|
||||
font-family: $font-family;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 1em 0 0;
|
||||
|
||||
li {
|
||||
color: rgba($color-black, .5);
|
||||
cursor: pointer;
|
||||
flex: 1 1 auto;
|
||||
padding: .5em .5em 1em;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
|
||||
&:hover {
|
||||
color: $color-black;
|
||||
}
|
||||
}
|
||||
|
||||
.visible {
|
||||
border-bottom: 2pt solid $color-primary;
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
22
scss/modules/_variables.scss
Normal file
22
scss/modules/_variables.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
$color-white: #fff !default;
|
||||
$color-black: #000 !default;
|
||||
|
||||
$color-gray-light: darken($color-white, 30%) !default;
|
||||
$color-gray-dark: lighten($color-black, 20%) !default;
|
||||
|
||||
$color-primary: #dc0067 !default;
|
||||
|
||||
$color-new: #459c18 !default;
|
||||
$color-online: #1566a9 !default;
|
||||
$color-offline: #cf3e2a !default;
|
||||
|
||||
$font-family: 'Roboto Slab', serif !default;
|
||||
$font-family-secondary: Roboto, sans-serif !default;
|
||||
$font-family-icons: ionicons !default;
|
||||
$font-family-monospace: monospace !default;
|
||||
$font-size: 11pt !default;
|
||||
|
||||
$minscreenwidth: 630pt !default;
|
||||
$sidebarwidth: 420pt !default;
|
||||
$sidebarwidthsmall: 320pt !default;
|
||||
$buttondistance: 12pt !default;
|
1
scss/modules/icon.scss
Symbolic link
1
scss/modules/icon.scss
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../assets/icons/icon.scss
|
Loading…
Add table
Add a link
Reference in a new issue