Skip to content

Commit

Permalink
split styles
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSwayne committed Mar 9, 2024
1 parent 693bb22 commit 0ce1859
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
34 changes: 1 addition & 33 deletions site/calculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CO2 Emissions Calculator</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}

input, output {
margin-bottom: 15px;
}

.tree-slider {
margin-bottom: 30px;
background-color: #aaaaaa;
}

.result-section, .input-section {
display: flex;
justify-content: flex-start;
align-items: baseline;
margin-bottom: 10px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
appearance: textfield;
}
</style>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<h1>CO2 Emissions Calculator</h1>
Expand Down
31 changes: 31 additions & 0 deletions site/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
body {
font-family: Arial, sans-serif;
margin: 20px;
}

input, output {
margin-bottom: 15px;
}

.tree-slider {
margin-bottom: 30px;
background-color: #aaaaaa;
}

.result-section, .input-section {
display: flex;
justify-content: flex-start;
align-items: baseline;
margin-bottom: 10px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
appearance: textfield;
}

0 comments on commit 0ce1859

Please sign in to comment.