Skip to content

Commit

Permalink
Merge pull request #162 from isubit/D8ISUTHEME-143
Browse files Browse the repository at this point in the history
D8ISUTHEME-143 Add Discord icon
  • Loading branch information
sacarney committed Feb 17, 2021
2 parents 99a6e47 + 48a1952 commit 041cb19
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions css/icons/isuthemeicons-1.0.0/css/isuthemeicons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@font-face {
font-family: 'isuthemeicons';
src:url('../fonts/isuthemeicons.eot?v=1.0.0');
src:url('../fonts/isuthemeicons.eot?v=1.0.0') format('embedded-opentype'),
url('../fonts/isuthemeicons.ttf?v=1.0.0') format('truetype'),
url('../fonts/isuthemeicons.woff?v=1.0.0') format('woff'),
url('../fonts/isuthemeicons.svg?v=1.0.0#isuthemeicons') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}

.isui {
display: inline-block;
font-family: 'isuthemeicons' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.isui-discord:before {
content: '\e900';
}
1 change: 1 addition & 0 deletions css/icons/isuthemeicons-1.0.0/css/isuthemeicons.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
11 changes: 11 additions & 0 deletions css/icons/isuthemeicons-1.0.0/fonts/isuthemeicons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions css/isu-social.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,9 @@
.isu-social-menu a[href*='scholar.google.com']:hover:before {
color: #dd4b39;
}
.isu-social-menu a[href*='discord']:before {
content: '\e900';
font-family: isuthemeicons;
position: relative;
}

1 change: 1 addition & 0 deletions iastate_theme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ libraries:
- iastate_theme/fonts
- iastate_theme/font-awesome
- iastate_theme/academicons
- iastate_theme/isuthemeicons
ckeditor_stylesheets:
- css/bootstrap/bootstrap.min.css
- css/base.css
Expand Down
10 changes: 10 additions & 0 deletions iastate_theme.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ academicons:
theme:
css/icons/academicons-1.8.6/css/academicons.min.css: { minified: true }

isuthemeicons:
version: 1.0.0
license:
name: MIT
url: https://opensource.org/licenses/mit-license.html
gpl-compatible: true
css:
theme:
css/icons/isuthemeicons-1.0.0/css/isuthemeicons.min.css: { minified: true }

0 comments on commit 041cb19

Please sign in to comment.