Make minor buttons smaller, change conflicting class (used elsewhere)

This commit is contained in:
Paul Clarke 2016-10-21 11:58:18 +13:00
parent c0623a4962
commit df9b73725a
3 changed files with 10 additions and 10 deletions

View File

@ -34,7 +34,7 @@ $.entwine('ss', function($) {
}
// Transfer current value to holder
this.find('.preview').attr('href', encodeURI(url + field.data('suffix'))).text(previewUrl);
this.find('.URL-link').attr('href', encodeURI(url + field.data('suffix'))).text(previewUrl);
},
/**

View File

@ -99,7 +99,7 @@
background: url(../../images/loading.gif) no-repeat 162px 8px;
}
.preview {
.URL-link {
padding-top: 8px;
display: inline-block;
}

View File

@ -1,19 +1,19 @@
<div class="preview-holder">
<a class="preview" href="$URL" target="_blank">
<a class="URL-link" href="$URL" target="_blank">
$URL
</a>
<% if not $IsReadonly %>
<button role="button" type="button" class="btn ui-button-text-only ss-ui-button edit">
<button role="button" type="button" class="btn btn-sm ui-button-text-only ss-ui-button edit">
<% _t('URLSegmentField.Edit', 'Edit') %>
</button>
<% end_if %>
</div>
<div class="edit-holder">
<input $AttributesHTML />
<button role="button" data-icon="accept" type="button" class="btn ui-button-text-icon-primary ss-ui-button update">
<button role="button" data-icon="accept" type="button" class="btn btn-sm ui-button-text-icon-primary ss-ui-button update">
<% _t('URLSegmentField.OK', 'OK') %>
</button>
<button role="button" data-icon="cancel" type="button" class="btn ui-button-text-icon-secondary ss-ui-button cancel">
<button role="button" data-icon="cancel" type="button" class="btn btn-sm ui-button-text-icon-secondary ss-ui-button cancel">
<% _t('URLSegmentField.Cancel', 'Cancel') %>
</button>
<% if $HelpText %><p class="form__field-description">$HelpText</p><% end_if %>