Merge branch 'site-preview' into 'develop'
SoapboxConfig: style improvements See merge request soapbox-pub/soapbox-fe!287
This commit is contained in:
commit
58b89abfc9
2 changed files with 39 additions and 17 deletions
|
@ -204,10 +204,15 @@ class SoapboxConfig extends ImmutablePureComponent {
|
|||
value={soapbox.get('brandColor')}
|
||||
onChange={this.handleChange(['brandColor'], (e) => e.hex)}
|
||||
/>
|
||||
<ThemeToggle
|
||||
onToggle={this.handleChange(['defaultSettings', 'themeMode'], value => value)}
|
||||
settings={settings}
|
||||
/>
|
||||
<div className='input with_label toggle'>
|
||||
<div className='label_input'>
|
||||
<label>Default theme</label>
|
||||
<ThemeToggle
|
||||
onToggle={this.handleChange(['defaultSettings', 'themeMode'], value => value)}
|
||||
settings={settings}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className='fields-row__column fields-group fields-row__column-6'>
|
||||
<FileChooserLogo
|
||||
|
@ -269,6 +274,8 @@ class SoapboxConfig extends ImmutablePureComponent {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</FieldsGroup>
|
||||
<FieldsGroup>
|
||||
<div className='input with_block_label'>
|
||||
<label><FormattedMessage id='soapbox_config.fields.home_footer_fields_label' defaultMessage='Home footer items' /></label>
|
||||
<span className='hint'>
|
||||
|
|
|
@ -471,19 +471,23 @@ code {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.select-wrapper::after {
|
||||
display: block;
|
||||
font-family: 'ForkAwesome';
|
||||
content: '';
|
||||
width: 10px;
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
top: 1px;
|
||||
border-left: 1px solid var(--highlight-text-color);
|
||||
height: 39px;
|
||||
padding: 12px;
|
||||
box-sizing: border-box;
|
||||
pointer-events: none;
|
||||
.select-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&::after {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-family: "ForkAwesome";
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
border-left: 1px solid var(--highlight-text-color);
|
||||
height: calc(100% - 8px);
|
||||
padding-left: 12px;
|
||||
pointer-events: none;
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.label_input {
|
||||
|
@ -704,6 +708,7 @@ code {
|
|||
right: 7px;
|
||||
cursor: pointer;
|
||||
color: $error-red;
|
||||
transform: translateY(9px);
|
||||
}
|
||||
|
||||
.site-preview {
|
||||
|
@ -735,3 +740,13 @@ code {
|
|||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.input.with_label.toggle .label_input {
|
||||
display: flex;
|
||||
font-size: 14px;
|
||||
align-items: center;
|
||||
|
||||
.theme-toggle {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue