Fix some publisher.scss scss-lint errors
This commit is contained in:
parent
f06ff01c9e
commit
bf17205c17
3 changed files with 79 additions and 72 deletions
|
|
@ -123,24 +123,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.with-location) .location-container { display: none; }
|
|
||||||
|
|
||||||
&.with-location .loader {
|
|
||||||
height: 20px;
|
|
||||||
width: 20px;
|
|
||||||
}
|
|
||||||
&.with-location .location-container {
|
|
||||||
height: 30px;
|
|
||||||
margin-bottom: 0;
|
|
||||||
border-top: 1px dashed $border-grey;
|
|
||||||
input[type='text'] {
|
|
||||||
border: none;
|
|
||||||
color: $text-grey;
|
|
||||||
height: 20px;
|
|
||||||
margin-bottom: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&.active #button_container {
|
&.active #button_container {
|
||||||
border-top: 1px solid $border-grey;
|
border-top: 1px solid $border-grey;
|
||||||
}
|
}
|
||||||
|
|
@ -208,48 +190,6 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#publisher-images {
|
|
||||||
margin-right: 5px;
|
|
||||||
#file-upload,
|
|
||||||
#locator,
|
|
||||||
#poll_creator,
|
|
||||||
#hide_location {
|
|
||||||
text-decoration: none !important;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: $line-height-computed;
|
|
||||||
padding: 4px 2px;
|
|
||||||
i {
|
|
||||||
color: $text-grey;
|
|
||||||
}
|
|
||||||
&:hover{
|
|
||||||
i { color: black; }
|
|
||||||
}
|
|
||||||
input[type='file'] {
|
|
||||||
cursor: pointer;
|
|
||||||
&::-webkit-file-upload-button {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#hide_location {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&.with-location #publisher-images {
|
|
||||||
#hide_location { display: inline-block; }
|
|
||||||
#locator { display: none; }
|
|
||||||
}
|
|
||||||
|
|
||||||
.counter {
|
|
||||||
height: 30px;
|
|
||||||
line-height: 30px;
|
|
||||||
position: absolute;
|
|
||||||
right: 10px;
|
|
||||||
bottom: -25px;
|
|
||||||
}
|
|
||||||
&.with-location .counter {
|
|
||||||
bottom: -62px;
|
|
||||||
}
|
|
||||||
.warning {
|
.warning {
|
||||||
color: orange;
|
color: orange;
|
||||||
}
|
}
|
||||||
|
|
@ -268,3 +208,70 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.publisher-textarea-wrapper {
|
||||||
|
&:not(.with-location) .location-container { display: none; }
|
||||||
|
|
||||||
|
&.with-location .loader {
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.with-location .location-container {
|
||||||
|
border-top: 1px dashed $border-grey;
|
||||||
|
height: 30px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
|
||||||
|
[type='text'] {
|
||||||
|
border: 0;
|
||||||
|
color: $text-grey;
|
||||||
|
height: 20px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.with-location .counter {
|
||||||
|
bottom: -62px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.counter {
|
||||||
|
bottom: -25px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(.with-location) .publisher-buttonbar {
|
||||||
|
.hide-location { display: none; }
|
||||||
|
.locator { display: inline-block; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.with-location .publisher-buttonbar {
|
||||||
|
.hide-location { display: inline-block; }
|
||||||
|
.locator { display: none; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.publisher-buttonbar {
|
||||||
|
float: right;
|
||||||
|
margin-right: 5px;
|
||||||
|
|
||||||
|
.btn.btn-link {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: $line-height-computed;
|
||||||
|
padding: 4px 2px;
|
||||||
|
text-decoration: none;
|
||||||
|
i { color: $text-grey; }
|
||||||
|
|
||||||
|
[type='file'],
|
||||||
|
[type='file']::-webkit-file-upload-button {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn.btn-link:hover {
|
||||||
|
i { color: $black; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
= form_for(StatusMessage.new) do |status|
|
= form_for(StatusMessage.new) do |status|
|
||||||
= status.error_messages
|
= status.error_messages
|
||||||
%params
|
%params
|
||||||
#publisher_textarea_wrapper
|
.publisher-textarea-wrapper#publisher_textarea_wrapper
|
||||||
- if current_user.getting_started?
|
- if current_user.getting_started?
|
||||||
= status.text_area :fake_text, :rows => 2, :value => h(publisher_formatted_text),
|
= status.text_area :fake_text, :rows => 2, :value => h(publisher_formatted_text),
|
||||||
:tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
|
:tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
|
||||||
|
|
@ -29,14 +29,14 @@
|
||||||
#poll_creator_container
|
#poll_creator_container
|
||||||
-# handlebars template
|
-# handlebars template
|
||||||
#button_container
|
#button_container
|
||||||
.pull-right#publisher-images
|
.publisher-buttonbar#publisher-images
|
||||||
.btn.btn-link#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
|
.btn.btn-link.poll-creator#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
|
||||||
%i.entypo-bar-graph
|
%i.entypo-bar-graph
|
||||||
.btn.btn-link#file-upload{title: t("shared.publisher.upload_photos")}
|
.btn.btn-link.file-upload#file-upload{title: t("shared.publisher.upload_photos")}
|
||||||
%i.entypo-camera.publisher_image
|
%i.entypo-camera.publisher_image
|
||||||
.btn.btn-link#locator{title: t("shared.publisher.get_location")}
|
.btn.btn-link.locator#locator{title: t("shared.publisher.get_location")}
|
||||||
%i.entypo-location.publisher_image
|
%i.entypo-location.publisher_image
|
||||||
.btn.btn-link#hide_location{title: t("shared.publisher.remove_location")}
|
.btn.btn-link.hide-location#hide_location{title: t("shared.publisher.remove_location")}
|
||||||
%i.entypo-cross.publisher_image
|
%i.entypo-cross.publisher_image
|
||||||
%span.markdownIndications
|
%span.markdownIndications
|
||||||
!= t("shared.publisher.formatWithMarkdown", markdown_link: link_to(t("help.markdown"),
|
!= t("shared.publisher.formatWithMarkdown", markdown_link: link_to(t("help.markdown"),
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ describe PeopleController, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
# make sure we are signed in
|
# make sure we are signed in
|
||||||
expect(response.body).not_to match(/a class="login"/)
|
expect(response.body).not_to match(/a class="login"/)
|
||||||
expect(response.body).to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "displays the publisher for people path" do
|
it "displays the publisher for people path" do
|
||||||
|
|
@ -22,7 +22,7 @@ describe PeopleController, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
# make sure we are signed in
|
# make sure we are signed in
|
||||||
expect(response.body).not_to match(/a class="login"/)
|
expect(response.body).not_to match(/a class="login"/)
|
||||||
expect(response.body).to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ describe PeopleController, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
# make sure we are signed in
|
# make sure we are signed in
|
||||||
expect(response.body).not_to match(/a class="login"/)
|
expect(response.body).not_to match(/a class="login"/)
|
||||||
expect(response.body).not_to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).not_to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't display the publisher for people path" do
|
it "doesn't display the publisher for people path" do
|
||||||
|
|
@ -46,7 +46,7 @@ describe PeopleController, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
# make sure we are signed in
|
# make sure we are signed in
|
||||||
expect(response.body).not_to match(/a class="login"/)
|
expect(response.body).not_to match(/a class="login"/)
|
||||||
expect(response.body).not_to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).not_to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -57,7 +57,7 @@ describe PeopleController, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
# make sure we aren't signed in
|
# make sure we aren't signed in
|
||||||
expect(response.body).to match(/a class="login"/)
|
expect(response.body).to match(/a class="login"/)
|
||||||
expect(response.body).not_to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).not_to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't display the publisher for people path" do
|
it "doesn't display the publisher for people path" do
|
||||||
|
|
@ -66,7 +66,7 @@ describe PeopleController, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
# make sure we aren't signed in
|
# make sure we aren't signed in
|
||||||
expect(response.body).to match(/a class="login"/)
|
expect(response.body).to match(/a class="login"/)
|
||||||
expect(response.body).not_to match(/div id='publisher_textarea_wrapper'/)
|
expect(response.body).not_to match(/div class='publisher-textarea-wrapper' id='publisher_textarea_wrapper'/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue