Merge pull request #1898 from consul/clean-css

Clean CSS
This commit is contained in:
BertoCQ
2017-09-21 10:24:03 +02:00
committed by GitHub
10 changed files with 21 additions and 20 deletions

View File

@@ -6,7 +6,7 @@ App.Documentable =
initializeDirectUploads: ->
$('input.document_ajax_attachment[type=file]').fileupload
$('input.js-document-attachment[type=file]').fileupload
paramName: "document[attachment]"
@@ -38,7 +38,7 @@ App.Documentable =
return
initializeInterface: ->
input_files = $('input.document_ajax_attachment[type=file]')
input_files = $('input.js-document-attachment[type=file]')
$.each input_files, (index, file) ->
wrapper = $(file).parent()

View File

@@ -1,5 +1,6 @@
.communities-show {
.button.disabled, .button[disabled] {
.button.disabled,
.button[disabled] {
pointer-events: none;
}

View File

@@ -44,18 +44,18 @@
position: absolute;
top: 4px;
width: rem-calc(30);
&:hover {
text-decoration: none;
text-decoration: none;
}
}
.ui-datepicker-prev::after {
content: '\62';
content: '\62';
}
.ui-datepicker-next::after {
content: '\63';
content: '\63';
}
table {

View File

@@ -3,18 +3,22 @@
}
.document-form {
.document .file-name {
margin-top: 0;
}
.progress-bar-placeholder {
margin-bottom: 15px;
}
.document .loading-bar.errors {
margin-top: $line-height * 2;
}
}
.document {
.button {
font-weight: normal;
}
@@ -24,7 +28,7 @@
background-color: $light-gray;
}
input.document_ajax_attachment[type=file]{
.js-document-attachment {
display: none;
}

View File

@@ -312,10 +312,6 @@ a {
}
}
.no-max-width {
max-width: none;
}
.button.float-right ~ .button.float-right {
margin: 0 $line-height / 2;
}

View File

@@ -251,7 +251,7 @@
.spending-proposal-form,
.document-form,
.topic-new,
.topic-form {
.topic-form {
.icon-debates,
.icon-proposals,
@@ -769,7 +769,7 @@
display: none;
}
.document-form{
.document-form {
max-width: 75rem;
margin-left: auto;
margin-right: auto;

View File

@@ -54,7 +54,7 @@ module DocumentsHelper
def render_attachment(document, index)
html = file_field_tag :attachment,
accept: accepted_content_types_extensions(document.documentable_type.constantize),
class: 'document_ajax_attachment',
class: 'js-document-attachment',
data: {
url: document_direct_upload_url(document),
cached_attachment_input_field: document_nested_field_id(document, index, :cached_attachment),

View File

@@ -13,7 +13,7 @@
<%= file_field_tag :attachment,
accept: accepted_content_types_extensions(document.documentable.class),
label: false,
class: 'document_ajax_attachment',
class: 'js-document-attachment',
data: {
url: upload_documents_url(documentable_type: document.documentable_type, documentable_id: document.documentable_id),
cached_attachment_input_field: "document_cached_attachment",

View File

@@ -30,7 +30,7 @@
<div class="off-canvas-content" data-off-canvas-content>
<%= render 'layouts/admin_header' %>
<div class="no-margin-top row no-max-width collapse" data-equalizer>
<div class="no-margin-top row expanded collapse" data-equalizer>
<div class="small-12 medium-3 column" data-equalizer-watch>
<div class="show-for-small-only">

View File

@@ -45,7 +45,7 @@
</div>
</header>
<main class="no-margin-top row no-max-width collapse">
<main class="no-margin-top row expanded collapse">
<div class="small-12 medium-3 column">
<%= render "/management/menu" %>
</div>