Jean Louis commited on
Commit
0c3183e
·
1 Parent(s): 9d448a6

Updated HTML files and CSS

Browse files
Files changed (1) hide show
  1. header.css +11 -2
header.css CHANGED
@@ -29,15 +29,24 @@ p {
29
  margin-bottom: 1em;
30
  }
31
 
 
32
  pre, code {
33
- background-color: black; /* A slightly lighter dark background for code */
34
  display: block; /* Ensures preformatted text blocks */
35
  padding: 10px; /* Adds padding for better readability */
36
  overflow-x: auto; /* Allows horizontal scrolling if needed */
37
  border-radius: 5px; /* Adds a slight border-radius for aesthetics */
38
  }
39
 
40
- /* Optional: Add a different color for code within a pre tag */
41
  pre {
42
  color: #ecf0f1; /* Light text for contrast */
43
  }
 
 
 
 
 
 
 
 
 
 
29
  margin-bottom: 1em;
30
  }
31
 
32
+ /* Style for block-level code elements */
33
  pre, code {
34
+ background-color: #34495e; /* A slightly lighter dark background for code */
35
  display: block; /* Ensures preformatted text blocks */
36
  padding: 10px; /* Adds padding for better readability */
37
  overflow-x: auto; /* Allows horizontal scrolling if needed */
38
  border-radius: 5px; /* Adds a slight border-radius for aesthetics */
39
  }
40
 
 
41
  pre {
42
  color: #ecf0f1; /* Light text for contrast */
43
  }
44
+
45
+ /* Specific style for inline code */
46
+ code {
47
+ background-color: transparent; /* Removes background */
48
+ padding: 0; /* Removes padding */
49
+ border-radius: 0; /* Removes border-radius */
50
+ display: inline; /* Ensures inline display */
51
+ color: #3498db; /* Sets a different color for inline code */
52
+ }