Просмотр исходного кода

Try to fix the transition-on-load problem again

master
Fen Dweller 5 лет назад
Родитель
Сommit
f5c29bcc4f
2 измененных файлов: 13 добавлений и 1 удалений
  1. +7
    -0
      static/sexy.css
  2. +6
    -1
      templates/index.html

+ 7
- 0
static/sexy.css Просмотреть файл

@@ -423,3 +423,10 @@ body.about-enable > *:not(#about) {
transition: 1s;
filter: blur(25px);
}

.preload * {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-o-transition: none !important;
}

+ 6
- 1
templates/index.html Просмотреть файл

@@ -3,8 +3,13 @@
<head>
<title>crux.sexy</title>
<link rel="stylesheet" type="text/css" href="sexy.css">
<script>
document.addEventListener("DOMContentLoaded", function(){
document.querySelector(".preload").classList.remove("preload");
});
</script>
</head>
<body class={{"nightly" if nightly else ""}}>
<body class={{"nightly preload" if nightly else "preload"}}>
<div class="title">
{{"unstable builds!" if nightly else ""}}
</div>


Загрузка…
Отмена
Сохранить