Skip to content

Commit

Permalink
fix: support for Safari and mobile browsers (#134)
Browse files Browse the repository at this point in the history
* fix: fixed gaps on safari

* refactor: simplified layout

* fix: scale on mobile
  • Loading branch information
wouteraj authored May 3, 2021
1 parent 83b4f71 commit e512cfe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 1 addition & 3 deletions packages/nde-erfgoed-manage/lib/app.root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,13 @@ export class AppRootComponent extends RxLitElement {
unsafeCSS(Theme),
css`
:host {
height: 100%;
background-color: var(--colors-background-normal);
display: flex;
flex-direction: row;
align-items: stretch;
}
:host * {
flex: 1 0;
flex: 1 1;
}
:host nde-sidebar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,25 @@ export class AuthenticateRootComponent extends RxLitElement {
unsafeCSS(Theme),
css`
:host {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: var(--gap-huge);
background-color: var(--colors-primary-dark);
}
:host > * {
margin-bottom: var(--gap-huge);
width: 400px;
}
.title-container {
height: 50px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
color: var(--colors-foreground-inverse);
width: 400px;
}
.title-container svg {
Expand Down Expand Up @@ -223,14 +225,16 @@ export class AuthenticateRootComponent extends RxLitElement {
}
.form-container {
width: 400px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
gap: var(--gap-large);
}
`,
.form-container > * {
margin-bottom: var(--gap-large);
}
`,
];
}

Expand Down
1 change: 1 addition & 0 deletions packages/nde-erfgoed-manage/lib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<script>
var global = globalThis;
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>

Expand Down
6 changes: 4 additions & 2 deletions packages/nde-erfgoed-manage/lib/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ body {
background-color: var(--colors-background-normal);
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
}

body > * {
flex: 1 1;
}

0 comments on commit e512cfe

Please sign in to comment.