hackatime/app/assets/stylesheets/application.css
2025-06-25 20:04:35 -04:00

524 lines
8.9 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.
*/
/* Phantom Sans Font Faces */
@font-face {
font-family: 'Phantom Sans';
src: url('/assets/Regular.woff2') format('woff2'),
url('/assets/Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Phantom Sans';
src: url('/assets/Italic.woff2') format('woff2'),
url('/assets/Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Phantom Sans';
src: url('/assets/Bold.woff2') format('woff2'),
url('/assets/Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@import "https://uchu.style/color.css";
@import "settings.css";
body, html {
font-family: 'Phantom Sans', 'Segoe UI', sans-serif;
}
*, *::before, *::after {
font-family: inherit;
}
code, pre, kbd, samp {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}
/* Force dark mode for all elements */
*, *::before, *::after {
color-scheme: dark;
}
/* Ensure forms and inputs respect dark mode */
input, textarea, select {
color-scheme: dark;
}
/* colors */
:root {
--muted-color: var(--uchu-gray);
--black: rgb(42, 42, 42);
--smoke: rgb(242, 242, 242);
/* Force dark mode colors */
color-scheme: dark;
}
:root.development {
--primary-color: var(--color-green);
}
:root.production {
--primary-color: var(--color-primary);
}
.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 hsl(24.9, 100%, 67.8%);
background-color: rgba(255, 255, 255, 0.02);
}
.dev-tool {
border-radius: 5px;
border: 1px dashed var(--color-green);
background-color: rgba(255, 255, 255, 0.02);
}
.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;
}
.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: #ccc;
position: relative;
}
.auth-divider::before,
.auth-divider::after {
content: "";
position: absolute;
top: 50%;
width: 45%;
height: 1px;
background-color: #555;
}
.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 #555;
border-radius: 4px;
font-size: 1rem;
background-color: var(--background-color);
color: var(--color);
}
.super {
font-style: italic;
font-size: 0.9rem;
color: #ccc;
margin: 0 0 0.1rem;
}
.super a {
color: #ccc;
}
.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;
}
select {
margin: 0.1rem 0;
padding: 0.1rem 0.5rem;
}
@keyframes flash {
0% {
background-color: var(--uchu-yellow);
}
100% {
background-color: transparent;
}
}
/* Setup tracking button styling */
.setup-notice {
text-align: left;
margin: 2rem 0;
display: flex;
flex-direction: column;
}
.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-info {
display: flex;
align-items: center;
margin-top: 1rem;
flex-wrap: nowrap;
}
.setup-hint {
margin: 0;
margin-left: 0.5rem;
font-style: italic;
color: var(--muted-color);
animation: bounce 2s ease infinite;
}
.recent-setup-users {
display: flex;
margin: 0;
margin-left: 0;
flex-shrink: 0;
}
.avatar-container {
position: relative;
cursor: pointer;
transition: transform 0.2s ease;
z-index: 1;
margin-left: -15px;
}
.avatar-container:first-child {
margin-left: 0;
}
.avatar-container:hover {
transform: translateY(-3px);
z-index: 5;
}
.setup-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid #e13950;
object-fit: cover;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.more-avatars {
display: flex;
align-items: center;
justify-content: center;
background-color: #e13950;
color: white;
font-weight: bold;
font-size: 14px;
cursor: pointer;
}
.all-users-hover {
position: relative;
}
.users-hover-list {
position: absolute;
display: none;
left: -20px;
top: 45px;
background-color: #333;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 15px;
width: 300px;
z-index: 100;
max-height: 400px;
overflow-y: auto;
}
.users-hover-list h4 {
margin-top: 0;
margin-bottom: 10px;
font-size: 16px;
color: #eee;
border-bottom: 1px solid #aaa;
padding-bottom: 8px;
}
.all-users-hover:hover .users-hover-list {
display: block;
}
.users-hover-list:after {
content: "";
position: absolute;
top: -10px;
left: 30px;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #333;
}
.hover-user-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: none;
overflow-y: visible;
}
.user-item {
display: flex;
align-items: center;
padding: 6px;
border-radius: 6px;
transition: background-color 0.2s;
}
.user-item:hover {
background-color: #555;
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
margin-right: 10px;
border: 1px solid #e13950;
}
.user-name {
font-weight: 500;
font-size: 14px;
}
.avatar-tooltip {
position: absolute;
top: -35px;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s, visibility 0.2s;
z-index: 10;
}
.avatar-tooltip:after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #333 transparent transparent transparent;
}
.avatar-container:hover .avatar-tooltip {
opacity: 1;
visibility: visible;
}
@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;
}
/* Prevent overflow */
code {
word-break: break-word;
}