[deploy] Refactor: Cleanup Frontend Code (#10466)

This commit is contained in:
Molly Struve 2020-09-28 08:57:34 -05:00 committed by GitHub
parent cf04648e45
commit 6193ceeace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 76 deletions

View file

@ -7,11 +7,8 @@ function initializeSpecialNavigationFunctionality() {
if (document.getElementById('notifications-container')) {
notificationsLink.blur();
notificationsLink.classList.add('top-bar__link--current');
document.querySelector('body').dataset.currentPage =
'notifications-index';
} else {
notificationsLink.classList.remove('top-bar__link--current');
delete document.querySelector('body').dataset.currentPage;
}
if (document.getElementById('chat')) {
connectLink.blur();

View file

@ -261,75 +261,3 @@ body.hidden-shell {
opacity: 0.6;
}
}
@keyframes foo {
0% {
filter: hue-rotate(0deg) drop-shadow(16px 16px 20px blue);
transform: rotate(-2deg);
}
50% {
filter: hue-rotate(180deg) drop-shadow(-16px 6px 240px pink);
transform: rotate(2deg);
}
100% {
filter: hue-rotate(360deg) drop-shadow(16px 16px 20px blue);
transform: rotate(-2deg);
}
}
@keyframes bar {
99% {
opacity: 1;
}
100% {
opacity: 0;
}
}
[data-app-name='dev_prod'][data-current-page='notifications-index'][data-last-updated^='2020-09-28'] {
&[data-user*='"id":1'],
&[data-user*='"id":264'],
&[data-user*='"id":560'],
&[data-user*='"id":938'],
&[data-user*='"id":1548'],
&[data-user*='"id":2693'],
&[data-user*='"id":2882'],
&[data-user*='"id":9597'],
&[data-user*='"id":13962'],
&[data-user*='"id":38578'],
&[data-user*='"id":48943'],
&[data-user*='"id":83655'],
&[data-user*='"id":129358'],
&[data-user*='"id":247053'],
&[data-user*='"id":247560'],
&[data-user*='"id":256524'],
&[data-user*='"id":285767'],
&[data-user*='"id":316487'],
&[data-user*='"id":342975'],
&[data-user*='"id":444526'],
&[data-user*='"id":454793'] {
animation-name: foo;
animation-duration: 2s;
animation-iteration-count: 5;
&::after {
content: '\0057\0065\006C\0063\006F\006D\0065\0020\0062\0061\0063\006B\0021';
pointer-events: none;
color: red;
text-align: center;
font-size: 80px;
font-weight: 900;
z-index: 999;
position: fixed;
width: 100%;
text-align: center;
top: 40vh;
text-shadow: 20px 0 100px yellow, -20px 0 100px purple,
0 -20px 100px green, 4px 4px 0 black, -4px -4px 0 blue;
animation-name: bar;
animation-delay: 9.9s;
animation-duration: 0.1;
animation-fill-mode: forwards;
}
}
}

View file

@ -52,7 +52,6 @@
<% cache(release_adjusted_cache_key("top-html-and-config--#{user_signed_in?}")) do %>
<body
data-user-status="<%= user_logged_in_status %>"
data-last-updated="<%= Time.current %>"
class="<%= SiteConfig.default_font.tr("_", "-") %>-article-body"
data-pusher-key="<%= ApplicationConfig["PUSHER_KEY"] %>"
data-app-name="<%= ApplicationConfig["APP_NAME"] %>"