Multiple UI Improvements
* Multiple UI Improvements * Adding app_body behind missing classes
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
20274fe476
Коммит
32bc97f855
@@ -185,7 +185,7 @@ export default class AddCommand extends React.Component {
|
|||||||
className='form-group'
|
className='form-group'
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='autocompleteHint'
|
htmlFor='autocompleteHint'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -193,7 +193,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Autocomplete Hint'
|
defaultMessage='Autocomplete Hint'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='autocompleteHint'
|
id='autocompleteHint'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -203,7 +203,7 @@ export default class AddCommand extends React.Component {
|
|||||||
onChange={this.updateAutocompleteHint}
|
onChange={this.updateAutocompleteHint}
|
||||||
placeholder={Utils.localizeMessage('add_command.autocompleteHint.placeholder', 'Example: [Patient Name]')}
|
placeholder={Utils.localizeMessage('add_command.autocompleteHint.placeholder', 'Example: [Patient Name]')}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.autocompleteDescription.help'
|
id='add_command.autocompleteDescription.help'
|
||||||
defaultMessage='Optional hint in the autocomplete list about command parameters'
|
defaultMessage='Optional hint in the autocomplete list about command parameters'
|
||||||
@@ -218,7 +218,7 @@ export default class AddCommand extends React.Component {
|
|||||||
className='form-group'
|
className='form-group'
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='autocompleteDescription'
|
htmlFor='autocompleteDescription'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -226,7 +226,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Autocomplete Description'
|
defaultMessage='Autocomplete Description'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='description'
|
id='description'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -236,7 +236,7 @@ export default class AddCommand extends React.Component {
|
|||||||
onChange={this.updateAutocompleteDescription}
|
onChange={this.updateAutocompleteDescription}
|
||||||
placeholder={Utils.localizeMessage('add_command.autocompleteDescription.placeholder', 'Example: "Returns search results for patient records"')}
|
placeholder={Utils.localizeMessage('add_command.autocompleteDescription.placeholder', 'Example: "Returns search results for patient records"')}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.autocompleteDescription.help'
|
id='add_command.autocompleteDescription.help'
|
||||||
defaultMessage='Optional short description of slash command for the autocomplete list.'
|
defaultMessage='Optional short description of slash command for the autocomplete list.'
|
||||||
@@ -263,7 +263,7 @@ export default class AddCommand extends React.Component {
|
|||||||
<form className='form-horizontal'>
|
<form className='form-horizontal'>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='displayName'
|
htmlFor='displayName'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -271,7 +271,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Display Name'
|
defaultMessage='Display Name'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='displayName'
|
id='displayName'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -284,7 +284,7 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='description'
|
htmlFor='description'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -292,7 +292,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Description'
|
defaultMessage='Description'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='description'
|
id='description'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -305,7 +305,7 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='trigger'
|
htmlFor='trigger'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -313,7 +313,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Command Trigger Word'
|
defaultMessage='Command Trigger Word'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='trigger'
|
id='trigger'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -323,13 +323,13 @@ export default class AddCommand extends React.Component {
|
|||||||
onChange={this.updateTrigger}
|
onChange={this.updateTrigger}
|
||||||
placeholder={Utils.localizeMessage('add_command.trigger.placeholder', 'Command trigger e.g. "hello" not including the slash')}
|
placeholder={Utils.localizeMessage('add_command.trigger.placeholder', 'Command trigger e.g. "hello" not including the slash')}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.trigger.help1'
|
id='add_command.trigger.help1'
|
||||||
defaultMessage='Examples: /patient, /client /employee'
|
defaultMessage='Examples: /patient, /client /employee'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.trigger.help2'
|
id='add_command.trigger.help2'
|
||||||
defaultMessage='Reserved: /echo, /join, /logout, /me, /shrug'
|
defaultMessage='Reserved: /echo, /join, /logout, /me, /shrug'
|
||||||
@@ -339,7 +339,7 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='url'
|
htmlFor='url'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -347,7 +347,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Request URL'
|
defaultMessage='Request URL'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='url'
|
id='url'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -357,7 +357,7 @@ export default class AddCommand extends React.Component {
|
|||||||
onChange={this.updateUrl}
|
onChange={this.updateUrl}
|
||||||
placeholder={Utils.localizeMessage('add_command.url.placeholder', 'Must start with http:// or https://')}
|
placeholder={Utils.localizeMessage('add_command.url.placeholder', 'Must start with http:// or https://')}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.url.help'
|
id='add_command.url.help'
|
||||||
defaultMessage='The callback URL to receive the HTTP POST or GET event request when the slash command is run.'
|
defaultMessage='The callback URL to receive the HTTP POST or GET event request when the slash command is run.'
|
||||||
@@ -367,7 +367,7 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='method'
|
htmlFor='method'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -375,7 +375,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Request Method'
|
defaultMessage='Request Method'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<select
|
<select
|
||||||
id='method'
|
id='method'
|
||||||
className='form-control'
|
className='form-control'
|
||||||
@@ -389,7 +389,7 @@ export default class AddCommand extends React.Component {
|
|||||||
{Utils.localizeMessage('add_command.method.get', 'GET')}
|
{Utils.localizeMessage('add_command.method.get', 'GET')}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.method.help'
|
id='add_command.method.help'
|
||||||
defaultMessage='The type of command request issued to the Request URL.'
|
defaultMessage='The type of command request issued to the Request URL.'
|
||||||
@@ -399,7 +399,7 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-lavel col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='username'
|
htmlFor='username'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -407,7 +407,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Response Username'
|
defaultMessage='Response Username'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='username'
|
id='username'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -417,7 +417,7 @@ export default class AddCommand extends React.Component {
|
|||||||
onChange={this.updateUsername}
|
onChange={this.updateUsername}
|
||||||
placholder={Utils.localizeMessage('add_command.username.placeholder', 'Username')}
|
placholder={Utils.localizeMessage('add_command.username.placeholder', 'Username')}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.username.help'
|
id='add_command.username.help'
|
||||||
defaultMessage='Choose a username override for responses for this slash command. Usernames can consist of up to 22 characters consisting of lowercase letters, numbers and the symbols "-", "_", and ".".'
|
defaultMessage='Choose a username override for responses for this slash command. Usernames can consist of up to 22 characters consisting of lowercase letters, numbers and the symbols "-", "_", and ".".'
|
||||||
@@ -427,7 +427,7 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='iconUrl'
|
htmlFor='iconUrl'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -435,7 +435,7 @@ export default class AddCommand extends React.Component {
|
|||||||
defaultMessage='Response Icon'
|
defaultMessage='Response Icon'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='iconUrl'
|
id='iconUrl'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -445,7 +445,7 @@ export default class AddCommand extends React.Component {
|
|||||||
onChange={this.updateIconUrl}
|
onChange={this.updateIconUrl}
|
||||||
placeholder={Utils.localizeMessage('add_command.iconUrl.placeholder', 'https://www.example.com/myicon.png')}
|
placeholder={Utils.localizeMessage('add_command.iconUrl.placeholder', 'https://www.example.com/myicon.png')}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.iconUrl.help'
|
id='add_command.iconUrl.help'
|
||||||
defaultMessage='Choose a profile picture override for the post responses to this slash command. Enter the URL of a .png or .jpg file at least 128 pixels by 128 pixels.'
|
defaultMessage='Choose a profile picture override for the post responses to this slash command. Enter the URL of a .png or .jpg file at least 128 pixels by 128 pixels.'
|
||||||
@@ -453,23 +453,20 @@ export default class AddCommand extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group padding-bottom'>
|
||||||
<label
|
<div className='col-sm-12'>
|
||||||
className='control-label col-sm-3'
|
<div className='checkbox'>
|
||||||
htmlFor='autocomplete'
|
|
||||||
>
|
|
||||||
<FormattedMessage
|
|
||||||
id='add_command.autocomplete'
|
|
||||||
defaultMessage='Autocomplete'
|
|
||||||
/>
|
|
||||||
</label>
|
|
||||||
<div className='col-md-5 col-sm-9'>
|
|
||||||
<input
|
<input
|
||||||
type='checkbox'
|
type='checkbox'
|
||||||
checked={this.state.autocomplete}
|
checked={this.state.autocomplete}
|
||||||
onChange={this.updateAutocomplete}
|
onChange={this.updateAutocomplete}
|
||||||
/>
|
/>
|
||||||
<div className='add-integration__help'>
|
<FormattedMessage
|
||||||
|
id='add_command.autocomplete'
|
||||||
|
defaultMessage='Autocomplete'
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className='form__help'>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='add_command.autocomplete.help'
|
id='add_command.autocomplete.help'
|
||||||
defaultMessage='Show this command in the autocomplete list'
|
defaultMessage='Show this command in the autocomplete list'
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export default class AddIncomingWebhook extends React.Component {
|
|||||||
<form className='form-horizontal'>
|
<form className='form-horizontal'>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='displayName'
|
htmlFor='displayName'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -122,7 +122,7 @@ export default class AddIncomingWebhook extends React.Component {
|
|||||||
defaultMessage='Display Name'
|
defaultMessage='Display Name'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='displayName'
|
id='displayName'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -135,7 +135,7 @@ export default class AddIncomingWebhook extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='description'
|
htmlFor='description'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -143,7 +143,7 @@ export default class AddIncomingWebhook extends React.Component {
|
|||||||
defaultMessage='Description'
|
defaultMessage='Description'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='description'
|
id='description'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -156,7 +156,7 @@ export default class AddIncomingWebhook extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='channelId'
|
htmlFor='channelId'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -164,7 +164,7 @@ export default class AddIncomingWebhook extends React.Component {
|
|||||||
defaultMessage='Channel'
|
defaultMessage='Channel'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<ChannelSelect
|
<ChannelSelect
|
||||||
id='channelId'
|
id='channelId'
|
||||||
value={this.state.channelId}
|
value={this.state.channelId}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
<form className='form-horizontal'>
|
<form className='form-horizontal'>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='displayName'
|
htmlFor='displayName'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -154,7 +154,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
defaultMessage='Display Name'
|
defaultMessage='Display Name'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='displayName'
|
id='displayName'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -167,7 +167,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='description'
|
htmlFor='description'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -175,7 +175,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
defaultMessage='Description'
|
defaultMessage='Description'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<input
|
<input
|
||||||
id='description'
|
id='description'
|
||||||
type='text'
|
type='text'
|
||||||
@@ -188,7 +188,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='channelId'
|
htmlFor='channelId'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -196,7 +196,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
defaultMessage='Channel'
|
defaultMessage='Channel'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<ChannelSelect
|
<ChannelSelect
|
||||||
id='channelId'
|
id='channelId'
|
||||||
value={this.state.channelId}
|
value={this.state.channelId}
|
||||||
@@ -206,7 +206,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='triggerWords'
|
htmlFor='triggerWords'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -214,7 +214,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
defaultMessage='Trigger Words (One Per Line)'
|
defaultMessage='Trigger Words (One Per Line)'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<textarea
|
<textarea
|
||||||
id='triggerWords'
|
id='triggerWords'
|
||||||
rows='3'
|
rows='3'
|
||||||
@@ -227,7 +227,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className='form-group'>
|
<div className='form-group'>
|
||||||
<label
|
<label
|
||||||
className='control-label col-sm-3'
|
className='control-label col-sm-4'
|
||||||
htmlFor='callbackUrls'
|
htmlFor='callbackUrls'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -235,7 +235,7 @@ export default class AddOutgoingWebhook extends React.Component {
|
|||||||
defaultMessage='Callback URLs (One Per Line)'
|
defaultMessage='Callback URLs (One Per Line)'
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<div className='col-md-5 col-sm-9'>
|
<div className='col-md-5 col-sm-8'>
|
||||||
<textarea
|
<textarea
|
||||||
id='callbackUrls'
|
id='callbackUrls'
|
||||||
rows='3'
|
rows='3'
|
||||||
|
|||||||
@@ -203,8 +203,6 @@ export default class LoggedIn extends React.Component {
|
|||||||
Websockets.close();
|
Websockets.close();
|
||||||
UserStore.removeChangeListener(this.onUserChanged);
|
UserStore.removeChangeListener(this.onUserChanged);
|
||||||
|
|
||||||
Utils.resetTheme();
|
|
||||||
|
|
||||||
$('body').off('click.userpopover');
|
$('body').off('click.userpopover');
|
||||||
$('body').off('mouseenter mouseleave', '.post');
|
$('body').off('mouseenter mouseleave', '.post');
|
||||||
$('body').off('mouseenter mouseleave', '.post.post--comment.same--root');
|
$('body').off('mouseenter mouseleave', '.post.post--comment.same--root');
|
||||||
|
|||||||
@@ -105,20 +105,20 @@ export default class Navbar extends React.Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (e.target.className !== 'navbar-toggle' && e.target.className !== 'icon-bar') {
|
if (e.target.className !== 'navbar-toggle' && e.target.className !== 'icon-bar') {
|
||||||
$('.inner-wrap').removeClass('move--right move--left move--left-small');
|
$('.app__body .inner-wrap').removeClass('move--right move--left move--left-small');
|
||||||
$('.sidebar--left').removeClass('move--right');
|
$('.app__body .sidebar--left').removeClass('move--right');
|
||||||
$('.sidebar--right').removeClass('move--left');
|
$('.app__body .sidebar--right').removeClass('move--left');
|
||||||
$('.sidebar--menu').removeClass('move--left');
|
$('.app__body .sidebar--menu').removeClass('move--left');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
toggleLeftSidebar() {
|
toggleLeftSidebar() {
|
||||||
$('.inner-wrap').toggleClass('move--right');
|
$('.app__body .inner-wrap').toggleClass('move--right');
|
||||||
$('.sidebar--left').toggleClass('move--right');
|
$('.app__body .sidebar--left').toggleClass('move--right');
|
||||||
}
|
}
|
||||||
toggleRightSidebar() {
|
toggleRightSidebar() {
|
||||||
$('.inner-wrap').toggleClass('move--left-small');
|
$('.app__body .inner-wrap').toggleClass('move--left-small');
|
||||||
$('.sidebar--menu').toggleClass('move--left');
|
$('.app__body .sidebar--menu').toggleClass('move--left');
|
||||||
}
|
}
|
||||||
showSearch() {
|
showSearch() {
|
||||||
AppDispatcher.handleServerAction({
|
AppDispatcher.handleServerAction({
|
||||||
|
|||||||
@@ -372,11 +372,13 @@ export default class PostsView extends React.Component {
|
|||||||
this.updateScrolling();
|
this.updateScrolling();
|
||||||
}
|
}
|
||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
|
$('body').addClass('app__body');
|
||||||
}
|
}
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
window.removeEventListener('resize', this.handleResize);
|
window.removeEventListener('resize', this.handleResize);
|
||||||
this.scrollStopAction.cancel();
|
this.scrollStopAction.cancel();
|
||||||
PreferenceStore.removeChangeListener(this.updateState);
|
PreferenceStore.removeChangeListener(this.updateState);
|
||||||
|
$('body').removeClass('app__body');
|
||||||
}
|
}
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
if (this.props.postList != null) {
|
if (this.props.postList != null) {
|
||||||
|
|||||||
@@ -66,28 +66,28 @@ export default class SidebarRight extends React.Component {
|
|||||||
var windowWidth = $(window).outerWidth();
|
var windowWidth = $(window).outerWidth();
|
||||||
var sidebarRightWidth = $('.sidebar--right').outerWidth();
|
var sidebarRightWidth = $('.sidebar--right').outerWidth();
|
||||||
|
|
||||||
$('.inner-wrap').removeClass('.move--right');
|
$('.app__body .inner-wrap').removeClass('.move--right');
|
||||||
$('.inner-wrap').addClass('move--left');
|
$('.app__body .inner-wrap').addClass('move--left');
|
||||||
$('.sidebar--left').removeClass('move--right');
|
$('.app__body .sidebar--left').removeClass('move--right');
|
||||||
$('.sidebar--right').addClass('move--left');
|
$('.app__body .sidebar--right').addClass('move--left');
|
||||||
|
|
||||||
//$('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
|
//$('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
|
||||||
if (this.state.searchVisible || this.state.postRightVisible) {
|
if (this.state.searchVisible || this.state.postRightVisible) {
|
||||||
if (windowWidth > 960) {
|
if (windowWidth > 960) {
|
||||||
velocity($('.inner-wrap'), {marginRight: sidebarRightWidth}, {duration: 500, easing: 'easeOutSine'});
|
velocity($('.app__body .inner-wrap'), {marginRight: sidebarRightWidth}, {duration: 500, easing: 'easeOutSine'});
|
||||||
velocity($('.sidebar--right'), {translateX: 0}, {duration: 500, easing: 'easeOutSine'});
|
velocity($('.app__body .sidebar--right'), {translateX: 0}, {duration: 500, easing: 'easeOutSine'});
|
||||||
} else {
|
} else {
|
||||||
$('.inner-wrap, .sidebar--right').attr('style', '');
|
$('.app__body .inner-wrap, .sidebar--right').attr('style', '');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (windowWidth > 960) {
|
if (windowWidth > 960) {
|
||||||
velocity($('.inner-wrap'), {marginRight: 0}, {duration: 500, easing: 'easeOutSine'});
|
velocity($('.app__body .inner-wrap'), {marginRight: 0}, {duration: 500, easing: 'easeOutSine'});
|
||||||
velocity($('.sidebar--right'), {translateX: sidebarRightWidth}, {duration: 500, easing: 'easeOutSine'});
|
velocity($('.app__body .sidebar--right'), {translateX: sidebarRightWidth}, {duration: 500, easing: 'easeOutSine'});
|
||||||
} else {
|
} else {
|
||||||
$('.inner-wrap, .sidebar--right').attr('style', '');
|
$('.app__body .inner-wrap, .sidebar--right').attr('style', '');
|
||||||
}
|
}
|
||||||
$('.inner-wrap').removeClass('move--left').removeClass('move--right');
|
$('.app__body .inner-wrap').removeClass('move--left').removeClass('move--right');
|
||||||
$('.sidebar--right').removeClass('move--left');
|
$('.app__body .sidebar--right').removeClass('move--left');
|
||||||
return (
|
return (
|
||||||
<div></div>
|
<div></div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -39,38 +39,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.padding-top {
|
|
||||||
padding-top: 7px;
|
|
||||||
|
|
||||||
&.x2 {
|
|
||||||
padding-top: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.x3 {
|
|
||||||
padding-top: 21px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.padding-bottom {
|
|
||||||
padding-bottom: 7px;
|
|
||||||
|
|
||||||
&.x2 {
|
|
||||||
padding-bottom: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.x3 {
|
|
||||||
padding-bottom: 21px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control-label {
|
|
||||||
font-weight: 600;
|
|
||||||
|
|
||||||
&.text-left {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.custom-textarea {
|
.custom-textarea {
|
||||||
border-color: $light-gray;
|
border-color: $light-gray;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@@ -520,7 +488,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.more-modal__row {
|
.more-modal__row {
|
||||||
border-bottom: 1px solid;
|
border-bottom: 1px solid $light-gray;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 8px 15px;
|
padding: 8px 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,3 +60,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.padding-top {
|
||||||
|
padding-top: 7px;
|
||||||
|
|
||||||
|
&.x2 {
|
||||||
|
padding-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.x3 {
|
||||||
|
padding-top: 21px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.padding-bottom {
|
||||||
|
padding-bottom: 7px;
|
||||||
|
|
||||||
|
&.x2 {
|
||||||
|
padding-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.x3 {
|
||||||
|
padding-bottom: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-label {
|
||||||
|
font-weight: 600;
|
||||||
|
|
||||||
|
&.text-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -344,7 +344,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.channel-header__links {
|
.app__body {
|
||||||
|
|
||||||
|
.channel-header__links {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@@ -372,4 +374,6 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,14 +17,9 @@
|
|||||||
padding-bottom: .5em;
|
padding-bottom: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
|
||||||
background: $white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid $light-gray;
|
||||||
color: #555;
|
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6));
|
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6));
|
||||||
@@ -33,26 +28,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
|
||||||
color: #333;
|
|
||||||
|
|
||||||
&.btn-primary {
|
|
||||||
background: $primary-color;
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus,
|
|
||||||
&:active {
|
|
||||||
background: #1c6dab;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-menu {
|
|
||||||
background: $white;
|
|
||||||
border: 1px solid rgba(0,0,0,.15);
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar--left {
|
.sidebar--left {
|
||||||
&.sidebar--collapsable {
|
&.sidebar--collapsable {
|
||||||
background: #333;
|
background: #333;
|
||||||
|
|||||||
@@ -3,19 +3,20 @@ body {
|
|||||||
height: auto;
|
height: auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
.sidebar--right {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.inner-wrap {
|
.inner-wrap {
|
||||||
|
@include translateX(0);
|
||||||
|
margin-right: 0 !important;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar--right,
|
||||||
|
.sidebar--menu,
|
||||||
|
.navbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,6 +241,17 @@ body {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.radio,
|
||||||
|
.checkbox {
|
||||||
|
input {
|
||||||
|
height: 16px;
|
||||||
|
margin: 0 5px 0 0;
|
||||||
|
position: relative;
|
||||||
|
top: 2px;
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
background: $white;
|
background: $white;
|
||||||
|
|
||||||
@@ -247,6 +259,16 @@ body {
|
|||||||
border-color: $primary-color;
|
border-color: $primary-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form__help {
|
||||||
|
color: $dark-gray;
|
||||||
|
font-size: .95em;
|
||||||
|
margin-top: 1em;
|
||||||
|
|
||||||
|
& + .form__help {
|
||||||
|
margin-top: .4em;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.backstage-form__footer {
|
.backstage-form__footer {
|
||||||
|
|||||||
@@ -591,175 +591,175 @@ export function toTitleCase(str) {
|
|||||||
|
|
||||||
export function applyTheme(theme) {
|
export function applyTheme(theme) {
|
||||||
if (theme.sidebarBg) {
|
if (theme.sidebarBg) {
|
||||||
changeCss('.sidebar--left, .modal .settings-modal .settings-table .settings-links, .sidebar--menu', 'background:' + theme.sidebarBg, 1);
|
changeCss('.app__body .sidebar--left, .app__body .modal .settings-modal .settings-table .settings-links, .app__body .sidebar--menu', 'background:' + theme.sidebarBg, 1);
|
||||||
changeCss('body', 'scrollbar-face-color:' + theme.sidebarBg, 3);
|
changeCss('body.app__body', 'scrollbar-face-color:' + theme.sidebarBg, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarText) {
|
if (theme.sidebarText) {
|
||||||
changeCss('.sidebar--left .nav-pills__container li>a, .sidebar--right, .modal .settings-modal .nav-pills>li a, .sidebar--menu', 'color:' + changeOpacity(theme.sidebarText, 0.6), 1);
|
changeCss('.app__body .sidebar--left .nav-pills__container li>a, .app__body .sidebar--right, .app__body .modal .settings-modal .nav-pills>li a, .app__body .sidebar--menu', 'color:' + changeOpacity(theme.sidebarText, 0.6), 1);
|
||||||
changeCss('@media(max-width: 768px){.modal .settings-modal .settings-table .nav>li>a', 'color:' + theme.sidebarText, 1);
|
changeCss('@media(max-width: 768px){.app__body .modal .settings-modal .settings-table .nav>li>a', 'color:' + theme.sidebarText, 1);
|
||||||
changeCss('.sidebar--left .nav-pills__container li>h4, .sidebar--left .add-channel-btn', 'color:' + changeOpacity(theme.sidebarText, 0.6), 1);
|
changeCss('.app__body .sidebar--left .nav-pills__container li>h4, .app__body .sidebar--left .add-channel-btn', 'color:' + changeOpacity(theme.sidebarText, 0.6), 1);
|
||||||
changeCss('.sidebar--left .add-channel-btn:hover, .sidebar--left .add-channel-btn:focus', 'color:' + theme.sidebarText, 1);
|
changeCss('.app__body .sidebar--left .add-channel-btn:hover, .app__body .sidebar--left .add-channel-btn:focus', 'color:' + theme.sidebarText, 1);
|
||||||
changeCss('.sidebar--left .status .offline--icon, .sidebar--left .status .offline--icon', 'fill:' + theme.sidebarText, 1);
|
changeCss('.app__body .sidebar--left .status .offline--icon, .app__body .sidebar--left .status .offline--icon', 'fill:' + theme.sidebarText, 1);
|
||||||
changeCss('@media(max-width: 768px){.modal .settings-modal .settings-table .nav>li>a', 'border-color:' + changeOpacity(theme.sidebarText, 0.2), 2);
|
changeCss('@media(max-width: 768px){.app__body .modal .settings-modal .settings-table .nav>li>a', 'border-color:' + changeOpacity(theme.sidebarText, 0.2), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarUnreadText) {
|
if (theme.sidebarUnreadText) {
|
||||||
changeCss('.sidebar--left .nav-pills__container li>a.unread-title', 'color:' + theme.sidebarUnreadText + '!important;', 2);
|
changeCss('.app__body .sidebar--left .nav-pills__container li>a.unread-title', 'color:' + theme.sidebarUnreadText + '!important;', 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarTextHoverBg) {
|
if (theme.sidebarTextHoverBg) {
|
||||||
changeCss('.sidebar--left .nav-pills__container li>a:hover, .sidebar--left .nav-pills__container li>a:focus, .modal .settings-modal .nav-pills>li:hover a, .modal .settings-modal .nav-pills>li:focus a', 'background:' + theme.sidebarTextHoverBg, 1);
|
changeCss('.app__body .sidebar--left .nav-pills__container li>a:hover, .app__body .sidebar--left .nav-pills__container li>a:focus, .app__body .modal .settings-modal .nav-pills>li:hover a, .app__body .modal .settings-modal .nav-pills>li:focus a', 'background:' + theme.sidebarTextHoverBg, 1);
|
||||||
changeCss('@media(max-width: 768px){.modal .settings-modal .settings-table .nav>li:hover a', 'background:' + theme.sidebarTextHoverBg, 1);
|
changeCss('@media(max-width: 768px){.app__body .modal .settings-modal .settings-table .nav>li:hover a', 'background:' + theme.sidebarTextHoverBg, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarTextActiveBorder) {
|
if (theme.sidebarTextActiveBorder) {
|
||||||
changeCss('.sidebar--left .nav li.active a:before, .modal .settings-modal .nav-pills>li.active a:before', 'background:' + theme.sidebarTextActiveBorder, 1);
|
changeCss('.app__body .sidebar--left .nav li.active a:before, .app__body .modal .settings-modal .nav-pills>li.active a:before', 'background:' + theme.sidebarTextActiveBorder, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarTextActiveColor) {
|
if (theme.sidebarTextActiveColor) {
|
||||||
changeCss('.sidebar--left .nav-pills__container li.active a, .sidebar--left .nav-pills__container li.active a:hover, .sidebar--left .nav-pills__container li.active a:focus, .modal .settings-modal .nav-pills>li.active a, .modal .settings-modal .nav-pills>li.active a:hover, .modal .settings-modal .nav-pills>li.active a:active', 'color:' + theme.sidebarTextActiveColor, 2);
|
changeCss('.app__body .sidebar--left .nav-pills__container li.active a, .app__body .sidebar--left .nav-pills__container li.active a:hover, .app__body .sidebar--left .nav-pills__container li.active a:focus, .app__body .modal .settings-modal .nav-pills>li.active a, .app__body .modal .settings-modal .nav-pills>li.active a:hover, .app__body .modal .settings-modal .nav-pills>li.active a:active', 'color:' + theme.sidebarTextActiveColor, 2);
|
||||||
changeCss('.sidebar--left .nav li.active a, .sidebar--left .nav li.active a:hover, .sidebar--left .nav li.active a:focus', 'background:' + changeOpacity(theme.sidebarTextActiveColor, 0.1), 1);
|
changeCss('.app__body .sidebar--left .nav li.active a, .app__body .sidebar--left .nav li.active a:hover, .app__body .sidebar--left .nav li.active a:focus', 'background:' + changeOpacity(theme.sidebarTextActiveColor, 0.1), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarHeaderBg) {
|
if (theme.sidebarHeaderBg) {
|
||||||
changeCss('.sidebar--left .team__header, .sidebar--menu .team__header, .post-list__timestamp > div', 'background:' + theme.sidebarHeaderBg, 1);
|
changeCss('.app__body .sidebar--left .team__header, .app__body .sidebar--menu .team__header, .app__body .post-list__timestamp > div', 'background:' + theme.sidebarHeaderBg, 1);
|
||||||
changeCss('.modal .modal-header', 'background:' + theme.sidebarHeaderBg, 1);
|
changeCss('.app__body .modal .modal-header', 'background:' + theme.sidebarHeaderBg, 1);
|
||||||
changeCss('#navbar .navbar-default', 'background:' + theme.sidebarHeaderBg, 1);
|
changeCss('.app__body #navbar .navbar-default', 'background:' + theme.sidebarHeaderBg, 1);
|
||||||
changeCss('@media(max-width: 768px){.search-bar__container', 'background:' + theme.sidebarHeaderBg, 1);
|
changeCss('@media(max-width: 768px){.app__body .search-bar__container', 'background:' + theme.sidebarHeaderBg, 1);
|
||||||
changeCss('.attachment .attachment__container', 'border-left-color:' + theme.sidebarHeaderBg, 1);
|
changeCss('.app__body .attachment .attachment__container', 'border-left-color:' + theme.sidebarHeaderBg, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.sidebarHeaderTextColor) {
|
if (theme.sidebarHeaderTextColor) {
|
||||||
changeCss('.sidebar--left .team__header .header__info, .sidebar--menu .team__header .header__info, .post-list__timestamp > div', 'color:' + theme.sidebarHeaderTextColor, 1);
|
changeCss('.app__body .sidebar--left .team__header .header__info, .app__body .sidebar--menu .team__header .header__info, .app__body .post-list__timestamp > div', 'color:' + theme.sidebarHeaderTextColor, 1);
|
||||||
changeCss('.sidebar--left .team__header .navbar-right .dropdown__icon, .sidebar--menu .team__header .navbar-right .dropdown__icon', 'fill:' + theme.sidebarHeaderTextColor, 1);
|
changeCss('.app__body .sidebar--left .team__header .navbar-right .dropdown__icon, .app__body .sidebar--menu .team__header .navbar-right .dropdown__icon', 'fill:' + theme.sidebarHeaderTextColor, 1);
|
||||||
changeCss('.sidebar--left .team__header .user__name, .sidebar--menu .team__header .user__name', 'color:' + changeOpacity(theme.sidebarHeaderTextColor, 0.8), 1);
|
changeCss('.app__body .sidebar--left .team__header .user__name, .app__body .sidebar--menu .team__header .user__name', 'color:' + changeOpacity(theme.sidebarHeaderTextColor, 0.8), 1);
|
||||||
changeCss('.sidebar--left .team__header:hover .user__name, .sidebar--menu .team__header:hover .user__name', 'color:' + theme.sidebarHeaderTextColor, 1);
|
changeCss('.app__body .sidebar--left .team__header:hover .user__name, .app__body .sidebar--menu .team__header:hover .user__name', 'color:' + theme.sidebarHeaderTextColor, 1);
|
||||||
changeCss('.modal .modal-header .modal-title, .modal .modal-header .modal-title .name, .modal .modal-header button.close', 'color:' + theme.sidebarHeaderTextColor, 1);
|
changeCss('.app__body .modal .modal-header .modal-title, .app__body .modal .modal-header .modal-title .name, .app__body .modal .modal-header button.close', 'color:' + theme.sidebarHeaderTextColor, 1);
|
||||||
changeCss('#navbar .navbar-default .navbar-brand .heading', 'color:' + theme.sidebarHeaderTextColor, 1);
|
changeCss('.app__body #navbar .navbar-default .navbar-brand .heading', 'color:' + theme.sidebarHeaderTextColor, 1);
|
||||||
changeCss('#navbar .navbar-default .navbar-toggle .icon-bar, ', 'background:' + theme.sidebarHeaderTextColor, 1);
|
changeCss('.app__body #navbar .navbar-default .navbar-toggle .icon-bar, ', 'background:' + theme.sidebarHeaderTextColor, 1);
|
||||||
changeCss('@media(max-width: 768px){.search-bar__container', 'color:' + theme.sidebarHeaderTextColor, 2);
|
changeCss('@media(max-width: 768px){.app__body .search-bar__container', 'color:' + theme.sidebarHeaderTextColor, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.onlineIndicator) {
|
if (theme.onlineIndicator) {
|
||||||
changeCss('.sidebar--left .status .online--icon', 'fill:' + theme.onlineIndicator, 1);
|
changeCss('.app__body .sidebar--left .status .online--icon', 'fill:' + theme.onlineIndicator, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.awayIndicator) {
|
if (theme.awayIndicator) {
|
||||||
changeCss('.sidebar--left .status .away--icon', 'fill:' + theme.awayIndicator, 1);
|
changeCss('.app__body .sidebar--left .status .away--icon', 'fill:' + theme.awayIndicator, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionBj) {
|
if (theme.mentionBj) {
|
||||||
changeCss('.sidebar--left .nav-pills__unread-indicator', 'background:' + theme.mentionBj, 1);
|
changeCss('.app__body .sidebar--left .nav-pills__unread-indicator', 'background:' + theme.mentionBj, 1);
|
||||||
changeCss('.sidebar--left .badge', 'background:' + theme.mentionBj + '!important;', 1);
|
changeCss('.app__body .sidebar--left .badge', 'background:' + theme.mentionBj + '!important;', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionColor) {
|
if (theme.mentionColor) {
|
||||||
changeCss('.sidebar--left .nav-pills__unread-indicator', 'color:' + theme.mentionColor, 2);
|
changeCss('.app__body .sidebar--left .nav-pills__unread-indicator', 'color:' + theme.mentionColor, 2);
|
||||||
changeCss('.sidebar--left .badge', 'color:' + theme.mentionColor + '!important;', 2);
|
changeCss('.app__body .sidebar--left .badge', 'color:' + theme.mentionColor + '!important;', 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.centerChannelBg) {
|
if (theme.centerChannelBg) {
|
||||||
changeCss('.app__content, .markdown__table, .markdown__table tbody tr, .suggestion-list__content, .modal .modal-content', 'background:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .app__content, .app__body .markdown__table, .app__body .markdown__table tbody tr, .app__body .suggestion-list__content, .app__body .modal .modal-content', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('#post-list .post-list-holder-by-time', 'background:' + theme.centerChannelBg, 1);
|
changeCss('#post-list .post-list-holder-by-time', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('#post-create', 'background:' + theme.centerChannelBg, 1);
|
changeCss('#post-create', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.date-separator .separator__text, .new-separator .separator__text', 'background:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .date-separator .separator__text, .app__body .new-separator .separator__text', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.post-image__details, .search-help-popover .search-autocomplete__divider span', 'background:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .post-image__details, .app__body .search-help-popover .search-autocomplete__divider span', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.sidebar--right, .dropdown-menu, .popover, .tip-overlay', 'background:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .sidebar--right, .app__body .dropdown-menu, .app__body .popover, .app__body .tip-overlay', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.popover.bottom>.arrow:after', 'border-bottom-color:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .popover.bottom>.arrow:after', 'border-bottom-color:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.popover.right>.arrow:after, .tip-overlay.tip-overlay--sidebar .arrow, .tip-overlay.tip-overlay--header .arrow', 'border-right-color:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .popover.right>.arrow:after, .app__body .tip-overlay.tip-overlay--sidebar .arrow, .app__body .tip-overlay.tip-overlay--header .arrow', 'border-right-color:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.popover.left>.arrow:after', 'border-left-color:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .popover.left>.arrow:after', 'border-left-color:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.popover.top>.arrow:after, .tip-overlay.tip-overlay--chat .arrow', 'border-top-color:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .popover.top>.arrow:after, .app__body .tip-overlay.tip-overlay--chat .arrow', 'border-top-color:' + theme.centerChannelBg, 1);
|
||||||
changeCss('@media(min-width: 768px){.search-bar__container .search__form .search-bar, .form-control', 'background:' + theme.centerChannelBg, 1);
|
changeCss('@media(min-width: 768px){.app__body .search-bar__container .search__form .search-bar, .app__body .form-control', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('.attachment__content', 'background:' + theme.centerChannelBg, 1);
|
changeCss('.app__body .attachment__content', 'background:' + theme.centerChannelBg, 1);
|
||||||
changeCss('body', 'scrollbar-face-color:' + theme.centerChannelBg, 2);
|
changeCss('body.app__body', 'scrollbar-face-color:' + theme.centerChannelBg, 2);
|
||||||
changeCss('body', 'scrollbar-track-color:' + theme.centerChannelBg, 2);
|
changeCss('body.app__body', 'scrollbar-track-color:' + theme.centerChannelBg, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.centerChannelColor) {
|
if (theme.centerChannelColor) {
|
||||||
changeCss('.post-list__arrows', 'fill:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
changeCss('.app__body .post-list__arrows', 'fill:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
||||||
changeCss('.sidebar--left, .sidebar--right .sidebar--right__header, .suggestion-list__content .command', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
changeCss('.app__body .sidebar--left, .app__body .sidebar--right .sidebar--right__header, .app__body .suggestion-list__content .command', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
||||||
changeCss('.app__content, .post-create__container .post-create-body .btn-file, .post-create__container .post-create-footer .msg-typing, .suggestion-list__content .command, .modal .modal-content, .dropdown-menu, .popover, .mentions__name, .tip-overlay', 'color:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .app__content, .app__body .post-create__container .post-create-body .btn-file, .app__body .post-create__container .post-create-footer .msg-typing, .app__body .suggestion-list__content .command, .app__body .modal .modal-content, .app__body .dropdown-menu, .app__body .popover, .app__body .mentions__name, .app__body .tip-overlay', 'color:' + theme.centerChannelColor, 1);
|
||||||
changeCss('#archive-link-home', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
changeCss('.app__body #archive-link-home', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
||||||
changeCss('#post-create', 'color:' + theme.centerChannelColor, 2);
|
changeCss('.app__body #post-create', 'color:' + theme.centerChannelColor, 2);
|
||||||
changeCss('.mentions--top, .suggestion-list', 'box-shadow:' + changeOpacity(theme.centerChannelColor, 0.2) + ' 1px -3px 12px', 3);
|
changeCss('.app__body .mentions--top, .app__body .suggestion-list', 'box-shadow:' + changeOpacity(theme.centerChannelColor, 0.2) + ' 1px -3px 12px', 3);
|
||||||
changeCss('.mentions--top, .suggestion-list', '-webkit-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.2) + ' 1px -3px 12px', 2);
|
changeCss('.app__body .mentions--top, .app__body .suggestion-list', '-webkit-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.2) + ' 1px -3px 12px', 2);
|
||||||
changeCss('.mentions--top, .suggestion-list', '-moz-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.2) + ' 1px -3px 12px', 1);
|
changeCss('.app__body .mentions--top, .app__body .suggestion-list', '-moz-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.2) + ' 1px -3px 12px', 1);
|
||||||
changeCss('.dropdown-menu, .popover ', 'box-shadow:' + changeOpacity(theme.centerChannelColor, 0.1) + ' 0px 6px 12px', 3);
|
changeCss('.app__body .dropdown-menu, .app__body .popover ', 'box-shadow:' + changeOpacity(theme.centerChannelColor, 0.1) + ' 0px 6px 12px', 3);
|
||||||
changeCss('.dropdown-menu, .popover ', '-webkit-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.1) + ' 0px 6px 12px', 2);
|
changeCss('.app__body .dropdown-menu, .app__body .popover ', '-webkit-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.1) + ' 0px 6px 12px', 2);
|
||||||
changeCss('.dropdown-menu, .popover ', '-moz-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.1) + ' 0px 6px 12px', 1);
|
changeCss('.app__body .dropdown-menu, .app__body .popover ', '-moz-box-shadow:' + changeOpacity(theme.centerChannelColor, 0.1) + ' 0px 6px 12px', 1);
|
||||||
changeCss('.post__body hr, .loading-screen .loading__content .round, .tutorial__circles .circle', 'background:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .post__body hr, .app__body .loading-screen .loading__content .round, .app__body .tutorial__circles .circle', 'background:' + theme.centerChannelColor, 1);
|
||||||
changeCss('.channel-header .heading', 'color:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .channel-header .heading', 'color:' + theme.centerChannelColor, 1);
|
||||||
changeCss('.markdown__table tbody tr:nth-child(2n)', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
changeCss('.app__body .markdown__table tbody tr:nth-child(2n)', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
||||||
changeCss('.channel-header__info>div.dropdown .header-dropdown__icon', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);
|
changeCss('.app__body .channel-header__info>div.dropdown .header-dropdown__icon', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);
|
||||||
changeCss('.channel-header #member_popover', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);
|
changeCss('.app__body .channel-header #member_popover', 'color:' + changeOpacity(theme.centerChannelColor, 0.8), 1);
|
||||||
changeCss('.custom-textarea, .custom-textarea:focus, .file-preview, .post-image__details, .sidebar--right .sidebar-right__body, .markdown__table th, .markdown__table td, .suggestion-list__content, .modal .modal-content, .modal .settings-modal .settings-table .settings-content .divider-light, .webhooks__container, .dropdown-menu, .modal .modal-header, .popover', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
changeCss('.app__body .custom-textarea, .app__body .custom-textarea:focus, .app__body .file-preview, .app__body .post-image__details, .app__body .sidebar--right .sidebar-right__body, .app__body .markdown__table th, .app__body .markdown__table td, .app__body .suggestion-list__content, .app__body .modal .modal-content, .app__body .modal .settings-modal .settings-table .settings-content .divider-light, .app__body .webhooks__container, .app__body .dropdown-menu, .app__body .modal .modal-header, .app__body .popover', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
||||||
changeCss('.popover.bottom>.arrow', 'border-bottom-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
changeCss('.app__body .popover.bottom>.arrow', 'border-bottom-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
||||||
changeCss('.search-help-popover .search-autocomplete__divider span', 'color:' + changeOpacity(theme.centerChannelColor, 0.7), 1);
|
changeCss('.app__body .search-help-popover .search-autocomplete__divider span', 'color:' + changeOpacity(theme.centerChannelColor, 0.7), 1);
|
||||||
changeCss('.popover.right>.arrow', 'border-right-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
changeCss('.app__body .popover.right>.arrow', 'border-right-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
||||||
changeCss('.popover.left>.arrow', 'border-left-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
changeCss('.app__body .popover.left>.arrow', 'border-left-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
||||||
changeCss('.popover.top>.arrow', 'border-top-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
changeCss('.app__body .popover.top>.arrow', 'border-top-color:' + changeOpacity(theme.centerChannelColor, 0.25), 1);
|
||||||
changeCss('.suggestion-list__content .command, .popover .popover-title', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
changeCss('.app__body .suggestion-list__content .command, .app__body .popover .popover-title', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
||||||
changeCss('.dropdown-menu .divider, .search-help-popover .search-autocomplete__divider:before', 'background:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .dropdown-menu .divider, .app__body .search-help-popover .search-autocomplete__divider:before', 'background:' + theme.centerChannelColor, 1);
|
||||||
changeCss('.custom-textarea', 'color:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .custom-textarea', 'color:' + theme.centerChannelColor, 1);
|
||||||
changeCss('.post-image__column', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 2);
|
changeCss('.app__body .post-image__column', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 2);
|
||||||
changeCss('.post-image__details', 'color:' + theme.centerChannelColor, 2);
|
changeCss('.app__body .post-image__details', 'color:' + theme.centerChannelColor, 2);
|
||||||
changeCss('.post-image__column a, .post-image__column a:hover, .post-image__column a:focus', 'color:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .post-image__column a, .app__body .post-image__column a:hover, .app__body .post-image__column a:focus', 'color:' + theme.centerChannelColor, 1);
|
||||||
changeCss('@media(min-width: 768px){.search-bar__container .search__form .search-bar, .form-control', 'color:' + theme.centerChannelColor, 2);
|
changeCss('@media(min-width: 768px){.app__body .search-bar__container .search__form .search-bar, .app__body .form-control', 'color:' + theme.centerChannelColor, 2);
|
||||||
changeCss('.input-group-addon, .search-bar__container .search__form, .form-control', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
changeCss('.app__body .input-group-addon, .app__body .search-bar__container .search__form, .app__body .form-control', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
||||||
changeCss('.form-control:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
changeCss('.app__body .form-control:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
||||||
changeCss('.attachment .attachment__content', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
changeCss('.app__body .attachment .attachment__content', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
||||||
changeCss('.channel-intro .channel-intro__content, .webhooks__container', 'background:' + changeOpacity(theme.centerChannelColor, 0.05), 1);
|
changeCss('.app__body .channel-intro .channel-intro__content, .app__body .webhooks__container', 'background:' + changeOpacity(theme.centerChannelColor, 0.05), 1);
|
||||||
changeCss('.date-separator .separator__text', 'color:' + theme.centerChannelColor, 2);
|
changeCss('.app__body .date-separator .separator__text', 'color:' + theme.centerChannelColor, 2);
|
||||||
changeCss('.date-separator .separator__hr, .modal-footer, .modal .custom-textarea', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
changeCss('.app__body .date-separator .separator__hr, .app__body .modal-footer, .app__body .modal .custom-textarea', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
||||||
changeCss('.search-item-container, .post-right__container .post.post--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1), 1);
|
changeCss('.app__body .search-item-container, .app__body .post-right__container .post.post--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1), 1);
|
||||||
changeCss('.modal .custom-textarea:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
changeCss('.app__body .modal .custom-textarea:focus', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.3), 1);
|
||||||
changeCss('.channel-intro, .modal .settings-modal .settings-table .settings-content .divider-dark, hr, .modal .settings-modal .settings-table .settings-links, .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__header', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
changeCss('.app__body .channel-intro, .app__body .modal .settings-modal .settings-table .settings-content .divider-dark, .app__body hr, .app__body .modal .settings-modal .settings-table .settings-links, .app__body .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__header', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.2), 1);
|
||||||
changeCss('.post.current--user .post__body, .post.post--comment.other--root.current--user .post-comment, pre, .post-right__container .post.post--root', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
changeCss('.app__body .post.current--user .post__body, .app__body .post.post--comment.other--root.current--user .post-comment, .app__body pre, .app__body .post-right__container .post.post--root', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
||||||
changeCss('.post.current--user .post__body, .post.post--comment.other--root.current--user .post-comment, .post.same--root.post--comment .post__body, .more-modal__list .more-modal__row, .member-div:first-child, .member-div, .access-history__table .access__report, .activity-log__table', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1), 2);
|
changeCss('.app__body .post.current--user .post__body, .app__body .post.post--comment.other--root.current--user .post-comment, .app__body .post.same--root.post--comment .post__body, .app__body .more-modal__list .more-modal__row, .app__body .member-div:first-child, .app__body .member-div, .app__body .access-history__table .access__report, .app__body .activity-log__table', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.1), 2);
|
||||||
changeCss('@media(max-width: 1800px){.inner-wrap.move--left .post.post--comment.same--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.07), 2);
|
changeCss('@media(max-width: 1800px){.app__body .inner-wrap.move--left .post.post--comment.same--root', 'border-color:' + changeOpacity(theme.centerChannelColor, 0.07), 2);
|
||||||
changeCss('.post:hover, .more-modal__list .more-modal__row:hover, .modal .settings-modal .settings-table .settings-content .section-min:hover', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
changeCss('.app__body .post:hover, .app__body .more-modal__list .more-modal__row:hover, .app__body .modal .settings-modal .settings-table .settings-content .section-min:hover', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
||||||
changeCss('.date-separator.hovered--before:after, .date-separator.hovered--after:before, .new-separator.hovered--after:before, .new-separator.hovered--before:after', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
changeCss('.app__body .date-separator.hovered--before:after, .app__body .date-separator.hovered--after:before, .app__body .new-separator.hovered--after:before, .app__body .new-separator.hovered--before:after', 'background:' + changeOpacity(theme.centerChannelColor, 0.07), 1);
|
||||||
changeCss('.suggestion-list__content .command:hover, .mentions__name:hover, .suggestion--selected, .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover, .bot-indicator', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
changeCss('.app__body .suggestion-list__content .command:hover, .app__body .mentions__name:hover, .app__body .suggestion--selected, .app__body .dropdown-menu>li>a:focus, .app__body .dropdown-menu>li>a:hover, .app__body .bot-indicator', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
||||||
changeCss('code, .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control', 'background:' + changeOpacity(theme.centerChannelColor, 0.1), 1);
|
changeCss('.app__body code, .app__body .form-control[disabled], .app__body .form-control[readonly], .app__body fieldset[disabled] .form-control', 'background:' + changeOpacity(theme.centerChannelColor, 0.1), 1);
|
||||||
changeCss('@media(min-width: 960px){.post.current--user:hover .post__body ', 'background: none;', 1);
|
changeCss('@media(min-width: 960px){.app__body .post.current--user:hover .post__body ', 'background: none;', 1);
|
||||||
changeCss('.sidebar--right', 'color:' + theme.centerChannelColor, 2);
|
changeCss('.app__body .sidebar--right', 'color:' + theme.centerChannelColor, 2);
|
||||||
changeCss('.search-help-popover .search-autocomplete__item:hover, .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__body', 'background:' + changeOpacity(theme.centerChannelColor, 0.05), 1);
|
changeCss('.app__body .search-help-popover .search-autocomplete__item:hover, .app__body .modal .settings-modal .settings-table .settings-content .appearance-section .theme-elements__body', 'background:' + changeOpacity(theme.centerChannelColor, 0.05), 1);
|
||||||
changeCss('.search-help-popover .search-autocomplete__item.selected', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
changeCss('.app__body .search-help-popover .search-autocomplete__item.selected', 'background:' + changeOpacity(theme.centerChannelColor, 0.15), 1);
|
||||||
changeCss('::-webkit-scrollbar-thumb', 'background:' + changeOpacity(theme.centerChannelColor, 0.4), 1);
|
changeCss('::-webkit-scrollbar-thumb', 'background:' + changeOpacity(theme.centerChannelColor, 0.4), 1);
|
||||||
changeCss('body', 'scrollbar-arrow-color:' + theme.centerChannelColor, 4);
|
changeCss('body', 'scrollbar-arrow-color:' + theme.centerChannelColor, 4);
|
||||||
changeCss('.modal .about-modal .about-modal__logo svg, .post .post__img svg', 'fill:' + theme.centerChannelColor, 1);
|
changeCss('.app__body .modal .about-modal .about-modal__logo svg, .app__body .post .post__img svg', 'fill:' + theme.centerChannelColor, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.newMessageSeparator) {
|
if (theme.newMessageSeparator) {
|
||||||
changeCss('.new-separator .separator__text', 'color:' + theme.newMessageSeparator, 1);
|
changeCss('.app__body .new-separator .separator__text', 'color:' + theme.newMessageSeparator, 1);
|
||||||
changeCss('.new-separator .separator__hr', 'border-color:' + changeOpacity(theme.newMessageSeparator, 0.5), 1);
|
changeCss('.app__body .new-separator .separator__hr', 'border-color:' + changeOpacity(theme.newMessageSeparator, 0.5), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.linkColor) {
|
if (theme.linkColor) {
|
||||||
changeCss('a, a:focus, a:hover, .btn, .btn:focus, .btn:hover', 'color:' + theme.linkColor, 1);
|
changeCss('.app__body a, .app__body a:focus, .app__body a:hover, .app__body .btn, .app__body .btn:focus, .app__body .btn:hover', 'color:' + theme.linkColor, 1);
|
||||||
changeCss('.post .comment-icon__container, .post .post__reply', 'fill:' + theme.linkColor, 1);
|
changeCss('.app__body .post .comment-icon__container, .app__body .post .post__reply', 'fill:' + theme.linkColor, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.buttonBg) {
|
if (theme.buttonBg) {
|
||||||
changeCss('.btn.btn-primary, .tutorial__circles .circle.active', 'background:' + theme.buttonBg, 1);
|
changeCss('.app__body .btn.btn-primary, .app__body .tutorial__circles .circle.active', 'background:' + theme.buttonBg, 1);
|
||||||
changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background:' + changeColor(theme.buttonBg, -0.25), 1);
|
changeCss('.app__body .btn.btn-primary:hover, .app__body .btn.btn-primary:active, .app__body .btn.btn-primary:focus', 'background:' + changeColor(theme.buttonBg, -0.25), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.buttonColor) {
|
if (theme.buttonColor) {
|
||||||
changeCss('.btn.btn-primary', 'color:' + theme.buttonColor, 2);
|
changeCss('.app__body .btn.btn-primary', 'color:' + theme.buttonColor, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightBg) {
|
if (theme.mentionHighlightBg) {
|
||||||
changeCss('.mention--highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 1);
|
changeCss('.app__body .mention--highlight, .app__body .search-highlight', 'background:' + theme.mentionHighlightBg, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightBg) {
|
if (theme.mentionHighlightBg) {
|
||||||
changeCss('.post.post--highlight', 'background:' + changeOpacity(theme.mentionHighlightBg, 0.5), 1);
|
changeCss('.app__body .post.post--highlight', 'background:' + changeOpacity(theme.mentionHighlightBg, 0.5), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (theme.mentionHighlightLink) {
|
if (theme.mentionHighlightLink) {
|
||||||
changeCss('.mention--highlight .mention-link', 'color:' + theme.mentionHighlightLink, 1);
|
changeCss('.app__body .mention--highlight .mention-link', 'color:' + theme.mentionHighlightLink, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!theme.codeTheme) {
|
if (!theme.codeTheme) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user