visual polish
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
.boxes-container {
|
.boxes-container {
|
||||||
border: #4a7c59 1px dotted;
|
border: #4a7c59 1px dotted;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.boxes input{
|
.boxes input{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
@@ -11,49 +16,58 @@
|
|||||||
border: none;
|
border: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
box-sizing: border-box;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.boxes input[type="checkbox"]:checked {
|
.boxes input[type="checkbox"]:checked::before ,
|
||||||
background: transparent;
|
.boxes input[type="checkbox"]:checked::after {
|
||||||
}
|
|
||||||
|
|
||||||
.boxes input[type="checkbox"]:checked::before {
|
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: #4a7c59;
|
background: #4a7c59;
|
||||||
|
}
|
||||||
|
.boxes input[type="checkbox"]:checked::before {
|
||||||
|
left: 0;
|
||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
transform: rotate(45deg) scaleX(1.414);
|
transform: rotate(45deg) scaleX(1.414);
|
||||||
}
|
}
|
||||||
|
|
||||||
.boxes input[type="checkbox"]:checked::after {
|
.boxes input[type="checkbox"]:checked::after {
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 100%;
|
|
||||||
height: 1px;
|
|
||||||
background: #4a7c59;
|
|
||||||
transform-origin: 100% 0;
|
transform-origin: 100% 0;
|
||||||
transform: rotate(-45deg) scaleX(1.414);
|
transform: rotate(-45deg) scaleX(1.414);
|
||||||
}
|
}
|
||||||
|
|
||||||
.boxes{
|
.boxes{
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: repeat(32, 1fr); /* 32 equal columns */
|
flex-wrap: wrap;
|
||||||
grid-template-rows: repeat(32, 1fr); /* 32 equal rows */
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxes input {
|
||||||
|
flex: 0 0 3.125%; /* 100% / 32 = 3.125% for 32 columns */
|
||||||
|
aspect-ratio: 1;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.counter-label {
|
.counter-label {
|
||||||
color: #4a7c59;
|
color: #4a7c59;
|
||||||
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.users-container {
|
.users-container {
|
||||||
border: #4a7c59 1px dotted;
|
border: #4a7c59 1px dotted;
|
||||||
|
border-radius: 4px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
color: #4a7c59;
|
color: #4a7c59;
|
||||||
font-size: 0.5rem; /* Adjust font size as needed */
|
padding: 16px;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -33,6 +33,7 @@ nav li {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
main{
|
main{
|
||||||
max-width: 800px;
|
max-width: 960px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 0 32px;
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ticker = time.Tick(time.Millisecond * 200)
|
ticker = time.Tick(time.Millisecond * 500)
|
||||||
)
|
)
|
||||||
|
|
||||||
func RegisterTicker() {
|
func RegisterTicker() {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<link rel="stylesheet" href="/css/boxes.css?v={{.BuildNumber}}" />
|
<link rel="stylesheet" href="/css/boxes.css?v={{.BuildNumber}}" />
|
||||||
|
|
||||||
|
|
||||||
<span class="counter-label">Currently Online: <span id="counter"></span></span>
|
<div class="counter-label">Currently Online: <span id="counter"></span></div>
|
||||||
|
|
||||||
<div class="boxes-container">
|
<div class="boxes-container">
|
||||||
<div class="boxes">
|
<div class="boxes">
|
||||||
|
|||||||
Reference in New Issue
Block a user