Skip to content

Commit

Permalink
minor styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 15, 2024
1 parent 14d2521 commit d245ee9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/bootstrap_and_overrides.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ $yorku_brand: #e31837;
.unassign a { color: $danger }
}
}

.committee-member-name {
font-weight: bold !important;
}
}

.thesis-list:nth-child(even) {
Expand Down
4 changes: 2 additions & 2 deletions app/views/committee_members/_committee_member.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="committee_member" id="committee_member_<%= committee_member.id %>">
<label><span class="fw-normal"><%= committee_member.name %></span> <span class="fw-normal fst-italic">(<%= committee_member.role %>)</span></label>
<div class="committee-member" id="committee_member_<%= committee_member.id %>">
<label><span class="committee-member-name fw-normal"><%= committee_member.name %></span> <span class="fw-normal fst-italic">(<%= committee_member.role %>)</span></label>
<%= hidden_field_tag "committee_member_ids[]", committee_member.id %>
<% if @thesis.id && can?(:destroy, committee_member) && @thesis.status != Thesis::PUBLISHED %>
<%= link_to student_thesis_committee_member_path(@student, @thesis, committee_member),
Expand Down
11 changes: 2 additions & 9 deletions app/views/documents/_document.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
<div class="row border rounded mx-auto my-2" id="document_<%= document.id %>">
<div class="col-12 col-md-1 p-3">
<div class="d-flex align-items-center">
<div class="flex-shrink-0">
<i class="fa fa-file fa-2x me-2 text-warning"></i>
</div>
</div>
</div>

<div class="col-12 col-md-6 p-3">
<i class="fa fa-file fa-2x me-2 text-warning"></i>
<span class="name text-wrap text-break <%= "supplemental" if document.supplemental? %>">
<%= document.name %>
<span class="weak small">[<%=number_to_human_size document.file.file.size rescue nil %>]</span>
</span>
<span class="weak small">[<%=number_to_human_size document.file.file.size rescue nil %>]</span>
</div>

<div class="col-12 col-md-5 d-flex flex-column flex-md-row justify-content-md-end align-items-start align-items-md-center">
Expand Down
12 changes: 6 additions & 6 deletions app/views/student_view/process/update.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="thesis data-grid">
<hr/>
<div class="row">
<div class="col-md-12 col-lg-8">
<div class="col-md-12 col-lg-12">
<h4>Title</h4>
<p><%= @thesis.title %></p>
</div>
Expand Down Expand Up @@ -52,12 +52,12 @@
<h4>Program</h4>
<p><%= format @thesis.program %></p>
</div>
<div class="col-md-6 col-lg-4">
<h4>Examination committee members</h4>
<% @thesis.committee_members.each do |committee_member| %>
<%= render committee_member %>
<% end %>
</div>
<div class="row">
<h4>Examination committee members</h4>
<% @thesis.committee_members.each do |committee_member| %>
<%= render committee_member %>
<% end %>
</div>
</div>

Expand Down

0 comments on commit d245ee9

Please sign in to comment.