From 4b93437351b59dd2fb872cba1315b4726da4a148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 18 Feb 2020 18:23:04 +0100 Subject: [PATCH 1/5] Remove unused layout It isn't used since commit e5f9cf67. --- .../layouts/proposals_dashboard.html.erb | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 app/views/layouts/proposals_dashboard.html.erb diff --git a/app/views/layouts/proposals_dashboard.html.erb b/app/views/layouts/proposals_dashboard.html.erb deleted file mode 100644 index 050fde8a6..000000000 --- a/app/views/layouts/proposals_dashboard.html.erb +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - <%= render "layouts/tracking_data" %> - <%= render "layouts/meta_tags" %> - <%= content_for?(:title) ? yield(:title) : setting["org_name"] %> - <%= content_for :canonical %> - <%= stylesheet_link_tag "application" %> - <%= javascript_include_tag "application", "data-turbolinks-track" => "reload" %> - <%= csrf_meta_tags %> - <%= favicon_link_tag "favicon.ico" %> - <%= favicon_link_tag image_path_for("apple-touch-icon-200.png"), - rel: "icon apple-touch-icon", - sizes: "200x200", - type: "image/png" %> - <%= content_for :social_media_meta_tags %> - - <%= raw setting["per_page_code_head"] %> - - - <%= raw setting["per_page_code_body"] %> - -

<%= setting["org_name"] %>

- -
-
-
-
-
- <%= render "proposals_dashboard/menu" %> -
-
-
- -
- <%= render "layouts/header", with_subnavigation: false %> - -
-
- -
- -
- -
-
- <%= render "proposals_dashboard/menu" %> -
-
-
-
- <%= render "layouts/flash" %> - <%= render "layouts/dashboard/proposal_totals" %> - <%= render "layouts/dashboard/proposal_header" %> - <%= yield %> -
-
-
-
-
- - From 2363aa4c7699c3d82b5b98c73c57035f1e60b043 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 27 Mar 2020 12:59:58 +0100 Subject: [PATCH 2/5] Avoid using a mixin for side menu and content styles --- app/assets/stylesheets/admin.scss | 4 ---- app/assets/stylesheets/dashboard.scss | 4 ---- app/assets/stylesheets/layout.scss | 19 +++++++++++++++ app/assets/stylesheets/mixins.scss | 33 ++++----------------------- app/views/layouts/admin.html.erb | 2 +- app/views/layouts/dashboard.html.erb | 2 +- 6 files changed, 26 insertions(+), 38 deletions(-) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index b986816e6..d3709a73f 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -291,10 +291,6 @@ $sidebar-active: #f4fcd0; margin-right: rem-calc(12); } - .side-menu-and-admin-content { - @include side-menu-and-content; - } - .admin-content { .proposal-form { padding-top: 0; diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss index 7de561c42..cfa1985b4 100644 --- a/app/assets/stylesheets/dashboard.scss +++ b/app/assets/stylesheets/dashboard.scss @@ -16,10 +16,6 @@ // 01. Dashboard global // -------------------- -.dashboard-menu-and-content { - @include side-menu-and-content; -} - .proposal-title { display: inline-block; diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 25c769a2a..1118019f1 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -449,6 +449,25 @@ a { margin-top: 0; } +.menu-and-content { + display: flex; + + > :first-child { + flex: 25%; + min-width: 250px; + + > :first-child { + height: 100%; + } + } + + > :last-child { + flex: 75%; + overflow-x: auto; + padding: $line-height !important; + } +} + // 02. Header // ---------- diff --git a/app/assets/stylesheets/mixins.scss b/app/assets/stylesheets/mixins.scss index 289eb83a6..faef06d3f 100644 --- a/app/assets/stylesheets/mixins.scss +++ b/app/assets/stylesheets/mixins.scss @@ -1,9 +1,8 @@ // Table of Contents // // 01. Logo -// 02. Side menu and content -// 03. Orbit bullets -// 04. Direct uploads +// 02. Orbit bullets +// 03. Direct uploads // ------------------ // 01. Logo @@ -22,30 +21,8 @@ } } -// 02. Side menu and content -// ------------------------- - -@mixin side-menu-and-content { - display: flex; - - > :first-child { - flex: 25%; - min-width: 250px; - - > :first-child { - height: 100%; - } - } - - > :last-child { - flex: 75%; - overflow-x: auto; - padding: $line-height !important; - } -} - -// 03. Orbit bullet -// ---------------- +// 02. Orbit bullets +// ----------------- @mixin orbit-bullets { @include disable-mouse-outline; @@ -72,7 +49,7 @@ } } -// 04. Direct uploads +// 03. Direct uploads // ------------------ @mixin direct-uploads { diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index b73dc8fae..b4d0b39e6 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -19,7 +19,7 @@
<%= render "layouts/admin_header" %> -
+