Skip to content

Commit

Permalink
style: undo scoped styles (#1731)
Browse files Browse the repository at this point in the history
# Motivation

We have once again build reproducibility issue and despite the fact that we have fully remove the `vite-manifest.json` I suspect the style reproducibility we had to be the root cause.

Therefore undo the redo of the global style - i.e. undo PR #1671
  • Loading branch information
peterpeterparker authored Jan 19, 2023
1 parent a9639b3 commit 0789df2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 42 deletions.
15 changes: 1 addition & 14 deletions frontend/src/lib/pages/SignInAccounts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(GIX-1071): this static pre-rendering component should be improved with some more information and shiny design
</script>

<main>
<main class="sign-in">
<h1>{$i18n.auth_accounts.title}</h1>

<p>
Expand All @@ -14,16 +14,3 @@

<SignIn />
</main>

<style lang="scss">
main {
display: flex;
flex-direction: column;
}
h1 {
line-height: var(--line-height-standard);
}
p {
margin-bottom: var(--padding-3x);
}
</style>
15 changes: 1 addition & 14 deletions frontend/src/lib/pages/SignInCanisters.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(GIX-1071): this static pre-rendering component should be improved with some more information and shiny design
</script>

<main>
<main class="sign-in">
<h1>{$i18n.auth_canisters.title}</h1>

<p>
Expand All @@ -14,16 +14,3 @@

<SignIn />
</main>

<style lang="scss">
main {
display: flex;
flex-direction: column;
}
h1 {
line-height: var(--line-height-standard);
}
p {
margin-bottom: var(--padding-3x);
}
</style>
15 changes: 1 addition & 14 deletions frontend/src/lib/pages/SignInNeurons.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(GIX-1071): this static pre-rendering component should be improved with some more information and shiny design
</script>

<main>
<main class="sign-in">
<h1>{$i18n.auth_neurons.title}</h1>

<p>
Expand All @@ -14,16 +14,3 @@

<SignIn />
</main>

<style lang="scss">
main {
display: flex;
flex-direction: column;
}
h1 {
line-height: var(--line-height-standard);
}
p {
margin-bottom: var(--padding-3x);
}
</style>
12 changes: 12 additions & 0 deletions frontend/src/lib/themes/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
main.sign-in {
display: flex;
flex-direction: column;

h1 {
line-height: var(--line-height-standard);
}

p {
margin-bottom: var(--padding-3x);
}
}
1 change: 1 addition & 0 deletions frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
<style lang="scss" global>
@import "@dfinity/gix-components/styles/global.scss";
@import "../lib/themes/legacy";
@import "../lib/themes/global";
@import "../lib/themes/variables";
</style>

0 comments on commit 0789df2

Please sign in to comment.