zregvart commented on a change in pull request #200: fixed issue for content 
wider than screen for pages
URL: https://github.com/apache/camel-website/pull/200#discussion_r397039164
 
 

 ##########
 File path: antora-ui-camel/src/css/doc.css
 ##########
 @@ -634,3 +636,22 @@ kbd,
 .stretch {
   width: 100%;
 }
+
+/* for mobile screens */
+@media screen and (max-width: 626px) {
+  #preamble + .sect1,
+  .doc .sect1 + .sect1 {
+    overflow-wrap: break-word;
+  }
+}
+
+@media screen and (max-width: 1023px) and (min-width: 480px) {
+  .doc > h1.page:first-child,
+  .static > h1:first-child {
+    font-size: inherit;
+  }
+
+  .doc h2:not(.discrete) {
+    overflow-wrap: break-word;
+  }
+}
 
 Review comment:
   I think this needs to be rethought: these are some very targeted rules, I'd 
prefer if we came up with a principle rather than a fix for specific instances 
of text. This will be very difficult to maintain with the text changing.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to