diff --git a/assets/stylesheets/template/layout/content.scss b/assets/stylesheets/template/layout/content.scss index 8de54d0..8dad662 100644 --- a/assets/stylesheets/template/layout/content.scss +++ b/assets/stylesheets/template/layout/content.scss @@ -411,9 +411,9 @@ position: relative; } } - .form-horizontal .control-label { - color: #54685e; - @media (min-width: 769px) { - padding-top: 0!important; - } - } \ No newline at end of file +.form-horizontal .control-label { + color: #54685e; + @media (min-width: 769px) { + padding-top: 0!important; + } +} diff --git a/assets/stylesheets/template/layout/header.scss b/assets/stylesheets/template/layout/header.scss index 8703a6b..53b01ca 100644 --- a/assets/stylesheets/template/layout/header.scss +++ b/assets/stylesheets/template/layout/header.scss @@ -410,4 +410,12 @@ .btn-primary:hover{ color: #14324f!important; } + @media(max-width:1024px){ + width: 100%; + } +} +@media (max-width: 768px) { + label[for="open-orbit-login"] { + display: block !important; + } } \ No newline at end of file diff --git a/assets/stylesheets/template/modules/announcement.scss b/assets/stylesheets/template/modules/announcement.scss index 9043ed9..6843173 100644 --- a/assets/stylesheets/template/modules/announcement.scss +++ b/assets/stylesheets/template/modules/announcement.scss @@ -2208,14 +2208,74 @@ } //Widget 16 .widget-announcement-16 { + border: 5px solid #85BF5E; + padding: 0 60px; + position: relative; + .cycle-prev{ + border-radius: 0; + background-color: #85BF5E; + top: 50%; + position: absolute; + transform: translateY(-50%); + z-index: 100; + padding: 25px 15px; + color: #fff; + cursor: pointer; + left: 0; + border: 0; + } + .cycle-next{ + border-radius: 0; + background-color: #85BF5E; + top: 50%; + position: absolute; + transform: translateY(-50%); + z-index: 100; + padding: 25px 15px; + color: #fff; + cursor: pointer; + right: 0; + border: 0; + } + .w-annc__meta{ + display: none!important; + } + .w-annc__more{ + display: none!important; + } + .w-annc__widget-title{ + position: relative; + background-image: url(/assets/icon_index_story.png); + background-repeat: no-repeat; + background-position: left top; + background-size: auto; + padding: 0 0 0 80px; + text-align: left; + margin-top: 1.25em; + margin-bottom: 0.625em; + span{ + display: block; + } + .ch { + font-weight: 400; + letter-spacing: 5px; + font-size: 1.5em; + } + .en { + color: #366a39; + letter-spacing: 1.5px; + line-height: 1; + font-weight: 400; + } + } .w-annc__item{ - padding-right: 1em; + padding-right: 0; } .w-annc__img{ width: 100%; } .w-annc__content-wrap{ - padding: 1em; + text-align: center; } .slide-button{ margin-bottom: 0.5em; @@ -2230,6 +2290,7 @@ } .w-annc__img-wrap { margin: 0 0 0.5rem 0; + aspect-ratio: 16 / 9; } } diff --git a/modules/announcement/_annc_widget16.html.erb b/modules/announcement/_annc_widget16.html.erb index dcc68b0..3ec4b66 100644 --- a/modules/announcement/_annc_widget16.html.erb +++ b/modules/announcement/_annc_widget16.html.erb @@ -4,7 +4,11 @@ {{widget-title}} - +
+ + + <%= (I18n.locale.to_s =="zh_tw") ? "更多+" : "More NEWS" %> +
-
- - - <%= (I18n.locale.to_s =="zh_tw") ? "更多+" : "More NEWS" %> -
+