.sensors { max-width: 1196px; } .sensors__table { display: block; border-collapse: collapse; } .sensors__thead { display: block; } .sensors__thead-row { display: block; background: $darkblue; color: $white; margin-bottom: 1rem; @include mediaQuery(medium) { display: flex; margin-bottom: 0; } } .sensors__thead-cell { display: block; padding: 1rem; font-weight: 700; &:not(:first-child) { display: none; } @include mediaQuery(medium) { flex: 1; &:not(:first-child) { display: block; flex-grow: 0; flex-shrink: 0; flex-basis: 0; min-width: 16%; } } } .sensors__tbody { display: block; } .sensors__tbody-row { display: flex; flex-direction: column; border: 1px solid $medgrey; margin-bottom: 1rem; @include mediaQuery(medium) { display: flex; flex-direction: row; margin-bottom: 0; } } .sensors__tbody-header { display: block; background: darken($lightgrey, 5%); padding: 0.5rem 1rem; font-weight: 700; .icon.icon__normal { display: none; } @include mediaQuery(medium) { flex: 1; align-items: center; background: transparent; font-weight: 400; margin-top: 0.5rem; margin-bottom: 0.5rem; } } .sensors__tbody-cell { display: flex; justify-content: space-between; padding: 0.5rem 1rem; @include fontCourierBold; @include mediaQuery(medium) { flex-grow: 0; flex-shrink: 0; flex-basis: 0; align-items: center; min-width: 16%; justify-content: flex-start; margin-top: 0.5rem; margin-bottom: 0.5rem; } } .sensors__tbody-cell__title { font-weight: 300; @include mediaQuery(medium) { display: none; } } .sensors__tbody-unit { display: inline-block; color: $darkgrey; margin-left: 0.5em; font-weight: 700; text-transform: uppercase; @include mediaQuery(medium) { margin-left: 0; } } .sensors__tbody-degree { display: inline-block; margin-left: -8px; } .sensors__tbody-current { background: darken($thresh-normal, 3%); .sensors__tbody-cell__title { font-weight: 700; } } .sensors__tbody-current--critical { background: $thresh-critical; color: $white; .sensors__tbody-unit { color: $white; } } .sensors__tbody-current--warn { background: $thresh-warning; color: $black; .sensors__tbody-unit { color: $black; } }