Refactoring

This commit is contained in:
Minecon724 2025-03-15 15:44:07 +01:00
commit 9cea099a47
Signed by untrusted user who does not match committer: m724
GPG key ID: A02E6E67AB961189
5 changed files with 48 additions and 37 deletions

View file

@ -38,7 +38,7 @@
{{template "user/auth/captcha" .}}
{{ if (.PrivacyPolicyURL) }}
<div id="consent_container">
<div id="consent-container">
<label>
<input id="consent" name="consent" type="checkbox">
{{ ctx.Locale.Tr "consent_agree" .PrivacyPolicyURL }}

View file

@ -77,31 +77,4 @@
@tailwind utilities;
@import "./helpers.css";
/* git724 tweaks below this line */
#consent_container {
margin-bottom: .6em;
label {
input {
margin-right: .75em;
margin-top: .2em;
margin-bottom: .4em;
}
&::after {
content: "*";
color: var(--color-red);
}
}
.help {
margin-left: 0 !important;
}
}
.captcha-img {
width: min(400px, 100%);
/* rest in markup/dark.css */
}
@import "./tweaks/tweaks.css";

View file

@ -12,11 +12,5 @@
display: unset;
}
/*
git724 tweaks; the reason we're doing this here is because dark vanilla templates use this
there's no other way to do it
*/
.captcha-img {
filter: invert();
}
/* The reason we're doing this *here* is because dark vanilla templates always use this file, and there's no other way to detect dark theme */
@import "../tweaks/tweaks-dark.css";

View file

@ -0,0 +1,5 @@
/* git724 tweaks - dark theme only */
.captcha-img {
filter: invert();
}

View file

@ -0,0 +1,39 @@
/*
git724 tweaks
Note that not all changes are here, only those that don't belong anywhere else
*/
#consent-container {
margin-bottom: .6em;
label {
input {
margin-right: .75em;
margin-top: .2em;
margin-bottom: .4em;
}
&::after {
content: "*";
color: var(--color-red);
}
}
.help {
margin-left: 0 !important;
}
}
.captcha-img {
width: min(400px, 100%);
}
/* This removes hover fade transition from most buttons */
.ui.menu .item, .ui.button {
transition: none !important;
}
/* Adds fade to buttons which don't have it */
#oauth2-login-navigator-inner > a:hover {
background: var(--color-secondary-bg); /* Not perfect but good enough. There's no button hover var */
}