move all css inside html

This commit is contained in:
Norman Bos
2024-07-21 16:09:31 +02:00
parent 1201c81251
commit 11808fa87e
+142 -21
View File
@@ -8,8 +8,146 @@
name="viewport" name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" content="width=device-width, initial-scale=1, shrink-to-fit=no"
/> />
<!-- <link rel="stylesheet" href="style.css" /> -->
<style>
:root {
--main-bg-color: #212121;
}
<link rel="stylesheet" href="style.css" /> body {
background-color: var(--main-bg-color);
display: flex;
flex-direction: column;
align-items: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h2 {
color: white;
}
p {
color: white;
}
textarea {
width: 100%;
height: 150px;
padding: 12px 20px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
font-size: 16px;
resize: none;
}
button {
background-color: #454545;
border: none;
border-radius: 4px;
color: white;
text-align: center;
text-decoration: none;
display: inline-flex;
font-size: 16px;
cursor: pointer;
justify-content: center;
align-items: center;
box-shadow: 2px 2px black;
height: 42px;
width: 48px;
}
button:active {
-webkit-box-shadow: inset 0px 0px 2px black;
-moz-box-shadow: inset 0px 0px 2px black;
box-shadow: inset 0px 0px 2px black;
outline: none;
}
.text-white {
color: white;
}
.text-orange {
color: orange;
}
.text-with-line {
text-transform: uppercase;
display: flex;
flex-direction: row;
}
.text-with-line:before,
.text-with-line:after {
content: "";
flex: 1 1;
border-bottom: 2px solid currentColor;
margin: auto 5px;
}
.smallbutton {
height: 28px;
width: 56px;
background-color: #8a8a8a;
font-size: 12px;
}
.roundbutton {
border-radius: 50%;
width: 26px;
height: 26px;
}
.upper-buttonbox {
margin-top: 8px;
margin-bottom: 8px;
border-radius: 8px;
background-color: #4d4d4d;
padding: 8px;
display: flex;
gap: 12px;
border: 2px solid grey;
border-bottom-color: black;
border-right-color: black;
}
.lower-buttonbox {
margin-top: 8px;
margin-bottom: 8px;
border-radius: 8px;
background-color: #333333;
padding: 8px;
display: flex;
gap: 12px;
border: 2px solid grey;
border-bottom-color: black;
border-right-color: black;
}
.textinput-wrapper {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 8px;
margin-bottom: 8px;
color: white;
}
.textinput {
width: 100%;
padding: 12px 20px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #f8f8f8;
font-size: 16px;
resize: none;
}
.headline {
text-align: center;
}
</style>
</head> </head>
<body> <body>
@@ -17,7 +155,6 @@
<h2 class="headline">SONY RM-D27M Remote</h2> <h2 class="headline">SONY RM-D27M Remote</h2>
<span class="text-white text-with-line">LED Test Mode</span> <span class="text-white text-with-line">LED Test Mode</span>
<div class="upper-buttonbox"> <div class="upper-buttonbox">
<form action="/api/control-led" method="post"> <form action="/api/control-led" method="post">
<button name="led" type="submit" value="1" class="smallbutton"> <button name="led" type="submit" value="1" class="smallbutton">
LED on LED on
@@ -28,7 +165,6 @@
</form> </form>
</div> </div>
<span class="text-orange text-with-line">Title Editing</span> <span class="text-orange text-with-line">Title Editing</span>
<form action="/api/gettext" method="post" class="textinput-wrapper"> <form action="/api/gettext" method="post" class="textinput-wrapper">
<textarea name="text_box" rows="4" cols="50"></textarea> <textarea name="text_box" rows="4" cols="50"></textarea>
@@ -53,12 +189,7 @@
> >
power power
</button> </button>
<button <button name="control" type="submit" value="play" class="smallbutton">
name="control"
type="submit"
value="play"
class="smallbutton"
>
play play
</button> </button>
<button <button
@@ -69,20 +200,10 @@
> >
pause pause
</button> </button>
<button <button name="control" type="submit" value="stop" class="smallbutton">
name="control"
type="submit"
value="stop"
class="smallbutton"
>
stop stop
</button> </button>
<button <button name="control" type="submit" value="next" class="smallbutton">
name="control"
type="submit"
value="next"
class="smallbutton"
>
next next
</button> </button>
<button class="roundbutton"></button> <button class="roundbutton"></button>