Skip to content

Commit cb1fff8

Browse files
Merge pull request #171 from OS2iot/feature/IoT-1587_StartDialogStyling
Feature/IoT-1587 Welcome dialog styling
2 parents 155421b + 2a9bc8d commit cb1fff8

File tree

5 files changed

+22
-27
lines changed

5 files changed

+22
-27
lines changed

src/app/applications/applications-list/applications-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class ApplicationsListComponent implements OnInit {
134134
disableClose: true,
135135
closeOnNavigation: true,
136136
panelClass: "welcome-screen",
137-
maxWidth: "60vw",
137+
maxWidth: "40vw",
138138
data: {
139139
hasSomePermission: this.hasSomePermission,
140140
} as WelcomeDialogModel,

src/app/shared/components/welcome-dialog/welcome-dialog.component.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ <h2>
1111
</p>
1212
</header>
1313
<div mat-dialog-content class="col-md-12 px-md-4" *ngIf="dialogModel?.hasSomePermission">
14-
<p class="sub-header">
15-
<strong>{{ "WELCOME-DIALOG.SUB-HEADER-1" | translate }}</strong>
16-
</p>
17-
<p>
18-
{{ "WELCOME-DIALOG.WELCOME-MESSAGE" | translate }}
19-
<span>
20-
<a href="https://OS2iot.os2.eu" target="_blank">{{ "WELCOME-DIALOG.LINK-1" | translate }}</a> </span
21-
>{{ "WELCOME-DIALOG.WELCOME-MESSAGE-2" | translate }}
22-
</p>
2314
<p class="sub-header">
2415
<strong>{{ "WELCOME-DIALOG.SUB-HEADER-2" | translate }}</strong>
2516
</p>

src/app/shared/components/welcome-dialog/welcome-dialog.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import "src/assets/scss/setup/variables";
22

3-
$spacing: 5rem;
3+
$spacing: 3rem;
44

55
.container {
66
padding-left: $spacing;
@@ -17,7 +17,7 @@ $spacing: 5rem;
1717
}
1818
}
1919

20-
.mat-dialog-content {
20+
.mat-mdc-dialog-content {
2121
p {
2222
&.sub-header {
2323
strong {

src/assets/i18n/da.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,13 +1139,9 @@
11391139
"WELCOME-DIALOG": {
11401140
"WELCOME": "VELKOMMEN TIL OS2iot",
11411141
"WELCOME-SUB": " Din indgang til administration af IoT enheder",
1142-
"LINK-1": "OS2iot's brugerforum",
11431142
"LINK-2": "produktsiden",
11441143
"LINK-3": "Github",
1145-
"SUB-HEADER-1": "Brugerforum",
11461144
"SUB-HEADER-2": "Om OS2iot",
1147-
"WELCOME-MESSAGE": "Bliv en aktiv del af ",
1148-
"WELCOME-MESSAGE-2": ". Her kan du stille spørgsmål, indrapportere fejl og dele dine udviklingsønsker. Ved fælles hjælp bliver løsningen bedre.",
11491145
"WELCOME-MESSAGE-3": "OS2iot er en open source løsning organiseret igennem OS2-fællesskabet. Du kan finde mere information om OS2iot på ",
11501146
"WELCOME-MESSAGE-4": " og følge udviklingen på ",
11511147
"NO-ACCESS": "Du har endnu ikke de fornødne rettigheder i OS2iot. Anmod om adgang til en organisation for at få tildelt rettigheder af din administrator.",

src/styles.scss

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,30 @@ body {
9999
margin-left: 0;
100100
}
101101

102-
.welcome-screen .mat-dialog-container {
103-
background-color: #55b156;
102+
.line-break {
103+
white-space: pre-line;
104104
}
105105

106-
.hide-checkbox {
107-
color: $color-white-001;
106+
.width100percent {
107+
width: 100%;
108+
}
108109

109-
.mat-checkbox-frame {
110-
border-color: $color-white-001;
111-
}
110+
.welcome-screen .mat-mdc-dialog-surface {
111+
background-color: #55b156 !important;
112+
overflow: hidden;
113+
padding: 12px;
112114
}
113115

114-
.line-break {
115-
white-space: pre-line;
116+
app-welcome-dialog .hide-checkbox .mdc-checkbox {
117+
.mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
118+
border-color: $color-white-001 !important;
119+
}
120+
.mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate="true"])
121+
~ .mdc-checkbox__background {
122+
border-color: $color-white-001 !important;
123+
}
116124
}
117125

118-
.width100percent {
119-
width: 100%;
126+
app-welcome-dialog .mdc-label {
127+
color: $color-white-001 !important;
120128
}

0 commit comments

Comments
 (0)