hopglass/scss/main.scss

390 lines
5.9 KiB
SCSS
Raw Normal View History

2015-04-04 18:01:57 +02:00
@import '_reset';
2015-07-06 23:00:11 +02:00
@import '_shadow';
2015-04-04 18:01:57 +02:00
@import '_base';
2015-03-31 15:38:21 +02:00
@import '_leaflet';
@import '_leaflet.label';
2015-03-31 21:18:06 +02:00
$minscreenwidth: 630pt;
$sidebarwidth: 420pt;
$sidebarwidthsmall: 320pt;
$buttondistance: 12pt;
2015-03-31 21:18:06 +02:00
2015-04-04 18:01:57 +02:00
@import '_sidebar';
2015-04-02 04:34:02 +02:00
@import '_map';
2015-03-31 17:22:36 +02:00
@import '_forcegraph';
2015-03-31 15:38:21 +02:00
.content {
position: fixed;
2015-04-02 18:43:27 +02:00
width: 100%;
height: 100vh;
.buttons {
direction: rtl;
unicode-bidi: bidi-override;
z-index: 100;
position: absolute;
top: $buttondistance;
right: $buttondistance;
button {
margin-left: $buttondistance;
}
}
}
2015-03-31 15:38:21 +02:00
.tabs {
2015-04-04 18:01:57 +02:00
padding: 1em 0 0 !important;
margin: 0;
2015-03-31 15:38:21 +02:00
list-style: none;
display: flex;
2015-04-04 18:01:57 +02:00
font-family: Roboto;
background: rgba(0, 0, 0, 0.02);
2015-07-06 23:00:11 +02:00
@include shadow(1);
2015-03-31 15:38:21 +02:00
}
.tabs li {
2015-04-07 21:26:19 +02:00
flex: 1 1 auto;
2015-04-04 18:01:57 +02:00
text-transform: uppercase;
2015-03-31 15:38:21 +02:00
text-align: center;
2015-04-04 18:01:57 +02:00
padding: 0.5em 0.5em 1em;
2015-03-31 15:38:21 +02:00
cursor: pointer;
2015-04-04 18:01:57 +02:00
color: rgba(0, 0, 0, 0.5);
2015-03-31 15:38:21 +02:00
}
.tabs li:hover {
color: #dc0067;
}
.tabs .visible {
2015-04-04 18:01:57 +02:00
border-bottom: 2pt solid #dc0067;
color: #dc0067;
2015-03-31 15:38:21 +02:00
}
body {
margin: 0;
padding: 0;
font-family: 'Roboto Slab', serif;
font-size: 11pt;
}
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;
2015-04-04 18:01:57 +02:00
line-height: 1.41em;
2015-03-31 15:38:21 +02:00
}
table.attributes td {
text-align: left !important;
width: 100%;
2015-04-04 18:01:57 +02:00
line-height: 1.41em;
}
.sidebar {
.infobox, .container {
2015-07-06 23:00:11 +02:00
@include shadow(2);
2015-07-07 12:52:53 +02:00
background: rgba(255, 255, 255, 0.97);
border-radius: 2px;
2015-04-04 18:01:57 +02:00
}
2015-04-07 22:06:12 +02:00
2015-07-06 22:27:16 +02:00
.container.hidden {
display: none;
}
2015-04-07 22:06:12 +02:00
p {
line-height: 1.67em;
}
2015-03-31 15:38:21 +02:00
}
.infobox .clients {
font-family: "ionicons";
color: #1566A9;
word-spacing: -0.2em;
white-space: normal;
2015-03-31 15:38:21 +02:00
}
.infobox {
position: relative;
padding: 0.25em 0;
2015-04-04 18:01:57 +02:00
margin-bottom: $buttondistance;
img {
max-width: 100%;
}
2015-03-31 15:38:21 +02:00
}
button {
-webkit-tap-highlight-color: transparent;
font-family: "ionicons";
2015-07-06 23:00:11 +02:00
@include shadow(1);
2015-03-31 15:38:21 +02:00
border-radius: 0.9em;
background: rgba(255, 255, 255, 0.7);
border: none;
cursor: pointer;
height: 1.8em;
width: 1.8em;
font-size: 20pt;
transition: box-shadow 0.5s, color 0.5s;
outline: none;
}
2015-04-04 19:08:28 +02:00
button.active {
color: #dc0067 !important;
}
2015-03-31 15:38:21 +02:00
button:hover {
background: white;
color: #dc0067;
2015-07-06 23:00:11 +02:00
@include shadow(2);
2015-03-31 15:38:21 +02:00
}
button:active {
box-shadow: inset 0px 5px 20px rgba(0, 0, 0, 0.19), inset 0px 3px 6px rgba(0, 0, 0, 0.23);
}
2015-04-01 00:24:15 +02:00
button::-moz-focus-inner {
border: 0;
}
2015-03-31 15:38:21 +02:00
button.close {
2015-04-04 18:01:57 +02:00
width: auto;
height: auto;
2015-07-06 22:14:45 +02:00
font-size: 20pt;
2015-04-04 18:01:57 +02:00
float: right;
margin-right: $buttondistance;
margin-top: $buttondistance;
box-shadow: none;
background: transparent;
border-radius: 0;
color: rgba(0, 0, 0, 0.5);
2015-07-06 22:14:45 +02:00
font-family: "ionicons";
2015-04-04 18:01:57 +02:00
&:hover {
color: #dc0067;
}
2015-03-31 15:38:21 +02:00
2015-04-04 18:01:57 +02:00
&:after {
2015-07-06 22:14:45 +02:00
content: '\f2d7';
2015-04-04 18:01:57 +02:00
}
2015-03-31 15:38:21 +02:00
}
.sidebar h2, .sidebar h3 {
2015-04-04 18:01:57 +02:00
padding-left: $buttondistance;
padding-right: $buttondistance;
2015-03-31 15:38:21 +02:00
}
.sidebar {
p, pre, ul, h4 {
padding: 0 $buttondistance 1em;
}
table {
padding: 0 $buttondistance;
}
img {
max-width: 100%;
}
2015-04-04 18:01:57 +02:00
}
table {
border-spacing: 0 0.5em;
td, th {
line-height: 1.41em;
}
}
.sidebar table {
border-collapse: separate;
}
.sidebar table th {
font-weight: bold;
2015-03-31 15:38:21 +02:00
}
.sidebarhandle {
position: fixed;
left: $sidebarwidth + 2 * $buttondistance;
top: $buttondistance;
2015-03-31 15:38:21 +02:00
z-index: 10;
transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
2015-03-31 15:38:21 +02:00
}
.sidebarhandle:after {
padding-right: 0.125em;
content: "\f124";
}
.sidebar.hidden .sidebarhandle {
transform: scale(-1, 1);
left: $buttondistance;
2015-03-31 15:38:21 +02:00
}
.online {
color: #558020 !important;
}
.offline {
color: #D43E2A !important;
}
.sidebar {
z-index: 5;
width: $sidebarwidth;
2015-03-31 15:38:21 +02:00
box-sizing: border-box;
position: absolute;
top: $buttondistance;
left: $buttondistance;
margin-bottom: $buttondistance;
2015-03-31 15:38:21 +02:00
transition: left 0.5s;
}
.sidebar.hidden {
left: -$sidebarwidth - $buttondistance;
2015-03-31 15:38:21 +02:00
}
.sidebar .icon {
padding: 0 0.25em;
}
.sidebar table {
width: 100%;
}
.sidebar table th {
text-align: left;
}
.sidebar td:not(:first-child), .sidebar th:not(:first-child) {
text-align: right;
white-space: nowrap;
2015-03-31 15:38:21 +02:00
}
.sidebar a {
color: #1566A9;
}
.bar {
display: block;
height: 1.4em;
background: rgba(85, 128, 32, 0.5);
position: relative;
2015-04-04 18:01:57 +02:00
span {
display: inline-block;
height: 1.4em;
background: rgba(85, 128, 32, 0.8);
}
2015-03-31 15:38:21 +02:00
2015-04-04 18:01:57 +02:00
label {
font-weight: bold;
white-space: nowrap;
color: white;
position: absolute;
right: 0.5em;
top: 0.1em;
}
2015-03-31 15:38:21 +02:00
}
.proportion th {
2015-04-04 18:01:57 +02:00
font-weight: normal !important;
2015-03-31 15:38:21 +02:00
text-align: right !important;
font-size: 0.95em;
2015-04-04 18:01:57 +02:00
padding-right: 0.71em;
2015-03-31 15:38:21 +02:00
}
.proportion td {
text-align: left !important;
width: 100%;
}
.proportion td, .proportion th {
white-space: nowrap;
}
.proportion span {
display: inline-block;
background: black;
2015-04-04 18:01:57 +02:00
padding: 0.25em 0.5em;
2015-03-31 15:38:21 +02:00
font-weight: bold;
min-width: 1.5em;
box-sizing: border-box;
}
@media screen and (max-width: 80em) {
.sidebar {
font-size: 0.8em;
top: 0pt;
left: 0pt;
margin: 0pt;
width: $sidebarwidthsmall;
min-height: 100vh;
2015-07-06 23:00:11 +02:00
@include shadow(2);
2015-04-04 18:01:57 +02:00
background: white;
.sidebarhandle {
left: $sidebarwidthsmall + $buttondistance;
}
2015-04-04 18:01:57 +02:00
.container, .infobox {
margin: 0;
box-shadow: none;
border-radius: 0;
2015-04-04 18:01:57 +02:00
}
2015-03-31 15:38:21 +02:00
}
}
2015-03-31 21:18:06 +02:00
@media screen and (max-width: $minscreenwidth) {
2015-03-31 15:38:21 +02:00
.sidebarhandle {
display: none;
}
.content {
position: relative;
width: auto;
2015-03-31 15:38:21 +02:00
height: 60vh;
}
.sidebar {
position: static;
margin: 0em !important;
2015-03-31 15:38:21 +02:00
width: auto;
height: auto;
min-height: 0;
2015-03-31 15:38:21 +02:00
}
.sidebar.hidden {
width: auto;
}
}