Skip to content

Commit

Permalink
Remove new-design styles | Cleaning up duplicated styles
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Sep 17, 2024
1 parent b1f070c commit e69df65
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 26 deletions.
1 change: 0 additions & 1 deletion cms/templates/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

{% block title %}{{ site_name }}{% endblock %}

{% block bodyclass %}new-design{% endblock %}

{% block content %}
<div class="home-page-hero-row d-flex justify-content-md-center align-items-md-center">
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scss/home-page/home-page-contact-row.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body.new-design {
body {
background: white;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scss/home-page/home-page-hero.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body.new-design {
body {
background: white;
}
.home-page-hero-row {
Expand Down
2 changes: 0 additions & 2 deletions frontend/public/scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ body {
padding-top: 50px;
padding-bottom: 50px;
}
}

body.new-design {
select.form-control {
background-image: url('data:image/svg+xml,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.41 3.8147e-06L6 4.58L10.59 3.8147e-06L12 1.41L6 7.41L0 1.41L1.41 3.8147e-06Z" fill="%23344055"/></svg>');
background-repeat: no-repeat;
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/scss/meta-product-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
@import "product-page/product-details";
@import "product-page/product-faculty-members";

body.new-design {
body {
background: white;
}
20 changes: 1 addition & 19 deletions frontend/public/scss/top-app-bar.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
// sass-lint:disable mixins-before-declarations

// old design
header.site-header {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14);
background-color: $white;

.navbar {
display: flex;
justify-content: space-between;
padding: 0;

@include media-breakpoint-down(md) {
position: static;
}
}

.nowrap {
flex-wrap: unset;
}
}

.user-menu-overlay {
display: none;
Expand Down Expand Up @@ -122,7 +104,7 @@ header.site-header {
}
}

header.site-header.new-design {
header.site-header {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14);
background-color: $white;
font-family: Inter;
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/src/components/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TopBar = ({ currentUser }: Props) => {
}, [])

return (
<header className="site-header new-design d-flex d-flex flex-column">
<header className="site-header d-flex d-flex flex-column">
{showComponent ? (
<NotificationContainer id="notifications-container" />
) : null}
Expand Down

0 comments on commit e69df65

Please sign in to comment.