Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beautified CSS Code. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
316 changes: 176 additions & 140 deletions public/stylesheets/style.css
Original file line number Diff line number Diff line change
@@ -1,142 +1,178 @@
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,200,600,900,700");
html, body {
height: 100%;
padding: 0;
margin: 0;
font-family: 'Source Sans Pro', sans-serif; }

.hide {
display: none !important; }

#main-column {
min-height: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
color: #cdcfce; }
#main-column > div {
display: flex;
flex-direction: column;
justify-content: flex-start;
flex: 1 1 auto; }
#main-column > #about {
flex: 1 1 0; }
#main-column > div#sensorValues {
flex: 1 1 0; }
#main-column > div#sensorData {
flex: 2 1 0;
padding: 0;
margin: 0; }

.dashboard > div {
padding: 1rem; }
.dashboard > div:nth-child(1) {
background: #333333; }
.dashboard > div:nth-child(2) {
background: #383838; }
.dashboard > div:nth-child(3) {
background: #3d3d3d; }
.dashboard > div h1, .dashboard > div h2 {
margin: 0 0 0.2rem 0; }
.dashboard > div a {
text-decoration: none; }
.dashboard > div a.mkr-link {
color: #2b908f; }
.dashboard > div a.j5-link {
color: #ecdb43; }
.dashboard > div p {
margin: 0; }

div#about h1 span:nth-of-type(1) {
color: #2b908f;
font-weight: 400; }

div#about h1 span:nth-of-type(2) {
color: #90ee7e; }

div#sensorValues {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
user-select: none; }
div#sensorValues div.sensor-values {
display: flex;
flex: 1;
flex-direction: column;
flex-wrap: nowrap;
text-align: center;
border-radius: 5px;
transition: background-color 250ms ease-out; }
div#sensorValues div.sensor-values:hover {
cursor: pointer; }
div#sensorValues div.sensor-values:hover#temperature {
background-color: rgba(43, 144, 143, 0.05); }
div#sensorValues div.sensor-values:hover#light {
background-color: rgba(144, 238, 126, 0.05); }
div#sensorValues div.sensor-values:hover#moisture {
background-color: rgba(244, 91, 91, 0.05); }
div#sensorValues div.sensor-values > div {
font-size: 4em;
font-weight: 200; }
div#sensorValues div.sensor-values > div span {
margin-left: 10px;
font-size: .4em; }
div#sensorValues div.sensor-values > label {
font-size: 1.5em; }
div#sensorValues div.sensor-values > label:hover {
cursor: pointer; }
div#sensorValues div.sensor-values div.temperature {
color: #2b908f; }
div#sensorValues div.sensor-values div.light {
color: #90ee7e;
transition: background-color 300ms ease-in;
border-radius: 5px; }
div#sensorValues div.sensor-values div.moisture {
color: #f45b5b; }
div#sensorValues div.sensor-values div.users {
color: #7798BF; }
div#sensorValues div.sensor-values div.users:hover {
cursor: default !important; }
div#sensorValues div#users div.users:hover, div#sensorValues div#users label:hover {
cursor: default; }

div#detail-container {
flex: 2 1 0;
padding: 0;
margin: 0; }

div#master-container {
flex: 1 1 0;
padding: 0;
margin: 0; }

@media screen and (max-width: 500px) {
div#about {
display: none; }
div#sensorValues {
flex-direction: column;
font-size: .8em;
align-items: center; }
div#sensorValues div.sensor-values {
flex-direction: row;
align-items: flex-end; }
div#sensorValues div.sensor-values label {
margin-left: 10px;
margin-bottom: 10px; } }

@media screen and (max-height: 600px) {
div#about {
display: none; }
div#sensorValues {
flex-direction: row;
font-size: .5em; }
div#sensorValues div.sensor-values {
flex-direction: column;
align-items: center; }
div#sensorValues div.sensor-values > label {
font-size: 1em; } }

html, body {
height: 100%;
padding: 0;
margin: 0;
font-family: 'Source Sans Pro', sans-serif;
}
.hide {
display: none !important;
}
#main-column {
min-height: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
color: #cdcfce;
}
#main-column > div {
display: flex;
flex-direction: column;
justify-content: flex-start;
flex: 1 1 auto;
}
#main-column > #about {
flex: 1 1 0;
}
#main-column > div#sensorValues {
flex: 1 1 0;
}
#main-column > div#sensorData {
flex: 2 1 0;
padding: 0;
margin: 0;
}
.dashboard > div {
padding: 1rem;
}
.dashboard > div:nth-child(1) {
background: #333333;
}
.dashboard > div:nth-child(2) {
background: #383838;
}
.dashboard > div:nth-child(3) {
background: #3d3d3d;
}
.dashboard > div h1, .dashboard > div h2 {
margin: 0 0 0.2rem 0;
}
.dashboard > div a {
text-decoration: none;
}
.dashboard > div a.mkr-link {
color: #2b908f;
}
.dashboard > div a.j5-link {
color: #ecdb43;
}
.dashboard > div p {
margin: 0;
}
div#about h1 span:nth-of-type(1) {
color: #2b908f;
font-weight: 400;
}
div#about h1 span:nth-of-type(2) {
color: #90ee7e;
}
div#sensorValues {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
user-select: none;
}
div#sensorValues div.sensor-values {
display: flex;
flex: 1;
flex-direction: column;
flex-wrap: nowrap;
text-align: center;
border-radius: 5px;
transition: background-color 250ms ease-out;
}
div#sensorValues div.sensor-values:hover {
cursor: pointer;
}
div#sensorValues div.sensor-values:hover#temperature {
background-color: rgba(43, 144, 143, 0.05);
}
div#sensorValues div.sensor-values:hover#light {
background-color: rgba(144, 238, 126, 0.05);
}
div#sensorValues div.sensor-values:hover#moisture {
background-color: rgba(244, 91, 91, 0.05);
}
div#sensorValues div.sensor-values > div {
font-size: 4em;
font-weight: 200;
}
div#sensorValues div.sensor-values > div span {
margin-left: 10px;
font-size: .4em;
}
div#sensorValues div.sensor-values > label {
font-size: 1.5em;
}
div#sensorValues div.sensor-values > label:hover {
cursor: pointer;
}
div#sensorValues div.sensor-values div.temperature {
color: #2b908f;
}
div#sensorValues div.sensor-values div.light {
color: #90ee7e;
transition: background-color 300ms ease-in;
border-radius: 5px;
}
div#sensorValues div.sensor-values div.moisture {
color: #f45b5b;
}
div#sensorValues div.sensor-values div.users {
color: #7798BF;
}
div#sensorValues div.sensor-values div.users:hover {
cursor: default !important;
}
div#sensorValues div#users div.users:hover, div#sensorValues div#users label:hover {
cursor: default;
}
div#detail-container {
flex: 2 1 0;
padding: 0;
margin: 0;
}
div#master-container {
flex: 1 1 0;
padding: 0;
margin: 0;
}
@media screen and (max-width: 500px) {
div#about {
display: none;
}
div#sensorValues {
flex-direction: column;
font-size: .8em;
align-items: center;
}
div#sensorValues div.sensor-values {
flex-direction: row;
align-items: flex-end;
}
div#sensorValues div.sensor-values label {
margin-left: 10px;
margin-bottom: 10px;
}
}
@media screen and (max-height: 600px) {
div#about {
display: none;
}
div#sensorValues {
flex-direction: row;
font-size: .5em;
}
div#sensorValues div.sensor-values {
flex-direction: column;
align-items: center;
}
div#sensorValues div.sensor-values > label {
font-size: 1em;
}
}
/* Highcharts styling for tooltip */
.highcharts-tooltip {
font-size: 2em !important; }
.highcharts-tooltip {
font-size: 2em !important;
}
Loading