Skip to content

Commit

Permalink
style adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed Aug 2, 2023
1 parent e5c819e commit ba1f53f
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 71 deletions.
16 changes: 5 additions & 11 deletions src/app/pages/footer/footer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,10 @@
order: 1;
}

::ng-deep div.ol-scale-line {
position: fixed !important;
display: flex;
flex-direction: row;
top: unset !important;
left: 10px !important;
bottom: 3px !important;
background: unset !important;
color: black;
z-index: 5 !important;
transform: unset !important;
::ng-deep .ol-scale-line {
position: relative;
left: 0;
bottom: 0;
margin-left: 12px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(keydown.Enter)= "$event.stopPropagation()"
(click)= "$event.stopPropagation()"
>
<mat-expansion-panel-header>
<mat-expansion-panel-header collapsedHeight="56px">
<igo-search-bar *ngIf= "showSearchBar"
#searchbar
(click)= "onSearchBarClick($event)"
Expand Down
2 changes: 0 additions & 2 deletions src/app/pages/portal/portal.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@
margin-left: auto;
align-self: flex-end;
margin-top: auto;
box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%),
0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
}

igo-zoom-button {
Expand Down
23 changes: 0 additions & 23 deletions src/style/reset.scss

This file was deleted.

10 changes: 9 additions & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
@use '@igo2/core/all-style';
@use '@igo2/core/layout';

@use 'style/reset.scss';
@use 'theme/theme.scss';
@use 'variables';
@use './app/pages/portal/portal.variables' as portal;

body {
margin: 0;
overflow: hidden;
}

* {
box-sizing: border-box;
}

.page {
overflow-y: auto !important;
overflow-x: clip;
Expand Down
33 changes: 6 additions & 27 deletions src/theme/igo-override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,6 @@
@use 'variables';
@use './palette';

@mixin themes($theme) {
@include search-bar-density($theme);
}

@mixin search-bar-density($theme) {
$density: mat.get-density-config($theme);

$theme4: map.merge(
$theme,
(
density: $density - 4
)
);

$theme2: map.merge(
$theme,
(
density: $density - 2
)
);
igo-search-bar {
@include mat.form-field-density($theme4);
@include mat.icon-button-density($theme2);
}
}

$color-500: map.get(palette.$palette, 500);
$color-500-contrast: map.get(palette.$palette, contrast, 500);
Expand Down Expand Up @@ -57,7 +32,7 @@ igo-search-results-item {
white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
max-height: 36px;
max-height: unset !important;
line-height: 18px !important;
}
}
Expand Down Expand Up @@ -86,7 +61,11 @@ igo-panel-header button {
color: $color-500-contrast !important;
}

igo-rotation-button,
igo-zoom-button,
igo-offline-button,
igo-home-extent-button,
igo-baselayers-switcher,
igo-geolocate-button {
box-shadow: 0 1px 4px rgb(34 54 84 / 24%);
@include mat.elevation(2);
}
30 changes: 30 additions & 0 deletions src/theme/igo-theme-override.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@use 'sass:map';
@use '@angular/material' as mat;
@use 'variables';
@use './palette';

@mixin themes($theme) {
@include search-bar-density($theme);
}

@mixin search-bar-density($theme) {
$density: mat.get-density-config($theme);

$theme4: map.merge(
$theme,
(
density: $density - 4
)
);

$theme2: map.merge(
$theme,
(
density: $density - 2
)
);
igo-search-bar {
@include mat.form-field-density($theme4);
@include mat.icon-button-density($theme2);
}
}
4 changes: 2 additions & 2 deletions src/theme/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
display: flex;
flex-wrap: wrap;
align-content: flex-start;
height: 100%;
width: 98%;
width: 100%;
padding: 0 16px;
margin: auto;
}

Expand Down
8 changes: 6 additions & 2 deletions src/theme/material-override/button.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@use 'sass:map';
@use '@angular/material' as mat;
@use '../typography';
@use '../palette';

$color-500: map.get(palette.$palette, 500);

.mdc-button {
font-size: mat.font-size(typography.$typography, body-1) !important;
Expand All @@ -16,6 +20,6 @@
}

.mat-mdc-raised-button {
color: #095797 !important;
border-color: #095797 !important;
color: $color-500 !important;
border-color: $color-500 !important;
}
5 changes: 4 additions & 1 deletion src/theme/material-override/input.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use 'sass:map';
@use '../palette';

.mat-mdc-input-element {
color: #647287;
color: map.get(palette.$color, grey, medium) !important;
}
3 changes: 2 additions & 1 deletion src/theme/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@use './typography';
@use './layout';
@use './igo-override';
@use './igo-theme-override';
@use './material-override/index';
@use '../app/app.theming' as app;

Expand Down Expand Up @@ -42,7 +43,7 @@ $theme: map.merge(
@include mat.all-component-themes($theme);

@include igo.all-component-themes($theme);
@include igo-override.themes($theme);
@include igo-theme-override.themes($theme);

@include app.themes($theme);

Expand Down

0 comments on commit ba1f53f

Please sign in to comment.