css fix
This commit is contained in:
parent
264052ad0d
commit
c5bb5f939c
|
@ -2,8 +2,49 @@
|
||||||
<%= stylesheet_link_tag "universal_table/universal-table" %>
|
<%= stylesheet_link_tag "universal_table/universal-table" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<style>
|
<style>
|
||||||
|
#entry-status{
|
||||||
|
float: right;
|
||||||
|
margin-right: 1em;
|
||||||
|
|
||||||
|
}
|
||||||
|
.toggle_entries[data-status="show"] {
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 4px 12px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
font-family: 'Varela Round';
|
||||||
|
letter-spacing: -.4px;
|
||||||
|
color: #ffffff;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
background-color: #007AFF;
|
||||||
|
margin-right: 0.5em;
|
||||||
|
&:hover{
|
||||||
|
background-color:#1A73E8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.toggle_entries[data-status="hide"] {
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 4px 12px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 20px;
|
||||||
|
font-family: 'Varela Round';
|
||||||
|
letter-spacing: -.4px;
|
||||||
|
color: #ffffff;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
background-color: #5F6368;
|
||||||
|
margin-right: 0.5em;
|
||||||
|
&:hover{
|
||||||
|
background-color:#4b4e53;
|
||||||
|
}
|
||||||
|
}
|
||||||
.hidden_entry{
|
.hidden_entry{
|
||||||
background-color: grey;
|
td{
|
||||||
|
background-color: #9eacb5a8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<form class="form-search" action="<%= admin_universal_table_path(@table) %>" method="get">
|
<form class="form-search" action="<%= admin_universal_table_path(@table) %>" method="get">
|
||||||
|
@ -108,6 +149,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$(".action").after($("#entry-status"));
|
||||||
let audio;
|
let audio;
|
||||||
$(".voice-player").on("click", function(){
|
$(".voice-player").on("click", function(){
|
||||||
let status = $(this).attr('status');
|
let status = $(this).attr('status');
|
||||||
|
@ -141,7 +183,8 @@ $(".hide-toggle").on("click", function(){
|
||||||
if(count > 0){
|
if(count > 0){
|
||||||
$("#entry-status").removeClass("hide")
|
$("#entry-status").removeClass("hide")
|
||||||
}else{
|
}else{
|
||||||
$("#entry-status").addClass("hide")
|
$("#entry-status").addClass("hide");
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$(".toggle_entries").on("click", function(){
|
$(".toggle_entries").on("click", function(){
|
||||||
|
|
Loading…
Reference in New Issue