Summary Files Commits Branches @commit @diff @stats
path: root / src / styles.css
diff options
context:
space:
mode:
Commit9bc5992bfa95e70f994f854feeb18ceecdac750f (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-08-29 19:03:49 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-08-29 19:03:49 +0300
Files3ee5bb22aa8091a5c18b641f558ec1e3e1b3604c /src/styles.css
syndamia.com-9bc5992bfa95e70f994f854feeb18ceecdac750f.tar
syndamia.com-9bc5992bfa95e70f994f854feeb18ceecdac750f.tar.gz
syndamia.com-9bc5992bfa95e70f994f854feeb18ceecdac750f.zip
Parent5c389994f359d92319804a7ed80c86d57f3cfb34 (diff)
Put small screen specific styling into the media screen style
1 files changed, 26 insertions, 21 deletions
-rw-r--r--src/styles.css47
diff --git a/src/styles.css b/src/styles.css
index 9155d11..4792d2a 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -260,9 +260,12 @@ table {
overflow: auto;
}
+table td, table th {
+ word-break: normal !important;
+}
+
table td:not(:empty) {
padding: 0.5em;
- word-break: break-all;
}
table th:not(:empty) {
@@ -339,13 +342,12 @@ dd code {
#content-wrapper {
display: flex;
- flex-direction: column-reverse;
+ flex-direction: row;
min-height: calc(100vh - 16px);
border-right: 3px solid var(--accent-line-color);
}
.sidebar {
- min-height: auto;
width: 11.2em;
display: flex;
flex-direction: column;
@@ -410,35 +412,38 @@ dd code {
font-size: 1.2em;
}
-/* Index page styling */
+/* Small screen support */
+
+@media screen and (max-width: 610px) {
+ article {
+ max-width: calc(100vh - 16px - 3px);
+ }
-@media screen and (min-width: 610px) {
#content-wrapper {
- flex-direction: row;
+ flex-direction: reverse-column;
}
.sidebar {
- min-height: initial;
+ min-height: auto;
}
- #index-contents {
- display: flex;
- align-items: center;
- justify-content: center;
+ table td, table th {
+ word-break: break-all;
}
+}
- #index-contents-text {
- margin-left: 15px;
- max-width: 77%;
- }
+/* Index page styling */
- #index-contents-img {
- max-width: 32%;
- }
+#index-contents {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-left: 15px;
+ max-width: 77%;
+}
- table td, table th {
- word-break: normal !important;
- }
+#index-contents-img {
+ max-width: 32%;
}
#index-list {