Skip to content

Commit

Permalink
Misc: style adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
HFG43 committed Oct 20, 2023
1 parent 9d9e214 commit 7df03d1
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 17 deletions.
42 changes: 30 additions & 12 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ a {

.sign_section a:hover {
color: #fff;
background-color: #3778c2;
background-color: #3878c2;
border-radius: 6px;
}

Expand All @@ -63,10 +63,12 @@ a {
font-weight: 400;
display: flex;
justify-content: space-between;
align-items: center;
}

.navbar_center {
margin-bottom: 50px;
align-items: center;
padding-top: 32px;
padding-bottom: 18px;
background-color: #3778c2;
Expand All @@ -76,26 +78,37 @@ a {
justify-content: center;
}

.nav_sign_out {
color: #fff;
margin-right: 12px;
}

.nav_path {
font-size: 1.3rem;
}

.arrow {
height: 18px;
margin: 0 12px;
margin-left: 12px;
}

.icon {
width: 50px;
height: 50px;
width: 75px;
height: 75px;
}

.reg_text_col {
color: rgb(132, 132, 132);
font-weight: 700;
text-decoration: none;
font-size: 1rem;
}

.reg_text_col_bold {
color: rgb(89, 98, 106);
font-weight: 900;
text-decoration: none;
font-size: 1rem;
}

.register {
Expand All @@ -106,7 +119,7 @@ a {
}

.lines {
padding: 12px 0;
padding: 22px 0;
border-bottom: 1px solid #d8d4d4;
}

Expand All @@ -123,9 +136,13 @@ input {

.sign_up_button {
text-decoration: none;
padding: 8px 0;
padding: 8px;
color: rgb(89, 98, 106);
align-self: center;
margin-top: 20px;
margin-bottom: 20px;
border: 1px solid rgb(134, 138, 141);
border-radius: 4px;
}

.bottom_button_container {
Expand All @@ -150,6 +167,7 @@ input {
display: flex;
align-self: center;
margin: 0 3%;
width: 90%;
}

.category_container {
Expand All @@ -169,15 +187,15 @@ input {
.category_data_container {
display: flex;
justify-content: space-between;
margin: 0 9px;
padding: 9px 0;
font-size: 0.8rem;
margin: 0 13px;
padding: 13px 0;
font-size: 0.9rem;
border-bottom: 1px solid #f5f3f3;
}

.category_data_date {
padding: 9px;
font-size: 0.7rem;
font-size: 0.85rem;
}

.category_show_container {
Expand All @@ -203,14 +221,14 @@ input {
}

h3 {
font-size: 0.75rem;
font-size: 0.85rem;
}

.trans_header {
align-items: center;
justify-content: flex-start;
gap: 9px;
font-size: 0.8rem;
font-size: 0.9rem;
}

.bottom_line {
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/expenses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class ExpensesController < ApplicationController
before_action :authenticate_user!

def new
@path_description = 'TRANSACTION'
@path_description = 'NEW TRANSACTION'
@author = current_user
@groups = current_user.groups
@group = @groups.find(params[:group_id])
Expand Down
2 changes: 1 addition & 1 deletion app/views/expenses/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>

<div class="bottom_button_container">
<%= form.submit "ADD NEW EXPENSE", class: 'bottom_button' %>
<%= form.submit "ADD NEW TRANSACTION", class: 'bottom_button' %>
</div>
<% end %>
</div>
4 changes: 2 additions & 2 deletions app/views/layouts/_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<%= image_tag 'arrow.svg', class: 'arrow'%>
<%end%>
<% end %>
<p><%= "#{@path_description}"%></p>
<p class="nav_path"><%= "#{@path_description}"%></p>

<%unless current_page?(groups_path)%>
<%= image_tag 'right_arrow.svg', class: 'arrow'%>
<%= link_to 'Sign Out', destroy_user_session_path, data: { turbo_method: :delete }, class: 'nav_sign_out' %>
<% end %>
</div>
2 changes: 1 addition & 1 deletion app/views/pages/welcome.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<% if user_signed_in? %>
<%= link_to 'Sign Out', destroy_user_session_path, data: { turbo_method: :delete } %>
<% else %>
<%= link_to 'Sign In', new_user_session_path %>
<%= link_to 'Log In', new_user_session_path %>
<%= link_to 'Sign Up', new_user_registration_path %>
<% end %>
</section>

0 comments on commit 7df03d1

Please sign in to comment.