DEV: Clean up some styles (#14374)

This commit is contained in:
Penar Musaraj 2021-09-20 09:52:03 -04:00 committed by GitHub
parent 0dd28cdd95
commit a736ff5f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 62 additions and 112 deletions

View File

@ -4,7 +4,7 @@
{{#if model}}
<form class="form-horizontal">
<div class="badge-preview">
<div class="badge-preview control-group">
{{#if model}}
{{icon-or-image model}}
<span class="badge-display-name">{{model.name}}</span>
@ -12,11 +12,11 @@
<span class="badge-placeholder">{{i18n "admin.badges.mass_award.no_badge_selected"}}</span>
{{/if}}
</div>
<div>
<div class="control-group">
<h4>{{i18n "admin.badges.mass_award.upload_csv"}}</h4>
<input type="file" id="massAwardCSVUpload" accept=".csv" onchange={{action "updateFileSelected"}}>
</div>
<div>
<div class="control-group">
<label>
{{input type="checkbox" checked=replaceBadgeOwners}}
{{i18n "admin.badges.mass_award.replace_owners"}}

View File

@ -1,6 +1,6 @@
{{#d-section class="current-badge content-body"}}
<form class="form-horizontal">
<div>
<div class="control-group">
<label for="name">{{i18n "admin.badges.name"}}</label>
{{#if readOnly}}
{{input type="text" name="name" value=buffered.name disabled=true}}
@ -14,9 +14,9 @@
{{/if}}
</div>
<div>
<div class="control-group">
<label for="graphic">{{i18n "admin.badges.graphic"}}</label>
<div class="radios">
<div class="radios inline-form full-width">
<label class="radio-label" for="badge-icon">
{{radio-button
name="badge-icon"
@ -59,7 +59,7 @@
{{/if}}
</div>
<div>
<div class="control-group">
<label for="badge_type_id">{{i18n "admin.badges.badge_type"}}</label>
{{combo-box
name="badge_type_id"
@ -70,7 +70,7 @@
}}
</div>
<div>
<div class="control-group">
<label for="badge_grouping_id">{{i18n "admin.badges.badge_grouping"}}</label>
<div class="badge-grouping-control">
@ -90,7 +90,7 @@
</div>
</div>
<div>
<div class="control-group">
<label for="description">{{i18n "admin.badges.description"}}</label>
{{#if buffered.system}}
{{textarea name="description" value=buffered.description disabled=true}}
@ -104,7 +104,7 @@
{{/if}}
</div>
<div>
<div class="control-group">
<label for="long_description">{{i18n "admin.badges.long_description"}}</label>
{{#if buffered.system}}
{{textarea name="long_description" value=buffered.long_description disabled=true}}
@ -119,7 +119,7 @@
</div>
{{#if siteSettings.enable_badge_sql}}
<div>
<div class="control-group">
<label for="query">{{i18n "admin.badges.query"}}</label>
{{ace-editor content=buffered.query mode="sql" disabled=readOnly}}
</div>
@ -132,21 +132,21 @@
{{i18n "loading"}}
{{/if}}
<div>
<div class="control-group">
<label>
{{input type="checkbox" checked=buffered.auto_revoke disabled=readOnly}}
{{i18n "admin.badges.auto_revoke"}}
</label>
</div>
<div>
<div class="control-group">
<label>
{{input type="checkbox" checked=buffered.target_posts disabled=readOnly}}
{{i18n "admin.badges.target_posts"}}
</label>
</div>
<div>
<div class="control-group">
<label for="trigger">{{i18n "admin.badges.trigger"}}</label>
{{combo-box
name="trigger"
@ -159,39 +159,41 @@
{{/if}}
{{/if}}
<div>
<label>
{{input type="checkbox" checked=buffered.allow_title}}
{{i18n "admin.badges.allow_title"}}
</label>
</div>
<div class="control-group">
<div>
<label>
{{input type="checkbox" checked=buffered.allow_title}}
{{i18n "admin.badges.allow_title"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.multiple_grant disabled=readOnly}}
{{i18n "admin.badges.multiple_grant"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.multiple_grant disabled=readOnly}}
{{i18n "admin.badges.multiple_grant"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.listable disabled=readOnly}}
{{i18n "admin.badges.listable"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.listable disabled=readOnly}}
{{i18n "admin.badges.listable"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.show_posts disabled=readOnly}}
{{i18n "admin.badges.show_posts"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.show_posts disabled=readOnly}}
{{i18n "admin.badges.show_posts"}}
</label>
</div>
<div>
<label>
{{input type="checkbox" checked=buffered.enabled}}
{{i18n "admin.badges.enabled"}}
</label>
<div>
<label>
{{input type="checkbox" checked=buffered.enabled}}
{{i18n "admin.badges.enabled"}}
</label>
</div>
</div>
<div class="buttons">

View File

@ -14,7 +14,7 @@
<p>{{i18n "admin.badges.no_badges"}}</p>
{{else}}
<form class="form-horizontal">
<div>
<div class="control-group">
<label>{{i18n "admin.badges.badge"}}</label>
{{combo-box
filterable=true
@ -23,7 +23,7 @@
onChange=(action (mut selectedBadgeId))
}}
</div>
<div>
<div class="control-group">
<label>{{i18n "admin.badges.reason"}}</label>
{{input type="text" value=badgeReason}}<br><small>{{i18n "admin.badges.reason_help"}}</small>
</div>

View File

@ -6,13 +6,13 @@
<div class="web-hook-container">
<p>{{i18n "admin.web_hooks.detailed_instruction"}}</p>
<form class="web-hook form-horizontal">
<div>
<div class="control-group">
<label for="payload-url">{{i18n "admin.web_hooks.payload_url"}}</label>
{{text-field name="payload-url" value=model.payload_url placeholderKey="admin.web_hooks.payload_url_placeholder"}}
{{input-tip validation=urlValidation}}
</div>
<div>
<div class="control-group">
<label for="content-type">{{i18n "admin.web_hooks.content_type"}}</label>
{{combo-box
content=contentTypes
@ -22,13 +22,13 @@
}}
</div>
<div>
<div class="control-group">
<label for="secret">{{i18n "admin.web_hooks.secret"}}</label>
{{text-field name="secret" value=model.secret placeholderKey="admin.web_hooks.secret_placeholder"}}
{{input-tip validation=secretValidation}}
</div>
<div class="cbox10">
<div class="control-group">
<label>{{i18n "admin.web_hooks.event_chooser"}}</label>
<div>
{{radio-button class="subscription-choice" name="subscription-choice" value="individual" selection=model.webHookType}}
@ -48,7 +48,7 @@
</div>
</div>
<div class="filters">
<div class="filters control-group">
<div class="filter">
<label>{{d-icon "circle" class="tracking"}}{{i18n "admin.web_hooks.categories_filter"}}</label>
{{category-selector

View File

@ -598,29 +598,11 @@ $mobile-breakpoint: 700px;
}
}
.groups,
.badges,
.web-hook-container {
.form-horizontal {
& > div {
margin-bottom: 20px;
}
.d-editor-textarea-wrapper {
max-width: 60%;
.d-editor-button-bar {
overflow: hidden;
}
}
input,
textarea,
select,
.select-box {
width: 350px;
}
input[type="checkbox"],
input[type="radio"] {
width: 20px;
}
input[type="text"],
textarea {
min-width: 350px;
}
}

View File

@ -252,8 +252,6 @@ table.api-keys {
border-bottom: var(--primary-low) 1px solid;
}
.filters {
margin: 5px 0;
padding-bottom: 5px;
border-bottom: var(--primary-low) 1px solid;
.filter {
margin-bottom: 1em;

View File

@ -80,15 +80,7 @@
width: 350px;
}
}
.form-horizontal {
.radios {
display: flex;
.radio-label {
margin-right: 1.5em;
}
}
.current-badge {
.ace-wrapper {
position: relative;
height: 270px;

View File

@ -351,7 +351,9 @@
}
}
.setting-label {
width: 25%;
@include breakpoint(tablet, min-width) {
width: 25%;
}
word-wrap: break-word;
h3 {
margin-top: 0;

View File

@ -122,14 +122,9 @@ input {
}
.form-horizontal {
.hide {
display: none;
}
input,
textarea,
select {
display: inline-block;
input[type="text"],
input[type="password"],
textarea {
margin-bottom: 0;
}

View File

@ -34,14 +34,6 @@
width: 85%;
}
.group-manage {
.form-horizontal {
button {
float: none;
}
}
}
.groups-form.groups-notifications-form {
width: 500px;
max-width: 100%;

View File

@ -8,10 +8,6 @@
}
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
.user-profile-hidden {
font-size: 1.5em;
text-align: center;

View File

@ -10,11 +10,6 @@ body .admin-customize {
margin-bottom: 1em;
}
.form-horizontal.theme.settings .setting-label,
.admin-container .select-kit {
width: 100%;
}
.admin-container {
display: flex;
flex-wrap: wrap;

View File

@ -308,10 +308,6 @@
}
}
.form-horizontal .control-group.category {
margin-top: 18px;
}
.paginated-topics-list {
margin-top: 20px;
}