Skip to content

Commit

Permalink
font css impr
Browse files Browse the repository at this point in the history
  • Loading branch information
woXrooX committed Aug 13, 2023
1 parent ca01e1e commit c9a42b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
6 changes: 4 additions & 2 deletions source/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ export default class Code extends HTMLElement{
height: auto;
border-radius: 5px;
box-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.5);
padding: 0px 15px;
font-size: 0.7rem;
& > code{
color: white;
width: 100%;
height: 100%;
padding: 5px;
line-height: 150%;
line-height: 0.8rem;
}
}
Expand Down
19 changes: 9 additions & 10 deletions source/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@
</head>
<body>
<x-code lang="JavaScript">
// main.js
console.log("Hello world!");
function fun(){
return "Hello from fun!";
}

let a = 34 + 2; // asd
// main.js
console.log("Hello world!");
function fun(){
return "Hello from fun!";
}

for(let a = 0; a < b.length; a++){
let a = 34 + 2; // asd

}
for(let a = 0; a < b.length; a++){

fun(23);
}

fun(23);
</x-code>
</body>
</html>

0 comments on commit c9a42b0

Please sign in to comment.