mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style: update mobile UI spacing, colors
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
.mobileBoardButtons {
|
.mobileBoardButtons {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 10px;
|
}
|
||||||
|
|
||||||
|
.addMargin {
|
||||||
|
margin-bottom: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobileBoardButtons button {
|
.mobileBoardButtons button {
|
||||||
margin: 0 2px;
|
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
|
margin: 5px 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobileBoardButtons a, .desktopBoardButtons a {
|
.mobileBoardButtons a, .desktopBoardButtons a {
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ export const MobileBoardButtons = () => {
|
|||||||
const subplebbitAddress = params?.subplebbitAddress || accountComment?.subplebbitAddress;
|
const subplebbitAddress = params?.subplebbitAddress || accountComment?.subplebbitAddress;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.mobileBoardButtons}>
|
<div className={`${styles.mobileBoardButtons} ${!isInCatalogView ? styles.addMargin : ''}`}>
|
||||||
<div className={styles.adButton}>
|
<div className={styles.adButton}>
|
||||||
[
|
[
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
@@ -40,8 +40,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
.bannerCnt {
|
.boardTitle {
|
||||||
padding-top: 35px;
|
padding-top: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { getFormattedTimeAgo } from '../../lib/utils/time-utils';
|
|||||||
import { isAllView, isSubscriptionsView } from '../../lib/utils/view-utils';
|
import { isAllView, isSubscriptionsView } from '../../lib/utils/view-utils';
|
||||||
import styles from './board-header.module.css';
|
import styles from './board-header.module.css';
|
||||||
import { useMultisubMetadata } from '../../hooks/use-default-subplebbits';
|
import { useMultisubMetadata } from '../../hooks/use-default-subplebbits';
|
||||||
|
import useIsMobile from '../../hooks/use-is-mobile';
|
||||||
|
|
||||||
const totalBanners = 59;
|
const totalBanners = 59;
|
||||||
|
|
||||||
@@ -45,9 +46,11 @@ const BoardHeader = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
<div className={styles.bannerCnt}>
|
{!useIsMobile() && (
|
||||||
<ImageBanner key={isInAllView ? 'all' : isInSubscriptionsView ? 'subscriptions' : address} />
|
<div className={styles.bannerCnt}>
|
||||||
</div>
|
<ImageBanner key={isInAllView ? 'all' : isInSubscriptionsView ? 'subscriptions' : address} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className={styles.boardTitle}>
|
<div className={styles.boardTitle}>
|
||||||
{title || `p/${shortAddress || subplebbitAddress}`}
|
{title || `p/${shortAddress || subplebbitAddress}`}
|
||||||
{isBoardOffline && <span className={styles.offlineIcon} title={offlineMessage} />}
|
{isBoardOffline && <span className={styles.offlineIcon} title={offlineMessage} />}
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
background-color: var(--topbar-mobile-background-color);
|
background-color: var(--topbar-mobile-background-color);
|
||||||
border-bottom: var(--topbar-mobile-border-bottom);
|
border-bottom: var(--topbar-mobile-border-bottom);
|
||||||
font-size: var(--topbar-mobile-font-size);
|
font-size: var(--topbar-mobile-font-size);
|
||||||
|
color: var(--topbar-mobile-button-text-color);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
@@ -72,6 +73,7 @@
|
|||||||
|
|
||||||
.boardSelect {
|
.boardSelect {
|
||||||
float: left;
|
float: left;
|
||||||
|
color: var(--homepage-box-link-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pageJump {
|
.pageJump {
|
||||||
@@ -81,8 +83,8 @@
|
|||||||
|
|
||||||
.pageJump a, .pageJump span {
|
.pageJump a, .pageJump span {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
color: var(--homepage-box-link-text-color);
|
|
||||||
text-decoration: var(--homepage-box-link-text-decoration);
|
text-decoration: var(--homepage-box-link-text-decoration);
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
|||||||
@@ -19,6 +19,10 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.filtersButton {
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
|
||||||
.modal label, .modal button, .modal select {
|
.modal label, .modal button, .modal select {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ const CatalogFilters = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<span className='button' onClick={() => setShowModal(true)}>
|
<span className={`${styles.filtersButton} button`} onClick={() => setShowModal(true)}>
|
||||||
{t('filters')}
|
{t('filters')}
|
||||||
</span>
|
</span>
|
||||||
{showModal && <FiltersModal closeModal={closeModal} />}
|
{showModal && <FiltersModal closeModal={closeModal} />}
|
||||||
|
|||||||
Reference in New Issue
Block a user