Remove Font Awesome and replace with Material Design icons

This commit is contained in:
2025-08-17 21:14:23 +03:00
Unverified
parent cc04b0e14a
commit cb40a9e3b0
9 changed files with 191 additions and 128 deletions
+4 -4
View File
@@ -11,7 +11,7 @@
<div id="login-form" class="auth-container"> <div id="login-form" class="auth-container">
<div class="auth-card fade-in"> <div class="auth-card fade-in">
<div class="auth-header"> <div class="auth-header">
<h2><i class="fas fa-sign-in-alt"></i>Добро пожаловать!</h2> <h2><span class="material-symbols filled large">login</span> Добро пожаловать!</h2>
<p>Войдите в свой аккаунт</p> <p>Войдите в свой аккаунт</p>
</div> </div>
<div class="auth-body"> <div class="auth-body">
@@ -40,7 +40,7 @@
<div id="register-form" class="auth-container" style="display: none;"> <div id="register-form" class="auth-container" style="display: none;">
<div class="auth-card fade-in"> <div class="auth-card fade-in">
<div class="auth-header"> <div class="auth-header">
<h2><i class="fas fa-user-plus"></i> Регистрация</h2> <h2><span class="material-symbols filled large">person_add</span> Регистрация</h2>
<p>Создайте новый аккаунт</p> <p>Создайте новый аккаунт</p>
</div> </div>
<div class="auth-body"> <div class="auth-body">
@@ -85,7 +85,7 @@
<ul class="nav-links"> <ul class="nav-links">
<li> <li>
<a href="#" id="chat-link"> <a href="#" id="chat-link">
<i class="fas fa-comment-alt"></i> Общий чат <span class="material-symbols filled">chat_bubble</span> Общий чат
</a> </a>
</li> </li>
<li> <li>
@@ -115,7 +115,7 @@
<form class="input-group" id="message-form"> <form class="input-group" id="message-form">
<input type="text" class="message-input" id="message-input" placeholder="Напишите сообщение..." autocomplete="off"> <input type="text" class="message-input" id="message-input" placeholder="Напишите сообщение..." autocomplete="off">
<button type="submit" class="send-btn"> <button type="submit" class="send-btn">
<i class="fas fa-paper-plane"></i> <span class="material-symbols filled">send</span>
</button> </button>
</form> </form>
</div> </div>
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5
View File
@@ -31,6 +31,11 @@
h2 { h2 {
font-size: 1.8rem; font-size: 1.8rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
align-items: center;
display: flex;
flex-direction: row;
gap: 10px;
justify-content: center;
} }
} }
+4
View File
@@ -43,6 +43,10 @@
transition: all 0.3s ease; transition: all 0.3s ease;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-radius: 4px; border-radius: 4px;
display: flex;
flex-direction: row;
align-items: center;
gap: 10px;
&:hover { &:hover {
background-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.2);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,60 @@
/* fallback */
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 400;
src: url(/webfonts/material-symbols.woff2) format('woff2');
}
.material-symbols {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
$normal-size: 24;
$large-size: 30;
&.outlined {
font-variation-settings:
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' $normal-size;
&.large {
font-size: #{$large-size}px;
font-variation-settings:
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' $large-size;
}
}
&.filled {
font-variation-settings:
'FILL' 1,
'wght' 400,
'GRAD' 0,
'opsz' $normal-size;
&.large {
font-size: #{$large-size}px;
font-variation-settings:
'FILL' 1,
'wght' 400,
'GRAD' 0,
'opsz' $large-size;
}
}
}
+1 -1
View File
@@ -5,7 +5,7 @@
@use "common/colors" as *; @use "common/colors" as *;
@use "lib/fonts/montserrat"; @use "lib/fonts/montserrat";
@use "lib/font-awesome.min.css"; @use "lib/fonts/material-symbols";
* { * {
margin: 0; margin: 0;