1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 09:46:49 +00:00
pixelfed/resources/assets/sass/spa.scss

410 lines
7.8 KiB
SCSS
Raw Normal View History

2022-03-02 08:54:14 +00:00
@import "lib/ibmplexsans";
2022-04-03 06:53:53 +00:00
:root {
2023-07-30 10:04:49 +00:00
--light: #fff;
--dark: #000;
--body-bg: rgba(243,244,246,1);
--body-color: #212529;
--nav-bg: #fff;
--bg-light: #f8f9fa;
--primary: #3B82F6;
--light-gray: #f8f9fa;
--text-lighter: #94a3b8;
--card-bg: #fff;
--light-hover-bg: #f9fafb;
--btn-light-border: #fff;
--input-border: #e2e8f0;
--comment-bg: #eff2f5;
--border-color: #dee2e6;
--card-header-accent: #f9fafb;
--dropdown-item-hover-bg: #e9ecef;
--dropdown-item-hover-color: #16181b;
--dropdown-item-color: #64748b;
--dropdown-item-active-color: #334155;
2022-03-02 08:54:14 +00:00
}
2022-04-03 06:53:53 +00:00
@media (prefers-color-scheme: dark) {
2023-07-30 10:04:49 +00:00
:root {
--light: #000;
--dark: #fff;
--body-bg: #000;
--body-color: #9ca3af;
--nav-bg: #000;
--bg-light: #212124;
--light-gray: #212124;
--text-lighter: #818181;
--card-bg: #161618;
--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: #fff;
}
2022-04-03 06:53:53 +00:00
}
.force-light-mode {
2023-07-30 10:04:49 +00:00
--light: #fff;
--dark: #000;
--body-bg: rgba(243,244,246,1);
--body-color: #212529;
--nav-bg: #fff;
--bg-light: #f8f9fa;
--primary: #3B82F6;
--light-gray: #f8f9fa;
--text-lighter: #94a3b8;
--card-bg: #fff;
--light-hover-bg: #f9fafb;
--btn-light-border: #fff;
--input-border: #e2e8f0;
--comment-bg: #eff2f5;
--border-color: #dee2e6;
--card-header-accent: #f9fafb;
--dropdown-item-hover-bg: #e9ecef;
--dropdown-item-hover-color: #16181b;
--dropdown-item-color: #64748b;
--dropdown-item-active-color: #334155;
2022-04-03 06:53:53 +00:00
}
.force-dark-mode {
2023-07-30 10:04:49 +00:00
--light: #000;
--dark: #fff;
--body-bg: #000;
--body-color: #9ca3af;
--nav-bg: #000;
--bg-light: #212124;
--light-gray: #212124;
--text-lighter: #818181;
--card-bg: #161618;
--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;
2022-04-03 06:53:53 +00:00
}
body {
2023-07-30 10:04:49 +00:00
background: var(--body-bg);
font-family: 'IBM Plex Sans', sans-serif;
color: var(--body-color);
2022-03-02 08:54:14 +00:00
}
.web-wrapper {
2023-07-30 10:04:49 +00:00
margin-bottom: 10rem;
2022-03-02 08:54:14 +00:00
}
2022-04-03 06:53:53 +00:00
.container-fluid {
2023-07-30 10:04:49 +00:00
max-width: 1440px !important;
2022-04-03 06:53:53 +00:00
}
2022-03-02 08:54:14 +00:00
.jumbotron {
2023-07-30 10:04:49 +00:00
border-radius: 18px;
2022-03-02 08:54:14 +00:00
}
.rounded-px {
2023-07-30 10:04:49 +00:00
border-radius: 18px;
2022-03-02 08:54:14 +00:00
}
.doc-body {
2023-07-30 10:04:49 +00:00
p:last-child {
margin-bottom: 0;
}
2022-03-02 08:54:14 +00:00
}
2022-04-03 06:53:53 +00:00
.navbar-laravel {
2023-07-30 10:04:49 +00:00
background-color: var(--nav-bg);
2022-04-03 06:53:53 +00:00
}
2022-03-02 08:54:14 +00:00
.sticky-top {
2023-07-30 10:04:49 +00:00
z-index: 2;
2022-03-02 08:54:14 +00:00
}
2022-04-03 06:53:53 +00:00
.navbar-light .navbar-brand {
2023-07-30 10:04:49 +00:00
color: var(--dark);
2022-04-03 07:18:17 +00:00
2023-07-30 10:04:49 +00:00
&:hover {
color: var(--dark);
}
2022-04-03 06:53:53 +00:00
}
.primary {
2023-07-30 10:04:49 +00:00
color: var(--primary);
}
.bg-g-amin {
background: #8E2DE2;
background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2);
background: linear-gradient(to left, #4A00E0, #8E2DE2);
2022-03-02 08:54:14 +00:00
}
.text-lighter {
2023-07-30 10:04:49 +00:00
color: var(--text-lighter) !important;
2022-04-03 06:53:53 +00:00
}
.text-dark {
color: var(--body-color) !important;
&:hover {
2023-07-30 10:04:49 +00:00
color: var(--dark) !important;
2022-04-03 06:53:53 +00:00
}
}
a.text-dark:hover {
color: var(--dark) !important;
2022-03-02 08:54:14 +00:00
}
.badge-primary {
2023-07-30 10:04:49 +00:00
background-color: var(--primary);
2022-03-02 08:54:14 +00:00
}
2022-04-03 06:53:53 +00:00
.btn-primary {
2023-07-30 10:04:49 +00:00
background-color: var(--primary);
color: #fff !important;
2022-03-02 08:54:14 +00:00
}
2022-04-03 06:53:53 +00:00
.btn-outline-light {
2023-07-30 10:04:49 +00:00
border-color: var(--light-gray);
2022-04-03 06:53:53 +00:00
}
.border {
border: 1px solid var(--border-color) !important;
}
.bg-white,
.bg-light {
2023-07-30 10:04:49 +00:00
background-color: var(--bg-light) !important;
border-color: var(--bg-light) !important;
2022-04-03 06:53:53 +00:00
}
.btn-light {
2023-07-30 10:04:49 +00:00
background-color: var(--light-gray);
border-color: var(--btn-light-border);
color: var(--body-color);
2022-04-03 06:53:53 +00:00
2023-07-30 10:04:49 +00:00
&:hover {
color: var(--body-color);
background-color: var(--card-bg);
border-color: var(--btn-light-border);
}
2022-04-03 06:53:53 +00:00
}
.autocomplete-input {
2023-07-30 10:04:49 +00:00
border: 1px solid var(--light-gray) !important;
color: var(--body-color);
2022-04-03 06:53:53 +00:00
}
.autocomplete-result-list {
2023-07-30 10:04:49 +00:00
background: var(--light) !important;
z-index: 2 !important;
2022-04-03 06:53:53 +00:00
}
.dropdown-menu,
span.twitter-typeahead .tt-menu,
.form-control {
2023-07-30 10:04:49 +00:00
border: 1px solid var(--border-color) !important;
color: var(--body-color);
background-color: var(--card-bg);
2022-04-03 06:53:53 +00:00
}
.tribute-container li,
.dropdown-item,
span.twitter-typeahead .tt-suggestion {
2023-07-30 10:04:49 +00:00
color: var(--body-color);
2022-04-03 06:53:53 +00:00
}
.dropdown-item:hover,
span.twitter-typeahead .tt-suggestion:hover,
.dropdown-item:focus,
span.twitter-typeahead .tt-suggestion:focus {
2023-07-30 10:04:49 +00:00
color: var(--dropdown-item-hover-color);
2022-04-03 06:53:53 +00:00
background-color: var(--dropdown-item-hover-bg);
text-decoration: none;
}
.popover,
.modal-content,
.form-control:focus,
.tribute-container ul,
.list-group-item,
.card,
.card-header,
.card-footer,
.ph-item {
2023-07-30 10:04:49 +00:00
background-color: var(--card-bg);
2022-04-03 06:53:53 +00:00
}
.badge-light,
.breadcrumb,
.ph-avatar,
.ph-picture,
.ph-row div {
2023-07-30 10:04:49 +00:00
background-color: var(--light-gray);
2022-04-03 06:53:53 +00:00
}
.card-header,
.border-top,
.border-bottom {
2023-07-30 10:04:49 +00:00
border-color: var(--border-color) !important;
2022-04-03 06:53:53 +00:00
}
2023-05-25 06:33:44 +00:00
.modal-header,
.modal-footer {
2023-07-30 10:04:49 +00:00
border-color: var(--border-color);
2022-04-03 06:53:53 +00:00
}
.compose-action:hover {
2023-07-30 10:04:49 +00:00
background-color: var(--light-gray) !important;
2022-04-03 06:53:53 +00:00
}
.dropdown-divider {
2023-07-30 10:04:49 +00:00
border-color: var(--dropdown-item-hover-bg);
2022-04-03 06:53:53 +00:00
}
.metro-nav {
2023-07-30 10:04:49 +00:00
&.flex-column {
background-color: var(--card-bg);
.nav-item {
.nav-link:hover {
background-color: var(--light-hover-bg);
}
}
}
2022-04-03 06:53:53 +00:00
}
.child-reply-form {
2023-07-30 10:04:49 +00:00
.form-control {
border-color: var(--input-border);
color: var(--body-color);
}
2022-04-03 06:53:53 +00:00
}
.ui-menu {
2023-07-30 10:04:49 +00:00
.btn-group {
.btn:first-child {
border-top-left-radius: 50rem;
border-bottom-left-radius: 50rem;
}
.btn:last-child {
border-top-right-radius: 50rem;
border-bottom-right-radius: 50rem;
}
.btn-primary {
font-weight: bold;
}
}
2023-07-30 10:04:49 +00:00
.b-custom-control-lg {
padding-bottom: 8px;
}
}
.content-label {
2023-07-30 10:04:49 +00:00
&-wrapper {
div:not(.content-label) {
height: 100%;
}
}
2023-07-30 10:04:49 +00:00
&-text {
width: 80%;
@media (min-width: 768px) {
width: 50%;
}
}
}
2023-05-25 06:33:44 +00:00
.compose-modal-component {
2023-07-30 10:04:49 +00:00
.form-control:focus {
color: var(--body-color);
2023-05-25 06:33:44 +00:00
}
}
.modal-body {
2023-07-30 10:04:49 +00:00
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
background-color: transparent;
border-color: var(--border-color);
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
border-color: var(--border-color);
}
.form-control:focus {
color: var(--body-color);
2023-05-25 06:33:44 +00:00
}
}
.tribute-container {
2023-07-30 10:04:49 +00:00
border: 0;
2023-05-25 06:33:44 +00:00
2023-07-30 10:04:49 +00:00
ul {
margin-top: 0;
border-color: var(--border-color);
}
2023-05-25 06:33:44 +00:00
2023-07-30 10:04:49 +00:00
li {
padding: 0.5rem 1rem;
border-top: 0;
border-left: 0;
border-right: 0;
font-size: 13px;
&:not(:last-child) {
border-bottom: 1px solid var(--border-color);
}
&.highlight,
&:hover {
color: var(--body-color);
font-weight: bold;
background: rgba(44, 120, 191, 0.25);
}
}
}
2023-05-25 06:33:44 +00:00
2023-07-30 10:04:49 +00:00
.ft-std {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
2023-05-25 06:33:44 +00:00
}
.timestamp-overlay-badge {
color: var(--dark);
}
2023-05-25 06:33:44 +00:00
.timeline-status-component {
2023-07-30 10:04:49 +00:00
.username {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin-bottom: -3px;
word-break: break-word;
@media (min-width: 768px) {
font-size: 17px;
}
}
2023-05-25 06:33:44 +00:00
}