thingsboard/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss

139 lines
2.9 KiB
SCSS
Raw Normal View History

2023-09-13 14:28:59 +03:00
/**
2024-01-09 10:46:16 +02:00
* Copyright © 2016-2024 The Thingsboard Authors
2023-09-13 14:28:59 +03:00
*
* 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.
*/
@import "../../../../../scss/constants";
:host {
height: 100%;
max-height: 100vh;
display: grid;
grid-template-rows: min-content minmax(auto, 1fr) min-content;
.tb-loader {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
height: 300px;
max-height: 100%;
.label {
margin-bottom: 0;
text-align: center;
}
}
.tb-font-14 {
font-size: 14px;
}
.tb-flex-1 {
flex: 1;
}
@media #{$mat-sm} {
2023-09-13 16:09:25 +03:00
width: 705px;
2023-09-13 14:28:59 +03:00
}
@media #{$mat-gt-sm} {
2023-09-13 16:09:25 +03:00
width: 1080px;
2023-09-13 14:28:59 +03:00
}
}
:host-context(.mat-mdc-dialog-container) {
.tb-dialog-actions {
display: flex;
gap: 8px;
padding: 8px 16px;
}
.mat-mdc-dialog-content {
max-height: 80vh;
padding: 0 16px 16px 16px;
border-top: 16px solid #fff;
2023-09-13 14:28:59 +03:00
}
}
:host ::ng-deep {
.tb-markdown-view {
padding: 16px 16px 32px 16px;
2023-09-15 17:42:04 +03:00
div {
background-color: #F3F6FA;
&.code-wrapper button.clipboard-btn {
right: -2px !important;
p {
color: $tb-primary-color !important;
2023-09-13 14:28:59 +03:00
}
2023-09-15 17:42:04 +03:00
p, div {
background-color: unset !important;
2023-09-13 14:28:59 +03:00
}
2023-09-15 17:42:04 +03:00
div {
img {
display: none;
}
&:after {
content: "";
position: initial;
display: block;
width: 18px;
height: 18px;
background: $tb-primary-color;
mask-image: url(/assets/copy-code-icon.svg);
-webkit-mask-image: url(/assets/copy-code-icon.svg);
2023-09-15 17:42:04 +03:00
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
2023-09-15 17:42:04 +03:00
}
}
&.multiline {
right: -2px !important;
}
}
2023-09-13 14:28:59 +03:00
}
2023-09-14 12:23:05 +03:00
& > *:not(ul) {
padding-right: unset !important;
padding-left: unset !important;
2023-09-13 16:09:25 +03:00
}
pre[class*="language-"] {
2023-09-15 17:42:04 +03:00
border: 1px solid $tb-primary-color !important;
}
2023-09-13 14:28:59 +03:00
}
.mdc-button__label > span {
.mat-icon {
vertical-align: text-bottom;
box-sizing: initial;
}
}
.mat-mdc-tab-header {
position: sticky;
top: 0;
z-index: 10;
background-color: #fff;
}
2023-09-13 14:28:59 +03:00
.tabs-icon {
margin-right: 8px;
}
.tb-form-panel.tb-tab-body {
padding: 16px 0 0;
}
2023-09-14 10:16:00 +03:00
.mat-mdc-tab-body {
padding: 16px 0;
}
2023-09-13 14:28:59 +03:00
}