2 Commits
Author SHA1 Message Date
sugoidogo 5650f82d77 css update
publish.yaml / release (push) Successful in 32s
2026-07-29 03:42:12 -07:00
sugoidogo bd4628efea Revert "css update"
This reverts commit 3e335e72e3.
2026-07-29 02:06:06 -07:00
+18 -150
View File
@@ -1,3 +1,10 @@
<head>
<link rel="icon" href="data:image/png;base64,iVBORw0KGgo=">
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" media="screen" />
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura-dark.css"
media="screen and (prefers-color-scheme: dark)" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<h1>PNGTube</h1>
<select id="instance" hidden></select>
<form name="new_instance" hidden>
@@ -93,171 +100,32 @@
</span>
<style>
* {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
box-sizing: border-box;
}
body {
background-color: #f8f9fa;
color: #333;
margin: 0;
padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
color: #2c3e50;
margin-bottom: 2rem;
font-size: 2.5rem;
}
form[name=new_instance]:not([hidden]) {
display: flex;
gap: 10px;
justify-content: center;
margin: 0 auto 20px auto;
max-width: 1100px;
width: fit-content;
}
form[name=instance_config]:not([hidden]) {
display: flex;
flex-direction: column;
align-items: center;
max-width: 1100px;
width: fit-content;
margin: 0 auto;
}
table {
border-collapse: separate;
border-spacing: 20px 0;
width: auto;
form[name=new_instance]:not([hidden]),
form[name=instance_config]:not([hidden]){
display: inline;
}
td {
background: white;
border: 1px solid #e1e4e8;
border-radius: 12px;
padding: 24px;
border: 1px solid lightgray;
vertical-align: top;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
white-space: nowrap;
width: fit-content;
}
#instructions {
white-space: normal;
min-width: 20em;
line-height: 1.6;
width: 20em;
}
#instructions table {
border-spacing: 0;
button#add_source,
button.sensitivity {
width: 100%;
margin: 1rem 0;
}
#instructions td {
background: transparent;
border: 1px solid #eee;
box-shadow: none;
padding: 8px;
white-space: normal;
.source {
margin: 10px;
}
input:invalid:required {
background-color: #fff0f0;
border-color: #ffcccc;
}
input[type="text"], input[type="search"] {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
}
button {
padding: 8px 16px;
cursor: pointer;
border-radius: 6px;
border: 1px solid #ccc;
background: white;
font-size: 14px;
transition: all 0.2s;
}
button:hover {
background: #f0f0f0;
border-color: #bbb;
}
button[type="submit"] {
background: #007bff;
color: white;
border: none;
padding: 8px 24px;
font-weight: 600;
font-size: 16px;
}
button[type="submit"]:hover {
background: #0069d9;
}
form[name=instance_config] button[type="submit"] {
margin-top: 20px;
}
button#remove_instance {
background: #dc3545;
color: white;
border: none;
}
button#remove_instance:hover {
background: #c82333;
}
button#add_source, button.sensitivity {
width: 100%;
padding: 10px;
background: #f8f9fa;
font-weight: 500;
}
h2, h3 {
margin-top: 0;
color: #444;
border-bottom: 2px solid #eee;
padding-bottom: 8px;
margin-bottom: 16px;
}
#asset_warning {
color: #d9534f;
background: #fff5f5;
border: 1px solid #feb2b2;
border-radius: 6px;
padding: 12px;
margin-bottom: 16px;
font-weight: 500;
font-size: 14px;
}
#instance:not([hidden]) {
display: block;
margin: 0 auto 20px auto;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
background: white;
cursor: pointer;
width: fit-content;
min-width: 200px;
}
ul {
list-style: none;
padding: 0;
margin: 16px 0;
}
li {
margin-bottom: 8px;
}
.asset, .source {
display: flex;
gap: 8px;
align-items: center;
padding: 8px;
background: #f8f9fa;
border: 1px solid #eee;
border-radius: 6px;
}
.asset input, .source input {
flex: 1;
form, input[type=search] {
margin-bottom: 0;
}
</style>
<script type="module" src="index.js"></script>