summaryrefslogtreecommitdiff
path: root/assets/css
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-21 23:26:08 +0800
committerReorx <novoreorx@gmail.com>2022-04-21 23:26:08 +0800
commit8c47961c418f874d0fa2bda7065651e277809f41 (patch)
treed5a661740fe066b39044c0db8e52ab518e950f02 /assets/css
parentff711a0be216dddacb039bc58f492c42480484ae (diff)
enhance responsive style
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/common/post-entry.css8
-rw-r--r--assets/css/common/post-single.css15
2 files changed, 21 insertions, 2 deletions
diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css
index 17f8712..b23805f 100644
--- a/assets/css/common/post-entry.css
+++ b/assets/css/common/post-entry.css
@@ -8,14 +8,18 @@
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- margin: 1.5em 0;
+ margin: var(--gap) 0 calc(var(--gap) * 2);
}
.first-entry .entry-header h1 {
font-size: 34px;
line-height: 1.3;
}
+@media screen and (max-width: 400px) {
+ .first-entry .entry-header h1 {
+ font-size: 30px;
+ }
+}
.first-entry .entry-content {
margin: 14px 0;
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index d91e872..e5f85d5 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -84,6 +84,7 @@
font-weight: 500;
color: var(--primary);
box-shadow: var(--link-underline-shadow);
+ transition: var(--link-transition);
}
.post-content a:hover {
color: var(--link-hover-color);
@@ -288,6 +289,10 @@ h6:hover .anchor {
margin: 1rem auto;
}
+.post-content video {
+ width: 100%;
+}
+
.post-content figure.align-center {
text-align: center;
}
@@ -485,3 +490,13 @@ h6:hover .anchor {
[dir="rtl"] .paginav .next {
text-align: left;
}
+
+.full-width {
+ left: 50%;
+ margin-left: -50vw;
+ margin-right: -50vw;
+ max-width: 100vw;
+ position: relative;
+ right: 50%;
+ width: 100vw;
+ }