From 3c875c99bcf5330ecbe8a42bc8ea6110e61e29ea Mon Sep 17 00:00:00 2001 From: bohung Date: Thu, 6 May 2021 09:19:15 +0800 Subject: [PATCH] Updated. --- .../stylesheets/template/base/_variables.scss | 4 ++-- assets/stylesheets/template/modules/menu.scss | 22 ++++--------------- assets/stylesheets/template/template.scss | 4 +++- home/page.html.erb | 9 -------- 4 files changed, 9 insertions(+), 30 deletions(-) diff --git a/assets/stylesheets/template/base/_variables.scss b/assets/stylesheets/template/base/_variables.scss index c933cee..7676121 100644 --- a/assets/stylesheets/template/base/_variables.scss +++ b/assets/stylesheets/template/base/_variables.scss @@ -11,8 +11,8 @@ $theme-white: #fff; $theme-red: #d20001; $theme-blue: #00667e; -$theme-color-main: #ffd577; -$theme-color-second: #e46e17; +$theme-color-main: #db5d00; +$theme-color-second: #e49517; $theme-color-third: #ed4c43; // Font stacks diff --git a/assets/stylesheets/template/modules/menu.scss b/assets/stylesheets/template/modules/menu.scss index 8c9b0f0..2511bfa 100644 --- a/assets/stylesheets/template/modules/menu.scss +++ b/assets/stylesheets/template/modules/menu.scss @@ -147,12 +147,6 @@ padding-bottom: 15px; font-weight: bold; } - - &:hover { - - - } - @media (min-width: 992px) { position: relative; @@ -203,7 +197,6 @@ transition:.5s; font-weight: bold; } - & > .fa { position: static; @@ -216,7 +209,6 @@ } &:hover { - background-color:transparent; & > a { @@ -238,7 +230,7 @@ min-width: 100%; margin: 0 -15px; padding: 0; - background-color: $theme-gray-dark; + background-color: #dbcdb6; list-style: none; z-index: 1; text-align: left; @@ -276,10 +268,7 @@ opacity: 0; transition:opacity .5s,left 0s .5s; margin-top: 0.2rem; - background: transparent; - // box-shadow: 0 0 10px rgba(0,0,0,.3); &:before { - // content: ""; display: block; position: absolute; top: -16px; @@ -310,7 +299,6 @@ } &:hover { - background: transparent; .modules-menu-level-2 { display: block; left: 100%; @@ -318,7 +306,6 @@ transition:opacity .5s .2s; } & > a{ - background: #666; color:#fff; padding:0 5px; } @@ -337,7 +324,7 @@ display: none; margin: 0; padding: 0; - background-color: $theme-gray-darker; + background-color: #f8b04e; list-style: none; text-align: left; & > li { @@ -353,7 +340,7 @@ } &:hover { - background-color: darken($theme-color-main, 20%); + background-color: $theme-color-second; & > a { color: #FFF; @@ -369,7 +356,7 @@ transition:opacity .5s,left 0s .5s; position: absolute; top: 0; - background: rgba(0,0,0,.6); + background: $theme-color-second; // box-shadow: 0 0 10px rgba(0,0,0,.3); &:before { @@ -391,7 +378,6 @@ transition:.3s; } &:hover{ - background: transparent; & > a{ background: $theme-color-second; color:#fff; diff --git a/assets/stylesheets/template/template.scss b/assets/stylesheets/template/template.scss index df27364..6860dc8 100644 --- a/assets/stylesheets/template/template.scss +++ b/assets/stylesheets/template/template.scss @@ -149,7 +149,9 @@ .ad-overlay.w-ba-banner__caption.w-ad-banner__caption { bottom: 55px; - height: 150px!important; + height: 60px !important; + padding: 10px; + text-align: center; } span.w-annc__category-wrap.col-sm-2 { width: 90px; diff --git a/home/page.html.erb b/home/page.html.erb index 43e5d9d..4c23866 100644 --- a/home/page.html.erb +++ b/home/page.html.erb @@ -6,11 +6,9 @@ <%= render_orbit_bar %> <%= render_header %> -
-
@@ -25,13 +23,6 @@ <%= render_every_page_sharer %> - - - - - " target="_blank"> - sina-weibo -