ruuvi-gatt-demo
Version:
Ruuvi Gatt profile demo with web bluetooth
61 lines (52 loc) • 1.11 kB
CSS
/* Style the tab */
div.tab {
overflow: scroll;
border: 1px solid #ccc;
background-color: #f1f1f1;
}
/* Style the buttons inside the tab */
div.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
height:10%;
}
/* Change background color of buttons on hover */
div.tab button:hover {
background-color: #ddd;
}
/* Create an active/current tablink class */
div.tab button.active {
background-color: #ccc;
}
#tabarea {
height:75%;
overflow: scroll;
border: 1px solid #ccc;
border-top: none;
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
height:100%;
}
.tabcontent {
-webkit-animation: fadeEffect 1s;
animation: fadeEffect 1s; /* Fading effect takes 1 second */
}
#console {
height:15%;
}
@-webkit-keyframes fadeEffect {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes fadeEffect {
from {opacity: 0;}
to {opacity: 1;}
}