body, html { padding: 0; margin: 0; width: 100%; height: 100%; } body { background: #eee; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } button, input, select { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } button { background: #1160F0; color: #fff; cursor: pointer; border: none; padding: 0.25rem 0.4rem; border-radius: 0.25rem; } button:hover { background-color: #6B9CF5; } input, select { padding: 0.15rem 0.4rem; box-sizing: border-box; } #sensors-container { height: 100%; overflow: auto; display: flex; flex-direction: column; } .sensors { display: grid; grid-template-columns: 1fr 1fr; overflow: auto; min-height: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; } @media only screen and (max-width: 1200px) { .sensors { grid-template-columns: 1fr; } } .sensor { background: #fff; border-radius: 0.5rem; margin: 0.5rem; box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1); overflow: hidden; min-height: 350px; height: 350px; } .sensor .header { display: flex; align-items: center; padding: 0.5rem; } .sensor .header .actions { margin-left: auto; } .settings-modal { position: fixed; top: 0; left: 0; bottom: 0; right: 0; overflow: auto; display: none; justify-content: center; align-items: flex-start; background-color: rgba(0,0,0,0.2); z-index: 5; } .settings-modal.show { display: flex; } .settings-modal .inner { background: #fff; margin-top: 5%; box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1); border-radius: 0.5rem; width: 20rem; } .settings-modal .inner .body { padding: 0.75rem 1rem; } form { display: flex; flex-direction: column; } form .input { display: flex; flex-direction: column; margin-bottom: 0.5rem; } form .actions { text-align: right; margin-top: 1rem; } form .actions button { padding: 0.5rem 1rem; } form .actions button.cancel { background-color: transparent; color: #000; } form.horizontal { flex-direction: row; align-items: center; } form.horizontal .input { flex-direction: row; margin-bottom: 0; margin-right: 0.5rem; align-items: baseline; } form.horizontal .input label { margin-right: 0.25rem; } .filters .inner { display: flex; align-items: center; padding: 0.5rem 0.5rem; background-color: #fff; } .filters .shadow { position: absolute; background: linear-gradient(0deg, rgba(255,255,255,0) 5%, rgba(190,190,190,1) 100%); width: 100%; height: 12px; z-index: 1; } .filters .actions { margin-left: auto; display: flex; align-items: center; } .checkbox-label { display: inline-flex; align-items: center; } .checkbox-label input[type=checkbox] { margin-top: 6px; }