|
@@ -8,7 +8,7 @@
|
|
|
|
|
|
* {
|
|
|
letter-spacing: 1px;
|
|
|
- font-weight: 300;
|
|
|
+ font-weight: 400;
|
|
|
font-family: "Noto Sans TC", sans-serif !important;
|
|
|
}
|
|
|
|
|
@@ -62,6 +62,12 @@ body {
|
|
|
color: var(--sub-color);
|
|
|
transition: all 0.3s;
|
|
|
}
|
|
|
+@media (max-width: 575px) {
|
|
|
+ .navbar .navbar-brand {
|
|
|
+ padding-left: 1rem;
|
|
|
+ font-size: 35px;
|
|
|
+ }
|
|
|
+}
|
|
|
.navbar .navbar-brand:hover {
|
|
|
opacity: 0.9;
|
|
|
color: var(--sub-color);
|
|
@@ -192,6 +198,15 @@ body {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
|
|
|
+.blog-header .nav-item {
|
|
|
+ padding: 0 0.3rem;
|
|
|
+}
|
|
|
+@media (max-width: 575px) {
|
|
|
+ .blog-header .nav-item {
|
|
|
+ padding: 0 1rem;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
/* sidebar.html Start */
|
|
|
.news-sidebar {
|
|
|
position: sticky;
|
|
@@ -230,8 +245,9 @@ body {
|
|
|
/* sidebar.html End */
|
|
|
/* single.html Start */
|
|
|
.blog-post.content h4 {
|
|
|
- font-size: 16px;
|
|
|
- font-weight: 300;
|
|
|
+ margin-top: 3rem;
|
|
|
+ font-size: 1.25rem;
|
|
|
+ font-weight: 500;
|
|
|
line-height: 32px;
|
|
|
}
|
|
|
.blog-post.content h4 a {
|
|
@@ -264,6 +280,11 @@ body {
|
|
|
.news-main .post-title a {
|
|
|
font-size: 34px;
|
|
|
}
|
|
|
+@media (max-width: 991px) {
|
|
|
+ .news-main .post-title a {
|
|
|
+ font-size: 22px;
|
|
|
+ }
|
|
|
+}
|
|
|
.news-main img {
|
|
|
height: 100%;
|
|
|
-o-object-fit: cover;
|
|
@@ -286,6 +307,12 @@ body {
|
|
|
-o-object-fit: cover;
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
+@media (max-width: 991px) {
|
|
|
+ .focus-content img,
|
|
|
+ .news-featured img {
|
|
|
+ height: 50vw;
|
|
|
+ }
|
|
|
+}
|
|
|
.focus-content .post-title,
|
|
|
.news-featured .post-title {
|
|
|
overflow: hidden;
|
|
@@ -340,6 +367,11 @@ body {
|
|
|
background-position: center center;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+@media (max-width: 991px) {
|
|
|
+ .tab-content .bg-img {
|
|
|
+ height: 50vw;
|
|
|
+ }
|
|
|
+}
|
|
|
.tab-content .bg-img section {
|
|
|
padding: 10px 25px;
|
|
|
position: absolute;
|
|
@@ -365,6 +397,26 @@ body {
|
|
|
.news-all .post-title a {
|
|
|
font-size: 36px;
|
|
|
line-height: 1.5;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2; /* 限制最多兩行 */
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ word-break: break-word;
|
|
|
+ transition: all 0.3s;
|
|
|
+}
|
|
|
+@media (max-width: 575px) {
|
|
|
+ .news-all .post-title a {
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.news-all .post-description a {
|
|
|
+ color: #727272;
|
|
|
+ text-decoration: none;
|
|
|
+ transition: all 0.3s;
|
|
|
+}
|
|
|
+.news-all .post-description a:hover {
|
|
|
+ opacity: 0.7;
|
|
|
}
|
|
|
.news-all .news-info a {
|
|
|
font-size: 18px;
|
|
@@ -377,6 +429,11 @@ body {
|
|
|
-o-object-fit: cover;
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
+@media (max-width: 991px) {
|
|
|
+ .news-all .first-img {
|
|
|
+ height: 50vw;
|
|
|
+ }
|
|
|
+}
|
|
|
.news-all .line {
|
|
|
padding: 0 12px;
|
|
|
}
|
|
@@ -386,6 +443,11 @@ body {
|
|
|
-o-object-fit: cover;
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
+@media (max-width: 575px) {
|
|
|
+ .news-all .cover-img {
|
|
|
+ height: 50vw;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
/* news-all.html End */
|
|
|
/* news-featured.html Start */
|