Skip to content

Commit

Permalink
Anniversary: Remove anniversary header
Browse files Browse the repository at this point in the history
  • Loading branch information
Biscgit committed Jan 9, 2025
1 parent ca34a20 commit a843967
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 164 deletions.
58 changes: 0 additions & 58 deletions cernopendata/modules/theme/assets/semantic-ui/js/anniversary.js

This file was deleted.

2 changes: 0 additions & 2 deletions cernopendata/modules/theme/assets/semantic-ui/js/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import jquery from "jquery/dist/jquery";

import "./anniversary.js"

// This line sets jQuery version from Invenio to `jquery` variable globally
// in order to make it compatible with other jQuery versions needed for
// ispy and opera visualizers, since other versions are loaded through script
Expand Down
102 changes: 1 addition & 101 deletions cernopendata/modules/theme/assets/semantic-ui/scss/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,106 +24,12 @@
margin-bottom: 0;

.navbar-custom {
//display: flex;
display: flex;
align-items: center;
justify-content: flex-start;
background-color: $header-dark-blue;
height: 65px;

// anniversary additions
display: grid;
grid-template-columns: auto 1fr auto;

.navbar-anniversary {
width: inherit;
font-family: "Open Sans", sans-serif;
padding: 0.5em;

.navbar-anniversary-wrap {
display: flex;
width: 100%;
justify-content: center;
align-items: center;

.navbar-anniversary-texts {
display: flex;
flex-direction: column;
text-align: center;

strong {
font-weight: 600;
}

.navbar-anniversary-texts-title {
font-weight: 400;
font-size: 1.4em;
margin-top: 0.2em;
color: $white;
}

.navbar-anniversary-texts-subtitle {
font-weight: 300;
font-size: 0.7em;
line-height: 1.8em;
color: $light-blue;
}
}

button {
display: inline-block;
background: none;
border: none;
margin-right: 0.5em;
cursor: pointer;
font-size: 2.25em;
transition: transform 0.15s;
animation: wiggle 18s ease-in-out infinite;
}

a {
cursor: pointer;
color: inherit;
text-decoration: none;
}

a:hover {
filter: brightness(85%);
}

a:active {
filter: brightness(70%);
}

button:hover {
transform: scale(1.15);
}

button:active {
transform: scale(1.25);
}

@keyframes wiggle {
60% {
transform: rotate(0deg);
}
61% {
transform: rotate(5deg);
}
62% {
transform: rotate(-5deg);
}
63% {
transform: rotate(10deg);
}
64% {
transform: rotate(0deg);
}
}
}
}

// anniversary done

.searchbar {
min-width: 250px;
width: 35%;
Expand All @@ -142,13 +48,8 @@
margin-left: auto;
list-style: none;

li > span {
white-space: nowrap;
}

.ui.dropdown .navbar-item {
padding: 0;

span {
user-select: none;
}
Expand All @@ -175,7 +76,6 @@
color: white;
}
}

.menu-icon {
display: none;
}
Expand Down
1 change: 0 additions & 1 deletion cernopendata/modules/theme/webpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
dependencies={
"open-iconic": "~1.1.1",
"popper.js": "~1.11.0",
"react-confetti": "~6.1.0",
},
aliases={
"../../theme.config$": "less/cernopendata/theme.config",
Expand Down
2 changes: 0 additions & 2 deletions cernopendata/templates/cernopendata_theme/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<img src="{{ url_for('static', filename='assets/img/logo_blue.png') }}" width="115" alt="">
</a>

<div class="navbar-anniversary" id="react-anniversary"></div>

<ul class="link-menu">
<li class="ui dropdown">
<span class="navbar-item">
Expand Down

0 comments on commit a843967

Please sign in to comment.