mirror of
https://github.com/yang991178/fluent-reader.git
synced 2025-02-26 16:37:46 +01:00
split up styles with import
This commit is contained in:
parent
798c26bed9
commit
378c74c98b
2
dist/article/article.css
vendored
2
dist/article/article.css
vendored
@ -1,3 +1,5 @@
|
||||
@import "../styles/scroll.css";
|
||||
|
||||
html, body {
|
||||
font-family: "Segoe UI", "Source Han Sans SC Regular", "Microsoft YaHei", sans-serif;
|
||||
}
|
||||
|
1
dist/article/article.html
vendored
1
dist/article/article.html
vendored
@ -5,7 +5,6 @@
|
||||
<meta http-equiv="Content-Security-Policy"
|
||||
content="default-src 'none'; script-src-elem 'sha256-iiXdy1GW3jlpYWJzQD+GvmCWg6e+JhQDFjBmllOw8JM='; img-src http://* https://*; style-src 'self' 'unsafe-inline'; frame-src http://* https://*; media-src http://* https://*">
|
||||
<title>Article</title>
|
||||
<link rel="stylesheet" href="scroll.css" />
|
||||
<link rel="stylesheet" href="article.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
6
dist/index.css
vendored
Normal file
6
dist/index.css
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
@import "styles/scroll.css";
|
||||
@import "styles/global.css";
|
||||
@import "styles/main.css";
|
||||
@import "styles/feeds.css";
|
||||
@import "styles/cards.css";
|
||||
@import "styles/dark.css";
|
912
dist/styles.css
vendored
912
dist/styles.css
vendored
@ -1,912 +0,0 @@
|
||||
: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;
|
||||
--navHeight: 32px;
|
||||
}
|
||||
@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;
|
||||
}
|
||||
}
|
||||
body.darwin {
|
||||
--navHeight: 38px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background-color: transparent;
|
||||
font-family: "Segoe UI", "Source Han Sans SC Regular", "Microsoft YaHei", sans-serif;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
#root {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ms-ContextualMenu-link, .ms-Button, .ms-ContextualMenu-item button {
|
||||
cursor: default;
|
||||
font-size: 13px;
|
||||
user-select: none;
|
||||
}
|
||||
.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: var(--navHeight);
|
||||
-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: var(--navHeight);
|
||||
vertical-align: top;
|
||||
letter-spacing: 2px;
|
||||
margin: 0 4px;
|
||||
display: inline-block;
|
||||
max-width: 280px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
color: var(--black);
|
||||
}
|
||||
body.darwin #root > nav span.title {
|
||||
max-width: 220px;
|
||||
}
|
||||
.btn-group {
|
||||
display: inline-block;
|
||||
user-select: none;
|
||||
-webkit-app-region: none;
|
||||
}
|
||||
.btn-group .seperator {
|
||||
display: inline-block;
|
||||
width: var(--navHeight);
|
||||
font-size: 12px;
|
||||
color: #c8c6c4;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
body.darwin .btn-group .seperator {
|
||||
display: none;
|
||||
}
|
||||
.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, .menu .btn-group .btn {
|
||||
height: var(--navHeight);
|
||||
line-height: var(--navHeight);
|
||||
}
|
||||
body.darwin #root > nav .btn-group .btn:first-of-type {
|
||||
margin-left: 72px;
|
||||
}
|
||||
#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 {
|
||||
color: var(--white);
|
||||
}
|
||||
nav.item-on .btn-group .btn.system {
|
||||
color: var(--whiteConstant);
|
||||
}
|
||||
.btn-group .btn:hover, .ms-Nav-compositeLink:hover {
|
||||
background-color: #0001;
|
||||
}
|
||||
.btn-group .btn:active, .ms-Nav-compositeLink:active {
|
||||
background-color: #0002;
|
||||
}
|
||||
.ms-Nav-compositeLink:hover .ms-Nav-link {
|
||||
background: none;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
body.darwin .btn-group .btn.system {
|
||||
display: none;
|
||||
}
|
||||
.qr-container {
|
||||
height: 150px;
|
||||
padding: 7px;
|
||||
margin: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
body.darwin .menu .btn-group {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.menu-container .menu .nav-wrapper {
|
||||
max-height: calc(100% - var(--navHeight));
|
||||
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: 7;
|
||||
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);
|
||||
overflow: hidden;
|
||||
}
|
||||
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: 8;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.tab-body .ms-CommandBar {
|
||||
padding: 0;
|
||||
}
|
||||
img.favicon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: middle;
|
||||
user-select: none;
|
||||
}
|
||||
img.favicon.dropdown {
|
||||
margin-right: 8px;
|
||||
vertical-align: sub;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.settings-rules-icons i {
|
||||
color: var(--black);
|
||||
user-select: none;
|
||||
}
|
||||
.settings-rules-icons i:last-of-type {
|
||||
color: var(--neutralSecondary);
|
||||
}
|
||||
|
||||
.main {
|
||||
margin-top: calc(-1 * var(--navHeight));
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background-color: var(--neutralLighterAlt);
|
||||
}
|
||||
.main::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: sticky;
|
||||
top: var(--navHeight);
|
||||
left: 0;
|
||||
width: calc(100% - 16px);
|
||||
height: var(--navHeight);
|
||||
margin-bottom: calc(-1 * var(--navHeight));
|
||||
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: calc(var(--navHeight) - 4px);
|
||||
box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108);
|
||||
}
|
||||
body.darwin .article-search {
|
||||
left: 108px;
|
||||
max-width: calc(100% - 384px);
|
||||
}
|
||||
.list-main .article-search {
|
||||
max-width: 294px;
|
||||
margin: 4px 10px;
|
||||
}
|
||||
body.darwin .list-main .article-search {
|
||||
max-width: 314px;
|
||||
left: 0;
|
||||
top: var(--navHeight);
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
@media (min-width: 1441px) {
|
||||
#root > nav.menu-on {
|
||||
padding-left: 296px;
|
||||
}
|
||||
#root > nav.menu-on span.title, body.darwin #root > nav.menu-on span.title {
|
||||
max-width: 300px;
|
||||
}
|
||||
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;
|
||||
background: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
.menu-container .menu {
|
||||
background-color: var(--neutralLight);
|
||||
}
|
||||
body.darwin .menu-container .menu {
|
||||
background: none;
|
||||
}
|
||||
body.darwin .menu-container .menu.item-on {
|
||||
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);
|
||||
}
|
||||
body.darwin .menu-on .article-search {
|
||||
left: 280px;
|
||||
max-width: calc(100% - 556px);
|
||||
}
|
||||
.list-main.menu-on .article-search {
|
||||
left: 0;
|
||||
width: 330px;
|
||||
}
|
||||
body.darwin .list-main.menu-on .article-search {
|
||||
left: 0;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
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, .side-logo-wrapper {
|
||||
flex-grow: 1;
|
||||
padding-top: var(--navHeight);
|
||||
height: calc(100% - var(--navHeight));
|
||||
background: var(--white);
|
||||
}
|
||||
.side-logo-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.side-logo-wrapper > img {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
.side-logo-wrapper > img.dark {
|
||||
display: none;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.side-logo-wrapper > img.light {
|
||||
display: none;
|
||||
}
|
||||
.side-logo-wrapper > img.dark {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
.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: calc(var(--navHeight) - 1px);
|
||||
}
|
||||
|
||||
.list-main {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
margin-top: calc(-1 * var(--navHeight));
|
||||
overflow: hidden;
|
||||
background: var(--white);
|
||||
}
|
||||
.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: var(--navHeight);
|
||||
height: calc(100% - var(--navHeight));
|
||||
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;
|
||||
height: calc(100% - 56px);
|
||||
overflow: hidden scroll;
|
||||
margin-top: var(--navHeight);
|
||||
}
|
||||
.cards-feed-container .ms-List-page {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.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:focus, .list-card:focus {
|
||||
outline: none;
|
||||
}
|
||||
.card:hover, .ms-Fabric--isFocusVisible .card:focus {
|
||||
box-shadow: #0006 0px 5px 40px;
|
||||
}
|
||||
.ms-Fabric--isFocusVisible .card:focus::after, .ms-Fabric--isFocusVisible .list-card:focus::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: calc(100% - 6px);
|
||||
height: calc(100% - 6px);
|
||||
border: 1px solid var(--white);
|
||||
outline: 2px solid #0078d4;
|
||||
}
|
||||
.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,
|
||||
.ms-Fabric--isFocusVisible .card.transform:focus img.head,
|
||||
.ms-Fabric--isFocusVisible .card.transform:focus p,
|
||||
.ms-Fabric--isFocusVisible .card.transform:focus 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, .ms-Fabric--isFocusVisible .list-card:focus {
|
||||
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, .ms-Nav-compositeLink:hover {
|
||||
background-color: #fff1;
|
||||
}
|
||||
.btn-group .btn:active, .ms-Nav-compositeLink: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;
|
||||
}
|
||||
}
|
205
dist/styles/cards.css
vendored
Normal file
205
dist/styles/cards.css
vendored
Normal file
@ -0,0 +1,205 @@
|
||||
.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:focus, .list-card:focus {
|
||||
outline: none;
|
||||
}
|
||||
.card:hover, .ms-Fabric--isFocusVisible .card:focus {
|
||||
box-shadow: #0006 0px 5px 40px;
|
||||
}
|
||||
.ms-Fabric--isFocusVisible .card:focus::after, .ms-Fabric--isFocusVisible .list-card:focus::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: calc(100% - 6px);
|
||||
height: calc(100% - 6px);
|
||||
border: 1px solid var(--white);
|
||||
outline: 2px solid #0078d4;
|
||||
}
|
||||
.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,
|
||||
.ms-Fabric--isFocusVisible .card.transform:focus img.head,
|
||||
.ms-Fabric--isFocusVisible .card.transform:focus p,
|
||||
.ms-Fabric--isFocusVisible .card.transform:focus 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, .ms-Fabric--isFocusVisible .list-card:focus {
|
||||
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;
|
||||
}
|
29
dist/styles/dark.css
vendored
Normal file
29
dist/styles/dark.css
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.ms-Button--commandBar.active .ms-Button-icon {
|
||||
color: #c7e0f4;
|
||||
}
|
||||
.btn-group .btn:hover, .ms-Nav-compositeLink:hover {
|
||||
background-color: #fff1;
|
||||
}
|
||||
.btn-group .btn:active, .ms-Nav-compositeLink: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;
|
||||
}
|
||||
}
|
167
dist/styles/feeds.css
vendored
Normal file
167
dist/styles/feeds.css
vendored
Normal file
@ -0,0 +1,167 @@
|
||||
.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, .side-logo-wrapper {
|
||||
flex-grow: 1;
|
||||
padding-top: var(--navHeight);
|
||||
height: calc(100% - var(--navHeight));
|
||||
background: var(--white);
|
||||
}
|
||||
.side-logo-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.side-logo-wrapper > img {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
.side-logo-wrapper > img.dark {
|
||||
display: none;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.side-logo-wrapper > img.light {
|
||||
display: none;
|
||||
}
|
||||
.side-logo-wrapper > img.dark {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
.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: calc(var(--navHeight) - 1px);
|
||||
}
|
||||
|
||||
.list-main {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
margin-top: calc(-1 * var(--navHeight));
|
||||
overflow: hidden;
|
||||
background: var(--white);
|
||||
}
|
||||
.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: var(--navHeight);
|
||||
height: calc(100% - var(--navHeight));
|
||||
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;
|
||||
height: calc(100% - 56px);
|
||||
overflow: hidden scroll;
|
||||
margin-top: var(--navHeight);
|
||||
}
|
||||
.cards-feed-container .ms-List-page {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.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;
|
||||
user-select: none;
|
||||
}
|
237
dist/styles/global.css
vendored
Normal file
237
dist/styles/global.css
vendored
Normal file
@ -0,0 +1,237 @@
|
||||
: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;
|
||||
--navHeight: 32px;
|
||||
}
|
||||
@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;
|
||||
}
|
||||
}
|
||||
body.darwin {
|
||||
--navHeight: 38px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background-color: transparent;
|
||||
font-family: "Segoe UI", "Source Han Sans SC Regular", "Microsoft YaHei", sans-serif;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
#root {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ms-ContextualMenu-link, .ms-Button, .ms-ContextualMenu-item button {
|
||||
cursor: default;
|
||||
font-size: 13px;
|
||||
user-select: none;
|
||||
}
|
||||
.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: var(--navHeight);
|
||||
-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: var(--navHeight);
|
||||
vertical-align: top;
|
||||
letter-spacing: 2px;
|
||||
margin: 0 4px;
|
||||
display: inline-block;
|
||||
max-width: 280px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
color: var(--black);
|
||||
}
|
||||
body.darwin #root > nav span.title {
|
||||
max-width: 220px;
|
||||
}
|
||||
.btn-group {
|
||||
display: inline-block;
|
||||
user-select: none;
|
||||
-webkit-app-region: none;
|
||||
}
|
||||
.btn-group .seperator {
|
||||
display: inline-block;
|
||||
width: var(--navHeight);
|
||||
font-size: 12px;
|
||||
color: #c8c6c4;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
body.darwin .btn-group .seperator {
|
||||
display: none;
|
||||
}
|
||||
.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, .menu .btn-group .btn {
|
||||
height: var(--navHeight);
|
||||
line-height: var(--navHeight);
|
||||
}
|
||||
body.darwin #root > nav .btn-group .btn:first-of-type {
|
||||
margin-left: 72px;
|
||||
}
|
||||
#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 {
|
||||
color: var(--white);
|
||||
}
|
||||
nav.item-on .btn-group .btn.system {
|
||||
color: var(--whiteConstant);
|
||||
}
|
||||
.btn-group .btn:hover, .ms-Nav-compositeLink:hover {
|
||||
background-color: #0001;
|
||||
}
|
||||
.btn-group .btn:active, .ms-Nav-compositeLink:active {
|
||||
background-color: #0002;
|
||||
}
|
||||
.ms-Nav-compositeLink:hover .ms-Nav-link {
|
||||
background: none;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
body.darwin .btn-group .btn.system {
|
||||
display: none;
|
||||
}
|
271
dist/styles/main.css
vendored
Normal file
271
dist/styles/main.css
vendored
Normal file
@ -0,0 +1,271 @@
|
||||
.qr-container {
|
||||
height: 150px;
|
||||
padding: 7px;
|
||||
margin: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
body.darwin .menu .btn-group {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.menu-container .menu .nav-wrapper {
|
||||
max-height: calc(100% - var(--navHeight));
|
||||
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: 7;
|
||||
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);
|
||||
overflow: hidden;
|
||||
}
|
||||
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: 8;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.tab-body .ms-CommandBar {
|
||||
padding: 0;
|
||||
}
|
||||
img.favicon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
vertical-align: middle;
|
||||
user-select: none;
|
||||
}
|
||||
img.favicon.dropdown {
|
||||
margin-right: 8px;
|
||||
vertical-align: sub;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.settings-rules-icons i {
|
||||
color: var(--black);
|
||||
user-select: none;
|
||||
}
|
||||
.settings-rules-icons i:last-of-type {
|
||||
color: var(--neutralSecondary);
|
||||
}
|
||||
|
||||
.main {
|
||||
margin-top: calc(-1 * var(--navHeight));
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background-color: var(--neutralLighterAlt);
|
||||
}
|
||||
.main::before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: sticky;
|
||||
top: var(--navHeight);
|
||||
left: 0;
|
||||
width: calc(100% - 16px);
|
||||
height: var(--navHeight);
|
||||
margin-bottom: calc(-1 * var(--navHeight));
|
||||
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: calc(var(--navHeight) - 4px);
|
||||
box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108);
|
||||
}
|
||||
body.darwin .article-search {
|
||||
left: 108px;
|
||||
max-width: calc(100% - 384px);
|
||||
}
|
||||
.list-main .article-search {
|
||||
max-width: 294px;
|
||||
margin: 4px 10px;
|
||||
}
|
||||
body.darwin .list-main .article-search {
|
||||
max-width: 314px;
|
||||
left: 0;
|
||||
top: var(--navHeight);
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
@media (min-width: 1441px) {
|
||||
#root > nav.menu-on {
|
||||
padding-left: 296px;
|
||||
}
|
||||
#root > nav.menu-on span.title, body.darwin #root > nav.menu-on span.title {
|
||||
max-width: 300px;
|
||||
}
|
||||
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;
|
||||
background: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
.menu-container .menu {
|
||||
background-color: var(--neutralLight);
|
||||
}
|
||||
body.darwin .menu-container .menu {
|
||||
background: none;
|
||||
}
|
||||
body.darwin .menu-container .menu.item-on {
|
||||
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);
|
||||
}
|
||||
body.darwin .menu-on .article-search {
|
||||
left: 280px;
|
||||
max-width: calc(100% - 556px);
|
||||
}
|
||||
.list-main.menu-on .article-search {
|
||||
left: 0;
|
||||
width: 330px;
|
||||
}
|
||||
body.darwin .list-main.menu-on .article-search {
|
||||
left: 0;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
@ -4,8 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src-elem 'self'; img-src *; style-src 'self' 'unsafe-inline'; font-src 'self' https://static2.sharepointonline.com; connect-src https://* http://*">
|
||||
<title>Fluent Reader</title>
|
||||
<link rel="stylesheet" href="article/scroll.css">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" style="height: 100%;"></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user