nightmode-pixelfed/README.md

86 lines
1.8 KiB
Markdown
Raw Normal View History

# Night mode for Pixelfed
2023-07-08 09:36:24 +00:00
Modification légère du CSS pour les couleurs pour l'interface de Pixelfed via Stylus.
## CSS
2023-07-09 09:51:38 +00:00
* Activer le dark mode manuellement dans linterface de configuration pour l'UI.
* A mettre dans Stylus :
```css
2023-07-10 08:29:47 +00:00
/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #171a1d #31363b;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 8px;
}
*::-webkit-scrollbar-track {
background: #31363b;
}
*::-webkit-scrollbar-thumb {
background-color: #171a1d;
border-radius: 30px;
border: 3px none #ffffff;
}
/* Search */
.metro-nav .autocomplete-input {
background-color: var(--body-bg);
}
/* Dark mode */
.force-dark-mode {
2023-07-09 09:51:38 +00:00
--light: #000 !important;
--dark: #fff !important;
--body-bg: #12151a !important;
--body-color: #fafcff !important;
--nav-bg: #1c1e22 !important;
--bg-light: #212124;
--light-gray: #212124;
--text-lighter: #818181;
--card-bg: #1c1e22;
--light-hover-bg: #212124;
--btn-light-border: #161618;
--input-border: #161618;
--comment-bg: #212124;
--border-color: #212124;
--card-header-accent: #212124;
--dropdown-item-hover-bg: #000;
--dropdown-item-hover-color: #818181;
--dropdown-item-color: #64748b;
--dropdown-item-active-color: #b3b3b3;
--primary: #567ebf;
2023-07-09 09:51:38 +00:00
--blue: #567ebf;
}
2023-07-10 08:29:47 +00:00
/* Color for time */
.badge-light {
2023-07-09 09:51:38 +00:00
color: #fff;
}
.profile-sidebar-component .avatar {
border-radius: 100px;
margin-bottom: 1rem;
width: 140px;
}
.sidebar-component .user-card .avatar {
border-radius: 50px;
}
2023-07-09 09:51:38 +00:00
.sidebar-component .user-card .avatar-update-btn {
background: hsla(0, 5%, 28%, .55);
border: 1px solid #5656579c !important;
}
```
## Screenshot
![css screenshot](pixelfed-css.jpg)