This is an automated email from the ASF dual-hosted git repository.

rlenferink pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/celix-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 849780e  Remove internal css to external file from baseof.html file 
(#34)
849780e is described below

commit 849780e4df2359e7f5258391159145d471322824
Author: Krishna Dave <[email protected]>
AuthorDate: Wed Jan 29 02:02:14 2025 +0530

    Remove internal css to external file from baseof.html file (#34)
    
    Co-authored-by: Krishna Dave <[email protected]>
---
 layouts/celix-doc/baseof.html | 17 +----------------
 static/assets/css/style.css   | 10 ++++++++++
 2 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/layouts/celix-doc/baseof.html b/layouts/celix-doc/baseof.html
index 15f0b4f..91ac7f1 100644
--- a/layouts/celix-doc/baseof.html
+++ b/layouts/celix-doc/baseof.html
@@ -32,22 +32,7 @@ limitations under the License.
 
     <!-- Custom style -->
     <link href="/assets/css/style.css" rel="stylesheet">
-
-    <style>
-        /* TODO: Ideally the styling below will be moved to the style.css. 
That doesn't seem to work and needs investigating */
-        /* Redefine .img-fluid (bootstrap element) for all images, to allow 
defining images in markdown which do no 'escape' their card */
-        .card-body img {
-            max-width: 100%;
-            width: 100%;
-            height: auto;
-        }
-
-        /* Allow defining captions for images (will be italic and underlined) 
*/
-        .card-body img + em {
-            text-decoration: underline;
-        }
-    </style>
-
+    
     {{ partial "matomo.html" . }}
 </head>
 <body class="light-grey">
diff --git a/static/assets/css/style.css b/static/assets/css/style.css
index fc551c9..d5970c2 100644
--- a/static/assets/css/style.css
+++ b/static/assets/css/style.css
@@ -153,6 +153,16 @@ a.edit-on-gh {
 .card {
   height: 100%;
 }
+.card-body img {
+  max-width: 100%;
+  width: 100%;
+  height: auto;
+}
+
+/* Allow defining captions for images (will be italic and underlined) */
+.card-body img + em {
+  text-decoration: underline;
+}
 
 /*
  * Media Queries

Reply via email to