From 062ddda3d9fd8ba0d1891623112e62cdd01f6a74 Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Tue, 24 Jan 2023 10:46:44 -0800 Subject: [PATCH] Toggle posts only & mark all mail as read. --- css/styles.css | 16 ++++++++++------ css/utils.css | 13 +++++++++++-- css/vars.css | 2 +- index.html | 14 ++++++++++++-- js/event.js | 11 +++++++++++ js/main.js | 2 +- js/model.js | 10 ++-------- js/ui/state.js | 33 +++++++++++++++++++++++++++++++-- js/ui/util.js | 3 +++ js/util.js | 1 + 10 files changed, 83 insertions(+), 22 deletions(-) diff --git a/css/styles.css b/css/styles.css index 82e2987..f0f8559 100644 --- a/css/styles.css +++ b/css/styles.css @@ -208,13 +208,19 @@ button.nav > img.icon { font-weight: 800; display: block; } -#view > div > header > .pfp { - width: 32px; - height: 32px; +#header-tools { + display: flex; position: absolute; top: 15px; right: 15px; } +#header-tools > * { + margin-left: 15px; +} +#header-tools .pfp { + width: 32px; + height: 32px; +} /* Events & Content */ .events { @@ -328,21 +334,19 @@ button.nav > img.icon { .comment { word-break: break-word; } - .inline-img { width: 100%; max-height: 300px; object-fit: contain; } - .action-bar > button { margin-right: 25px; opacity: 0.5; } + .reactions { margin-bottom: 15px; } - .reaction-group { display: inline-flex; align-items: center; diff --git a/css/utils.css b/css/utils.css index cff54f3..df48f1f 100644 --- a/css/utils.css +++ b/css/utils.css @@ -16,7 +16,7 @@ button.action:disabled { cursor: default; - background-color: var(--clrTextLight); + opacity: 0.5; } button { background: #171717; @@ -38,10 +38,19 @@ button.action { border-radius: 50px; background: var(--clrBgAction); padding: 10px 15px; - font-size: 16px; + font-size: var(--fsNormal); color: var(--clrTextAction); font-weight: 800; } +button.action.small { + padding: 5px 15px; + font-size: var(--fsReduced); +} +button.action.bordered { + background: transparent; + border: solid 2px var(--clrBgAction); + color: var(--clrBgAction); +} img.icon { width: var(--iconSize); diff --git a/css/vars.css b/css/vars.css index abd2d39..ba11447 100644 --- a/css/vars.css +++ b/css/vars.css @@ -24,8 +24,8 @@ /* Font Sizes */ --fsSmall: 12px; - --fsNormal: 16px; --fsReduced: 14px; + --fsNormal: 16px; --fsEnlarged: 18px; /* Font Families */ diff --git a/index.html b/index.html index b8ced9a..91c0942 100644 --- a/index.html +++ b/index.html @@ -118,10 +118,20 @@
- + + + - +