Skip to content

Commit 0c12e2d

Browse files
author
Gianluca Carnielli
committed
Separated CSS part from html file
1 parent 2d1ee6c commit 0c12e2d

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Example.mlx

-2.63 KB
Binary file not shown.

button.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
button {
2+
transition-duration: 0.1s;
3+
width: 100%;
4+
position: absolute;
5+
height: 100%;
6+
}

button.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<style>
5-
button {
6-
transition-duration: 0.1s;
7-
width: 100%;
8-
position: absolute;
9-
height: 100%;
10-
}
11-
</style>
12-
</head>
13-
3+
<link rel="stylesheet" href="button.css"/>
4+
<script src="button.js"></script>
145
<body id="htmlBody">
15-
<script src="button.js"></script>
166
<button id="b">Button</button>
177
</body>
188
</html>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<Info location="button.css" type="File"/>

0 commit comments

Comments
 (0)