From 5568da2439a8132b6de868d6cb72de66a070e4e1 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 20 Mar 2017 09:52:35 +0000 Subject: [PATCH 1/2] =?UTF-8?q?Remove=20the=20=E2=80=98phone=E2=80=99=20co?= =?UTF-8?q?mponent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was used on the old product page to do the graphic of three phones showing three different messages. We don’t have this any more, so this ‘component’ is unused. Also removes some unused imports which were a hangover from previous versions of the product page. --- app/templates/components/phone.html | 16 ---------------- app/templates/views/signedout.html | 4 ---- 2 files changed, 20 deletions(-) delete mode 100644 app/templates/components/phone.html diff --git a/app/templates/components/phone.html b/app/templates/components/phone.html deleted file mode 100644 index dd1b72607..000000000 --- a/app/templates/components/phone.html +++ /dev/null @@ -1,16 +0,0 @@ -{% macro phone(recipient, message) %} -
-
-
-

- - Example text message - - To: {{recipient}} -

-
- {{ message }} -
-
-
-{% endmacro %} diff --git a/app/templates/views/signedout.html b/app/templates/views/signedout.html index 723d3c8ab..a76cb119d 100644 --- a/app/templates/views/signedout.html +++ b/app/templates/views/signedout.html @@ -1,7 +1,3 @@ -{% from 'components/big-number.html' import big_number %} -{% from "components/banner.html" import banner_wrapper %} -{% from "components/phone.html" import phone %} - {% extends "fullwidth_template.html" %} {% block page_title %} From 84ef532b9ae356b5107cc26a64c1113feaf8129c Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 20 Mar 2017 09:48:59 +0000 Subject: [PATCH 2/2] Remove unwanted SASS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit None of this SASS is used by the app any more. But we’re still shipping it to every user. Let’s save some filesize by not doing so. --- app/assets/stylesheets/components/phone.scss | 40 ---------- app/assets/stylesheets/main.scss | 4 - .../stylesheets/views/documenation.scss | 80 ------------------- .../stylesheets/views/edit-template.scss | 23 ------ app/assets/stylesheets/views/job.scss | 4 - 5 files changed, 151 deletions(-) delete mode 100644 app/assets/stylesheets/components/phone.scss delete mode 100644 app/assets/stylesheets/views/documenation.scss delete mode 100644 app/assets/stylesheets/views/edit-template.scss delete mode 100644 app/assets/stylesheets/views/job.scss diff --git a/app/assets/stylesheets/components/phone.scss b/app/assets/stylesheets/components/phone.scss deleted file mode 100644 index 97f22fbba..000000000 --- a/app/assets/stylesheets/components/phone.scss +++ /dev/null @@ -1,40 +0,0 @@ -.phone { - - background: $black; - border-radius: 15px; - padding: 15px; - - &-speaker { - margin: 5px auto 20px; - border-radius: 5px; - width: 30px; - height: 7px; - background: rgba($white, 0.2); - } - - &-screen { - background: $white; - color: $black; - min-height: 377px; - border-radius: 1px; - } - - &-recipient { - @include core-16($tabular-numbers: true); - margin: 0 0 5px 7px; - padding-top: 10px; - color: $secondary-text-colour; - } - - &-sms { - padding: 10px; - margin: 10px; - background: $panel-colour; - border-radius: 5px; - } - -} - -.phone-container { - margin-bottom: -200px; -} diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss index 04900a42f..56cc1caf8 100644 --- a/app/assets/stylesheets/main.scss +++ b/app/assets/stylesheets/main.scss @@ -54,7 +54,6 @@ $path: '/static/images/'; @import 'components/secondary-button'; @import 'components/show-more'; @import 'components/message'; -@import 'components/phone'; @import 'components/research-mode'; @import 'components/tick-cross'; @import 'components/list-entry'; @@ -62,9 +61,6 @@ $path: '/static/images/'; @import 'components/vendor/breadcrumbs'; @import 'components/vendor/responsive-embed'; -@import 'views/job'; -@import 'views/edit-template'; -@import 'views/documenation'; @import 'views/dashboard'; @import 'views/users'; @import 'views/api'; diff --git a/app/assets/stylesheets/views/documenation.scss b/app/assets/stylesheets/views/documenation.scss deleted file mode 100644 index 5427a2c42..000000000 --- a/app/assets/stylesheets/views/documenation.scss +++ /dev/null @@ -1,80 +0,0 @@ -.documentation { - - h1, - h2, - h3, - h4, - h5, - h6 { - margin: $gutter 0 $gutter-half 0; - } - - h1 { - @include heading-48; - font-weight: bold; - } - - h2 { - @include heading-36; - font-weight: bold; - } - - h3 { - @include heading-24; - font-weight: bold; - } - - h4, - h5, - h6 { - @include bold-19; - } - - p, - ul { - margin: 0 0 20px 0; - } - - ul { - - list-style: disc; - margin: 0 0 20px 20px; - - ul { - margin-bottom: 0; - } - - } - - ol { - list-style: decimal; - margin: 0 0 20px 20px; - } - - blockquote { - border-left: 8px solid $border-colour; - padding: 0 0 0 20px; - margin: 0 0 20px 0; - } - - pre, - code { - font-size: 16px; - } - - code { - background: $highlight-colour; - padding: 2px 5px; - } - - .highlight { - margin: 0 0 20px 0; - background: $highlight-colour; - } - - strong, - em { - font-weight: bold; - } - -} diff --git a/app/assets/stylesheets/views/edit-template.scss b/app/assets/stylesheets/views/edit-template.scss deleted file mode 100644 index bc20c53ae..000000000 --- a/app/assets/stylesheets/views/edit-template.scss +++ /dev/null @@ -1,23 +0,0 @@ -.placeholder-hint { - - display: block; - - &-title { - @include bold-19; - } - - &-action { - - @include bold-19; - display: inline-block; - text-decoration: underline; - cursor: pointer; - - &:active { - background: $yellow-25; - outline: none; - } - - } - -} diff --git a/app/assets/stylesheets/views/job.scss b/app/assets/stylesheets/views/job.scss deleted file mode 100644 index b2984e864..000000000 --- a/app/assets/stylesheets/views/job.scss +++ /dev/null @@ -1,4 +0,0 @@ -.job-totals { - margin-top: $gutter; - margin-bottom: $gutter; -}