mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix small css issues
This commit is contained in:
parent
9747a72567
commit
e022f7a096
6 changed files with 14 additions and 14 deletions
|
@ -198,8 +198,8 @@
|
||||||
var collapseIcon = $(this).find(".collapse-step-icon");
|
var collapseIcon = $(this).find(".collapse-step-icon");
|
||||||
var collapsed = $(this).hasClass("collapsed");
|
var collapsed = $(this).hasClass("collapsed");
|
||||||
// Toggle collapse button
|
// Toggle collapse button
|
||||||
collapseIcon.toggleClass("fa-caret-square-up", !collapsed);
|
collapseIcon.toggleClass("fa-chevron-up", !collapsed);
|
||||||
collapseIcon.toggleClass("fa-caret-square-down", collapsed);
|
collapseIcon.toggleClass("fa-chevron-down", collapsed);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -645,16 +645,16 @@
|
||||||
renderTable($(this));
|
renderTable($(this));
|
||||||
});
|
});
|
||||||
$(document).find("span.collapse-step-icon").each(function() {
|
$(document).find("span.collapse-step-icon").each(function() {
|
||||||
$(this).addClass("fa-caret-square-up");
|
$(this).addClass("fa-chevron-up");
|
||||||
$(this).removeClass("fa-caret-square-down");
|
$(this).removeClass("fa-chevron-down");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function expandStep(step) {
|
function expandStep(step) {
|
||||||
$('.panel-collapse', step).collapse('show');
|
$('.panel-collapse', step).collapse('show');
|
||||||
$(step).find("span.collapse-step-icon")
|
$(step).find("span.collapse-step-icon")
|
||||||
.addClass("fa-caret-square-up")
|
.addClass("fa-chevron-up")
|
||||||
.removeClass("fa-caret-square-down");
|
.removeClass("fa-chevron-down");
|
||||||
$(step).find("div.step-result-hot-table").each(function() {
|
$(step).find("div.step-result-hot-table").each(function() {
|
||||||
renderTable($(this));
|
renderTable($(this));
|
||||||
});
|
});
|
||||||
|
@ -703,8 +703,8 @@
|
||||||
$("[data-action='collapse-steps']").click(function () {
|
$("[data-action='collapse-steps']").click(function () {
|
||||||
$('.step .panel-collapse').collapse('hide');
|
$('.step .panel-collapse').collapse('hide');
|
||||||
$(document).find("span.collapse-step-icon").each(function() {
|
$(document).find("span.collapse-step-icon").each(function() {
|
||||||
$(this).addClass("fa-caret-square-down");
|
$(this).addClass("fa-chevron-down");
|
||||||
$(this).removeClass("fa-caret-square-up");
|
$(this).removeClass("fa-chevron-up");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("[data-action='expand-steps']").click(expandAllSteps);
|
$("[data-action='expand-steps']").click(expandAllSteps);
|
||||||
|
|
|
@ -11,7 +11,7 @@ $font-size-h2: 18px;
|
||||||
$font-size-h3: $font-size-base;
|
$font-size-h3: $font-size-base;
|
||||||
$font-size-h4: $font-size-base;
|
$font-size-h4: $font-size-base;
|
||||||
$font-size-h5: $font-size-base;
|
$font-size-h5: $font-size-base;
|
||||||
$font-size-h6: $font-size-base;
|
$font-size-h6: 12px;
|
||||||
|
|
||||||
$font-fas-check: "\f00c";
|
$font-fas-check: "\f00c";
|
||||||
$font-fas-exclamation-triangle: "\f071";
|
$font-fas-exclamation-triangle: "\f071";
|
||||||
|
|
|
@ -71,7 +71,6 @@
|
||||||
.step-name-link {
|
.step-name-link {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
line-height: 100%;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.name-block {
|
.name-block {
|
||||||
|
|
|
@ -347,6 +347,7 @@ a[data-toggle="tooltip"] {
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
@include box-shadow(0 4px 0 $brand-primary);
|
@include box-shadow(0 4px 0 $brand-primary);
|
||||||
|
line-height: 24px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
|
|
||||||
& > a,
|
& > a,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h4 class="ga-title">
|
<h2 class="ga-title">
|
||||||
<%= t('activities.index.global_activities_title') %>
|
<%= t('activities.index.global_activities_title') %>
|
||||||
</h4>
|
</h2>
|
||||||
<div class="ga-actions">
|
<div class="ga-actions">
|
||||||
<div class="sci-btn-group">
|
<div class="sci-btn-group">
|
||||||
<a id="global-activities-expand-all" class="hide-actions btn btn-light" href="#" data-turbolinks="false">
|
<a id="global-activities-expand-all" class="hide-actions btn btn-light" href="#" data-turbolinks="false">
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- Secondary navigation title -->
|
<!-- Secondary navigation title -->
|
||||||
<h4 class="nav-name <%= @inline_editable_title_config.present? ? 'editable' : '' %>">
|
<h2 class="nav-name <%= @inline_editable_title_config.present? ? 'editable' : '' %>">
|
||||||
<% if @inline_editable_title_config.present? %>
|
<% if @inline_editable_title_config.present? %>
|
||||||
<%= render partial: "shared/inline_editing",
|
<%= render partial: "shared/inline_editing",
|
||||||
locals: {
|
locals: {
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= title_element.name %>
|
<%= title_element.name %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</h4>
|
</h2>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue