mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add mobile button style
This commit is contained in:
@@ -1,15 +1,48 @@
|
||||
.togglePostForm {
|
||||
.postFormButtonDesktop {
|
||||
font-size: var(--post-form-toggle-font-size);
|
||||
font-weight: var(--post-form-toggle-font-weight);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.togglePostForm span {
|
||||
.postFormButtonDesktop span {
|
||||
color: var(--button-text-color);
|
||||
text-decoration: var(--button-text-decoration);
|
||||
}
|
||||
|
||||
.togglePostForm span:hover {
|
||||
.postFormButtonDesktop span:hover {
|
||||
cursor: pointer;
|
||||
color: var(--button-text-color-hover);
|
||||
}
|
||||
|
||||
.postFormButtonMobile {
|
||||
text-align: center;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.postFormButtonMobile span {
|
||||
font-size: var(--button-font-size-mobile);
|
||||
font-weight: var(--button-font-weight-mobile);
|
||||
font-family: var(--button-font-family-mobile);
|
||||
border-radius: 3px;
|
||||
padding: 5px 10px 5px;
|
||||
background-color: var(--button-background-color-mobile);
|
||||
color: var(--button-text-color-mobile);
|
||||
border: var(--button-border-mobile);
|
||||
background-image: var(--button-background-image-mobile);
|
||||
background-repeat: var(--button-background-repeat-mobile);
|
||||
text-decoration: var(--button-text-decoration-mobile);
|
||||
user-select: none;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.postFormButtonDesktop {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) {
|
||||
.postFormButtonMobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,14 @@ const PostForm = ({ address }: PostFormProps) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div className={styles.togglePostForm}>
|
||||
[<span>{t('start_new_thread')}</span>]
|
||||
</div>
|
||||
<>
|
||||
<div className={styles.postFormButtonDesktop}>
|
||||
[<span>{t('start_new_thread')}</span>]
|
||||
</div>
|
||||
<div className={styles.postFormButtonMobile}>
|
||||
<span>{t('start_new_thread')}</span>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user