Pārlūkot izejas kodu

Fixes animation/transition flashes on load

main
Eric Amodio pirms 6 gadiem
vecāks
revīzija
8f6b7e75fa
4 mainītis faili ar 14 papildinājumiem un 2 dzēšanām
  1. +8
    -0
      src/ui/scss/main.scss
  2. +1
    -1
      src/ui/settings/index.html
  3. +4
    -0
      src/ui/shared/app-base.ts
  4. +1
    -1
      src/ui/welcome/index.html

+ 8
- 0
src/ui/scss/main.scss Parādīt failu

@ -187,6 +187,10 @@ ul {
border-color: rgba(255, 255, 255, 0.6);
color: white !important;
}
.preload & {
transition-duration: 0s !important;
}
}
.button--flat-primary {
@ -201,6 +205,10 @@ ul {
border-color: white;
color: black !important;
}
.preload & {
transition-duration: 0s !important;
}
}
.button-group {

+ 1
- 1
src/ui/settings/index.html Parādīt failu

@ -6,7 +6,7 @@
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src *; style-src 'self'; script-src 'nonce-gitlens'" /> -->
</head>
<body>
<body class="preload">
<div class="container">
<div class="content">
<header>

+ 4
- 0
src/ui/shared/app-base.ts Parādīt failu

@ -36,6 +36,10 @@ export abstract class App {
initializeColorPalette();
this.initialize();
this.bind();
setTimeout(() => {
document.body.classList.remove('preload');
}, 500);
}
protected initialize() {

+ 1
- 1
src/ui/welcome/index.html Parādīt failu

@ -6,7 +6,7 @@
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src *; style-src 'self'; script-src 'nonce-gitlens'"> -->
</head>
<body>
<body class="preload">
<div class="container">
<div class="content">
<header>

Notiek ielāde…
Atcelt
Saglabāt