SGDB-Extension/popup.html

125 lines
3.1 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="icon" href="icons/icon_128.png">
2024-08-08 15:48:57 -07:00
<title>SGDB Button on Steam</title>
<style>
body {
min-width: 350px;
max-width: 100%;
font-size: 16px;
2024-08-08 14:49:18 -07:00
text-align: center;
font-family: "Open Sans", sans-serif;
background-color: #32414c;
color: #8ecaf4;
}
.btn {
border-radius: 2px;
padding: 1px;
display: inline-block;
text-decoration: none;
color: #67c1f5;
background: rgba(103, 193, 245, 0.2);
}
.btn:hover {
text-decoration: none !important;
color: #fff !important;
background: #417a9b;
background: -webkit-linear-gradient( 150deg, #417a9b 5%,#67c1f5 95%);
background: linear-gradient( -60deg, #417a9b 5%,#67c1f5 95%);
}
.btn > span {
padding: 0 15px;
font-size: 15px;
line-height: 30px;
}
.icon {
margin: 7px;
vertical-align: middle;
display: inline-block;
width: 22px;
height: 22px;
}
.checkbox {
display: inline-flex;
align-items: center;
cursor: pointer;
}
.checkbox > input[type="checkbox"] {
width: 0;
height: 0;
opacity: 0;
padding: 0;
margin: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.checkbox > .fakebox {
width: 2em;
height: 1em;
border: 0;
border-radius: 1em;
background: rgba(0,0,0,.45);
display: inline-block;
position: relative;
margin-right: .5em;
transition: background 200ms ease;
}
.checkbox > input[type="checkbox"]:checked + .fakebox {
background: rgba(95, 180, 240, .5);
}
.checkbox > .fakebox::before {
content: "";
display: block;
position: absolute;
width: 1em;
height: 1em;
border-radius: 100%;
background: #5fb4f0;
transform: translateX(0);
transition: background 150ms ease,transform 150ms ease;
}
.checkbox > input[type="checkbox"]:checked + .fakebox::before {
transform: translateX(1em);
}
div {
text-align: center;
padding: 5px 0px;
margin-right: .25rem;
}
</style>
<script src="popup.js" defer></script>
</head>
<body>
<h2 style="margin-bottom: 5px">
2024-08-09 20:52:55 -07:00
<img id="sgdb-icon" src="" style="vertical-align: middle; display: inline"> SGDB Button on Steam
2024-08-08 14:49:18 -07:00
</h2>
<div>
<label class="checkbox">
<input type="checkbox" id="game"/><span class="fakebox"></span>Show on games
</label>
</div>
<div>
<label class="checkbox" style="margin-bottom: 10px">
<input type="checkbox" id="profile"/><span class="fakebox"></span>Show on profiles
</label>
</div>
<a class="btn" href="https://gitea.goblincave.synology.me/Nes/SGDB-Extension">
<span data-tooltip-text="View source">
2024-08-08 14:49:18 -07:00
<img id="gitea-icon" class="icon" src="">View Source
</span>
</a>
<a class="btn" href="https://www.steamgriddb.com/profile/76561198274324627">
<span data-tooltip-text="View my profile">
<img id="nes-icon" class="icon" src="">Created by <span style="color: #FC2A7C">Nes</span>
</span>
</a>
</body>
</html>