fixs for light style

This commit is contained in:
Baptiste Lemoine 2020-02-05 17:58:51 +01:00
parent 895295e16e
commit d106a91363
6 changed files with 170 additions and 114 deletions

View File

@ -41,14 +41,19 @@ const messages = defineMessages({
unmute : { id: 'account.unmute', defaultMessage: 'Unmute @{name}' }, unmute : { id: 'account.unmute', defaultMessage: 'Unmute @{name}' },
unblock : { id: 'account.unblock', defaultMessage: 'Unblock @{name}' }, unblock : { id: 'account.unblock', defaultMessage: 'Unblock @{name}' },
}); });
const ObfuscateCountReplies = false;
const obfuscatedCount = count => { const obfuscatedCount = count => {
if (count < 0) { if (ObfuscateCountReplies) {
return 0;
} else if (count <= 1) { if (count < 0) {
return count; return 0;
} else if (count <= 1) {
return count;
} else {
return '1+';
}
} else { } else {
return '1+'; return count;
} }
}; };
@ -105,7 +110,7 @@ class StatusActionBar extends ImmutablePureComponent {
} }
}; };
handleReplyUnderClick = () => { handleReplyUnderClick = () => {
this.props.showReplyFormUnder = true; console.info('hop show');
}; };
handleShareClick = () => { handleShareClick = () => {
@ -235,6 +240,7 @@ class StatusActionBar extends ImmutablePureComponent {
render() { render() {
const { status, relationship, intl, withDismiss } = this.props; const { status, relationship, intl, withDismiss } = this.props;
console.log('this.props', this.props);
const mutingConversation = status.get('muted'); const mutingConversation = status.get('muted');
const anonymousAccess = !me; const anonymousAccess = !me;
const publicStatus = ['public', 'unlisted'].includes(status.get('visibility')); const publicStatus = ['public', 'unlisted'].includes(status.get('visibility'));
@ -374,25 +380,22 @@ class StatusActionBar extends ImmutablePureComponent {
return ( return (
<div className='status__action-bar'> <div className='status__action-bar'>
<div className='status__action-bar__counter'> <div className='status__action-bar__counter'>
<IconButton
className='status__action-bar-button'
title={replyTitle}
icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon}
onClick={this.handleReplyClick}
/>
<IconButton <IconButton
className='status__action-bar-button reply_under' className='status__action-bar-button reply_under'
title={replyTitle} title={replyTitle}
icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon} icon={status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) ? 'reply' : replyIcon}
onClick={this.handleReplyUnderClick} onClick={this.handleReplyUnderClick}
/> />
{this.props.showReplyFormUnder && ( {/*{this.state.showReplyFormUnder && (*/}
<span > {/* <span >*/}
yes {/* yes*/}
</span > {/* </span >*/}
)} {/*)}*/}
<span className='status__action-bar__counter__label'>{obfuscatedCount(status.get('replies_count'))}</span > {/*<span className='status__action-bar__counter__label'>{obfuscatedCount(status.get('replies_count'))}</span >*/}
<span className='status__action-bar__counter__label'>({status.get('replies_count')})</span > <span className='status__action-bar__counter__label'>
{obfuscatedCount(status.get('replies_count'))}
</span >
</div > </div >
<IconButton <IconButton
className='status__action-bar-button' className='status__action-bar-button'

View File

@ -1,32 +1,37 @@
@import 'bliss/variables'; //@import 'mastodon/variables';
@import 'bliss/mixins'; @import 'mastodon-light/variables';
@import 'bliss/variables'; @import 'application';
@import 'fonts/roboto'; @import 'mastodon-light/diff';
@import 'fonts/roboto-mono';
@import 'fonts/montserrat';
//@import 'bliss/variables';
@import 'bliss/reset'; //@import 'bliss/mixins';
@import 'bliss/messaging'; //@import 'fonts/roboto';
@import 'bliss/basics'; //@import 'fonts/roboto-mono';
@import 'bliss/containers'; //@import 'fonts/montserrat';
@import 'bliss/lists'; //
@import 'bliss/footer'; //@import 'bliss/reset';
@import 'bliss/compact_header'; //@import 'bliss/messaging';
@import 'bliss/widgets'; //@import 'bliss/basics';
@import 'bliss/forms'; //@import 'bliss/containers';
@import 'bliss/accounts'; //@import 'bliss/lists';
@import 'bliss/statuses'; //@import 'bliss/footer';
@import 'bliss/boost'; //@import 'bliss/compact_header';
@import 'bliss/components'; //@import 'bliss/widgets';
@import 'bliss/polls'; //@import 'bliss/forms';
@import 'bliss/introduction'; //@import 'bliss/accounts';
@import 'bliss/modal'; //@import 'bliss/statuses';
@import 'bliss/emoji_picker'; //@import 'bliss/boost';
@import 'bliss/about'; //@import 'bliss/components';
@import 'bliss/tables'; //@import 'bliss/polls';
@import 'bliss/admin'; //@import 'bliss/introduction';
@import 'bliss/dashboard'; //@import 'bliss/modal';
@import 'bliss/rtl'; //@import 'bliss/emoji_picker';
@import 'bliss/accessibility'; //@import 'bliss/about';
//@import 'bliss/tables';
//@import 'bliss/admin';
//@import 'bliss/dashboard';
//@import 'bliss/rtl';
//@import 'bliss/accessibility';

View File

@ -1,46 +1,29 @@
// Commonly used web colors // Commonly used web colors
$black: #111; // Black //$black: #000; // Black
$white: #fff; // White //$white: #fff; // White
$success-green: #6bbd77 !default; // Padua //$success-green: #6bbd77 !default; // Padua
$error-red: #d4839b !default; // Cerise //$error-red: #d4839b !default; // Cerise
$warning-red: #528dc8 !default; // Sunset Orange //$warning-red: #528dc8 !default; // Sunset Orange
$gold-star: #98c6ff !default; // Dark Goldenrod //$gold-star: #98c6ff !default; // Dark Goldenrod
// Values from the classic Mastodon UI /************************
$classic-base-color: #282c37; // Midnight Express BEGIN bliss specific variables
$classic-primary-color: #9baec8; // Echo Blue ************************/
$classic-secondary-color: #d9e1e8; // Pattens Blue
$classic-highlight-color: #2b90d9; // Summer Sky
// Variables for defaults in UI //$black: #000; // Black
$base-shadow-color: $black !default; //$white: #fff; // White
$base-overlay-background: $black !default; //$success-green: #6bbd77 !default; // Padua
$base-border-color: $white !default; //$error-red: red !default; // Cerise
$simple-background-color: $white !default; //$warning-red: orange !default; // Sunset Orange
$valid-value-color: $success-green !default; //$gold-star: #98c6ff !default; // Dark Goldenrod
$error-value-color: $error-red !default;
// Tell UI to use selected colors
$ui-base-color: $classic-base-color !default; // Darkest
$ui-base-lighter-color: lighten($ui-base-color, 26%) !default; // Lighter darkest
$ui-primary-color: $classic-primary-color !default; // Lighter
$ui-secondary-color: $classic-secondary-color !default; // Lightest
$ui-highlight-color: $classic-highlight-color !default;
// Variables for texts // Variables for components
$primary-text-color: $white !default; $media-modal-media-max-width: 100%;
$darker-text-color: $ui-primary-color !default; // put margins on top and bottom of image to avoid the screen covered by image.
$dark-text-color: $ui-base-lighter-color !default; $media-modal-media-max-height: 80%;
$secondary-text-color: $ui-secondary-color !default; // fix
$highlight-text-color: $ui-highlight-color !default;
$action-button-color: $ui-base-lighter-color !default;
// For texts on inverted backgrounds
$inverted-text-color: $ui-base-color !default;
$lighter-text-color: $ui-base-lighter-color !default;
$light-text-color: $ui-primary-color !default;
// Language codes that uses CJK fonts
$cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;
// Variables for components // Variables for components
$media-modal-media-max-width: 100%; $media-modal-media-max-width: 100%;
@ -48,7 +31,30 @@ $media-modal-media-max-width: 100%;
$media-modal-media-max-height: 80%; $media-modal-media-max-height: 80%;
$no-gap-breakpoint: 415px; $no-gap-breakpoint: 415px;
/************************
END bliss specific variables
************************/
$font-sans-serif: 'mastodon-font-sans-serif' !default; /************************
$font-display: 'mastodon-font-display' !default; light color set
$font-monospace: 'mastodon-font-monospace' !default; */
//$ui-base-color: $classic-secondary-color !default;
//$ui-base-lighter-color: #b0c0cf !default;
//$ui-primary-color: #9bcbed !default;
//$ui-secondary-color: $classic-base-color !default;
//$ui-highlight-color: #2b90d9 !default;
//
//$primary-text-color: $black !default;
//$darker-text-color: $classic-base-color !default;
//$dark-text-color: #444b5d !default;
//$action-button-color: #606984 !default;
//
//$inverted-text-color: $black !default;
//$lighter-text-color: $classic-base-color !default;
//$light-text-color: #444b5d !default;
//
////Newly added colors
//$account-background-color: $white !default;
/**
end light color set
*/

View File

@ -774,3 +774,53 @@ html {
.audio-player .video-player__time-total { .audio-player .video-player__time-total {
color: $primary-text-color; color: $primary-text-color;
} }
body,
.tabs-bar__wrapper {
background: #9baec8 !important;
}
a {
color: #0b97c4;
&.column-link {
color: #222;
}
}
.search__input,
.compose-form .compose-form__buttons-wrapper {
background: $classic-secondary-color;
}
.search__input, {
&:focus {
color: white;
}
}
.compose-form__publish-button-wrapper {
.button {
width: 100%;
display: block;
float: none;
}
}
.links-started__footer {
a, li {
display: inline-block;
float: left;
margin-right: 2ch;
}
ul li {
list-style-type: none;
}
p {
float: left;
}
}

View File

@ -1,6 +1,6 @@
// Dependent colors // Dependent colors
$black: #000000; $black: #000000;
$white: #ffffff; $white: #eeeeee;
$classic-base-color: #282c37; $classic-base-color: #282c37;
$classic-primary-color: #9baec8; $classic-primary-color: #9baec8;
@ -13,10 +13,10 @@ $success-green: lighten(#3c754d, 8%);
$base-overlay-background: $white !default; $base-overlay-background: $white !default;
$valid-value-color: $success-green !default; $valid-value-color: $success-green !default;
$ui-base-color: $classic-secondary-color !important; $ui-base-color: $base-overlay-background !default;
$ui-base-lighter-color: #b0c0cf; $ui-base-lighter-color: #b0c0cf;
$ui-primary-color: #9bcbed; $ui-primary-color: #9bcbed;
$ui-secondary-color: $classic-base-color !default; $ui-secondary-color: $classic-secondary-color !default;
$ui-highlight-color: #2b90d9; $ui-highlight-color: #2b90d9;
$primary-text-color: $black !default; $primary-text-color: $black !default;

View File

@ -1,18 +1,18 @@
// Commonly used web colors // Commonly used web colors
$black: #000000; // Black $black: #000000; // Black
$white: #ffffff; // White $white: #ffffff; // White
$success-green: #79bd9a !default; // Padua $success-green: #79bd9a !default; // Padua
$error-red: #df405a !default; // Cerise $error-red: #df405a !default; // Cerise
$warning-red: #ff5050 !default; // Sunset Orange $warning-red: #ff5050 !default; // Sunset Orange
$gold-star: #ca8f04 !default; // Dark Goldenrod $gold-star: #ca8f04 !default; // Dark Goldenrod
$red-bookmark: $warning-red; $red-bookmark: $warning-red;
// Values from the classic Mastodon UI // Values from the classic Mastodon UI
$classic-base-color: #282c37; // Midnight Express $classic-base-color: #282c37; // Midnight Express
$classic-primary-color: #9baec8; // Echo Blue $classic-primary-color: #9baec8; // Echo Blue
$classic-secondary-color: #d9e1e8; // Pattens Blue $classic-secondary-color: #d9e1e8; // Pattens Blue
$classic-highlight-color: #2b90d9; // Summer Sky $classic-highlight-color: #2b90d9; // Summer Sky
// Variables for defaults in UI // Variables for defaults in UI
$base-shadow-color: $black !default; $base-shadow-color: $black !default;
@ -23,10 +23,10 @@ $valid-value-color: $success-green !default;
$error-value-color: $error-red !default; $error-value-color: $error-red !default;
// Tell UI to use selected colors // Tell UI to use selected colors
$ui-base-color: $classic-base-color !default; // Darkest $ui-base-color: $classic-base-color !default; // Darkest
$ui-base-lighter-color: lighten($ui-base-color, 26%) !default; // Lighter darkest $ui-base-lighter-color: lighten($ui-base-color, 26%) !default; // Lighter darkest
$ui-primary-color: $classic-primary-color !default; // Lighter $ui-primary-color: $classic-primary-color !default; // Lighter
$ui-secondary-color: $classic-secondary-color !default; // Lightest $ui-secondary-color: $classic-secondary-color !default; // Lightest
$ui-highlight-color: $classic-highlight-color !default; $ui-highlight-color: $classic-highlight-color !default;
// Variables for texts // Variables for texts
@ -41,14 +41,6 @@ $inverted-text-color: $ui-base-color !default;
$lighter-text-color: $ui-base-lighter-color !default; $lighter-text-color: $ui-base-lighter-color !default;
$light-text-color: $ui-primary-color !default; $light-text-color: $ui-primary-color !default;
// custom sheet made on https://www.cipherbliss.com
// Commonly used web colors
$black: #fff; // Black
$white: #000; // White
$success-green: #6bbd77 !default; // Padua
$error-red: #d4839b !default; // Cerise
$warning-red: #528dc8 !default; // Sunset Orange
$gold-star: #00ec84 !default; // Dark Goldenrod
// User Interface Colors // User Interface Colors
$ui-base-color: #313644; // Midnight Express $ui-base-color: #313644; // Midnight Express