refactor(ui): CSS + Remove Google fonts

This commit is contained in:
2026-06-02 08:14:06 +05:30
parent 0ea802b888
commit 3352c0475b
3 changed files with 29 additions and 16 deletions
Binary file not shown.
+1 -4
View File
@@ -4,10 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>sorcia - A simple, open-source, self-hosted, and privacy-focused Git service</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
+28 -12
View File
@@ -1,3 +1,19 @@
@font-face {
font-family: 'IBM Plex Mono';
src: url('IBMPlexMono-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
:root {
--primary-color: #c35e5e;
--secondary-color: #7f7f7f;
--background-color: #f9f9f9;
--text-color: #444444;
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--font-family-monospace: 'IBM Plex Mono', monospace;
}
*, *,
*::before, *::before,
*::after { *::after {
@@ -7,18 +23,18 @@
} }
*::selection { *::selection {
background-color: #e7a85f; background-color: var(--primary-color);
color: #444444; color: var(--text-color);
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-family: var(--font-family);
color: #444444; color: var(--text-color);
font-size: 16px; font-size: 16px;
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-optical-sizing: auto; font-optical-sizing: auto;
background-color: #f9f9f9; background-color: var(--background-color);
} }
h1, h1,
@@ -37,7 +53,7 @@ li {
} }
a { a {
color: #c35e5e; color: var(--primary-color);
text-decoration: none; text-decoration: none;
} }
@@ -59,9 +75,9 @@ a:hover {
} }
.title { .title {
font-family: 'IBM Plex Mono', monospace; font-family: var(--font-family-monospace);
font-size: 16px; font-size: 16px;
color: #c35e5e; color: var(--primary-color);
} }
.title_center { .title_center {
@@ -70,7 +86,7 @@ a:hover {
} }
.title .sep { .title .sep {
color: #7f7f7f; color: var(--secondary-color);
} }
.description { .description {
@@ -105,14 +121,14 @@ a:hover {
} }
.repository__files .repository__item { .repository__files .repository__item {
font-family: 'IBM Plex Mono', monospace; font-family: var(--font-family-monospace);
color: #c35e5e; color: var(--primary-color);
} }
.repository__files .date, .repository__files .date,
.repository__files .author, .repository__files .author,
.repository__files .commit-details a { .repository__files .commit-details a {
color: #7f7f7f; color: var(--secondary-color);
font-size: 12px; font-size: 12px;
} }