mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
Replace Font Awesome with Material Design Icons
This commit is contained in:
parent
8527e9bfdf
commit
517e20f9e5
3 changed files with 92 additions and 16 deletions
|
@ -358,4 +358,82 @@ body {
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background: var(--text-color);
|
background: var(--text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Material Icons */
|
||||||
|
.mdi::before {
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-xs .mdi::before {
|
||||||
|
font-size: 18px;
|
||||||
|
top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-sm .mdi::before {
|
||||||
|
font-size: 18px;
|
||||||
|
top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu .mdi {
|
||||||
|
width: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-menu .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
left: -8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .navbar-toggle .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb a:hover span {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alert .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 4px;
|
||||||
|
margin-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-group-addon .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 2px;
|
||||||
|
margin-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item .mdi::before {
|
||||||
|
position: relative;
|
||||||
|
top: 3px;
|
||||||
|
left: -3px;
|
||||||
}
|
}
|
|
@ -9,9 +9,7 @@
|
||||||
content="ie=edge" />
|
content="ie=edge" />
|
||||||
<title></title>
|
<title></title>
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
|
href="https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css" />
|
||||||
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
|
|
||||||
crossorigin="anonymous" />
|
|
||||||
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
|
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
|
||||||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|
26
populate.js
26
populate.js
|
@ -103,13 +103,13 @@ module.exports.updateHTML = (username, opts) =>
|
||||||
repos[i].language == null
|
repos[i].language == null
|
||||||
? "none"
|
? "none"
|
||||||
: "inline-block"
|
: "inline-block"
|
||||||
};"><i class="fas fa-code"></i> ${
|
};"><i class="mdi mdi-code-tags"></i> ${
|
||||||
repos[i].language
|
repos[i].language
|
||||||
}</span>
|
}</span>
|
||||||
<span><i class="fas fa-star"></i> ${
|
<span><i class="mdi mdi-star"></i> ${
|
||||||
repos[i].stargazers_count
|
repos[i].stargazers_count
|
||||||
}</span>
|
}</span>
|
||||||
<span><i class="fas fa-code-branch"></i> ${
|
<span><i class="mdi mdi-source-branch"></i> ${
|
||||||
repos[i].forks_count
|
repos[i].forks_count
|
||||||
}</span>
|
}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -153,37 +153,37 @@ module.exports.updateHTML = (username, opts) =>
|
||||||
document.getElementById("about").innerHTML = `
|
document.getElementById("about").innerHTML = `
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
user.company == null || !user.company ? "none" : "block"
|
user.company == null || !user.company ? "none" : "block"
|
||||||
};"><i class="fas fa-users"></i> ${user.company}</span>
|
};"><i class="mdi-face"></i> ${user.company}</span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
user.email == null || !user.email ? "none" : "block"
|
user.email == null || !user.email ? "none" : "block"
|
||||||
};"><i class="fas fa-envelope"></i> ${user.email}</span>
|
};"><i class="mdi mdi-email"></i> ${user.email}</span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
user.location == null || !user.location ? "none" : "block"
|
user.location == null || !user.location ? "none" : "block"
|
||||||
};"><i class="fas fa-map-marker-alt"></i> ${
|
};"><i class="mdi mdi-map-marker"></i> ${
|
||||||
user.location
|
user.location
|
||||||
}</span>
|
}</span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
user.hireable == false || !user.hireable ? "none" : "block"
|
user.hireable == false || !user.hireable ? "none" : "block"
|
||||||
};"><i class="fas fa-user-tie"></i> Available for hire</span>
|
};"><i class="mdi mdi-account-tie"></i> Available for hire</span>
|
||||||
<div class="socials">
|
<div class="socials">
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
twitter == null ? "none !important" : "block"
|
twitter == null ? "none !important" : "block"
|
||||||
};"><a href="https://www.twitter.com/${twitter}" target="_blank" class="socials"><i class="fab fa-twitter"></i></a></span>
|
};"><a href="https://www.twitter.com/${twitter}" target="_blank" class="socials"><i class="mdi mdi-twitter"></i></a></span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
dribbble == null ? "none !important" : "block"
|
dribbble == null ? "none !important" : "block"
|
||||||
};"><a href="https://www.dribbble.com/${dribbble}" target="_blank" class="socials"><i class="fab fa-dribbble"></i></a></span>
|
};"><a href="https://www.dribbble.com/${dribbble}" target="_blank" class="socials"><i class="mdi mdi-dribbble"></i></a></span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
linkedin == null ? "none !important" : "block"
|
linkedin == null ? "none !important" : "block"
|
||||||
};"><a href="https://www.linkedin.com/in/${linkedin}/" target="_blank" class="socials"><i class="fab fa-linkedin-in"></i></a></span>
|
};"><a href="https://www.linkedin.com/in/${linkedin}/" target="_blank" class="socials"><i class="mdi mdi-linkedin"></i></a></span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
medium == null ? "none !important" : "block"
|
medium == null ? "none !important" : "block"
|
||||||
};"><a href="https://www.medium.com/@${medium}/" target="_blank" class="socials"><i class="fab fa-medium-m"></i></a></span>
|
};"><a href="https://www.medium.com/@${medium}/" target="_blank" class="socials"><i class="mdi mdi-medium"></i></a></span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
telegram == null ? "none !important" : "block"
|
telegram == null ? "none !important" : "block"
|
||||||
};"><a href="https://t.me/@${telegram}" target="_blank" class="socials"><i class="fab fa-telegram"></i></a></span>
|
};"><a href="https://t.me/@${telegram}" target="_blank" class="socials"><i class="mdi mdi-telegram"></i></a></span>
|
||||||
<span style="display:${
|
<span style="display:${
|
||||||
email == null ? "none !important" : "block"
|
email == null ? "none !important" : "block"
|
||||||
};"><a href="mailto:${email}" target="_blank" class="socials"><i class="fas fa-envelope"></i></a></span>
|
};"><a href="mailto:${email}" target="_blank" class="socials"><i class="mdi mdi-email"></i></a></span>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
//add data to config.json
|
//add data to config.json
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue