From de9c721197b48144aab0a515695310b1b147691a Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Sat, 19 Oct 2024 11:20:23 -0300 Subject: [PATCH] =?UTF-8?q?feat!:=20=E2=9C=A8=20update=20to=20support=20gi?= =?UTF-8?q?tea=201.22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/public/assets/css/theme-dark.css | 2 +- dist/public/assets/css/theme-light.css | 2 +- dist/public/assets/img/loading.svg | 30 +- dist/templates/base/head_navbar.tmpl | 419 +++++++++--------- dist/templates/home.tmpl | 46 +- dist/templates/repo/home.tmpl | 122 +++-- src/templates/base/head_navbar.tmpl | 419 +++++++++--------- src/templates/home.tmpl | 46 +- src/templates/repo/home.tmpl | 122 +++-- src/themes/scss/theme/index.scss | 1 + .../scss/theme/modules/custom/_project.scss | 38 +- .../theme/modules/custom/repo/_file-list.scss | 385 ++++++++-------- 12 files changed, 859 insertions(+), 773 deletions(-) diff --git a/dist/public/assets/css/theme-dark.css b/dist/public/assets/css/theme-dark.css index 6208660..1664655 100644 --- a/dist/public/assets/css/theme-dark.css +++ b/dist/public/assets/css/theme-dark.css @@ -1,4 +1,4 @@ -:root{--v-base-font-size: 14px;--v-font-family: "Outfit", Inter, Roboto, sans-serif;--v-code-font-family: "Source Code Pro", "Roboto Mono", Consolas, monospace;--v-measure_\.25x: 4px;--v-measure_\.5x: 8px;--v-measure_1x: 16px;--v-measure_1\.25x: 20px;--v-measure_2x: 32px;--v-repo-home_sidebar-width: 296px;--c-theme_rosewater_base: #f5e0dc;--c-theme_rosewater_base-rgb: 245, 224, 220;--c-theme_flamingo_light_12\%: #fffefe;--c-theme_flamingo_dark_12\%: #e59c9c;--c-theme_flamingo_dark_15\%: #e29090;--c-theme_flamingo_base: #f2cdcd;--c-theme_pink_light_12\%: #fef7fc;--c-theme_pink_dark_12\%: #ec8dd2;--c-theme_pink_dark_15\%: #ea80cd;--c-theme_pink_base: #f5c2e7;--c-theme_mauve_light_12\%: #deeafc;--c-theme_mauve_dark_12\%: #6ea2f2;--c-theme_mauve_dark_15\%: #6099f1;--c-theme_mauve_base: #a6c6f7;--c-theme_red_light_6\%: #f6a7bd;--c-theme_red_light_12\%: #f9c2d2;--c-theme_red_dark_12\%: #ed547e;--c-theme_red_dark_15\%: #ec4674;--c-theme_red_base: #f38ba8;--c-theme_red_base-rgb: 243, 139, 168;--c-theme_maroon_base: #eba0ac;--c-theme_peach_light_6\%: #fbc6a4;--c-theme_peach_light_12\%: #fcd8c2;--c-theme_peach_dark_12\%: #f88e4c;--c-theme_peach_dark_15\%: #f7843e;--c-theme_peach_base: #fab387;--c-theme_yellow_light_6\%: #fbeccb;--c-theme_yellow_light_12\%: #fdf7e8;--c-theme_yellow_dark_12\%: #f5cd76;--c-theme_yellow_dark_15\%: #f4c868;--c-theme_yellow_base: #f9e2af;--c-theme_yellow_base-rgb: 249, 226, 175;--c-theme_green_light_6\%: #c2d8fa;--c-theme_green_light_12\%: #deeafc;--c-theme_green_dark_12\%: #6ea2f2;--c-theme_green_dark_15\%: #6099f1;--c-theme_green_base: #a6c6f7;--c-theme_green_base-rgb: 166, 198, 247;--c-theme_dark-green_base-rgb: 0, 230, 118;--c-theme_teal_light_12\%: #c4efe8;--c-theme_teal_dark_12\%: #64d5c2;--c-theme_teal_dark_15\%: #58d2bd;--c-theme_teal_base: #94e2d5;--c-theme_sky_base: #89dceb;--c-theme_sapphire_base: #74c7ec;--c-theme_blue_light_12\%: #c4d9fc;--c-theme_blue_dark_12\%: #4e8ff8;--c-theme_blue_dark_15\%: #4085f7;--c-theme_blue_base: #89b4fa;--c-theme_blue_base-rgb: 137, 180, 250;--c-theme_lavender_light_12\%: #f0f2ff;--c-theme_lavender_dark_12\%: #788afd;--c-theme_lavender_dark_15\%: #697dfd;--c-theme_lavender_base: #b4befe;--c-theme_black_light_12\%: #30304a;--c-text: #e6edf3;--c-text-rgb: 230, 237, 243;--c-primary_light_3\%: #b4cff8;--c-primary_light_6\%: #c2d8fa;--c-primary_light_9\%: #d0e1fb;--c-primary_light_12\%: #deeafc;--c-primary_light_15\%: #ecf3fd;--c-primary_light_18\%: #fafcff;--c-primary_light_21\%: white;--c-primary_dark_3\%: #98bdf6;--c-primary_dark_6\%: #8ab4f4;--c-primary_dark_9\%: #7cabf3;--c-primary_dark_12\%: #6ea2f2;--c-primary_dark_15\%: #6099f1;--c-primary_dark_18\%: #5290ef;--c-primary_dark_21\%: #4487ee;--c-primary_base: #a6c6f7;--c-primary_base-rgb: 166, 198, 247;--c-primary_base-c: #000000;--c-secondary_light_3\%: #646683;--c-secondary_light_6\%: #6a6d8b;--c-secondary_light_9\%: #727493;--c-secondary_light_12\%: #7a7d9a;--c-secondary_light_15\%: #8385a0;--c-secondary_light_18\%: #8c8ea7;--c-secondary_light_21\%: #9496ae;--c-secondary_light_24\%: #9d9fb4;--c-secondary_light_27\%: #a6a7bb;--c-secondary_light_30\%: #aeb0c2;--c-secondary_light_33\%: #b7b8c8;--c-secondary_light_36\%: #c0c1cf;--c-secondary_light_39\%: #c8c9d5;--c-secondary_dark_3\%: #565871;--c-secondary_dark_6\%: #505169;--c-secondary_dark_9\%: #494b60;--c-secondary_dark_12\%: #434457;--c-secondary_base-rgb: 93, 95, 122;--c-elevation_1: #000000;--c-elevation_2: #040407;--c-elevation_2-rgb: 4, 4, 7;--c-elevation_3: #07070f;--c-elevation_3-rgb: 7, 7, 15;--c-elevation_4: #161720;--c-elevation_5: #1a1a25;--c-elevation_6: #222330;--c-elevation_6-rgb: 34, 35, 48;--c-elevation_7: #393c4d;--c-elevation_9: #6b7188;--c-elevation_10: #868ca5;--c-elevation_11: #9aa2c2;--c-elevation_12: #b6c0e0}:root{color-scheme:dark;--is-dark-theme: true;accent-color:var(--c-primary_base);--color-primary: var(--c-primary_base);--color-primary-contrast: var(--c-primary_base-c);--color-primary-dark-1: var(--c-primary_dark_3\%);--color-primary-dark-2: var(--c-primary_dark_6\%);--color-primary-dark-3: var(--c-primary_dark_9\%);--color-primary-dark-4: var(--c-primary_dark_12\%);--color-primary-dark-5: var(--c-primary_dark_15\%);--color-primary-dark-6: var(--c-primary_dark_18\%);--color-primary-dark-7: var(--c-primary_dark_21\%);--color-primary-light-1: var(--c-primary_light_3\%);--color-primary-light-2: var(--c-primary_light_6\%);--color-primary-light-3: var(--c-primary_light_9\%);--color-primary-light-4: var(--c-primary_light_12\%);--color-primary-light-5: var(--c-primary_light_15\%);--color-primary-light-6: var(--c-primary_light_18\%);--color-primary-light-7: var(--c-primary_light_21\%);--color-primary-alpha-10: rgba(var(--c-primary_base-rgb), 0.1);--color-primary-alpha-20: rgba(var(--c-primary_base-rgb), 0.2);--color-primary-alpha-30: rgba(var(--c-primary_base-rgb), 0.3);--color-primary-alpha-40: rgba(var(--c-primary_base-rgb), 0.4);--color-primary-alpha-50: rgba(var(--c-primary_base-rgb), 0.5);--color-primary-alpha-60: rgba(var(--c-primary_base-rgb), 0.6);--color-primary-alpha-70: rgba(var(--c-primary_base-rgb), 0.7);--color-primary-alpha-80: rgba(var(--c-primary_base-rgb), 0.8);--color-primary-alpha-90: rgba(var(--c-primary_base-rgb), 0.9);--color-secondary: var(--c-elevation_5);--color-secondary-dark-1: var(--c-secondary_light_3\%);--color-secondary-dark-2: var(--c-secondary_light_6\%);--color-secondary-dark-3: var(--c-secondary_light_9\%);--color-secondary-dark-4: var(--c-secondary_light_12\%);--color-secondary-dark-5: var(--c-secondary_light_15\%);--color-secondary-dark-6: var(--c-secondary_light_18\%);--color-secondary-dark-7: var(--c-secondary_light_21\%);--color-secondary-dark-8: var(--c-secondary_light_24\%);--color-secondary-dark-9: var(--c-secondary_light_27\%);--color-secondary-dark-10: var(--c-secondary_light_30\%);--color-secondary-dark-11: var(--c-secondary_light_33\%);--color-secondary-dark-12: var(--c-secondary_light_36\%);--color-secondary-dark-13: var(--c-secondary_light_39\%);--color-secondary-light-1: var(--c-secondary_dark_3\%);--color-secondary-light-2: var(--c-secondary_dark_6\%);--color-secondary-light-3: var(--c-secondary_dark_9\%);--color-secondary-light-4: var(--c-secondary_dark_12\%);--color-secondary-alpha-10: rgba(var(--c-secondary_base-rgb), 0.1);--color-secondary-alpha-20: rgba(var(--c-secondary_base-rgb), 0.2);--color-secondary-alpha-30: rgba(var(--c-secondary_base-rgb), 0.3);--color-secondary-alpha-40: rgba(var(--c-secondary_base-rgb), 0.4);--color-secondary-alpha-50: rgba(var(--c-secondary_base-rgb), 0.5);--color-secondary-alpha-60: rgba(var(--c-secondary_base-rgb), 0.6);--color-secondary-alpha-70: rgba(var(--c-secondary_base-rgb), 0.7);--color-secondary-alpha-80: rgba(var(--c-secondary_base-rgb), 0.8);--color-secondary-alpha-90: rgba(var(--c-secondary_base-rgb), 0.9);--color-red: var(--c-theme_red_base);--color-orange: var(--c-theme_peach_base);--color-yellow: var(--c-theme_yellow_base);--color-olive: var(--c-theme_green_base);--color-green: var(--c-theme_green_base);--color-teal: var(--c-theme_teal_base);--color-blue: var(--c-theme_blue_base);--color-violet: var(--c-theme_lavender_base);--color-purple: var(--c-theme_mauve_base);--color-pink: var(--c-theme_pink_base);--color-brown: var(--c-theme_flamingo_base);--color-grey: var(--c-elevation_9);--color-black: var(--c-elevation_1);--color-red-dark-1: var(--c-theme_red_dark_12\%);--color-orange-dark-1: var(--c-theme_peach_dark_12\%);--color-yellow-dark-1: var(--c-theme_yellow_dark_12\%);--color-olive-dark-1: var(--c-theme_green_dark_12\%);--color-green-dark-1: var(--c-theme_green_dark_12\%);--color-teal-dark-1: var(--c-theme_teal_dark_12\%);--color-blue-dark-1: var(--c-theme_blue_dark_12\%);--color-violet-dark-1: var(--c-theme_lavender_dark_12\%);--color-purple-dark-1: var(--c-theme_mauve_dark_12\%);--color-pink-dark-1: var(--c-theme_pink_dark_12\%);--color-brown-dark-1: var(--c-theme_flamingo_dark_12\%);--color-red-dark-2: var(--c-theme_red_dark_15\%);--color-orange-dark-2: var(--c-theme_peach_dark_15\%);--color-yellow-dark-2: var(--c-theme_yellow_dark_15\%);--color-olive-dark-2: var(--c-theme_green_dark_15\%);--color-green-dark-2: var(--c-theme_green_dark_15\%);--color-teal-dark-2: var(--c-theme_teal_dark_15\%);--color-blue-dark-2: var(--c-theme_blue_dark_15\%);--color-violet-dark-2: var(--c-theme_lavender_dark_15\%);--color-purple-dark-2: var(--c-theme_mauve_dark_15\%);--color-pink-dark-2: var(--c-theme_pink_dark_15\%);--color-brown-dark-2: var(--c-theme_flamingo_dark_15\%);--color-red-light: var(--c-theme_red_light_12\%);--color-orange-light: var(--c-theme_peach_light_12\%);--color-yellow-light: var(--c-theme_yellow_light_12\%);--color-olive-light: var(--c-theme_green_light_12\%);--color-green-light: var(--c-theme_green_light_12\%);--color-teal-light: var(--c-theme_teal_light_12\%);--color-blue-light: var(--c-theme_blue_light_12\%);--color-violet-light: var(--c-theme_lavender_light_12\%);--color-purple-light: var(--c-theme_mauve_light_12\%);--color-pink-light: var(--c-theme_pink_light_12\%);--color-brown-light: var(--c-theme_flamingo_light_12\%);--color-grey-light: var(--c-elevation_11);--color-black-light: var(--c-theme_black_light_12\%);--color-gold: var(--c-theme_rosewater_base);--color-white: var(--c-text);--color-diff-removed-word-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-diff-added-word-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-diff-removed-row-bg: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-bg: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-bg: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-removed-row-border: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-border: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-border: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-inactive: var(--c-elevation_9);--color-error-border: var(--c-theme_red_base);--color-error-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-error-bg-active: var(--c-theme_red_light_6\%);--color-error-bg-hover: var(--c-theme_red_light_12\%);--color-error-text: var(--c-theme_red_base);--color-success-border: var(--c-theme_green_light_12\%);--color-success-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-success-text: var(--c-text);--color-warning-border: var(--c-theme_yellow_light_12\%);--color-warning-bg: var(--c-theme_yellow_base);--color-warning-text: var(--c-elevation_3);--color-info-border: var(--c-theme_blue_light_12\%);--color-info-bg: var(--c-elevation_3);--color-info-text: var(--c-text);--color-red-badge: var(--c-theme_red_light_12\%);--color-red-badge-bg: var(--c-elevation_3);--color-red-badge-hover-bg: var(--c-theme_red_light_6\%);--color-green-badge: var(--c-theme_green_base);--color-green-badge-bg: var(--c-elevation_3);--color-green-badge-hover-bg: var(--c-theme_green_light_6\%);--color-yellow-badge: var(--c-theme_yellow_base);--color-yellow-badge-bg: var(--c-elevation_3);--color-yellow-badge-hover-bg: var(--c-theme_yellow_light_6\%);--color-orange-badge: var(--c-theme_peach_base);--color-orange-badge-bg: var(--c-elevation_3);--color-orange-badge-hover-bg: var(--c-theme_peach_light_6\%);--color-git: var(--c-theme_peach_base);--color-label-bg: var(--c-primary_base);--color-body: var(--c-elevation_3);--color-box-header: rgba(var(--c-elevation_2-rgb), 1);--color-box-body: var(--color-body);--color-box-body-highlight: var(--c-elevation_4);--color-text-dark: var(--c-elevation_10);--color-text: var(--c-text);--color-text-light: var(--c-elevation_12);--color-text-light-1: var(--c-elevation_11);--color-text-light-2: var(--c-elevation_10);--color-text-light-3: var(--c-elevation_9);--color-footer: rgba(var(--c-elevation_2-rgb), 0.2);--color-timeline: var(--c-elevation_4);--color-input-text: var(--c-text);--color-input-background: var(--c-elevation_4);--color-input-toggle-background: var(--c-elevation_4);--color-input-border: var(--c-elevation_5);--color-input-border-hover: var(--c-elevation_6);--color-header-wrapper: var(--c-elevation_2);--color-header-wrapper-transparent: #00000000;--color-light: var(--c-elevation_6);--color-light-mimic-enabled: rgba( +:root{--v-base-font-size: 14px;--v-font-family: "Outfit", Inter, Roboto, sans-serif;--v-code-font-family: "Source Code Pro", "Roboto Mono", Consolas, monospace;--v-measure_\.25x: 4px;--v-measure_\.5x: 8px;--v-measure_1x: 16px;--v-measure_1\.25x: 20px;--v-measure_2x: 32px;--v-repo-home_sidebar-width: 296px;--c-theme_rosewater_base: #f5e0dc;--c-theme_rosewater_base-rgb: 245, 224, 220;--c-theme_flamingo_light_12\%: #fffefe;--c-theme_flamingo_dark_12\%: #e59c9c;--c-theme_flamingo_dark_15\%: #e29090;--c-theme_flamingo_base: #f2cdcd;--c-theme_pink_light_12\%: #fef7fc;--c-theme_pink_dark_12\%: #ec8dd2;--c-theme_pink_dark_15\%: #ea80cd;--c-theme_pink_base: #f5c2e7;--c-theme_mauve_light_12\%: #deeafc;--c-theme_mauve_dark_12\%: #6ea2f2;--c-theme_mauve_dark_15\%: #6099f1;--c-theme_mauve_base: #a6c6f7;--c-theme_red_light_6\%: #f6a7bd;--c-theme_red_light_12\%: #f9c2d2;--c-theme_red_dark_12\%: #ed547e;--c-theme_red_dark_15\%: #ec4674;--c-theme_red_base: #f38ba8;--c-theme_red_base-rgb: 243, 139, 168;--c-theme_maroon_base: #eba0ac;--c-theme_peach_light_6\%: #fbc6a4;--c-theme_peach_light_12\%: #fcd8c2;--c-theme_peach_dark_12\%: #f88e4c;--c-theme_peach_dark_15\%: #f7843e;--c-theme_peach_base: #fab387;--c-theme_yellow_light_6\%: #fbeccb;--c-theme_yellow_light_12\%: #fdf7e8;--c-theme_yellow_dark_12\%: #f5cd76;--c-theme_yellow_dark_15\%: #f4c868;--c-theme_yellow_base: #f9e2af;--c-theme_yellow_base-rgb: 249, 226, 175;--c-theme_green_light_6\%: #c2d8fa;--c-theme_green_light_12\%: #deeafc;--c-theme_green_dark_12\%: #6ea2f2;--c-theme_green_dark_15\%: #6099f1;--c-theme_green_base: #a6c6f7;--c-theme_green_base-rgb: 166, 198, 247;--c-theme_dark-green_base-rgb: 0, 230, 118;--c-theme_teal_light_12\%: #c4efe8;--c-theme_teal_dark_12\%: #64d5c2;--c-theme_teal_dark_15\%: #58d2bd;--c-theme_teal_base: #94e2d5;--c-theme_sky_base: #89dceb;--c-theme_sapphire_base: #74c7ec;--c-theme_blue_light_12\%: #c4d9fc;--c-theme_blue_dark_12\%: #4e8ff8;--c-theme_blue_dark_15\%: #4085f7;--c-theme_blue_base: #89b4fa;--c-theme_blue_base-rgb: 137, 180, 250;--c-theme_lavender_light_12\%: #f0f2ff;--c-theme_lavender_dark_12\%: #788afd;--c-theme_lavender_dark_15\%: #697dfd;--c-theme_lavender_base: #b4befe;--c-theme_black_light_12\%: #30304a;--c-text: #e6edf3;--c-text-rgb: 230, 237, 243;--c-primary_light_3\%: #b4cff8;--c-primary_light_6\%: #c2d8fa;--c-primary_light_9\%: #d0e1fb;--c-primary_light_12\%: #deeafc;--c-primary_light_15\%: #ecf3fd;--c-primary_light_18\%: #fafcff;--c-primary_light_21\%: white;--c-primary_dark_3\%: #98bdf6;--c-primary_dark_6\%: #8ab4f4;--c-primary_dark_9\%: #7cabf3;--c-primary_dark_12\%: #6ea2f2;--c-primary_dark_15\%: #6099f1;--c-primary_dark_18\%: #5290ef;--c-primary_dark_21\%: #4487ee;--c-primary_base: #a6c6f7;--c-primary_base-rgb: 166, 198, 247;--c-primary_base-c: #000000;--c-secondary_light_3\%: #646683;--c-secondary_light_6\%: #6a6d8b;--c-secondary_light_9\%: #727493;--c-secondary_light_12\%: #7a7d9a;--c-secondary_light_15\%: #8385a0;--c-secondary_light_18\%: #8c8ea7;--c-secondary_light_21\%: #9496ae;--c-secondary_light_24\%: #9d9fb4;--c-secondary_light_27\%: #a6a7bb;--c-secondary_light_30\%: #aeb0c2;--c-secondary_light_33\%: #b7b8c8;--c-secondary_light_36\%: #c0c1cf;--c-secondary_light_39\%: #c8c9d5;--c-secondary_dark_3\%: #565871;--c-secondary_dark_6\%: #505169;--c-secondary_dark_9\%: #494b60;--c-secondary_dark_12\%: #434457;--c-secondary_base-rgb: 93, 95, 122;--c-elevation_1: #000000;--c-elevation_2: #040407;--c-elevation_2-rgb: 4, 4, 7;--c-elevation_3: #07070f;--c-elevation_3-rgb: 7, 7, 15;--c-elevation_4: #161720;--c-elevation_5: #1a1a25;--c-elevation_6: #222330;--c-elevation_6-rgb: 34, 35, 48;--c-elevation_7: #393c4d;--c-elevation_9: #6b7188;--c-elevation_10: #868ca5;--c-elevation_11: #9aa2c2;--c-elevation_12: #b6c0e0}:root{color-scheme:dark;--is-dark-theme: true;accent-color:var(--c-primary_base);--color-primary: var(--c-primary_base);--color-primary-contrast: var(--c-primary_base-c);--color-primary-dark-1: var(--c-primary_dark_3\%);--color-primary-dark-2: var(--c-primary_dark_6\%);--color-primary-dark-3: var(--c-primary_dark_9\%);--color-primary-dark-4: var(--c-primary_dark_12\%);--color-primary-dark-5: var(--c-primary_dark_15\%);--color-primary-dark-6: var(--c-primary_dark_18\%);--color-primary-dark-7: var(--c-primary_dark_21\%);--color-primary-light-1: var(--c-primary_light_3\%);--color-primary-light-2: var(--c-primary_light_6\%);--color-primary-light-3: var(--c-primary_light_9\%);--color-primary-light-4: var(--c-primary_light_12\%);--color-primary-light-5: var(--c-primary_light_15\%);--color-primary-light-6: var(--c-primary_light_18\%);--color-primary-light-7: var(--c-primary_light_21\%);--color-primary-alpha-10: rgba(var(--c-primary_base-rgb), 0.1);--color-primary-alpha-20: rgba(var(--c-primary_base-rgb), 0.2);--color-primary-alpha-30: rgba(var(--c-primary_base-rgb), 0.3);--color-primary-alpha-40: rgba(var(--c-primary_base-rgb), 0.4);--color-primary-alpha-50: rgba(var(--c-primary_base-rgb), 0.5);--color-primary-alpha-60: rgba(var(--c-primary_base-rgb), 0.6);--color-primary-alpha-70: rgba(var(--c-primary_base-rgb), 0.7);--color-primary-alpha-80: rgba(var(--c-primary_base-rgb), 0.8);--color-primary-alpha-90: rgba(var(--c-primary_base-rgb), 0.9);--color-secondary: var(--c-elevation_5);--color-secondary-dark-1: var(--c-secondary_light_3\%);--color-secondary-dark-2: var(--c-secondary_light_6\%);--color-secondary-dark-3: var(--c-secondary_light_9\%);--color-secondary-dark-4: var(--c-secondary_light_12\%);--color-secondary-dark-5: var(--c-secondary_light_15\%);--color-secondary-dark-6: var(--c-secondary_light_18\%);--color-secondary-dark-7: var(--c-secondary_light_21\%);--color-secondary-dark-8: var(--c-secondary_light_24\%);--color-secondary-dark-9: var(--c-secondary_light_27\%);--color-secondary-dark-10: var(--c-secondary_light_30\%);--color-secondary-dark-11: var(--c-secondary_light_33\%);--color-secondary-dark-12: var(--c-secondary_light_36\%);--color-secondary-dark-13: var(--c-secondary_light_39\%);--color-secondary-light-1: var(--c-secondary_dark_3\%);--color-secondary-light-2: var(--c-secondary_dark_6\%);--color-secondary-light-3: var(--c-secondary_dark_9\%);--color-secondary-light-4: var(--c-secondary_dark_12\%);--color-secondary-alpha-10: rgba(var(--c-secondary_base-rgb), 0.1);--color-secondary-alpha-20: rgba(var(--c-secondary_base-rgb), 0.2);--color-secondary-alpha-30: rgba(var(--c-secondary_base-rgb), 0.3);--color-secondary-alpha-40: rgba(var(--c-secondary_base-rgb), 0.4);--color-secondary-alpha-50: rgba(var(--c-secondary_base-rgb), 0.5);--color-secondary-alpha-60: rgba(var(--c-secondary_base-rgb), 0.6);--color-secondary-alpha-70: rgba(var(--c-secondary_base-rgb), 0.7);--color-secondary-alpha-80: rgba(var(--c-secondary_base-rgb), 0.8);--color-secondary-alpha-90: rgba(var(--c-secondary_base-rgb), 0.9);--color-red: var(--c-theme_red_base);--color-orange: var(--c-theme_peach_base);--color-yellow: var(--c-theme_yellow_base);--color-olive: var(--c-theme_green_base);--color-green: var(--c-theme_green_base);--color-teal: var(--c-theme_teal_base);--color-blue: var(--c-theme_blue_base);--color-violet: var(--c-theme_lavender_base);--color-purple: var(--c-theme_mauve_base);--color-pink: var(--c-theme_pink_base);--color-brown: var(--c-theme_flamingo_base);--color-grey: var(--c-elevation_9);--color-black: var(--c-elevation_1);--color-red-dark-1: var(--c-theme_red_dark_12\%);--color-orange-dark-1: var(--c-theme_peach_dark_12\%);--color-yellow-dark-1: var(--c-theme_yellow_dark_12\%);--color-olive-dark-1: var(--c-theme_green_dark_12\%);--color-green-dark-1: var(--c-theme_green_dark_12\%);--color-teal-dark-1: var(--c-theme_teal_dark_12\%);--color-blue-dark-1: var(--c-theme_blue_dark_12\%);--color-violet-dark-1: var(--c-theme_lavender_dark_12\%);--color-purple-dark-1: var(--c-theme_mauve_dark_12\%);--color-pink-dark-1: var(--c-theme_pink_dark_12\%);--color-brown-dark-1: var(--c-theme_flamingo_dark_12\%);--color-red-dark-2: var(--c-theme_red_dark_15\%);--color-orange-dark-2: var(--c-theme_peach_dark_15\%);--color-yellow-dark-2: var(--c-theme_yellow_dark_15\%);--color-olive-dark-2: var(--c-theme_green_dark_15\%);--color-green-dark-2: var(--c-theme_green_dark_15\%);--color-teal-dark-2: var(--c-theme_teal_dark_15\%);--color-blue-dark-2: var(--c-theme_blue_dark_15\%);--color-violet-dark-2: var(--c-theme_lavender_dark_15\%);--color-purple-dark-2: var(--c-theme_mauve_dark_15\%);--color-pink-dark-2: var(--c-theme_pink_dark_15\%);--color-brown-dark-2: var(--c-theme_flamingo_dark_15\%);--color-red-light: var(--c-theme_red_light_12\%);--color-orange-light: var(--c-theme_peach_light_12\%);--color-yellow-light: var(--c-theme_yellow_light_12\%);--color-olive-light: var(--c-theme_green_light_12\%);--color-green-light: var(--c-theme_green_light_12\%);--color-teal-light: var(--c-theme_teal_light_12\%);--color-blue-light: var(--c-theme_blue_light_12\%);--color-violet-light: var(--c-theme_lavender_light_12\%);--color-purple-light: var(--c-theme_mauve_light_12\%);--color-pink-light: var(--c-theme_pink_light_12\%);--color-brown-light: var(--c-theme_flamingo_light_12\%);--color-grey-light: var(--c-elevation_11);--color-black-light: var(--c-theme_black_light_12\%);--color-gold: var(--c-theme_rosewater_base);--color-white: var(--c-text);--color-diff-removed-word-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-diff-added-word-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-diff-removed-row-bg: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-bg: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-bg: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-removed-row-border: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-border: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-border: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-inactive: var(--c-elevation_9);--color-error-border: var(--c-theme_red_base);--color-error-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-error-bg-active: var(--c-theme_red_light_6\%);--color-error-bg-hover: var(--c-theme_red_light_12\%);--color-error-text: var(--c-theme_red_base);--color-success-border: var(--c-theme_green_light_12\%);--color-success-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-success-text: var(--c-text);--color-warning-border: var(--c-theme_yellow_light_12\%);--color-warning-bg: var(--c-theme_yellow_base);--color-warning-text: var(--c-elevation_3);--color-info-border: var(--c-theme_blue_light_12\%);--color-info-bg: var(--c-elevation_3);--color-info-text: var(--c-text);--color-red-badge: var(--c-theme_red_light_12\%);--color-red-badge-bg: var(--c-elevation_3);--color-red-badge-hover-bg: var(--c-theme_red_light_6\%);--color-green-badge: var(--c-theme_green_base);--color-green-badge-bg: var(--c-elevation_3);--color-green-badge-hover-bg: var(--c-theme_green_light_6\%);--color-yellow-badge: var(--c-theme_yellow_base);--color-yellow-badge-bg: var(--c-elevation_3);--color-yellow-badge-hover-bg: var(--c-theme_yellow_light_6\%);--color-orange-badge: var(--c-theme_peach_base);--color-orange-badge-bg: var(--c-elevation_3);--color-orange-badge-hover-bg: var(--c-theme_peach_light_6\%);--color-git: var(--c-theme_peach_base);--color-label-bg: var(--c-primary_base);--color-label-hover-bg: var(--c-primary_light_6\%);--color-body: var(--c-elevation_3);--color-box-header: rgba(var(--c-elevation_2-rgb), 1);--color-box-body: var(--color-body);--color-box-body-highlight: var(--c-elevation_4);--color-text-dark: var(--c-elevation_10);--color-text: var(--c-text);--color-text-light: var(--c-elevation_12);--color-text-light-1: var(--c-elevation_11);--color-text-light-2: var(--c-elevation_10);--color-text-light-3: var(--c-elevation_9);--color-footer: rgba(var(--c-elevation_2-rgb), 0.2);--color-timeline: var(--c-elevation_4);--color-input-text: var(--c-text);--color-input-background: var(--c-elevation_4);--color-input-toggle-background: var(--c-elevation_4);--color-input-border: var(--c-elevation_5);--color-input-border-hover: var(--c-elevation_6);--color-header-wrapper: var(--c-elevation_2);--color-header-wrapper-transparent: #00000000;--color-light: var(--c-elevation_6);--color-light-mimic-enabled: rgba( 0, 0, 0, diff --git a/dist/public/assets/css/theme-light.css b/dist/public/assets/css/theme-light.css index c5c1936..3b8b383 100644 --- a/dist/public/assets/css/theme-light.css +++ b/dist/public/assets/css/theme-light.css @@ -1,4 +1,4 @@ -:root{--v-base-font-size: 14px;--v-font-family: "Outfit", Inter, Roboto, sans-serif;--v-code-font-family: "Source Code Pro", "Roboto Mono", Consolas, monospace;--v-measure_\.25x: 4px;--v-measure_\.5x: 8px;--v-measure_1x: 16px;--v-measure_1\.25x: 20px;--v-measure_2x: 32px;--v-repo-home_sidebar-width: 296px;--c-theme_rosewater_base: #dc8a78;--c-theme_rosewater_base-rgb: 220, 138, 120;--c-theme_flamingo_light_12\%: #e9a9a9;--c-theme_flamingo_dark_12\%: #d14747;--c-theme_flamingo_dark_15\%: #ce3b3b;--c-theme_flamingo_base: #dd7878;--c-theme_pink_light_12\%: #f2abdf;--c-theme_pink_dark_12\%: #e241b7;--c-theme_pink_dark_15\%: #e034b2;--c-theme_pink_base: #ea76cb;--c-theme_mauve_light_12\%: #96b9ec;--c-theme_mauve_dark_12\%: #2e73d8;--c-theme_mauve_dark_15\%: #276cd1;--c-theme_mauve_base: #6296e2;--c-theme_red_light_6\%: #ee1241;--c-theme_red_light_12\%: #f02e58;--c-theme_red_dark_12\%: #990b29;--c-theme_red_dark_15\%: #8b0a26;--c-theme_red_base: #d20f39;--c-theme_red_base-rgb: 210, 15, 57;--c-theme_maroon_base: #e64553;--c-theme_peach_light_6\%: #fe7729;--c-theme_peach_light_12\%: #fe8b48;--c-theme_peach_dark_12\%: #cb4b01;--c-theme_peach_dark_15\%: #bc4501;--c-theme_peach_base: #fe640b;--c-theme_yellow_light_6\%: #e59c36;--c-theme_yellow_light_12\%: #e8a951;--c-theme_yellow_dark_12\%: #a96c16;--c-theme_yellow_dark_15\%: #9b6314;--c-theme_yellow_base: #df8e1d;--c-theme_yellow_base-rgb: 223, 142, 29;--c-theme_green_light_6\%: #7ca7e7;--c-theme_green_light_12\%: #96b9ec;--c-theme_green_dark_12\%: #2e73d8;--c-theme_green_dark_15\%: #276cd1;--c-theme_green_base: #6296e2;--c-theme_green_base-rgb: 98, 150, 226;--c-theme_dark-green_base-rgb: 17, 117, 45;--c-theme_teal_light_12\%: #1fc5ce;--c-theme_teal_dark_12\%: #0f5f64;--c-theme_teal_dark_15\%: #0d5356;--c-theme_teal_base: #179299;--c-theme_sky_base: #04a5e5;--c-theme_sapphire_base: #209fb5;--c-theme_blue_light_12\%: #598ef8;--c-theme_blue_dark_12\%: #094bcd;--c-theme_blue_dark_15\%: #0845be;--c-theme_blue_base: #1e66f5;--c-theme_blue_base-rgb: 30, 102, 245;--c-theme_lavender_light_12\%: #aebafe;--c-theme_lavender_dark_12\%: #3654fc;--c-theme_lavender_dark_15\%: #2747fc;--c-theme_lavender_base: #7287fd;--c-theme_black_light_12\%: #30304a;--c-text: #4c4f69;--c-text-rgb: 76, 79, 105;--c-primary_light_3\%: #6f9fe4;--c-primary_light_6\%: #7ca7e7;--c-primary_light_9\%: #89b0e9;--c-primary_light_12\%: #96b9ec;--c-primary_light_15\%: #a3c1ee;--c-primary_light_18\%: #afcaf0;--c-primary_light_21\%: #bcd2f3;--c-primary_dark_3\%: #558de0;--c-primary_dark_6\%: #4885dd;--c-primary_dark_9\%: #3b7cdb;--c-primary_dark_12\%: #2e73d8;--c-primary_dark_15\%: #276cd1;--c-primary_dark_18\%: #2465c4;--c-primary_dark_21\%: #225eb7;--c-primary_base: #6296e2;--c-primary_base-rgb: 98, 150, 226;--c-primary_base-c: #4c4f69;--c-secondary_light_3\%: #646683;--c-secondary_light_6\%: #6a6d8b;--c-secondary_light_9\%: #727493;--c-secondary_light_12\%: #7a7d9a;--c-secondary_light_15\%: #8385a0;--c-secondary_light_18\%: #8c8ea7;--c-secondary_light_21\%: #9496ae;--c-secondary_light_24\%: #9d9fb4;--c-secondary_light_27\%: #a6a7bb;--c-secondary_light_30\%: #aeb0c2;--c-secondary_light_33\%: #b7b8c8;--c-secondary_light_36\%: #c0c1cf;--c-secondary_light_39\%: #c8c9d5;--c-secondary_dark_3\%: #565871;--c-secondary_dark_6\%: #505169;--c-secondary_dark_9\%: #494b60;--c-secondary_dark_12\%: #434457;--c-secondary_base-rgb: 93, 95, 122;--c-elevation_1: #dce0e8;--c-elevation_2: #e6e9ef;--c-elevation_2-rgb: 230, 233, 239;--c-elevation_3: #eff1f5;--c-elevation_3-rgb: 239, 241, 245;--c-elevation_4: #ccd0da;--c-elevation_5: #bcc0cc;--c-elevation_6: #acb0be;--c-elevation_6-rgb: 172, 176, 190;--c-elevation_7: #9ca0b0;--c-elevation_9: #7c7f93;--c-elevation_10: #6c6f85;--c-elevation_11: #5c5f77;--c-elevation_12: #4c4f69}:root{color-scheme:dark;--is-dark-theme: true;accent-color:var(--c-primary_base);--color-primary: var(--c-primary_base);--color-primary-contrast: var(--c-primary_base-c);--color-primary-dark-1: var(--c-primary_dark_3\%);--color-primary-dark-2: var(--c-primary_dark_6\%);--color-primary-dark-3: var(--c-primary_dark_9\%);--color-primary-dark-4: var(--c-primary_dark_12\%);--color-primary-dark-5: var(--c-primary_dark_15\%);--color-primary-dark-6: var(--c-primary_dark_18\%);--color-primary-dark-7: var(--c-primary_dark_21\%);--color-primary-light-1: var(--c-primary_light_3\%);--color-primary-light-2: var(--c-primary_light_6\%);--color-primary-light-3: var(--c-primary_light_9\%);--color-primary-light-4: var(--c-primary_light_12\%);--color-primary-light-5: var(--c-primary_light_15\%);--color-primary-light-6: var(--c-primary_light_18\%);--color-primary-light-7: var(--c-primary_light_21\%);--color-primary-alpha-10: rgba(var(--c-primary_base-rgb), 0.1);--color-primary-alpha-20: rgba(var(--c-primary_base-rgb), 0.2);--color-primary-alpha-30: rgba(var(--c-primary_base-rgb), 0.3);--color-primary-alpha-40: rgba(var(--c-primary_base-rgb), 0.4);--color-primary-alpha-50: rgba(var(--c-primary_base-rgb), 0.5);--color-primary-alpha-60: rgba(var(--c-primary_base-rgb), 0.6);--color-primary-alpha-70: rgba(var(--c-primary_base-rgb), 0.7);--color-primary-alpha-80: rgba(var(--c-primary_base-rgb), 0.8);--color-primary-alpha-90: rgba(var(--c-primary_base-rgb), 0.9);--color-secondary: var(--c-elevation_5);--color-secondary-dark-1: var(--c-secondary_light_3\%);--color-secondary-dark-2: var(--c-secondary_light_6\%);--color-secondary-dark-3: var(--c-secondary_light_9\%);--color-secondary-dark-4: var(--c-secondary_light_12\%);--color-secondary-dark-5: var(--c-secondary_light_15\%);--color-secondary-dark-6: var(--c-secondary_light_18\%);--color-secondary-dark-7: var(--c-secondary_light_21\%);--color-secondary-dark-8: var(--c-secondary_light_24\%);--color-secondary-dark-9: var(--c-secondary_light_27\%);--color-secondary-dark-10: var(--c-secondary_light_30\%);--color-secondary-dark-11: var(--c-secondary_light_33\%);--color-secondary-dark-12: var(--c-secondary_light_36\%);--color-secondary-dark-13: var(--c-secondary_light_39\%);--color-secondary-light-1: var(--c-secondary_dark_3\%);--color-secondary-light-2: var(--c-secondary_dark_6\%);--color-secondary-light-3: var(--c-secondary_dark_9\%);--color-secondary-light-4: var(--c-secondary_dark_12\%);--color-secondary-alpha-10: rgba(var(--c-secondary_base-rgb), 0.1);--color-secondary-alpha-20: rgba(var(--c-secondary_base-rgb), 0.2);--color-secondary-alpha-30: rgba(var(--c-secondary_base-rgb), 0.3);--color-secondary-alpha-40: rgba(var(--c-secondary_base-rgb), 0.4);--color-secondary-alpha-50: rgba(var(--c-secondary_base-rgb), 0.5);--color-secondary-alpha-60: rgba(var(--c-secondary_base-rgb), 0.6);--color-secondary-alpha-70: rgba(var(--c-secondary_base-rgb), 0.7);--color-secondary-alpha-80: rgba(var(--c-secondary_base-rgb), 0.8);--color-secondary-alpha-90: rgba(var(--c-secondary_base-rgb), 0.9);--color-red: var(--c-theme_red_base);--color-orange: var(--c-theme_peach_base);--color-yellow: var(--c-theme_yellow_base);--color-olive: var(--c-theme_green_base);--color-green: var(--c-theme_green_base);--color-teal: var(--c-theme_teal_base);--color-blue: var(--c-theme_blue_base);--color-violet: var(--c-theme_lavender_base);--color-purple: var(--c-theme_mauve_base);--color-pink: var(--c-theme_pink_base);--color-brown: var(--c-theme_flamingo_base);--color-grey: var(--c-elevation_9);--color-black: var(--c-elevation_1);--color-red-dark-1: var(--c-theme_red_dark_12\%);--color-orange-dark-1: var(--c-theme_peach_dark_12\%);--color-yellow-dark-1: var(--c-theme_yellow_dark_12\%);--color-olive-dark-1: var(--c-theme_green_dark_12\%);--color-green-dark-1: var(--c-theme_green_dark_12\%);--color-teal-dark-1: var(--c-theme_teal_dark_12\%);--color-blue-dark-1: var(--c-theme_blue_dark_12\%);--color-violet-dark-1: var(--c-theme_lavender_dark_12\%);--color-purple-dark-1: var(--c-theme_mauve_dark_12\%);--color-pink-dark-1: var(--c-theme_pink_dark_12\%);--color-brown-dark-1: var(--c-theme_flamingo_dark_12\%);--color-red-dark-2: var(--c-theme_red_dark_15\%);--color-orange-dark-2: var(--c-theme_peach_dark_15\%);--color-yellow-dark-2: var(--c-theme_yellow_dark_15\%);--color-olive-dark-2: var(--c-theme_green_dark_15\%);--color-green-dark-2: var(--c-theme_green_dark_15\%);--color-teal-dark-2: var(--c-theme_teal_dark_15\%);--color-blue-dark-2: var(--c-theme_blue_dark_15\%);--color-violet-dark-2: var(--c-theme_lavender_dark_15\%);--color-purple-dark-2: var(--c-theme_mauve_dark_15\%);--color-pink-dark-2: var(--c-theme_pink_dark_15\%);--color-brown-dark-2: var(--c-theme_flamingo_dark_15\%);--color-red-light: var(--c-theme_red_light_12\%);--color-orange-light: var(--c-theme_peach_light_12\%);--color-yellow-light: var(--c-theme_yellow_light_12\%);--color-olive-light: var(--c-theme_green_light_12\%);--color-green-light: var(--c-theme_green_light_12\%);--color-teal-light: var(--c-theme_teal_light_12\%);--color-blue-light: var(--c-theme_blue_light_12\%);--color-violet-light: var(--c-theme_lavender_light_12\%);--color-purple-light: var(--c-theme_mauve_light_12\%);--color-pink-light: var(--c-theme_pink_light_12\%);--color-brown-light: var(--c-theme_flamingo_light_12\%);--color-grey-light: var(--c-elevation_11);--color-black-light: var(--c-theme_black_light_12\%);--color-gold: var(--c-theme_rosewater_base);--color-white: var(--c-text);--color-diff-removed-word-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-diff-added-word-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-diff-removed-row-bg: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-bg: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-bg: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-removed-row-border: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-border: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-border: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-inactive: var(--c-elevation_9);--color-error-border: var(--c-theme_red_base);--color-error-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-error-bg-active: var(--c-theme_red_light_6\%);--color-error-bg-hover: var(--c-theme_red_light_12\%);--color-error-text: var(--c-theme_red_base);--color-success-border: var(--c-theme_green_light_12\%);--color-success-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-success-text: var(--c-text);--color-warning-border: var(--c-theme_yellow_light_12\%);--color-warning-bg: var(--c-theme_yellow_base);--color-warning-text: var(--c-elevation_3);--color-info-border: var(--c-theme_blue_light_12\%);--color-info-bg: var(--c-elevation_3);--color-info-text: var(--c-text);--color-red-badge: var(--c-theme_red_light_12\%);--color-red-badge-bg: var(--c-elevation_3);--color-red-badge-hover-bg: var(--c-theme_red_light_6\%);--color-green-badge: var(--c-theme_green_base);--color-green-badge-bg: var(--c-elevation_3);--color-green-badge-hover-bg: var(--c-theme_green_light_6\%);--color-yellow-badge: var(--c-theme_yellow_base);--color-yellow-badge-bg: var(--c-elevation_3);--color-yellow-badge-hover-bg: var(--c-theme_yellow_light_6\%);--color-orange-badge: var(--c-theme_peach_base);--color-orange-badge-bg: var(--c-elevation_3);--color-orange-badge-hover-bg: var(--c-theme_peach_light_6\%);--color-git: var(--c-theme_peach_base);--color-label-bg: var(--c-primary_base);--color-body: var(--c-elevation_3);--color-box-header: rgba(var(--c-elevation_2-rgb), 1);--color-box-body: var(--color-body);--color-box-body-highlight: var(--c-elevation_4);--color-text-dark: var(--c-elevation_10);--color-text: var(--c-text);--color-text-light: var(--c-elevation_12);--color-text-light-1: var(--c-elevation_11);--color-text-light-2: var(--c-elevation_10);--color-text-light-3: var(--c-elevation_9);--color-footer: rgba(var(--c-elevation_2-rgb), 0.2);--color-timeline: var(--c-elevation_4);--color-input-text: var(--c-text);--color-input-background: var(--c-elevation_4);--color-input-toggle-background: var(--c-elevation_4);--color-input-border: var(--c-elevation_5);--color-input-border-hover: var(--c-elevation_6);--color-header-wrapper: var(--c-elevation_2);--color-header-wrapper-transparent: #00000000;--color-light: var(--c-elevation_6);--color-light-mimic-enabled: rgba( +:root{--v-base-font-size: 14px;--v-font-family: "Outfit", Inter, Roboto, sans-serif;--v-code-font-family: "Source Code Pro", "Roboto Mono", Consolas, monospace;--v-measure_\.25x: 4px;--v-measure_\.5x: 8px;--v-measure_1x: 16px;--v-measure_1\.25x: 20px;--v-measure_2x: 32px;--v-repo-home_sidebar-width: 296px;--c-theme_rosewater_base: #dc8a78;--c-theme_rosewater_base-rgb: 220, 138, 120;--c-theme_flamingo_light_12\%: #e9a9a9;--c-theme_flamingo_dark_12\%: #d14747;--c-theme_flamingo_dark_15\%: #ce3b3b;--c-theme_flamingo_base: #dd7878;--c-theme_pink_light_12\%: #f2abdf;--c-theme_pink_dark_12\%: #e241b7;--c-theme_pink_dark_15\%: #e034b2;--c-theme_pink_base: #ea76cb;--c-theme_mauve_light_12\%: #96b9ec;--c-theme_mauve_dark_12\%: #2e73d8;--c-theme_mauve_dark_15\%: #276cd1;--c-theme_mauve_base: #6296e2;--c-theme_red_light_6\%: #ee1241;--c-theme_red_light_12\%: #f02e58;--c-theme_red_dark_12\%: #990b29;--c-theme_red_dark_15\%: #8b0a26;--c-theme_red_base: #d20f39;--c-theme_red_base-rgb: 210, 15, 57;--c-theme_maroon_base: #e64553;--c-theme_peach_light_6\%: #fe7729;--c-theme_peach_light_12\%: #fe8b48;--c-theme_peach_dark_12\%: #cb4b01;--c-theme_peach_dark_15\%: #bc4501;--c-theme_peach_base: #fe640b;--c-theme_yellow_light_6\%: #e59c36;--c-theme_yellow_light_12\%: #e8a951;--c-theme_yellow_dark_12\%: #a96c16;--c-theme_yellow_dark_15\%: #9b6314;--c-theme_yellow_base: #df8e1d;--c-theme_yellow_base-rgb: 223, 142, 29;--c-theme_green_light_6\%: #7ca7e7;--c-theme_green_light_12\%: #96b9ec;--c-theme_green_dark_12\%: #2e73d8;--c-theme_green_dark_15\%: #276cd1;--c-theme_green_base: #6296e2;--c-theme_green_base-rgb: 98, 150, 226;--c-theme_dark-green_base-rgb: 17, 117, 45;--c-theme_teal_light_12\%: #1fc5ce;--c-theme_teal_dark_12\%: #0f5f64;--c-theme_teal_dark_15\%: #0d5356;--c-theme_teal_base: #179299;--c-theme_sky_base: #04a5e5;--c-theme_sapphire_base: #209fb5;--c-theme_blue_light_12\%: #598ef8;--c-theme_blue_dark_12\%: #094bcd;--c-theme_blue_dark_15\%: #0845be;--c-theme_blue_base: #1e66f5;--c-theme_blue_base-rgb: 30, 102, 245;--c-theme_lavender_light_12\%: #aebafe;--c-theme_lavender_dark_12\%: #3654fc;--c-theme_lavender_dark_15\%: #2747fc;--c-theme_lavender_base: #7287fd;--c-theme_black_light_12\%: #30304a;--c-text: #4c4f69;--c-text-rgb: 76, 79, 105;--c-primary_light_3\%: #6f9fe4;--c-primary_light_6\%: #7ca7e7;--c-primary_light_9\%: #89b0e9;--c-primary_light_12\%: #96b9ec;--c-primary_light_15\%: #a3c1ee;--c-primary_light_18\%: #afcaf0;--c-primary_light_21\%: #bcd2f3;--c-primary_dark_3\%: #558de0;--c-primary_dark_6\%: #4885dd;--c-primary_dark_9\%: #3b7cdb;--c-primary_dark_12\%: #2e73d8;--c-primary_dark_15\%: #276cd1;--c-primary_dark_18\%: #2465c4;--c-primary_dark_21\%: #225eb7;--c-primary_base: #6296e2;--c-primary_base-rgb: 98, 150, 226;--c-primary_base-c: #4c4f69;--c-secondary_light_3\%: #646683;--c-secondary_light_6\%: #6a6d8b;--c-secondary_light_9\%: #727493;--c-secondary_light_12\%: #7a7d9a;--c-secondary_light_15\%: #8385a0;--c-secondary_light_18\%: #8c8ea7;--c-secondary_light_21\%: #9496ae;--c-secondary_light_24\%: #9d9fb4;--c-secondary_light_27\%: #a6a7bb;--c-secondary_light_30\%: #aeb0c2;--c-secondary_light_33\%: #b7b8c8;--c-secondary_light_36\%: #c0c1cf;--c-secondary_light_39\%: #c8c9d5;--c-secondary_dark_3\%: #565871;--c-secondary_dark_6\%: #505169;--c-secondary_dark_9\%: #494b60;--c-secondary_dark_12\%: #434457;--c-secondary_base-rgb: 93, 95, 122;--c-elevation_1: #dce0e8;--c-elevation_2: #e6e9ef;--c-elevation_2-rgb: 230, 233, 239;--c-elevation_3: #eff1f5;--c-elevation_3-rgb: 239, 241, 245;--c-elevation_4: #ccd0da;--c-elevation_5: #bcc0cc;--c-elevation_6: #acb0be;--c-elevation_6-rgb: 172, 176, 190;--c-elevation_7: #9ca0b0;--c-elevation_9: #7c7f93;--c-elevation_10: #6c6f85;--c-elevation_11: #5c5f77;--c-elevation_12: #4c4f69}:root{color-scheme:dark;--is-dark-theme: true;accent-color:var(--c-primary_base);--color-primary: var(--c-primary_base);--color-primary-contrast: var(--c-primary_base-c);--color-primary-dark-1: var(--c-primary_dark_3\%);--color-primary-dark-2: var(--c-primary_dark_6\%);--color-primary-dark-3: var(--c-primary_dark_9\%);--color-primary-dark-4: var(--c-primary_dark_12\%);--color-primary-dark-5: var(--c-primary_dark_15\%);--color-primary-dark-6: var(--c-primary_dark_18\%);--color-primary-dark-7: var(--c-primary_dark_21\%);--color-primary-light-1: var(--c-primary_light_3\%);--color-primary-light-2: var(--c-primary_light_6\%);--color-primary-light-3: var(--c-primary_light_9\%);--color-primary-light-4: var(--c-primary_light_12\%);--color-primary-light-5: var(--c-primary_light_15\%);--color-primary-light-6: var(--c-primary_light_18\%);--color-primary-light-7: var(--c-primary_light_21\%);--color-primary-alpha-10: rgba(var(--c-primary_base-rgb), 0.1);--color-primary-alpha-20: rgba(var(--c-primary_base-rgb), 0.2);--color-primary-alpha-30: rgba(var(--c-primary_base-rgb), 0.3);--color-primary-alpha-40: rgba(var(--c-primary_base-rgb), 0.4);--color-primary-alpha-50: rgba(var(--c-primary_base-rgb), 0.5);--color-primary-alpha-60: rgba(var(--c-primary_base-rgb), 0.6);--color-primary-alpha-70: rgba(var(--c-primary_base-rgb), 0.7);--color-primary-alpha-80: rgba(var(--c-primary_base-rgb), 0.8);--color-primary-alpha-90: rgba(var(--c-primary_base-rgb), 0.9);--color-secondary: var(--c-elevation_5);--color-secondary-dark-1: var(--c-secondary_light_3\%);--color-secondary-dark-2: var(--c-secondary_light_6\%);--color-secondary-dark-3: var(--c-secondary_light_9\%);--color-secondary-dark-4: var(--c-secondary_light_12\%);--color-secondary-dark-5: var(--c-secondary_light_15\%);--color-secondary-dark-6: var(--c-secondary_light_18\%);--color-secondary-dark-7: var(--c-secondary_light_21\%);--color-secondary-dark-8: var(--c-secondary_light_24\%);--color-secondary-dark-9: var(--c-secondary_light_27\%);--color-secondary-dark-10: var(--c-secondary_light_30\%);--color-secondary-dark-11: var(--c-secondary_light_33\%);--color-secondary-dark-12: var(--c-secondary_light_36\%);--color-secondary-dark-13: var(--c-secondary_light_39\%);--color-secondary-light-1: var(--c-secondary_dark_3\%);--color-secondary-light-2: var(--c-secondary_dark_6\%);--color-secondary-light-3: var(--c-secondary_dark_9\%);--color-secondary-light-4: var(--c-secondary_dark_12\%);--color-secondary-alpha-10: rgba(var(--c-secondary_base-rgb), 0.1);--color-secondary-alpha-20: rgba(var(--c-secondary_base-rgb), 0.2);--color-secondary-alpha-30: rgba(var(--c-secondary_base-rgb), 0.3);--color-secondary-alpha-40: rgba(var(--c-secondary_base-rgb), 0.4);--color-secondary-alpha-50: rgba(var(--c-secondary_base-rgb), 0.5);--color-secondary-alpha-60: rgba(var(--c-secondary_base-rgb), 0.6);--color-secondary-alpha-70: rgba(var(--c-secondary_base-rgb), 0.7);--color-secondary-alpha-80: rgba(var(--c-secondary_base-rgb), 0.8);--color-secondary-alpha-90: rgba(var(--c-secondary_base-rgb), 0.9);--color-red: var(--c-theme_red_base);--color-orange: var(--c-theme_peach_base);--color-yellow: var(--c-theme_yellow_base);--color-olive: var(--c-theme_green_base);--color-green: var(--c-theme_green_base);--color-teal: var(--c-theme_teal_base);--color-blue: var(--c-theme_blue_base);--color-violet: var(--c-theme_lavender_base);--color-purple: var(--c-theme_mauve_base);--color-pink: var(--c-theme_pink_base);--color-brown: var(--c-theme_flamingo_base);--color-grey: var(--c-elevation_9);--color-black: var(--c-elevation_1);--color-red-dark-1: var(--c-theme_red_dark_12\%);--color-orange-dark-1: var(--c-theme_peach_dark_12\%);--color-yellow-dark-1: var(--c-theme_yellow_dark_12\%);--color-olive-dark-1: var(--c-theme_green_dark_12\%);--color-green-dark-1: var(--c-theme_green_dark_12\%);--color-teal-dark-1: var(--c-theme_teal_dark_12\%);--color-blue-dark-1: var(--c-theme_blue_dark_12\%);--color-violet-dark-1: var(--c-theme_lavender_dark_12\%);--color-purple-dark-1: var(--c-theme_mauve_dark_12\%);--color-pink-dark-1: var(--c-theme_pink_dark_12\%);--color-brown-dark-1: var(--c-theme_flamingo_dark_12\%);--color-red-dark-2: var(--c-theme_red_dark_15\%);--color-orange-dark-2: var(--c-theme_peach_dark_15\%);--color-yellow-dark-2: var(--c-theme_yellow_dark_15\%);--color-olive-dark-2: var(--c-theme_green_dark_15\%);--color-green-dark-2: var(--c-theme_green_dark_15\%);--color-teal-dark-2: var(--c-theme_teal_dark_15\%);--color-blue-dark-2: var(--c-theme_blue_dark_15\%);--color-violet-dark-2: var(--c-theme_lavender_dark_15\%);--color-purple-dark-2: var(--c-theme_mauve_dark_15\%);--color-pink-dark-2: var(--c-theme_pink_dark_15\%);--color-brown-dark-2: var(--c-theme_flamingo_dark_15\%);--color-red-light: var(--c-theme_red_light_12\%);--color-orange-light: var(--c-theme_peach_light_12\%);--color-yellow-light: var(--c-theme_yellow_light_12\%);--color-olive-light: var(--c-theme_green_light_12\%);--color-green-light: var(--c-theme_green_light_12\%);--color-teal-light: var(--c-theme_teal_light_12\%);--color-blue-light: var(--c-theme_blue_light_12\%);--color-violet-light: var(--c-theme_lavender_light_12\%);--color-purple-light: var(--c-theme_mauve_light_12\%);--color-pink-light: var(--c-theme_pink_light_12\%);--color-brown-light: var(--c-theme_flamingo_light_12\%);--color-grey-light: var(--c-elevation_11);--color-black-light: var(--c-theme_black_light_12\%);--color-gold: var(--c-theme_rosewater_base);--color-white: var(--c-text);--color-diff-removed-word-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-diff-added-word-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-diff-removed-row-bg: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-bg: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-bg: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-removed-row-border: rgba(var(--c-theme_red_base-rgb), 0.07);--color-diff-moved-row-border: rgba(var(--c-theme_yellow_base-rgb), 0.07);--color-diff-added-row-border: rgba(var(--c-theme_green_base-rgb), 0.07);--color-diff-inactive: var(--c-elevation_9);--color-error-border: var(--c-theme_red_base);--color-error-bg: rgba(var(--c-theme_red_base-rgb), 0.15);--color-error-bg-active: var(--c-theme_red_light_6\%);--color-error-bg-hover: var(--c-theme_red_light_12\%);--color-error-text: var(--c-theme_red_base);--color-success-border: var(--c-theme_green_light_12\%);--color-success-bg: rgba(var(--c-theme_green_base-rgb), 0.15);--color-success-text: var(--c-text);--color-warning-border: var(--c-theme_yellow_light_12\%);--color-warning-bg: var(--c-theme_yellow_base);--color-warning-text: var(--c-elevation_3);--color-info-border: var(--c-theme_blue_light_12\%);--color-info-bg: var(--c-elevation_3);--color-info-text: var(--c-text);--color-red-badge: var(--c-theme_red_light_12\%);--color-red-badge-bg: var(--c-elevation_3);--color-red-badge-hover-bg: var(--c-theme_red_light_6\%);--color-green-badge: var(--c-theme_green_base);--color-green-badge-bg: var(--c-elevation_3);--color-green-badge-hover-bg: var(--c-theme_green_light_6\%);--color-yellow-badge: var(--c-theme_yellow_base);--color-yellow-badge-bg: var(--c-elevation_3);--color-yellow-badge-hover-bg: var(--c-theme_yellow_light_6\%);--color-orange-badge: var(--c-theme_peach_base);--color-orange-badge-bg: var(--c-elevation_3);--color-orange-badge-hover-bg: var(--c-theme_peach_light_6\%);--color-git: var(--c-theme_peach_base);--color-label-bg: var(--c-primary_base);--color-label-hover-bg: var(--c-primary_light_6\%);--color-body: var(--c-elevation_3);--color-box-header: rgba(var(--c-elevation_2-rgb), 1);--color-box-body: var(--color-body);--color-box-body-highlight: var(--c-elevation_4);--color-text-dark: var(--c-elevation_10);--color-text: var(--c-text);--color-text-light: var(--c-elevation_12);--color-text-light-1: var(--c-elevation_11);--color-text-light-2: var(--c-elevation_10);--color-text-light-3: var(--c-elevation_9);--color-footer: rgba(var(--c-elevation_2-rgb), 0.2);--color-timeline: var(--c-elevation_4);--color-input-text: var(--c-text);--color-input-background: var(--c-elevation_4);--color-input-toggle-background: var(--c-elevation_4);--color-input-border: var(--c-elevation_5);--color-input-border-hover: var(--c-elevation_6);--color-header-wrapper: var(--c-elevation_2);--color-header-wrapper-transparent: #00000000;--color-light: var(--c-elevation_6);--color-light-mimic-enabled: rgba( 0, 0, 0, diff --git a/dist/public/assets/img/loading.svg b/dist/public/assets/img/loading.svg index df95f2c..cade841 100644 --- a/dist/public/assets/img/loading.svg +++ b/dist/public/assets/img/loading.svg @@ -1,15 +1,15 @@ - - - - - - - + + + + + + + diff --git a/dist/templates/base/head_navbar.tmpl b/dist/templates/base/head_navbar.tmpl index a6719a5..2075ece 100644 --- a/dist/templates/base/head_navbar.tmpl +++ b/dist/templates/base/head_navbar.tmpl @@ -1,205 +1,214 @@ -{{$notificationUnreadCount := 0}} -{{if and .IsSigned .NotificationUnreadCount}} - {{$notificationUnreadCount = call .NotificationUnreadCount}} -{{end}} - - +{{$notificationUnreadCount := 0}} +{{if and .IsSigned .NotificationUnreadCount}} + {{$notificationUnreadCount = call .NotificationUnreadCount}} +{{end}} + + diff --git a/dist/templates/home.tmpl b/dist/templates/home.tmpl index 710921b..e6fd4ef 100644 --- a/dist/templates/home.tmpl +++ b/dist/templates/home.tmpl @@ -1,8 +1,50 @@ {{template "base/head" .}}
-
+
- + +
+

+ {{AppName}} +

+

{{ctx.Locale.Tr "startpage.app_desc"}}

+
+
+
+
+
+

+ {{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}} +

+

+ {{ctx.Locale.Tr "startpage.install_desc"}} +

+
+
+

+ {{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}} +

+

+ {{ctx.Locale.Tr "startpage.platform_desc"}} +

+
+
+
+
+

+ {{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}} +

+

+ {{ctx.Locale.Tr "startpage.lightweight_desc"}} +

+
+
+

+ {{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}} +

+

+ {{ctx.Locale.Tr "startpage.license_desc"}} +

diff --git a/dist/templates/repo/home.tmpl b/dist/templates/repo/home.tmpl index aeab6b5..34ab925 100644 --- a/dist/templates/repo/home.tmpl +++ b/dist/templates/repo/home.tmpl @@ -6,47 +6,26 @@ {{template "base/alert" .}} {{template "repo/code/recently_pushed_new_branches" .}} {{if and (not .HideRepoInfo) (not .IsBlame)}} -
-
-
{{ctx.Locale.Tr "repo.repo_desc"}}
- {{$description := .Repository.DescriptionHTML $.Context}} - {{if $description}}{{$description | RenderCodeBlock}}{{else if .IsRepositoryAdmin}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}} - {{.Repository.Website}} -
- {{if .RepoSearchEnabled}} - - {{end}} +
+ {{- $description := .Repository.DescriptionHTML ctx -}} + {{if $description}}{{$description | RenderCodeBlock}}{{end}} + {{if .Repository.Website}}{{.Repository.Website}}{{end}}
-
- {{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}} +
+ {{/* it should match the code in issue-home.js */}} + {{range .Topics}}{{.Name}}{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}}
{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} -
-
- +
+
@@ -55,20 +34,23 @@
{{end}} {{if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{ctx.Locale.Tr "repo.archive.title"}} {{else}} - {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix) | Safe}} + {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix)}} {{end}}
{{end}}
{{template "repo/sub_menu" .}} -
-
- {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}} + {{$n := len .TreeNames}} + {{$l := Eval $n "-" 1}} + {{$isHomepage := (eq $n 0)}} +
+
+ {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} {{$cmpBranch := ""}} {{if ne .Repository.ID .BaseRepo.ID}} @@ -82,14 +64,12 @@ {{end}} - {{$n := len .TreeNames}} - {{$l := Eval $n "-" 1}} - {{if eq $n 0}} + {{if $isHomepage}} {{ctx.Locale.Tr "repo.find_file.go_to_file"}} {{end}} {{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (not .Repository.IsArchived) (not .IsViewFile)}} - {{end}} - {{if and (eq $n 0) (.Repository.IsTemplate)}} + {{if and $isHomepage (.Repository.IsTemplate)}} {{ctx.Locale.Tr "repo.use_template"}} {{end}} - {{if ne $n 0}} - + {{if $isHomepage}} + {{/* only show the "code search" on the repo home page, it only does global search, + so do not show it when viewing file or directory to avoid misleading users (it doesn't search in a directory) */}} +
+
+ + {{template "shared/search/button"}} +
+
+ {{else}} + {{StringUtils.EllipsisString .Repository.Name 30}} {{- range $i, $v := .TreeNames -}} / {{- if eq $i $l -}} - {{StringUtils.EllipsisString $v 30}} + {{$v}} {{- else -}} - {{$p := index $.Paths $i}}{{StringUtils.EllipsisString $v 30}} + {{$p := index $.Paths $i}}{{$v}} {{- end -}} {{- end -}} {{end}}
-
+
- {{if eq $n 0}} -
+ {{if $isHomepage}} + {{template "repo/cite/cite_modal" .}} {{end}} - {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}} + {{if and (not $isHomepage) (not .IsViewFile) (not .IsBlame)}}{{/* IsViewDirectory (not home), TODO: split the templates, avoid using "if" tricks */}} - {{svg "octicon-history" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.file_history"}} + {{svg "octicon-history" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.file_history"}} {{end}}
@@ -161,9 +152,10 @@ {{template "repo/view_file" .}} {{else if .IsBlame}} {{template "repo/blame" .}} - {{else}} + {{else}}{{/* IsViewDirectory */}} {{template "repo/view_list" .}} {{end}} +
diff --git a/src/templates/base/head_navbar.tmpl b/src/templates/base/head_navbar.tmpl index a6719a5..2075ece 100644 --- a/src/templates/base/head_navbar.tmpl +++ b/src/templates/base/head_navbar.tmpl @@ -1,205 +1,214 @@ -{{$notificationUnreadCount := 0}} -{{if and .IsSigned .NotificationUnreadCount}} - {{$notificationUnreadCount = call .NotificationUnreadCount}} -{{end}} - - +{{$notificationUnreadCount := 0}} +{{if and .IsSigned .NotificationUnreadCount}} + {{$notificationUnreadCount = call .NotificationUnreadCount}} +{{end}} + + diff --git a/src/templates/home.tmpl b/src/templates/home.tmpl index 710921b..e6fd4ef 100644 --- a/src/templates/home.tmpl +++ b/src/templates/home.tmpl @@ -1,8 +1,50 @@ {{template "base/head" .}}
-
+
- + +
+

+ {{AppName}} +

+

{{ctx.Locale.Tr "startpage.app_desc"}}

+
+
+
+
+
+

+ {{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}} +

+

+ {{ctx.Locale.Tr "startpage.install_desc"}} +

+
+
+

+ {{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}} +

+

+ {{ctx.Locale.Tr "startpage.platform_desc"}} +

+
+
+
+
+

+ {{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}} +

+

+ {{ctx.Locale.Tr "startpage.lightweight_desc"}} +

+
+
+

+ {{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}} +

+

+ {{ctx.Locale.Tr "startpage.license_desc"}} +

diff --git a/src/templates/repo/home.tmpl b/src/templates/repo/home.tmpl index aeab6b5..34ab925 100644 --- a/src/templates/repo/home.tmpl +++ b/src/templates/repo/home.tmpl @@ -6,47 +6,26 @@ {{template "base/alert" .}} {{template "repo/code/recently_pushed_new_branches" .}} {{if and (not .HideRepoInfo) (not .IsBlame)}} -
-
-
{{ctx.Locale.Tr "repo.repo_desc"}}
- {{$description := .Repository.DescriptionHTML $.Context}} - {{if $description}}{{$description | RenderCodeBlock}}{{else if .IsRepositoryAdmin}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}} - {{.Repository.Website}} -
- {{if .RepoSearchEnabled}} - - {{end}} +
+ {{- $description := .Repository.DescriptionHTML ctx -}} + {{if $description}}{{$description | RenderCodeBlock}}{{end}} + {{if .Repository.Website}}{{.Repository.Website}}{{end}}
-
- {{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}} +
+ {{/* it should match the code in issue-home.js */}} + {{range .Topics}}{{.Name}}{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}}
{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} -
-
- +
+
@@ -55,20 +34,23 @@
{{end}} {{if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{ctx.Locale.Tr "repo.archive.title"}} {{else}} - {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix) | Safe}} + {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix)}} {{end}}
{{end}}
{{template "repo/sub_menu" .}} -
-
- {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}} + {{$n := len .TreeNames}} + {{$l := Eval $n "-" 1}} + {{$isHomepage := (eq $n 0)}} +
+
+ {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} {{$cmpBranch := ""}} {{if ne .Repository.ID .BaseRepo.ID}} @@ -82,14 +64,12 @@ {{end}} - {{$n := len .TreeNames}} - {{$l := Eval $n "-" 1}} - {{if eq $n 0}} + {{if $isHomepage}} {{ctx.Locale.Tr "repo.find_file.go_to_file"}} {{end}} {{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (not .Repository.IsArchived) (not .IsViewFile)}} - {{end}} - {{if and (eq $n 0) (.Repository.IsTemplate)}} + {{if and $isHomepage (.Repository.IsTemplate)}} {{ctx.Locale.Tr "repo.use_template"}} {{end}} - {{if ne $n 0}} - + {{if $isHomepage}} + {{/* only show the "code search" on the repo home page, it only does global search, + so do not show it when viewing file or directory to avoid misleading users (it doesn't search in a directory) */}} +
+
+ + {{template "shared/search/button"}} +
+
+ {{else}} + {{StringUtils.EllipsisString .Repository.Name 30}} {{- range $i, $v := .TreeNames -}} / {{- if eq $i $l -}} - {{StringUtils.EllipsisString $v 30}} + {{$v}} {{- else -}} - {{$p := index $.Paths $i}}{{StringUtils.EllipsisString $v 30}} + {{$p := index $.Paths $i}}{{$v}} {{- end -}} {{- end -}} {{end}}
-
+
- {{if eq $n 0}} -
+ {{if $isHomepage}} + {{template "repo/cite/cite_modal" .}} {{end}} - {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}} + {{if and (not $isHomepage) (not .IsViewFile) (not .IsBlame)}}{{/* IsViewDirectory (not home), TODO: split the templates, avoid using "if" tricks */}} - {{svg "octicon-history" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.file_history"}} + {{svg "octicon-history" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.file_history"}} {{end}}
@@ -161,9 +152,10 @@ {{template "repo/view_file" .}} {{else if .IsBlame}} {{template "repo/blame" .}} - {{else}} + {{else}}{{/* IsViewDirectory */}} {{template "repo/view_list" .}} {{end}} +
diff --git a/src/themes/scss/theme/index.scss b/src/themes/scss/theme/index.scss index 2af548d..6340475 100644 --- a/src/themes/scss/theme/index.scss +++ b/src/themes/scss/theme/index.scss @@ -188,6 +188,7 @@ --color-orange-badge-hover-bg: #{color.get('theme/peach/light/6%')}; --color-git: #{color.get('theme/peach/base')}; --color-label-bg: #{color.get('primary/base')}; + --color-label-hover-bg: #{color.get('primary/light/6%')}; /* target-based colors */ --color-body: #{$lvl1}; diff --git a/src/themes/scss/theme/modules/custom/_project.scss b/src/themes/scss/theme/modules/custom/_project.scss index 67848af..2ba9fc5 100644 --- a/src/themes/scss/theme/modules/custom/_project.scss +++ b/src/themes/scss/theme/modules/custom/_project.scss @@ -1,19 +1,19 @@ -@use '@lucas-labs/lui-micro/var' as var; -@use '@lucas-labs/lui-micro/color' as color; - -@mixin apply-styles { - #project-board { - .project-column-header { - .project-column-title { - .circular.label { - display: flex; - padding: 0 !important; - align-items: center; - justify-content: center; - line-height: 16px; - padding: 0 var.get('measure/.25x') !important; - } - } - } - } -} +@use '@lucas-labs/lui-micro/var' as var; +@use '@lucas-labs/lui-micro/color' as color; + +@mixin apply-styles { + #project-board { + .project-column-header { + .project-column-title { + .circular.label { + display: flex; + padding: 0 !important; + align-items: center; + justify-content: center; + line-height: 16px; + padding: 0 var.get('measure/.25x') !important; + } + } + } + } +} diff --git a/src/themes/scss/theme/modules/custom/repo/_file-list.scss b/src/themes/scss/theme/modules/custom/repo/_file-list.scss index cd625a1..91c4fcb 100644 --- a/src/themes/scss/theme/modules/custom/repo/_file-list.scss +++ b/src/themes/scss/theme/modules/custom/repo/_file-list.scss @@ -1,193 +1,192 @@ -@use '@lucas-labs/lui-micro/var' as var; -@use '@lucas-labs/lui-micro/color' as color; - -@mixin apply-styles { - - #repo-topics { - row-gap: var.get('measure/.5x'); - margin-top: 0 !important; - } - - .ui.table>tr>td, .ui.table>tbody>tr>td { - border-top-color: rgba(#{color.get('theme/blue/base', 'rgb')}, 0.04); - } - - .page-content.repository.file.list > .ui.container.lugit-repo-list-view { - display: flex; - flex-direction: row-reverse; - column-gap: 24px; - - .ui.repo-topic.large.label.topic { - background-color: rgba(#{color.get('theme/blue/base', 'rgb')}, 0.3); - color: color.get('primary/base'); - border-radius: var.get('measure/2x'); - border: 1px solid rgba(#{color.get('theme/blue/base', 'rgb')}, 0.4); - line-height: 14px; - } - - @media (max-width: 1100px) { - width: 100%; - min-width: 100%; - margin: 0; - padding: 0 var.get('measure/2x'); - - .lugit-repo-header-data { - min-width: calc(#{var.get('repo-home/sidebar-width')} * 0.87) !important; - max-width: calc(#{var.get('repo-home/sidebar-width')} * 0.87) !important; - width: calc(#{var.get('repo-home/sidebar-width')} * 0.87) !important; - } - - .repo-button-row { - .gt-gap-y-3 { - column-gap: var.get('measure/.5x'); - - #new-pull-request { - display: none; - } - - [role=menu] { - display: none; - } - } - - #clone-panel { - #repo-clone-url { - display: none; - } - } - } - } - - @media (max-width: 1200px) { - flex-direction: column; - column-gap: 0; - row-gap: 24px; - - .lugit-repo-header-data { - min-width: 100%!important; - max-width: 100%!important; - width: 100%!important; - } - - #repo-topics { - display: none !important; - } - - #repo-desc { - display: flex; - flex-direction: column; - font-size: 1em; - row-gap: var.get('measure/1x'); - - h5 { - display: none; - } - - span { - font-size: 1.2em !important; - font-style: italic !important; - color: var(--color-text-light-3); - } - - a { - font-size: 1.1em; - } - } - - } - - .repo-button-row { - .gt-gap-y-3 { - column-gap: var.get('measure/.5x'); - } - - #clone-panel { - #repo-clone-url { - width: unset; - } - } - } - - .lugit-repo-header-data { - min-width: var.get('repo-home/sidebar-width'); - max-width: var.get('repo-home/sidebar-width'); - width: var.get('repo-home/sidebar-width'); - - #repo-desc { - display: flex; - flex-direction: column; - font-size: 1em; - row-gap: var.get('measure/1x'); - - * { - margin: 0; - } - - h5 { - font-size: 1.1em; - } - - span { - font-size: 1.1em; - } - - a { - font-size: 1.1em; - } - } - } - - .lugit-repo-content { - display: flex; - flex-direction: column; - row-gap: var.get('measure/1x'); - } - - #topic_edit { - flex-direction: column; - row-gap: var.get('measure/1x'); - - .field.gt-f1.gt-mr-3 { - margin: 0px !important; - - - // topic selection editing (task list - div.fluid.multiple.search.selection.dropdown { - display: flex; - flex-wrap: wrap; - box-shadow: none; - padding: var.get('measure/.25x') var.get('measure/.5x'); - - .item { - border: none; - } - - .menu { - top: calc(100% + 1px); - } - } - - .dropdown { - display: none; - } - - // Cancel, Save buttons - +div { - display: flex; - column-gap: var.get('measure/1x'); - - button { - display: block !important; - margin: 0px !important; - width: 100%; - } - } - } - } - - #repo-topics { - margin-top: var.get('measure/1x') !important; - } - - } -} +@use '@lucas-labs/lui-micro/var' as var; +@use '@lucas-labs/lui-micro/color' as color; + +@mixin apply-styles { + + #repo-topics { + row-gap: var.get('measure/.5x'); + margin-top: 0 !important; + } + + .ui.table>tr>td, .ui.table>tbody>tr>td { + border-top-color: rgba(#{color.get('theme/blue/base', 'rgb')}, 0.04); + } + + .page-content.repository.file.list > .ui.container.lugit-repo-list-view { + display: flex; + flex-direction: row-reverse; + column-gap: 24px; + + .ui.repo-topic.large.label.topic { + background-color: rgba(#{color.get('theme/blue/base', 'rgb')}, 0.3); + color: color.get('primary/base'); + border-radius: var.get('measure/2x'); + border: 1px solid rgba(#{color.get('theme/blue/base', 'rgb')}, 0.4); + line-height: 14px; + } + + @media (max-width: 1100px) { + width: 100%; + min-width: 100%; + margin: 0; + padding: 0 var.get('measure/2x'); + + .lugit-repo-header-data { + min-width: calc(#{var.get('repo-home/sidebar-width')} * 0.87) !important; + max-width: calc(#{var.get('repo-home/sidebar-width')} * 0.87) !important; + width: calc(#{var.get('repo-home/sidebar-width')} * 0.87) !important; + } + + .repo-button-row { + .gt-gap-y-3 { + column-gap: var.get('measure/.5x'); + + #new-pull-request { + display: none; + } + + [role=menu] { + display: none; + } + } + + #clone-panel { + #repo-clone-url { + display: none; + } + } + } + } + + @media (max-width: 1200px) { + flex-direction: column; + column-gap: 0; + row-gap: 24px; + + .lugit-repo-header-data { + min-width: 100%!important; + max-width: 100%!important; + width: 100%!important; + } + + #repo-topics { + display: none !important; + } + + #repo-desc { + display: flex; + flex-direction: column; + font-size: 1em; + row-gap: var.get('measure/1x'); + + h5 { + display: none; + } + + span { + font-size: 1.2em !important; + font-style: italic !important; + color: var(--color-text-light-3); + } + + a { + font-size: 1.1em; + } + } + + } + + .repo-button-row { + .gt-gap-y-3 { + column-gap: var.get('measure/.5x'); + } + + #clone-panel { + #repo-clone-url { + width: unset; + } + } + } + + .lugit-repo-header-data { + min-width: var.get('repo-home/sidebar-width'); + max-width: var.get('repo-home/sidebar-width'); + width: var.get('repo-home/sidebar-width'); + + #repo-desc { + display: flex; + flex-direction: column; + font-size: 1em; + row-gap: var.get('measure/1x'); + + * { + margin: 0; + } + + h5 { + font-size: 1.1em; + } + + span { + font-size: 1.1em; + } + + a { + font-size: 1.1em; + } + } + } + + .lugit-repo-content { + display: flex; + flex-direction: column; + row-gap: var.get('measure/1x'); + } + + #topic_edit { + flex-direction: column; + row-gap: var.get('measure/1x'); + + .field.gt-f1.gt-mr-3 { + margin: 0px !important; + + + // topic selection editing (task list + div.fluid.multiple.search.selection.dropdown { + display: flex; + flex-wrap: wrap; + box-shadow: none; + padding: var.get('measure/.25x') var.get('measure/.5x'); + + .item { + border: none; + } + + .menu { + top: calc(100% + 1px); + } + } + + .dropdown { + display: none; + } + + // Cancel, Save buttons + +div { + display: flex; + column-gap: var.get('measure/1x'); + + button { + display: block !important; + margin: 0px !important; + width: 100%; + } + } + } + } + + #repo-topics { + margin-top: var.get('measure/1x') !important; + } + } +}