/** * Copyright © 2016-2019 The Thingsboard Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* You can add global styles to this file, and also import other style files */ @import '~material-design-icons/iconfont/material-icons.css'; @import '~typeface-roboto/index.css'; @import '~font-awesome/css/font-awesome.min.css'; @import 'theme.scss'; @import './scss/constants'; @import './scss/animations'; body, html { height: 100%; min-height: 100%; position: relative; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { margin: 0; padding: 0; background-color: rgb(250,250,250); } tb-root { margin: 0; width: 100%; min-height: 100%; height: 100%; display: flex; flex-direction: row; box-sizing: border-box; } /*************** * TYPE DEFAULTS ***************/ body, button, html, input, select, textarea, td, th { font-family: Roboto, "Helvetica Neue", sans-serif; font-size: 16px; } body { line-height: normal; } a { font-weight: 400; color: #106cc8; text-decoration: none; border-bottom: 1px solid rgba(64, 84, 178, .25); transition: border-bottom .35s; } a:hover, a:focus { border-bottom: 1px solid #4054b2; } h1, h2, h3, h4, h5, h6 { margin-top: 1rem; margin-bottom: 1rem; } h1 { font-size: 3.4rem; font-weight: 400; line-height: 4rem; } h2 { font-size: 2.4rem; font-weight: 400; line-height: 3.2rem; } h3 { font-size: 2rem; font-weight: 500; letter-spacing: .005em; } h4 { font-size: 1.6rem; font-weight: 400; line-height: 2.4rem; letter-spacing: .01em; } p { margin: .8em 0 1.6em; font-size: 1.6rem; font-weight: 400; line-height: 1.6em; letter-spacing: .01em; } strong { font-weight: 500; } blockquote { padding-left: 16px; margin-left: 0; font-style: italic; border-left: 3px solid rgba(0, 0, 0, .12); } fieldset { padding: 0; margin: 0; border: none; } section.tb-header-buttons { position: absolute; top: 86px; right: 0; z-index: 3; pointer-events: none; @media #{$mat-gt-sm} { top: 86px; } .tb-btn-header { margin: 6px 8px; position: relative !important; display: inline-block !important; animation: tbMoveFromTopFade .3s ease both; &.tb-hide { animation: tbMoveToTopFade .3s ease both; } } } .tb-details-buttons { button { margin: 6px 8px; } } label { &.tb-title { padding-bottom: 15px; font-size: 13px; font-weight: 400; color: #666; pointer-events: none; &.no-padding { padding-bottom: 0; } &.tb-required::after { font-size: 13px; color: rgba(0, 0, 0, .54); vertical-align: top; content: " *"; } &.tb-error { color: rgb(221, 44, 0); &.tb-required::after { color: rgb(221, 44, 0); } } } &.tb-small { font-size: 12px; color: rgba(0, 0, 0, .54); pointer-events: none; } } div { &.tb-small { font-size: 14px; color: rgba(0, 0, 0, .54); } } pre.tb-highlight { display: block; padding: 15px; margin: 20px 0; overflow-x: auto; background-color: #f7f7f7; code { box-sizing: border-box; display: inline-block; padding: 0; font-family: monospace; font-size: 16px; font-weight: 700; color: #303030; vertical-align: bottom; } } .ace_editor { font-size: 16px !important; } .tb-timewindow-panel { overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 7px 8px -4px rgba(0, 0, 0, .2), 0 13px 19px 2px rgba(0, 0, 0, .14), 0 5px 24px 4px rgba(0, 0, 0, .12); } .tb-panel-actions { margin-bottom: 0; padding: 8px 8px 8px 16px; .mat-button+.mat-button, .mat-button+.mat-raised-button, .mat-raised-button+.mat-button, .mat-raised-button+.mat-raised-button { margin-left: 8px; } } .tb-container { position: relative; padding: 10px 0; margin-top: 32px; } .tb-fullscreen { position: fixed !important; top: 0; left: 0; width: 100% !important; height: 100% !important; } .tb-fullscreen-parent { background: #fff; } mat-label { &.tb-title { font-size: 13px; font-weight: 400; color: #666; pointer-events: none; &.no-padding { padding-bottom: 0; } &.tb-required::after { font-size: 13px; color: rgba(0, 0, 0, .54); vertical-align: top; content: " *"; } &.tb-error { color: rgb(221, 44, 0); &.tb-required::after { color: rgb(221, 44, 0); } } } } .tb-error-messages { height: 24px; //30px margin-top: -6px; } .tb-error-message { transition: all .3s cubic-bezier(.55, 0, .55, .2); padding: 10px 0 0 10px; overflow: hidden; font-size: 12px; line-height: 14px; color: rgb(221, 44, 0); }