* fix(header): bottom-aligned the schedule name + hours/courses in calendar * feat: updated font style in header and dropdown * fix: new hour/course styling per discussion i love having 80 different ideas, hopefully after this there's like maybe a tiny commit left to do before this is done.. * feat(header): added icons to cal header WORK IN PROGRESS * style: updated layout of header and main popup * fix: updated font and spacing for header and popup * fix: updated cal + popup style details - schedule title is now in normal casing w/ colon removed - last updated on is now entirely deleted from everywhere - hour and course numbers now h3 in calendar ONLY * refactor: changed size for calendar header * refactor: changed ut-black to theme-black * refactor: remove hiding on small window sizes * refactor: reduced spacing in popup * refactor: updated unocss for small-caps configuration * style: changed variant + className order * fix: readded update time text * style: auto formatter, unused imports, capitalization --------- Co-authored-by: Razboy20 <razboy20@gmail.com> Co-authored-by: Samuel Gunter <sgunter@utexas.edu> Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
61 lines
2.5 KiB
TypeScript
61 lines
2.5 KiB
TypeScript
import presetUno from '@unocss/preset-uno';
|
|
import presetWebFonts from '@unocss/preset-web-fonts';
|
|
import transformerDirectives from '@unocss/transformer-directives';
|
|
import transformerVariantGroup from '@unocss/transformer-variant-group';
|
|
import { defineConfig } from 'unocss';
|
|
|
|
import { colors } from './src/shared/types/ThemeColors';
|
|
|
|
export default defineConfig({
|
|
rules: [
|
|
[
|
|
'btn-transition',
|
|
{
|
|
transition:
|
|
'color 180ms ease-in, border-color 150ms ease-in, background-color 150ms ease-in, box-shadow 200ms ease-in, transform 50ms ease-in',
|
|
},
|
|
],
|
|
[
|
|
'ring-offset-0',
|
|
{
|
|
'--un-ring-offset-width': '0px',
|
|
},
|
|
],
|
|
['font-all-small-caps', { 'font-variant-caps': 'all-small-caps' }],
|
|
],
|
|
shortcuts: {
|
|
focusable: 'outline-none ring-blue-500/50 dark:ring-blue-400/60 ring-0 focus-visible:ring-4',
|
|
btn: 'h-10 w-auto flex cursor-pointer justify-center items-center gap-2 rounded-1 px-4 py-0 text-4.5 btn-transition disabled:(cursor-not-allowed opacity-50) active:enabled:scale-96 focusable',
|
|
link: 'text-ut-burntorange link:text-ut-burntorange underline underline-offset-2 hover:text-ut-orange focus-visible:text-ut-orange focusable btn-transition ease-out-expo',
|
|
linkanimate:
|
|
'relative cursor-pointer transition duration-100 ease-out after:(absolute left-0.4 right-0.4 h-2px scale-x-95 bg-ut-orange opacity-0 transition duration-250 ease-out-expo content-empty -bottom-0.75 -translate-y-0.5) active:scale-95 hover:text-ut-orange focus-visible:text-ut-orange hover:after:(opacity-100) !hover:after:translate-y-0 !hover:after:scale-x-100',
|
|
},
|
|
theme: {
|
|
easing: {
|
|
'in-out-expo': 'cubic-bezier(.46, 0, .21, 1)',
|
|
'out-expo': 'cubic-bezier(0.19, 1, 0.22, 1)',
|
|
},
|
|
colors,
|
|
},
|
|
variants: [
|
|
matcher => {
|
|
const search = 'screenshot:';
|
|
if (!matcher.startsWith(search)) return matcher;
|
|
return {
|
|
matcher: matcher.slice(search.length),
|
|
selector: s => `.screenshot-in-progress ${s}`,
|
|
};
|
|
},
|
|
],
|
|
presets: [
|
|
presetUno(),
|
|
presetWebFonts({
|
|
provider: 'none',
|
|
fonts: {
|
|
sans: ['Roboto Flex', 'Roboto Flex Local'],
|
|
},
|
|
}),
|
|
],
|
|
transformers: [transformerVariantGroup(), transformerDirectives()],
|
|
});
|