Skip to content

Commit c506695

Browse files
committed
Added IdeComponent styles
1 parent 26a8f0a commit c506695

File tree

5 files changed

+38
-8
lines changed

5 files changed

+38
-8
lines changed

angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"./node_modules/jquery/dist/jquery.js",
3939
"node_modules/chart.js/dist/Chart.js",
4040
"node_modules/hammerjs/hammer.min.js",
41-
"./node_modules/jquery/dist/jquery.min.js",
42-
"./node_modules/froala-editor/js/froala_editor.pkgd.min.js"
41+
"./node_modules/jquery/dist/jquery.min.js"
4342
]
4443
},
4544
"configurations": {

src/app/ide/ide.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<div class="d-flex flex-row">
1+
<div *ngIf="false" class="d-flex flex-row">
22
<button type="button" class="btn btn-outline-info go-back" mdbWavesEffect (click)="router.navigateByUrl('/')"><i class="fas fa-arrow-left"></i></button>
33
<h1 class="p-2">StackBlitz Editor Example:</h1>
44
<button class="btn blue" (click)="refresh()" mdbWavesEffect>refresh</button>
55
<button class="btn blue" (click)="receiveUpdates()" mdbWavesEffect>Receive Updates</button>
66
<button class="btn blue" (click)="createFile()" mdbWavesEffect>create file</button>
77
<button class="btn blue" (click)="getSnapshot()" mdbWavesEffect>get workspace</button>
88
</div>
9-
<div #editor name='editor' id="editor"></div>
9+
<div class="ide-container">
10+
<div #editor name='editor' id="editor"></div>
11+
</div>
1012
<app-github [user]='userStatus' *ngIf="options"></app-github>

src/app/ide/ide.component.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@import '../../assets/themes/dark.scss';
2+
3+
.ide-container {
4+
order: 0;
5+
flex: 1 1 auto;
6+
align-self: auto;
7+
display: block;
8+
}
9+
10+
/deep/ html.gr__localhost body app-root app-ide iframe#editor {
11+
position: absolute;
12+
padding-top: 3.35em;
13+
height: 100%;
14+
}

src/app/interface/interface.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.bloquer {
12-
min-height: 6em;
12+
min-height: 5em;
1313
}
1414

1515
.welcome-text {

src/styles.scss

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
@import "./assets/themes/dark.scss";
22

3-
html {
4-
background-color: transparent;
3+
html, body {
4+
background-color: #3c3c3c;
5+
min-height: 100vh;
6+
height: auto;
7+
margin: 0;
58
}
69

710
.container {
@@ -11,11 +14,23 @@ html {
1114

1215
.navbar {
1316
padding-right: 0rem;
14-
padding-left: .5rem;
17+
padding-left: .3rem;
1518
background-color: $primary-color-variant;
1619
color: $text-color;
1720
}
1821

22+
.navbar.scrolling-navbar {
23+
padding-top: .1em;
24+
padding-bottom: .1em;
25+
}
26+
27+
@media (max-width: 993px) {
28+
.navbar.scrolling-navbar {
29+
padding-top: .45em;
30+
padding-bottom: .45em;
31+
}
32+
}
33+
1934
.navbar-brand, .nav-link {
2035
color: $text-color;
2136
}

0 commit comments

Comments
 (0)