Skip to content

Commit

Permalink
Replace Font-Awesome & Icomoon with Google Font
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanashraf7 committed Feb 9, 2021
1 parent c12a61c commit c97afab
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 101 deletions.
2 changes: 1 addition & 1 deletion cms/templates/partials/faculty-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h3>{{ page.subhead }}</h3>
{% for member in page.members %}
<div class="slide">
<div class="slide-holder">
<img src="{% image_version_url member.value.image "fill-300x300" %}" alt="{{ member.value.name }}" loading="lazy">
<img src="{% image_version_url member.value.image "fill-300x300" %}" alt="{{ member.value.name }}">
<h2>{{ member.value.name }}</h2>
<div class="text-holder">
{{ member.value.description|richtext }}
Expand Down
2 changes: 1 addition & 1 deletion cms/templates/partials/testimonial-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h2>{{ testimonial.value.name }}, {{ testimonial.value.title }}</h2>
<div class="modal-body">
<div class="container no-gutters px-0">
<div class="d-flex flex-row-reverse">
<a class="text-dark" href="testimonial-{{ forloop.counter }}" data-dismiss="modal"><span class="icon-close-outline" aria-hidden="true"></span></a>
<a class="text-dark" href="testimonial-{{ forloop.counter }}" data-dismiss="modal"><span class="material-icons" data-icon="cancel" aria-hidden="true"></span></a>
</div>
</div>
<div class="container px-4">
Expand Down
2 changes: 0 additions & 2 deletions mitxpro/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
media="all" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons&display=swap"
media="none" onload="if(media!='all') media='all'">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css"
media="none" onload="if(media!='all') media='all'"/>
<script type="text/javascript">
var SETTINGS = {{ js_settings_json|safe }};
{% if CSOURCE_PAYLOAD %}
Expand Down
Binary file removed static/fonts/icomoon.eot
Binary file not shown.
17 changes: 0 additions & 17 deletions static/fonts/icomoon.svg

This file was deleted.

Binary file removed static/fonts/icomoon.ttf
Binary file not shown.
Binary file removed static/fonts/icomoon.woff
Binary file not shown.
10 changes: 6 additions & 4 deletions static/scss/catalog/body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,13 @@ h1, h2, h3, h4, h5 {
padding: 0;

a {

&:after {
font-family: icomoon;
content: '\e901';
font-size: 12px;
font-family: Material Icons;
content: 'chevron_right';
font-size: 20px;
display: inline-block;
vertical-align: middle;
margin-left: -5px;
}
}

Expand Down
11 changes: 7 additions & 4 deletions static/scss/detail/courses-in-program.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,15 @@
color: $primary;

&:after {
content: "\e902";
font-family: icomoon;
font-family: Material Icons;
content: "arrow_circle_up";
text-transform: none;
transform: rotate(90deg);
font-size: 20px;
display: inline-block;
vertical-align: top;
line-height: 24px;
margin: 0 0 0 10px;
line-height: 21px;
margin: 0 0 0 5px;
}
}
}
8 changes: 5 additions & 3 deletions static/scss/detail/faqs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
font-weight: 600;

&:after {
content: "\e902";
font-family: icomoon;
margin-left: 10px;
content: "arrow_circle_up";
font-family: Material Icons;
margin-left: 20px;
text-transform: none;
transform: rotate(90deg);
}
}

Expand Down
1 change: 1 addition & 0 deletions static/scss/detail/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
background-color: white;
position: relative;
z-index: 1;
height: 98px;
}

.header-block {
Expand Down
14 changes: 10 additions & 4 deletions static/scss/detail/testimonial-carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@
text-transform: uppercase;

&:after {
content: "\e902";
font-family: icomoon;
content: "arrow_circle_up";
font-family: Material Icons;
text-transform: none;
transform: rotate(90deg);
display: inline-block;
vertical-align: top;
line-height: 24px;
margin: 0 0 0 10px;
line-height: 21px;
margin: 0 0 0 5px;
}
}
}
Expand All @@ -147,4 +149,8 @@
.quote-container {
max-height: 50vh;
overflow: auto;
}

.material-icons:after {
content: attr(data-icon);
}
53 changes: 0 additions & 53 deletions static/scss/icomoon.scss

This file was deleted.

1 change: 0 additions & 1 deletion static/scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@import "catalog/banner";
@import "catalog/tabs";
@import "checkout";
@import "icomoon";
@import "footer";
@import "slick";
@import "dashboard";
Expand Down
4 changes: 2 additions & 2 deletions static/scss/notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
margin-right: 10px;

&:after {
content: "\e906";
font-family: icomoon;
content: "cancel";
font-family: Material Icons;
margin-left: 10px;
}
}
Expand Down
8 changes: 5 additions & 3 deletions static/scss/resource.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ html {
text-decoration: none;

&:after {
content: "\e905";
font-family: icomoon;
margin-left: 10px;
font-size: 24px;
font-family: Material Icons;
content: "arrow_circle_up";
margin-left: 5px;
vertical-align: middle;
}
}
}
13 changes: 7 additions & 6 deletions static/scss/slick.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.1);
margin: -75px 0 0;
cursor: pointer;
padding: 0;

@include media-breakpoint-up(md) {
left: -25px;
Expand Down Expand Up @@ -153,16 +154,16 @@
}

&:after {
font-size: 25px;
font-size: 30px;
line-height: 30px;
font-family: icomoon;
content: "\e900";
font-family: Material Icons;
content: "chevron_left";
@include media-breakpoint-up(md) {
font-size: 22px;
font-size: 34px;
line-height: 20px;
}
@media (min-width: 1275px) {
font-size: 30px;
font-size: 50px;
line-height: 40px;
}
}
Expand All @@ -177,7 +178,7 @@
}

&:after {
content: "\e901";
content: "chevron_right";
}
@media (min-width: 1275px) {
right: -65px;
Expand Down

0 comments on commit c97afab

Please sign in to comment.