From c12d4166752073d00a99c117e6d06b6f8d038842 Mon Sep 17 00:00:00 2001 From: Josiah Ivey Date: Wed, 10 May 2023 07:22:06 -0700 Subject: [PATCH 1/7] remove condensed styles --- .../application/remote-access-helpers.coffee | 4 --- app/assets/stylesheets/application.scss | 1 - app/assets/stylesheets/condensed.scss | 26 ------------------- 3 files changed, 31 deletions(-) delete mode 100644 app/assets/stylesheets/condensed.scss diff --git a/app/assets/javascripts/application/remote-access-helpers.coffee b/app/assets/javascripts/application/remote-access-helpers.coffee index d012b7bacc..658ce5f50f 100644 --- a/app/assets/javascripts/application/remote-access-helpers.coffee +++ b/app/assets/javascripts/application/remote-access-helpers.coffee @@ -40,10 +40,6 @@ $(document).ready -> # the below clause will that window # or (window.opener and window.name is 'oxlogin') - # we're being loaded inside an iframe or a popup - # Set a css class to adjusted to fit a narrow screen - $(document.body).addClass('condensed iframe') - relayHeading() # notify the parent iframe of our size now and whenever it's changed diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index aa31f6cd3d..d9ab9a56be 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -20,7 +20,6 @@ $font-path: '/accounts/fonts'; @import "misc"; @import "application_js_hooks"; @import "pagination"; -@import "condensed"; /* Set a max-width, maintaining responsiveness */ diff --git a/app/assets/stylesheets/condensed.scss b/app/assets/stylesheets/condensed.scss deleted file mode 100644 index bf887cb3ff..0000000000 --- a/app/assets/stylesheets/condensed.scss +++ /dev/null @@ -1,26 +0,0 @@ -body.condensed { - - background: white; - - #application-header, - #application-footer, - #upper-corner-console, - .sign-out { - display: none; - } - #application-container { - margin: 0; - padding: 0; - background: white; - } - #application-body { - margin: 0; - padding: 0; - } - .ox-card { - width: 100%; - max-width: 100%; - background: white; - } - -} From ca6048cf8d71e2eef5dc28dcc64e4c5fde63deb9 Mon Sep 17 00:00:00 2001 From: Josiah Ivey Date: Wed, 10 May 2023 15:34:46 -0700 Subject: [PATCH 2/7] update card padding and max width --- app/assets/stylesheets/controls/_card.scss | 19 ++++++++++++++++++- app/views/terms/pose.html.erb | 5 +++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/controls/_card.scss b/app/assets/stylesheets/controls/_card.scss index a4bccd8ba8..39d9013ed7 100644 --- a/app/assets/stylesheets/controls/_card.scss +++ b/app/assets/stylesheets/controls/_card.scss @@ -1,14 +1,19 @@ .ox-card { $input-height: 50px; $input-border-color: darken($os_light_gray, 10%); + $card-padding: 50px; display: block; margin: auto; max-width: 570px; background-color: $os_light_gray; - padding: 30px 50px 50px 50px; + padding: 30px $card-padding $card-padding; font-size: 14px; + &.wide { + max-width: initial; + } + h1, h2, h3, .minor-heading { font-family: $os_heading_font_family; font-weight: 700; @@ -130,4 +135,16 @@ } } + .footer { + margin: $card-padding $card-padding*-1 $card-padding*-1; + padding: 1.8rem $card-padding; + border-top: 1px solid #D5D5D5; + background: #F5F5F5; + display: flex; + justify-content: space-between; + + &.checkbox { + align-self: center; + } + } } diff --git a/app/views/terms/pose.html.erb b/app/views/terms/pose.html.erb index 16032c39ac..37762ab218 100644 --- a/app/views/terms/pose.html.erb +++ b/app/views/terms/pose.html.erb @@ -1,4 +1,4 @@ -<%= ox_card(heading: @contract.title) do %> +<%= ox_card(heading: @contract.title, classes: "wide") do %> <% if FinePrint.signed_any_version_of_contract?(current_user, @contract) %>

<%= t :".contracts_changed_notice", contract_title: @contract.title %>

@@ -13,7 +13,8 @@ <%= lev_form_for( :agreement, url: agree_to_terms_path(r: params[:r], token: params[:token]), - method: :post + method: :post, + html: { class: 'footer' } ) do |f| %>