mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
* Initial filterable dashboard * Scope loading spinner to activity graph * Fix turbo loading spinner * Add new charts * Fix tooltip having blank entries * Humanize times in dashboard * Split up html & json partial rendering * Fix turbo-caused chart bugs * Implement dark mode * Bring back clear button * Fix chart not rendering after fast refreshes * Remove console.logs * Scope loading to activity-graph * Simplify loading indicator
302 lines
5.2 KiB
CSS
302 lines
5.2 KiB
CSS
/*
|
|
* This is a manifest file that'll be compiled into application.css.
|
|
*
|
|
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
|
|
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
|
|
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
|
|
* depending on specificity.
|
|
*
|
|
* Consider organizing styles into separate files for maintainability.
|
|
*/
|
|
|
|
@import "https://uchu.style/color.css";
|
|
@import "https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css";
|
|
|
|
/* colors */
|
|
|
|
:root {
|
|
--muted-color: var(--uchu-gray);
|
|
--black: rgb(42, 42, 42);
|
|
--smoke: rgb(242, 242, 242);
|
|
/* color: var(--black); */
|
|
/* background-color: var(--smoke); */
|
|
}
|
|
|
|
:root.development {
|
|
--primary-color: var(--uchu-green);
|
|
}
|
|
:root.production {
|
|
--primary-color: var(--uchu-dark-orange);
|
|
}
|
|
|
|
.title {
|
|
font-weight: bolder;
|
|
margin-top: 0.2rem;
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.primary-color {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.flavor {
|
|
font-weight: thin;
|
|
font-style: italic;
|
|
color: var(--muted-color);
|
|
}
|
|
|
|
.admin-tool {
|
|
border-radius: 5px;
|
|
border: 1px dashed var(--uchu-orange);
|
|
background-color: var(--uchu-light-yellow);
|
|
}
|
|
|
|
.dev-tool {
|
|
border-radius: 5px;
|
|
border: 1px dashed var(--uchu-green);
|
|
background-color: var(--uchu-light-green);
|
|
}
|
|
|
|
.loading {
|
|
filter: grayscale(100%);
|
|
}
|
|
|
|
.project-durations {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Login grid layout */
|
|
.login-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 2rem;
|
|
margin: 2rem 0;
|
|
align-items: center;
|
|
}
|
|
|
|
.video-container {
|
|
width: 100%;
|
|
position: relative;
|
|
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
|
|
height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-container iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.auth-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Mobile layout - stack elements on small screens */
|
|
@media (max-width: 768px) {
|
|
.login-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.video-container {
|
|
margin-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
.auth-options {
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.auth-button {
|
|
display: inline-block;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border: none;
|
|
width: 100%;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.auth-button.slack {
|
|
background-color: #e13950;
|
|
color: white;
|
|
}
|
|
|
|
.auth-button.email {
|
|
background-color: #0070f3;
|
|
color: white;
|
|
}
|
|
|
|
.auth-button.github {
|
|
background-color: #24292e;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
width: 100%;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.auth-button.github:hover {
|
|
background-color: #2f363d;
|
|
}
|
|
|
|
.auth-divider {
|
|
margin: 1rem 0;
|
|
color: #666;
|
|
position: relative;
|
|
}
|
|
|
|
.auth-divider::before,
|
|
.auth-divider::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 45%;
|
|
height: 1px;
|
|
background-color: #ddd;
|
|
}
|
|
|
|
.auth-divider::before {
|
|
left: 0;
|
|
}
|
|
|
|
.auth-divider::after {
|
|
right: 0;
|
|
}
|
|
|
|
.email-auth-form .field {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.email-auth-form input[type="email"] {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.super {
|
|
font-style: italic;
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
margin: 0 0 0.1rem;
|
|
}
|
|
|
|
.super a {
|
|
color: #666;
|
|
}
|
|
|
|
.auto-scroll {
|
|
/* flash a little bit yellow & leave a little bit of a border */
|
|
animation: flash 1s ease-in-out;
|
|
border: 2px solid var(--uchu-yellow);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
@keyframes flash {
|
|
0% { background-color: var(--uchu-yellow); }
|
|
100% { background-color: transparent; }
|
|
}
|
|
|
|
/* Setup tracking button styling */
|
|
.setup-notice {
|
|
text-align: left;
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.setup-button {
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
padding: 1rem 2rem;
|
|
background-color: #e13950;
|
|
color: white;
|
|
display: inline-block;
|
|
width: auto;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.setup-button:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.primary-action {
|
|
animation: pulse 2s infinite;
|
|
position: relative;
|
|
}
|
|
|
|
.primary-action::after {
|
|
content: "";
|
|
opacity: 0;
|
|
}
|
|
|
|
.primary-action:hover::after {
|
|
opacity: 0;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
|
|
}
|
|
70% {
|
|
box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
|
|
}
|
|
100% {
|
|
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
|
|
}
|
|
}
|
|
|
|
.setup-hint {
|
|
margin-top: 0.5rem;
|
|
font-style: italic;
|
|
color: var(--muted-color);
|
|
animation: bounce 2s ease infinite;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%, 20%, 50%, 80%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
40% {
|
|
transform: translateY(-5px);
|
|
}
|
|
60% {
|
|
transform: translateY(-3px);
|
|
}
|
|
}
|
|
|
|
.button {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
background-color: #24292e;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 4px;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.button:hover {
|
|
background-color: #2f363d;
|
|
}
|