FluentReader/dist/styles.css

783 lines
16 KiB
CSS

:root {
--neutralLighterAlt: #faf9f8;
--neutralLighter: #f3f2f1;
--neutralLight: #edebe9;
--neutralQuaternaryAlt: #e1dfdd;
--neutralQuaternary: #d2d0ce;
--neutralTertiaryAlt: #c8c6c4;
--neutralTertiary: #a19f9d;
--neutralSecondaryAlt: #8a8886;
--neutralSecondary: #605e5c;
--neutralPrimaryAlt: #3b3a39;
--neutralPrimary: #323130;
--neutralDark: #201f1e;
--neutralDarker: #161514;
--black: #000;
--white: #fff;
--whiteConstant: #fff;
}
@media (prefers-color-scheme: dark) {
:root {
--neutralLighterAlt: #282828;
--neutralLighter: #313131;
--neutralLight: #3f3f3f;
--neutralQuaternaryAlt: #484848;
--neutralQuaternary: #4f4f4f;
--neutralTertiaryAlt: #6d6d6d;
--neutralTertiary: #c8c8c8;
--neutralSecondaryAlt: #d2d0ce;
--neutralSecondary: #d0d0d0;
--neutralPrimaryAlt: #dadada;
--neutralPrimary: #ffffff;
--neutralDark: #f4f4f4;
--neutralDarker: #f4f4f4;
--black: #f8f8f8;
--white: #1f1f1f;
--whiteConstant: #f8f8f8;
}
}
html, body {
background-color: transparent;
font-family: "Segoe UI Regular", "Source Han Sans SC Regular", "Microsoft YaHei", sans-serif;
height: 100%;
overflow: hidden;
margin: 0;
}
body {
background-color: var(--neutralLighterAlt);
}
#root {
height: 100%;
}
.ms-ContextualMenu-link, .ms-Button {
cursor: default;
font-size: 13px;
}
.ms-Nav-link, .ms-Nav-chevronButton {
font-size: 12px;
line-height: 32px;
height: 32px;
background-color: transparent;
color: var(--neutralPrimary);
}
.ms-Button--primary.danger {
background: #d13438;
border-color: #d13438;
}
.ms-Button--primary.danger:hover {
background: #ba2d32;
border-color: #ba2d32;
}
.ms-Button--primary.danger:active {
background: #a4262c;
border-color: #a4262c;
}
.ms-Button--primary.danger.is-disabled {
background: var(--neutralLighter);
border-color: var(--neutralLighter);
}
.ms-Button--commandBar.active {
background-color: var(--neutralLight);
color: var(--neutralDark);
}
.ms-Button--commandBar.active .ms-Button-icon {
color: #005a9e;
}
i.ms-Nav-chevron {
line-height: 32px;
height: 32px;
}
.ms-Nav-groupContent {
margin-bottom: 24px;
}
.ms-ActivityItem-activityTypeIcon, .ms-ActivityItem-timeStamp {
user-select: none;
}
.ms-Label, .ms-Spinner-label {
user-select: none;
}
.ms-ActivityItem, .ms-ActivityItem-commentText {
color: var(--neutralSecondary);
}
.ms-ActivityItem-timeStamp {
color: var(--neutralSecondaryAlt);
}
#root > nav {
height: 32px;
-webkit-app-region: drag;
user-select: none;
overflow: hidden;
}
#root > nav .btn, #root > nav span {
z-index: 1;
position: relative;
}
nav .progress {
position: fixed;
top: 0;
left: 0;
z-index: 10;
width: 100%;
height: 2px;
overflow: hidden;
}
.ms-ProgressIndicator-itemProgress {
padding: 0;
}
.ms-ProgressIndicator-progressTrack {
background: none;
}
#root > nav span.title {
font-size: 12px;
line-height: 32px;
vertical-align: top;
letter-spacing: 2px;
margin: 0 4px;
display: inline-block;
max-width: 300px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
color: var(--black);
}
.btn-group {
display: inline-block;
user-select: none;
-webkit-app-region: none;
}
.btn-group .seperator {
display: inline-block;
width: 32px;
font-size: 12px;
color: #c8c6c4;
text-align: center;
vertical-align: middle;
}
.btn-group .seperator::before {
content: "|";
}
.btn-group .btn {
display: inline-block;
width: 48px;
height: 32px;
text-decoration: none;
text-align: center;
line-height: 32px;
color: var(--black);
font-size: 14px;
vertical-align: top;
}
#root > nav .btn-group .btn.system {
position: relative;
z-index: 10;
}
nav.menu-on .btn-group .btn, nav.hide-btns .btn-group .btn {
display: none;
}
nav.menu-on .btn-group .btn.system, nav.hide-btns .btn-group .btn.system {
display: inline-block;
}
nav.menu-on .btn-group .btn.system, nav.item-on .btn-group .btn.system {
color: var(--white);
}
.btn-group .btn:hover {
background-color: #0001;
}
.btn-group .btn:active {
background-color: #0002;
}
.btn-group .btn.disabled, .btn-group .btn.fetching {
background-color: unset !important;
color: var(--neutralSecondaryAlt);
}
.btn-group .btn.fetching {
animation: rotating linear 1.5s infinite;
}
@keyframes rotating {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.btn-group .btn.close:hover {
background-color: #e81123;
color: var(--whiteConstant) !important;
}
.btn-group .btn.close:active {
background-color: #f1707a;
color: var(--whiteConstant) !important;
}
.btn-group .btn.inline-block-wide {
display: none;
}
.menu-container, .article-container {
position: fixed;
z-index: 5;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #0008;
backdrop-filter: saturate(150%) blur(20px);
}
.article-container {
z-index: 6;
}
.menu-container .menu {
position: absolute;
left: 0;
top: 0;
width: 280px;
height: 100%;
background-color: var(--neutralLighterAlt);
}
.menu-container .menu .nav-wrapper {
max-height: calc(100% - 32px);
overflow: hidden auto;
}
.menu-container .menu p.subs-header {
font-size: 12px;
color: var(--neutralSecondaryAlt);
margin: 2px 8px;
user-select: none;
}
.menu .link-stack {
overflow: hidden;
}
.menu .link-text {
margin-top: 0px;
margin-right: 4px;
margin-bottom: 0px;
margin-left: 4px;
text-align: left;
text-overflow: ellipsis;
overflow: hidden;
flex-grow: 1;
}
.menu .unread-count {
color: var(--neutralSecondary);
}
.settings-container {
position: fixed;
z-index: 5;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: var(--neutralLight);
overflow: hidden;
}
.settings-container .settings {
margin: 64px auto 0;
width: 680px;
height: calc(100% - 64px);
background-color: var(--white);
box-shadow: 0 6.4px 14.4px 0 rgba(0,0,0,.132), 0 1.2px 3.6px 0 rgba(0,0,0,.108);
}
div[role="toolbar"] {
height: 100%;
}
div[role="tabpanel"] {
height: calc(100% - 44px);
padding: 12px 16px;
overflow-y: auto;
position: relative;
}
.settings .loading {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #fffa;
z-index: 6;
}
.settings .loading .ms-Spinner {
margin-top: 180px;
}
.tab-body {
margin-bottom: 24px;
}
.tab-body .ms-StackItem {
margin-right: 6px;
margin-bottom: 12px;
}
.tab-body .ms-StackItem:last-child {
margin-right: 0;
}
.tab-body .ms-ChoiceFieldGroup {
margin-bottom: 20px;
}
img.favicon {
width: 16px;
height: 16px;
vertical-align: middle;
user-select: none;
}
.ms-DetailsList-contentWrapper {
max-height: 400px;
overflow-x: hidden;
overflow-y: auto;
margin-bottom: 16px;
}
.settings-hint {
user-select: none;
line-height: 32px;
font-size: 12px;
color: var(--neutralSecondary);
}
.settings-hint.up {
position: relative;
top: -12px;
line-height: unset;
}
.settings-about {
margin: 72px 0;
color: var(--black);
}
.settings-about > * {
margin: 0 !important;
-webkit-user-drag: none;
}
.main {
height: calc(100% - 32px);
overflow-y: scroll;
}
.main::before {
content: "";
display: block;
position: sticky;
top: 0;
left: 0;
width: 100%;
height: 32px;
margin-bottom: -32px;
background: linear-gradient(var(--neutralLighterAlt), #faf9f800);
z-index: 1;
}
.article-search {
z-index: 4;
position: absolute;
top:0;
left: 36px;
width: 100%;
max-width: calc(100% - 484px);
margin: 4px 16px;
border: none;
-webkit-app-region: none;
height: 28px;
box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108);
}
@media (min-width: 1441px) {
#root > nav.menu-on {
padding-left: 296px;
}
nav.menu-on .btn-group .btn {
display: inline-block;
}
nav.menu-on .btn-group .btn.system {
color: var(--black);
}
nav.item-on .btn-group .btn.system {
color: var(--whiteConstant);
}
.menu-container {
width: 280px;
}
.menu-container .menu {
background-color: var(--neutralLight);
}
.menu-container .menu::after {
content: "";
display: block;
pointer-events: none;
position: absolute;
top: -10%;
right: 0;
width: 120%;
height: 120%;
box-shadow: inset 5px 0 25px #0004;
}
.main.menu-on, .list-main.menu-on {
margin-left: 280px;
}
.menu-on .article-search {
left: 280px;
max-width: calc(100% - 728px);
}
nav.hide-btns .btn-group .btn, nav.menu-on .btn-group .btn.hide-wide, .menu .btn-group .btn.hide-wide {
display: none;
}
.btn-group .btn.inline-block-wide {
display: inline-block;
}
}
.article-wrapper {
margin: 32px auto 0;
width: 860px;
height: calc(100% - 50px);
background-color: var(--white);
box-shadow: 0 6.4px 14.4px 0 rgba(0,0,0,.132), 0 1.2px 3.6px 0 rgba(0,0,0,.108);
border-radius: 5px;
overflow: hidden;
}
.article-container .btn-group .btn {
color: #fff;
}
.article-container .btn-group {
position: absolute;
top: calc(50% - 32px)
}
.article-container .btn-group.prev {
left: calc(50% - 486px);
}
.article-container .btn-group.next {
right: calc(50% - 486px);
}
.article {
height: 100%;
}
.article webview {
width: 100%;
height: calc(100% - 36px);
border: none;
}
.article i.ms-Icon {
color: var(--neutralDarker);
}
.article .actions {
color: var(--black);
border-bottom: 1px solid var(--neutralQuaternaryAlt);
}
.article .actions .favicon {
margin-right: 8px;
}
.article .actions .source-name {
line-height: 35px;
user-select: none;
max-width: 280px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
}
.side-article-wrapper {
flex-grow: 1;
padding-top: 32px;
height: calc(100% - 32px);
background: var(--white);
}
.side-article-wrapper .article {
display: flex;
flex-direction: column-reverse;
}
.side-article-wrapper .article .actions {
border-bottom: none;
}
.side-article-wrapper .article > .ms-Stack {
border-top: 1px solid var(--neutralQuaternaryAlt);
}
.list-feed-container:first-child::before, .side-article-wrapper::before {
content: "";
display: block;
width: 100%;
border-bottom: 1px solid var(--neutralQuaternaryAlt);
position: absolute;
top: 31px;
}
.list-main {
display: flex;
flex-wrap: wrap;
height: 100%;
position: relative;
margin-top: -32px;
overflow: hidden;
background: var(--white);
}
.list-main .article-search {
left: 0;
max-width: 330px;
margin: 4px 10px;
}
.list-feed-container {
width: 350px;
background-color: var(--neutralLighterAlt);
height: 100%;
position: relative;
}
.list-feed-container::after {
content: "";
display: block;
pointer-events: none;
position: absolute;
top: -10%;
right: 0;
width: 120%;
height: 120%;
box-shadow: inset 5px 0 25px #0004;
}
.list-feed {
margin-top: 32px;
height: calc(100% - 32px);
overflow: hidden scroll;
position: relative;
}
.list-feed > div.load-more-wrapper {
text-align: center;
padding: 16px 0;
}
.cards-feed-container {
display: inline-flex;
flex-wrap: wrap;
justify-content: space-around;
padding: 12px;
}
.cards-feed-container > div.load-more-wrapper, .flex-fix {
text-align: center;
}
.cards-feed-container > div.load-more-wrapper {
width: 100%;
margin: 16px 0;
}
.flex-fix {
min-width: 280px;
}
.cards-feed-container > .empty, .list-feed > .empty {
width: 100%;
height: calc(100vh - 64px);
display: flex;
justify-content: space-around;
align-items: center;
color: var(--neutralSecondary);
font-size: 14px;
}
.info {
position: relative;
margin: 10px 12px;
line-height: 16px;
}
.info img {
width: 16px;
height: 16px;
margin-right: 5px;
}
.info span.name {
font-size: 12px;
vertical-align: top;
display: inline-block;
max-width: 144px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.info span.time {
float: right;
font-size: 12px;
}
.read-indicator, .starred-indicator {
display: block;
width: 16px;
height: 16px;
float: right;
text-align: center;
}
.read-indicator::after {
content: "";
vertical-align: top;
display: inline-block;
width: 6px;
height: 6px;
margin: 5px;
border-radius: 3px;
background-color: #ffaa44;
font-size: 10px;
box-sizing: border-box;
}
.starred-indicator::after {
content: "★";
vertical-align: top;
color: #ffaa44;
font-size: 11px;
line-height: 16px;
}
.card {
display: inline-block;
position: relative;
width: 256px;
height: 264px;
border-radius: 4px;
background-color: var(--white);
overflow: hidden;
box-shadow: #0004 0px 5px 20px;
margin: 18px 12px;
color: var(--neutralDarker);
user-select: none;
transition: box-shadow linear .08s;
transform: scale(1);
cursor: pointer;
animation-fill-mode: none;
}
.card:hover {
box-shadow: #0006 0px 5px 40px;
}
.card:active {
transform: scale(.97);
}
.card .bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.card img.bg {
object-fit: cover;
filter: saturate(150%) blur(20px);
}
.card div.bg {
background-color: #fffb;
}
.card img.head {
display: block;
object-fit: cover;
position: relative;
width: 100%;
height: 144px;
-webkit-user-drag: none;
}
.card img.head, .card p, .card h3 {
transition: transform ease-out .12s;
}
.card.transform:hover img.head, .card.transform:hover p, .card.transform:hover h3 {
transform: translateY(-144px);
}
.card h3.title {
font-size: 16px;
line-height: 22px;
font-weight: 600;
margin: 10px 12px;
position: relative;
-webkit-line-clamp: 3;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.card p.snippet {
font-size: 14px;
line-height: 20px;
margin: 10px 12px;
display: -webkit-box;
position: relative;
-webkit-line-clamp: 7;
-webkit-box-orient: vertical;
overflow: hidden;
transform: translateY(64px);
}
.card:hover p.snippet {
transform: translateY(-144px);
}
.card p.snippet.show {
transform: none;
}
.card.hidden::after, .list-card.hidden::after {
content: "";
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: #0004;
}
.list-card {
display: flex;
position: relative;
overflow: hidden;
color: var(--neutralDarker);
user-select: none;
transition: box-shadow linear .08s;
border-bottom: 1px solid var(--neutralQuaternaryAlt);
transform: scale(1);
cursor: pointer;
box-shadow: #0000 0px 5px 15px;
}
.list-card:hover {
box-shadow: #0004 0px 5px 15px;
}
.list-card:active {
box-shadow: #0000 0px 5px 15px, inset #0004 0px 0px 15px;
}
.list-card div.head {
width: 80px;
height: 80px;
margin: 8px 0 8px 10px;
}
.list-card div.head img {
width: 80px;
height: 80px;
object-fit: cover;
-webkit-user-drag: none;
}
.list-card .data {
flex-grow: 1;
}
.list-card .info {
margin: 8px 10px;
height: 16px;
}
.list-card h3.title {
font-size: 14px;
line-height: 18px;
font-weight: 600;
margin: 8px 10px;
position: relative;
-webkit-line-clamp: 3;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
}
@media (prefers-color-scheme: dark) {
.ms-Button--commandBar.active .ms-Button-icon {
color: #c7e0f4;
}
.btn-group .btn:hover {
background-color: #fff1;
}
.btn-group .btn:active {
background-color: #fff2;
}
.settings .loading {
background-color: #000a;
}
.card {
box-shadow: #0006 0px 5px 20px;
}
.card:hover {
box-shadow: #0008 0px 5px 40px;
}
.card div.bg {
background-color: #000b;
}
.list-card:hover {
box-shadow: #0006 0px 5px 15px;
}
.list-card:active {
box-shadow: #0000 0px 5px 15px, inset #0006 0px 0px 15px;
}
}