Commit 9b96fd7416
Unsigned
Layout: unified · split
web/src/components/Card.astro +6 −6
| @@ -23,14 +23,14 @@ const { href, title, body } = Astro.props; | |||
| 23 | .link-card { | 23 | .link-card { |
| 24 | color: var(--foreground); | 24 | color: var(--foreground); |
| 25 | background: var(--background); | 25 | background: var(--background); |
| 26 | border: 2px solid var(--box-outline); | 26 | border: var(--border-heavy); |
| 27 | box-shadow: 6px 6px 0 var(--box-outline); | 27 | box-shadow: var(--shadow-lg); |
| 28 | font-family: 'Lekton', sans-serif; | 28 | font-family: var(--font-subtitle); |
| 29 | font-weight: 700; | 29 | font-weight: 700; |
| 30 | transition: all ease-in-out 0.1s; | 30 | transition: var(--transition-fast); |
| 31 | list-style: none; | 31 | list-style: none; |
| 32 | &:hover { | 32 | &:hover { |
| 33 | box-shadow: 8px 8px 0 var(--box-outline); | 33 | box-shadow: var(--shadow-lg-hover); |
| 34 | background: var(--accent); | 34 | background: var(--accent); |
| 35 | color: var(--background); | 35 | color: var(--background); |
| 36 | } | 36 | } |
| @@ -38,7 +38,7 @@ const { href, title, body } = Astro.props; | |||
| 38 | box-sizing: border-box; | 38 | box-sizing: border-box; |
| 39 | color: currentColor; | 39 | color: currentColor; |
| 40 | text-decoration: none; | 40 | text-decoration: none; |
| 41 | transition: all ease-in-out 0.1s; | 41 | transition: var(--transition-fast); |
| 42 | } | 42 | } |
| 43 | h2 { | 43 | h2 { |
| 44 | margin: 0; | 44 | margin: 0; |
web/src/components/Hero.astro +24 −25
| @@ -48,12 +48,12 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 48 | .hero { | 48 | .hero { |
| 49 | color: var(--accent-fg); | 49 | color: var(--accent-fg); |
| 50 | border-radius: var(--curve-sm); | 50 | border-radius: var(--curve-sm); |
| 51 | padding: 2rem 4rem; | 51 | padding: var(--space-lg) var(--space-2xl); |
| 52 | display: flex; | 52 | display: flex; |
| 53 | flex-direction: column; | 53 | flex-direction: column; |
| 54 | gap: 2rem; | 54 | gap: var(--space-lg); |
| 55 | @media (max-width: 768px) { | 55 | @media (max-width: 768px) { |
| 56 | padding: 2rem 1rem; | 56 | padding: var(--space-lg) var(--space-md); |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | svg { | 59 | svg { |
| @@ -63,16 +63,16 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 63 | transform: translatex(-50%); | 63 | transform: translatex(-50%); |
| 64 | width: 220px; | 64 | width: 220px; |
| 65 | height: auto; | 65 | height: auto; |
| 66 | opacity: 0.6; | 66 | opacity: var(--opacity-muted); |
| 67 | display: none; | 67 | display: none; |
| 68 | } | 68 | } |
| 69 | h1 { | 69 | h1 { |
| 70 | margin: 0; | 70 | margin: 0; |
| 71 | font-size: 5rem; | 71 | font-size: var(--text-5xl); |
| 72 | font-weight: 700; | 72 | font-weight: 700; |
| 73 | line-height: 1; | 73 | line-height: 1; |
| 74 | text-align: center; | 74 | text-align: center; |
| 75 | font-family: 'Libre Franklin', sans-serif; | 75 | font-family: var(--font-heading); |
| 76 | color: var(--accent-3); | 76 | color: var(--accent-3); |
| 77 | -webkit-text-fill-color: var(--accent-3); | 77 | -webkit-text-fill-color: var(--accent-3); |
| 78 | -webkit-text-stroke-width: 2px; | 78 | -webkit-text-stroke-width: 2px; |
| @@ -84,33 +84,32 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 84 | } | 84 | } |
| 85 | .intro { | 85 | .intro { |
| 86 | text-align: center; | 86 | text-align: center; |
| 87 | font-size: 1.6rem; | 87 | font-size: var(--text-xl); |
| 88 | padding: 0.5rem 1rem; | 88 | padding: var(--space-sm) var(--space-md); |
| 89 | color: var(--accent-fg); | 89 | color: var(--accent-fg); |
| 90 | background: var(--accent-3); | 90 | background: var(--accent-3); |
| 91 | border: 2px solid var(--box-outline); | 91 | border: var(--border-heavy); |
| 92 | border-radius: var(--curve-sm); | 92 | border-radius: var(--curve-sm); |
| 93 | box-shadow: 6px 6px 0 var(--box-outline); | 93 | box-shadow: var(--shadow-lg); |
| 94 | font-family: 'Lekton', sans-serif; | 94 | font-family: var(--font-subtitle); |
| 95 | font-weight: 700; | 95 | font-weight: 700; |
| 96 | max-width: 735px; | 96 | max-width: 735px; |
| 97 | margin: 0 auto; | 97 | margin: 0 auto; |
| 98 | } | 98 | } |
| 99 | .github-link-wrap { | 99 | .github-link-wrap { |
| 100 | font-family: 'Lekton', sans-serif; | 100 | font-family: var(--font-subtitle); |
| 101 | max-width: 735px; | 101 | max-width: 735px; |
| 102 | text-align: center; | 102 | text-align: center; |
| 103 | margin: 0 auto; | 103 | margin: 0 auto; |
| 104 | border: 1px solid var(--box-outline); | 104 | border: var(--border-light); |
| 105 | box-shadow: 3px 3px 0 var(--box-outline); | 105 | box-shadow: var(--shadow-sm); |
| 106 | background: var(--accent); | 106 | background: var(--accent); |
| 107 | border-radius: 18px; | 107 | border-radius: var(--curve-pill); |
| 108 | padding: 0.5rem 1rem; | 108 | padding: var(--space-sm) var(--space-md); |
| 109 | a { | 109 | a { |
| 110 | text-decoration: none; | 110 | text-decoration: none; |
| 111 | color: var(--accent-fg); | 111 | color: var(--accent-fg); |
| 112 | font-size: 1.2rem; | 112 | font-size: var(--text-md); |
| 113 | font-family: 'Lekton', sans-serif; | ||
| 114 | font-weight: bold; | 113 | font-weight: bold; |
| 115 | display: flex; | 114 | display: flex; |
| 116 | align-items: center; | 115 | align-items: center; |
| @@ -118,22 +117,22 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 118 | width: 1.5rem; | 117 | width: 1.5rem; |
| 119 | height: 1.5rem; | 118 | height: 1.5rem; |
| 120 | color: var(--accent-fg); | 119 | color: var(--accent-fg); |
| 121 | margin-right: 0.5rem; | 120 | margin-right: var(--space-sm); |
| 122 | } | 121 | } |
| 123 | } | 122 | } |
| 124 | } | 123 | } |
| 125 | 124 | ||
| 126 | .theme-switcher { | 125 | .theme-switcher { |
| 127 | position: absolute; | 126 | position: absolute; |
| 128 | right: 1rem; | 127 | right: var(--space-md); |
| 129 | top: 1rem; | 128 | top: var(--space-md); |
| 130 | } | 129 | } |
| 131 | 130 | ||
| 132 | .top-right { | 131 | .top-right { |
| 133 | position: absolute; | 132 | position: absolute; |
| 134 | top: 0; | 133 | top: 0; |
| 135 | right: 1rem; | 134 | right: var(--space-md); |
| 136 | opacity: 0.8; | 135 | opacity: var(--opacity-subtle); |
| 137 | display: none; | 136 | display: none; |
| 138 | &:hover { | 137 | &:hover { |
| 139 | opacity: 1; | 138 | opacity: 1; |
| @@ -142,11 +141,11 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 142 | list-style: none; | 141 | list-style: none; |
| 143 | display: flex; | 142 | display: flex; |
| 144 | padding: 0; | 143 | padding: 0; |
| 145 | gap: 0.5rem; | 144 | gap: var(--space-sm); |
| 146 | li { | 145 | li { |
| 147 | &:not(:last-child) { | 146 | &:not(:last-child) { |
| 148 | border-right: 1px solid var(--accent); | 147 | border-right: 1px solid var(--accent); |
| 149 | padding-right: 0.5rem; | 148 | padding-right: var(--space-sm); |
| 150 | } | 149 | } |
| 151 | } | 150 | } |
| 152 | li a { | 151 | li a { |
web/src/components/form/Button.astro +8 −9
| @@ -8,22 +8,21 @@ const { text, url, className, title } = Astro.props; | |||
| 8 | 8 | ||
| 9 | <style lang="scss"> | 9 | <style lang="scss"> |
| 10 | .button { | 10 | .button { |
| 11 | font-family: 'Lekton', sans-serif; | 11 | font-family: var(--font-subtitle); |
| 12 | text-align: center; | 12 | text-align: center; |
| 13 | border: 1px solid var(--box-outline); | 13 | border: var(--border-light); |
| 14 | box-shadow: 3px 3px 0 var(--box-outline); | 14 | box-shadow: var(--shadow-sm); |
| 15 | background: var(--accent); | 15 | background: var(--accent); |
| 16 | border-radius: 18px; | 16 | border-radius: var(--curve-pill); |
| 17 | padding: 0.5rem 1rem; | 17 | padding: var(--space-sm) var(--space-md); |
| 18 | transition: all 0.2s ease-in-out; | 18 | transition: var(--transition-normal); |
| 19 | &:hover { | 19 | &:hover { |
| 20 | box-shadow: 4px 4px 0 var(--box-outline); | 20 | box-shadow: var(--shadow-sm-hover); |
| 21 | } | 21 | } |
| 22 | a { | 22 | a { |
| 23 | text-decoration: none; | 23 | text-decoration: none; |
| 24 | color: var(--accent-fg); | 24 | color: var(--accent-fg); |
| 25 | font-size: 1.2rem; | 25 | font-size: var(--text-md); |
| 26 | font-family: 'Lekton', sans-serif; | ||
| 27 | font-weight: bold; | 26 | font-weight: bold; |
| 28 | } | 27 | } |
| 29 | } | 28 | } |
web/src/components/form/EditableTitle.svelte +5 −5
| @@ -61,15 +61,15 @@ | |||
| 61 | 61 | ||
| 62 | <style> | 62 | <style> |
| 63 | h2 { | 63 | h2 { |
| 64 | font-family: 'Lekton', sans-serif; | 64 | font-family: var(--font-subtitle); |
| 65 | font-weight: bold; | 65 | font-weight: bold; |
| 66 | font-size: 3rem; | 66 | font-size: var(--text-4xl); |
| 67 | margin: 0; | 67 | margin: 0; |
| 68 | color: var(--accent-3); | 68 | color: var(--accent-3); |
| 69 | cursor: pointer; | 69 | cursor: pointer; |
| 70 | border-bottom: 2px solid transparent; | 70 | border-bottom: 2px solid transparent; |
| 71 | outline: none; | 71 | outline: none; |
| 72 | padding: 0.25rem; | 72 | padding: var(--space-xs); |
| 73 | } | 73 | } |
| 74 | .editable { | 74 | .editable { |
| 75 | border-bottom: 2px solid var(--accent-3); /* Visual cue to show editable state */ | 75 | border-bottom: 2px solid var(--accent-3); /* Visual cue to show editable state */ |
| @@ -78,7 +78,7 @@ | |||
| 78 | border-bottom: 2px solid var(--accent-3); | 78 | border-bottom: 2px solid var(--accent-3); |
| 79 | } | 79 | } |
| 80 | small { | 80 | small { |
| 81 | font-size: 0.8rem; | 81 | font-size: var(--text-sm); |
| 82 | opacity: 0.5; | 82 | opacity: var(--opacity-dim); |
| 83 | } | 83 | } |
| 84 | </style> | 84 | </style> |
web/src/components/form/Social.astro +7 −7
| @@ -100,21 +100,21 @@ const socialMedias = { | |||
| 100 | list-style: none; | 100 | list-style: none; |
| 101 | padding: 0; | 101 | padding: 0; |
| 102 | display: flex; | 102 | display: flex; |
| 103 | gap: 0.5rem; | 103 | gap: var(--space-sm); |
| 104 | flex-wrap: wrap; | 104 | flex-wrap: wrap; |
| 105 | li { | 105 | li { |
| 106 | padding: 0; | 106 | padding: 0; |
| 107 | margin: 0; | 107 | margin: 0; |
| 108 | opacity: 0.8; | 108 | opacity: var(--opacity-subtle); |
| 109 | border: 1px solid var(--box-outline); | 109 | border: var(--border-light); |
| 110 | box-shadow: 2px 2px 0 var(--box-outline); | 110 | box-shadow: var(--shadow-xs); |
| 111 | border-radius: var(--curve-sm); | 111 | border-radius: var(--curve-sm); |
| 112 | transition: all 0.2s ease-in-out; | 112 | transition: var(--transition-normal); |
| 113 | background: var(--background-form); | 113 | background: var(--background-form); |
| 114 | a { | 114 | a { |
| 115 | display: flex; | 115 | display: flex; |
| 116 | color: var(--foreground); | 116 | color: var(--foreground); |
| 117 | transition: all 0.2s ease-in-out; | 117 | transition: var(--transition-normal); |
| 118 | padding: 4px; | 118 | padding: 4px; |
| 119 | :global(svg) { | 119 | :global(svg) { |
| 120 | width: 2rem; | 120 | width: 2rem; |
| @@ -122,7 +122,7 @@ const socialMedias = { | |||
| 122 | } | 122 | } |
| 123 | } | 123 | } |
| 124 | &:hover { | 124 | &:hover { |
| 125 | box-shadow: 3px 3px 0 var(--box-outline); | 125 | box-shadow: var(--shadow-xs-hover); |
| 126 | border-radius: var(--curve-md); | 126 | border-radius: var(--curve-md); |
| 127 | opacity: 1; | 127 | opacity: 1; |
| 128 | a { | 128 | a { |
web/src/components/form/ThemeSwitcher.svelte +7 −8
| @@ -43,13 +43,12 @@ | |||
| 43 | display: inline-flex; | 43 | display: inline-flex; |
| 44 | align-items: center; | 44 | align-items: center; |
| 45 | justify-content: center; | 45 | justify-content: center; |
| 46 | border: 2px solid transparent; | 46 | border: var(--border-heavy); |
| 47 | border-radius: var(--curve-lg); | 47 | border-radius: var(--curve-lg); |
| 48 | padding: 0.25rem; | 48 | padding: var(--space-xs); |
| 49 | background-color: rgba(255, 255, 255, 0.2); | 49 | background-color: rgba(255, 255, 255, 0.2); |
| 50 | transition: background-color 0.3s ease; | 50 | transition: background-color 0.3s ease; |
| 51 | border: 2px solid var(--box-outline); | 51 | box-shadow: var(--shadow-sm); |
| 52 | box-shadow: 3px 3px 0 var(--box-outline); | ||
| 53 | 52 | ||
| 54 | &:hover { | 53 | &:hover { |
| 55 | background-color: rgba(255, 255, 255, 0.3); | 54 | background-color: rgba(255, 255, 255, 0.3); |
| @@ -64,20 +63,20 @@ | |||
| 64 | height: 2rem; | 63 | height: 2rem; |
| 65 | background: var(--accent-fg); | 64 | background: var(--accent-fg); |
| 66 | border-radius: var(--curve-lg); | 65 | border-radius: var(--curve-lg); |
| 67 | padding: 0.25rem; | 66 | padding: var(--space-xs); |
| 68 | position: relative; | 67 | position: relative; |
| 69 | transition: background 0.3s ease; | 68 | transition: background 0.3s ease; |
| 70 | 69 | ||
| 71 | &::before { | 70 | &::before { |
| 72 | content: ''; | 71 | content: ''; |
| 73 | position: absolute; | 72 | position: absolute; |
| 74 | top: 0.25rem; | 73 | top: var(--space-xs); |
| 75 | left: 0.25rem; | 74 | left: var(--space-xs); |
| 76 | width: 1.6rem; | 75 | width: 1.6rem; |
| 77 | height: 1.6rem; | 76 | height: 1.6rem; |
| 78 | border-radius: 50%; | 77 | border-radius: 50%; |
| 79 | background: var(--background); | 78 | background: var(--background); |
| 80 | opacity: 0.6; | 79 | opacity: var(--opacity-muted); |
| 81 | transition: transform 0.3s ease; | 80 | transition: transform 0.3s ease; |
| 82 | } | 81 | } |
| 83 | 82 | ||
web/src/components/scafold/Footer.astro +2 −3
| @@ -16,13 +16,12 @@ const year = new Date().getFullYear(); | |||
| 16 | 16 | ||
| 17 | <style lang="scss"> | 17 | <style lang="scss"> |
| 18 | footer { | 18 | footer { |
| 19 | font-family: 'Lekton', sans-serif; | 19 | font-family: var(--font-subtitle); |
| 20 | font-weight: bold; | 20 | font-weight: bold; |
| 21 | text-align: center; | 21 | text-align: center; |
| 22 | padding: 0.5rem 0; | 22 | padding: var(--space-sm) 0; |
| 23 | margin: 0 auto; | 23 | margin: 0 auto; |
| 24 | a { | 24 | a { |
| 25 | font-family: 'Lekton', sans-serif; | ||
| 26 | color: var(--accent); | 25 | color: var(--accent); |
| 27 | } | 26 | } |
| 28 | } | 27 | } |
web/src/components/scafold/MainCard.astro +6 −6
| @@ -4,12 +4,12 @@ | |||
| 4 | 4 | ||
| 5 | <style lang="scss"> | 5 | <style lang="scss"> |
| 6 | main { | 6 | main { |
| 7 | margin: 2rem auto; | 7 | margin: var(--space-lg) auto; |
| 8 | padding: 1rem; | 8 | padding: var(--space-md); |
| 9 | width: 1200px; | 9 | width: var(--width-container); |
| 10 | max-width: calc(100% - 5rem); | 10 | max-width: var(--width-container-max); |
| 11 | border: 2px solid var(--box-outline); | 11 | border: var(--border-heavy); |
| 12 | box-shadow: 6px 6px 0 var(--box-outline); | 12 | box-shadow: var(--shadow-lg); |
| 13 | background: var(--accent-fg); | 13 | background: var(--accent-fg); |
| 14 | position: relative; | 14 | position: relative; |
| 15 | } | 15 | } |
web/src/components/scafold/NavBar.astro +8 −8
| @@ -27,26 +27,26 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 27 | justify-content: space-between; | 27 | justify-content: space-between; |
| 28 | align-items: center; | 28 | align-items: center; |
| 29 | flex-wrap: wrap; | 29 | flex-wrap: wrap; |
| 30 | gap: 1rem; | 30 | gap: var(--space-md); |
| 31 | border-bottom: 2px solid var(--accent-3); | 31 | border-bottom: 2px solid var(--accent-3); |
| 32 | 32 | ||
| 33 | .homepage { | 33 | .homepage { |
| 34 | text-decoration: none; | 34 | text-decoration: none; |
| 35 | display: flex; | 35 | display: flex; |
| 36 | align-items: center; | 36 | align-items: center; |
| 37 | padding: 0 0.5rem; | 37 | padding: 0 var(--space-sm); |
| 38 | h1 { | 38 | h1 { |
| 39 | margin: 0; | 39 | margin: 0; |
| 40 | font-size: 2.4rem; | 40 | font-size: 2.4rem; |
| 41 | padding: 0 1rem; | 41 | padding: 0 var(--space-md); |
| 42 | color: var(--foreground); | 42 | color: var(--foreground); |
| 43 | font-family: 'Lekton', sans-serif; | 43 | font-family: var(--font-subtitle); |
| 44 | } | 44 | } |
| 45 | :global(svg) { | 45 | :global(svg) { |
| 46 | width: 2.5rem; | 46 | width: 2.5rem; |
| 47 | height: 2.5rem; | 47 | height: 2.5rem; |
| 48 | color: var(--accent-3); | 48 | color: var(--accent-3); |
| 49 | transition: all 0.2s ease-in-out; | 49 | transition: var(--transition-normal); |
| 50 | } | 50 | } |
| 51 | &:hover { | 51 | &:hover { |
| 52 | :global(svg) { | 52 | :global(svg) { |
| @@ -61,9 +61,9 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte'; | |||
| 61 | align-items: center; | 61 | align-items: center; |
| 62 | height: 3rem; | 62 | height: 3rem; |
| 63 | a { | 63 | a { |
| 64 | padding: 1rem; | 64 | padding: var(--space-md); |
| 65 | font-size: 1.2rem; | 65 | font-size: var(--text-md); |
| 66 | font-family: 'Lekton', sans-serif; | 66 | font-family: var(--font-subtitle); |
| 67 | font-weight: bold; | 67 | font-weight: bold; |
| 68 | color: var(--foreground); | 68 | color: var(--foreground); |
| 69 | transition: | 69 | transition: |
web/src/components/things/AddNewService.svelte +26 −26
| @@ -418,31 +418,31 @@ | |||
| 418 | .form-row { | 418 | .form-row { |
| 419 | display: grid; | 419 | display: grid; |
| 420 | grid-template-columns: 1fr 3fr 2fr; | 420 | grid-template-columns: 1fr 3fr 2fr; |
| 421 | gap: 1rem; | 421 | gap: var(--space-md); |
| 422 | padding: 0.5rem 0; | 422 | padding: var(--space-sm) 0; |
| 423 | &:not(:last-child) { | 423 | &:not(:last-child) { |
| 424 | border-bottom: 1px solid var(--transparent-accent); | 424 | border-bottom: 1px solid var(--transparent-accent); |
| 425 | } | 425 | } |
| 426 | p { | 426 | p { |
| 427 | margin: 0; | 427 | margin: 0; |
| 428 | font-size: 0.8rem; | 428 | font-size: var(--text-sm); |
| 429 | opacity: 0.6; | 429 | opacity: var(--opacity-muted); |
| 430 | } | 430 | } |
| 431 | } | 431 | } |
| 432 | 432 | ||
| 433 | .final-info { | 433 | .final-info { |
| 434 | display: flex; | 434 | display: flex; |
| 435 | flex-direction: column; | 435 | flex-direction: column; |
| 436 | padding: 1rem 0; | 436 | padding: var(--space-md) 0; |
| 437 | gap: 1rem; | 437 | gap: var(--space-md); |
| 438 | p { | 438 | p { |
| 439 | margin: 0.5rem 0; | 439 | margin: var(--space-sm) 0; |
| 440 | } | 440 | } |
| 441 | ul { | 441 | ul { |
| 442 | padding-left: 0.25rem; | 442 | padding-left: var(--space-xs); |
| 443 | margin: 0 0 0.5rem 0; | 443 | margin: 0 0 var(--space-sm) 0; |
| 444 | font-size: 0.8rem; | 444 | font-size: var(--text-sm); |
| 445 | opacity: 0.6; | 445 | opacity: var(--opacity-muted); |
| 446 | list-style: circle; | 446 | list-style: circle; |
| 447 | } | 447 | } |
| 448 | } | 448 | } |
| @@ -453,8 +453,8 @@ | |||
| 453 | width: 100%; | 453 | width: 100%; |
| 454 | border: 1px solid var(--accent-3); | 454 | border: 1px solid var(--accent-3); |
| 455 | border-radius: var(--curve-md); | 455 | border-radius: var(--curve-md); |
| 456 | font-size: 1.2rem; | 456 | font-size: var(--text-md); |
| 457 | padding: 0.5rem 0.25rem; | 457 | padding: var(--space-sm) var(--space-xs); |
| 458 | background: var(--background-form); | 458 | background: var(--background-form); |
| 459 | color: var(--foreground); | 459 | color: var(--foreground); |
| 460 | &:focus { | 460 | &:focus { |
| @@ -483,8 +483,8 @@ | |||
| 483 | } | 483 | } |
| 484 | .open-in-gh { | 484 | .open-in-gh { |
| 485 | margin: 0 auto; | 485 | margin: 0 auto; |
| 486 | font-size: 0.8rem; | 486 | font-size: var(--text-sm); |
| 487 | opacity: 0.6; | 487 | opacity: var(--opacity-muted); |
| 488 | display: block; | 488 | display: block; |
| 489 | text-align: center; | 489 | text-align: center; |
| 490 | } | 490 | } |
| @@ -493,15 +493,15 @@ | |||
| 493 | cursor: pointer; | 493 | cursor: pointer; |
| 494 | background: var(--accent-3); | 494 | background: var(--accent-3); |
| 495 | color: var(--accent-fg); | 495 | color: var(--accent-fg); |
| 496 | padding: 0.5rem 2rem; | 496 | padding: var(--space-sm) var(--space-lg); |
| 497 | border: 1px solid var(--box-outline); | 497 | border: var(--border-light); |
| 498 | box-shadow: 3px 3px 0 var(--box-outline); | 498 | box-shadow: var(--shadow-sm); |
| 499 | border-radius: var(--curve-lg); | 499 | border-radius: var(--curve-lg); |
| 500 | font-size: 1.8rem; | 500 | font-size: var(--text-2xl); |
| 501 | font-family: 'Lekton', sans-serif; | 501 | font-family: var(--font-subtitle); |
| 502 | margin: 1rem auto; | 502 | margin: var(--space-md) auto; |
| 503 | display: flex; | 503 | display: flex; |
| 504 | transition: all 0.2s ease-in-out; | 504 | transition: var(--transition-normal); |
| 505 | &:hover { | 505 | &:hover { |
| 506 | background: var(--accent); | 506 | background: var(--accent); |
| 507 | } | 507 | } |
| @@ -509,17 +509,17 @@ | |||
| 509 | 509 | ||
| 510 | .sub-title-description { | 510 | .sub-title-description { |
| 511 | margin-top: 0; | 511 | margin-top: 0; |
| 512 | font-size: 0.8rem; | 512 | font-size: var(--text-sm); |
| 513 | opacity: 0.6; | 513 | opacity: var(--opacity-muted); |
| 514 | } | 514 | } |
| 515 | 515 | ||
| 516 | .output-yaml { | 516 | .output-yaml { |
| 517 | pre { | 517 | pre { |
| 518 | font-family: 'Courier New', Courier, monospace; | 518 | font-family: var(--font-code); |
| 519 | background: var(--background-form); | 519 | background: var(--background-form); |
| 520 | padding: 0.2rem 0.4rem; | 520 | padding: 0.2rem 0.4rem; |
| 521 | border-radius: var(--curve-sm); | 521 | border-radius: var(--curve-sm); |
| 522 | font-size: 0.9rem; | 522 | font-size: var(--text-sm); |
| 523 | } | 523 | } |
| 524 | } | 524 | } |
| 525 | </style> | 525 | </style> |
web/src/components/things/AndroidDetailedInfo.astro +14 −49
| @@ -102,67 +102,32 @@ function permissionToReadable(permission: string): string { | |||
| 102 | </div> | 102 | </div> |
| 103 | 103 | ||
| 104 | <style lang="scss"> | 104 | <style lang="scss"> |
| 105 | @use '../../styles/mixins' as *; | ||
| 105 | .android-info-wrapper { | 106 | .android-info-wrapper { |
| 106 | display: flex; | 107 | @include detail-info-layout; |
| 107 | flex-wrap: wrap; | ||
| 108 | justify-content: space-between; | ||
| 109 | gap: 1rem; | ||
| 110 | .left, | ||
| 111 | .right { | ||
| 112 | width: calc(50% - 1rem); | ||
| 113 | @media screen and (max-width: 768px) { | ||
| 114 | width: 100%; | ||
| 115 | } | ||
| 116 | } | ||
| 117 | } | 108 | } |
| 118 | 109 | ||
| 110 | @include detail-info-base; | ||
| 111 | |||
| 119 | h3 { | 112 | h3 { |
| 120 | margin: 0; | 113 | margin: 0; |
| 121 | font-size: 1.6rem; | 114 | font-size: var(--text-xl); |
| 122 | } | ||
| 123 | |||
| 124 | h4 { | ||
| 125 | margin: 1rem 0 0 0; | ||
| 126 | font-size: 1.2rem; | ||
| 127 | } | 115 | } |
| 128 | 116 | ||
| 129 | ul { | 117 | ul { |
| 130 | padding-left: 0; | 118 | &.list-table li { |
| 131 | list-style: none; | 119 | .lbl { |
| 132 | max-height: 300px; | 120 | font-weight: 400; |
| 133 | overflow-y: auto; | 121 | } |
| 134 | overflow-x: hidden; | 122 | .val { |
| 135 | img { | 123 | img { |
| 136 | border-radius: var(--curve-sm); | 124 | margin-right: var(--space-sm); |
| 137 | } | ||
| 138 | .list-item { | ||
| 139 | display: flex; | ||
| 140 | flex-direction: column; | ||
| 141 | margin-bottom: 0.5rem; | ||
| 142 | } | ||
| 143 | &.list-table { | ||
| 144 | font-size: 0.9rem; | ||
| 145 | padding-left: 0; | ||
| 146 | li { | ||
| 147 | display: flex; | ||
| 148 | justify-content: space-between; | ||
| 149 | padding: 0.1rem 0; | ||
| 150 | .lbl { | ||
| 151 | font-weight: 400; | ||
| 152 | } | ||
| 153 | .val { | ||
| 154 | img { | ||
| 155 | margin-right: 0.5rem; | ||
| 156 | } | ||
| 157 | } | ||
| 158 | &:not(:last-child) { | ||
| 159 | border-bottom: 1px solid #5f53f440; | ||
| 160 | } | 125 | } |
| 161 | } | 126 | } |
| 162 | } | 127 | } |
| 163 | &.list { | 128 | &.list { |
| 164 | list-style: circle; | 129 | list-style: circle; |
| 165 | padding-left: 1rem; | 130 | padding-left: var(--space-md); |
| 166 | } | 131 | } |
| 167 | } | 132 | } |
| 168 | 133 | ||
| @@ -170,7 +135,7 @@ function permissionToReadable(permission: string): string { | |||
| 170 | color: var(--success); | 135 | color: var(--success); |
| 171 | display: flex; | 136 | display: flex; |
| 172 | align-items: center; | 137 | align-items: center; |
| 173 | gap: 0.5rem; | 138 | gap: var(--space-sm); |
| 174 | :global(svg) { | 139 | :global(svg) { |
| 175 | width: 1.5rem; | 140 | width: 1.5rem; |
| 176 | } | 141 | } |
web/src/components/things/ChangelogTimeline.svelte +270 −87
| @@ -1,5 +1,10 @@ | |||
| 1 | <script lang="ts"> | 1 | <script lang="ts"> |
| 2 | import type { ChangelogEntry, ServiceChange, Rejection, ChangelogPr } from '../../utils/fetch-changelog'; | 2 | import type { |
| 3 | ChangelogEntry, | ||
| 4 | ServiceChange, | ||
| 5 | Rejection, | ||
| 6 | ChangelogPr, | ||
| 7 | } from '../../utils/fetch-changelog'; | ||
| 3 | import { slugify } from '@utils/fetch-data'; | 8 | import { slugify } from '@utils/fetch-data'; |
| 4 | 9 | ||
| 5 | export let entries: ChangelogEntry[] = []; | 10 | export let entries: ChangelogEntry[] = []; |
| @@ -14,18 +19,41 @@ | |||
| 14 | { key: 'rejected', label: 'Rejections', icon: '✕' }, | 19 | { key: 'rejected', label: 'Rejections', icon: '✕' }, |
| 15 | ]; | 20 | ]; |
| 16 | 21 | ||
| 17 | let on: Record<Filter, boolean> = { added: true, removed: true, modified: true, rejected: true }; | 22 | let on: Record<Filter, boolean> = { |
| 23 | added: true, | ||
| 24 | removed: true, | ||
| 25 | modified: true, | ||
| 26 | rejected: true, | ||
| 27 | }; | ||
| 18 | let searchQuery = ''; | 28 | let searchQuery = ''; |
| 19 | 29 | ||
| 20 | function toggle(key: Filter) { on = { ...on, [key]: !on[key] }; } | 30 | function toggle(key: Filter) { |
| 31 | on = { ...on, [key]: !on[key] }; | ||
| 32 | } | ||
| 21 | 33 | ||
| 22 | type TimelineItem = | 34 | type TimelineItem = |
| 23 | | { kind: 'entry'; date: string; sha: string; pr?: ChangelogPr | null; data: ChangelogEntry } | 35 | | { |
| 24 | | { kind: 'rejection'; date: string; sha: string; pr: ChangelogPr; data: Rejection }; | 36 | kind: 'entry'; |
| 37 | date: string; | ||
| 38 | sha: string; | ||
| 39 | pr?: ChangelogPr | null; | ||
| 40 | data: ChangelogEntry; | ||
| 41 | } | ||
| 42 | | { | ||
| 43 | kind: 'rejection'; | ||
| 44 | date: string; | ||
| 45 | sha: string; | ||
| 46 | pr: ChangelogPr; | ||
| 47 | data: Rejection; | ||
| 48 | }; | ||
| 25 | 49 | ||
| 26 | const svc = (e: ChangelogEntry) => { | 50 | const svc = (e: ChangelogEntry) => { |
| 27 | const s = e.changes?.services; | 51 | const s = e.changes?.services; |
| 28 | return { added: s?.added || [], removed: s?.removed || [], modified: s?.modified || [] }; | 52 | return { |
| 53 | added: s?.added || [], | ||
| 54 | removed: s?.removed || [], | ||
| 55 | modified: s?.modified || [], | ||
| 56 | }; | ||
| 29 | }; | 57 | }; |
| 30 | const sec = (e: ChangelogEntry) => { | 58 | const sec = (e: ChangelogEntry) => { |
| 31 | const s = e.changes?.sections; | 59 | const s = e.changes?.sections; |
| @@ -36,31 +64,54 @@ | |||
| 36 | return { added: c?.added || [], removed: c?.removed || [] }; | 64 | return { added: c?.added || [], removed: c?.removed || [] }; |
| 37 | }; | 65 | }; |
| 38 | 66 | ||
| 39 | function matchesFilters(item: TimelineItem, f: Record<Filter, boolean>): boolean { | 67 | function matchesFilters( |
| 68 | item: TimelineItem, | ||
| 69 | f: Record<Filter, boolean>, | ||
| 70 | ): boolean { | ||
| 40 | if (item.kind === 'rejection') return f.rejected; | 71 | if (item.kind === 'rejection') return f.rejected; |
| 41 | const s = svc(item.data), sc = sec(item.data), ct = cat(item.data); | 72 | const s = svc(item.data), |
| 42 | return (f.added && (s.added.length > 0 || sc.added.length > 0 || ct.added.length > 0)) | 73 | sc = sec(item.data), |
| 43 | || (f.removed && (s.removed.length > 0 || sc.removed.length > 0 || ct.removed.length > 0)) | 74 | ct = cat(item.data); |
| 44 | || (f.modified && s.modified.length > 0); | 75 | return ( |
| 76 | (f.added && | ||
| 77 | (s.added.length > 0 || sc.added.length > 0 || ct.added.length > 0)) || | ||
| 78 | (f.removed && | ||
| 79 | (s.removed.length > 0 || | ||
| 80 | sc.removed.length > 0 || | ||
| 81 | ct.removed.length > 0)) || | ||
| 82 | (f.modified && s.modified.length > 0) | ||
| 83 | ); | ||
| 45 | } | 84 | } |
| 46 | 85 | ||
| 47 | function matchesSearch(item: TimelineItem, query: string): boolean { | 86 | function matchesSearch(item: TimelineItem, query: string): boolean { |
| 48 | if (!query) return true; | 87 | if (!query) return true; |
| 49 | const q = query.toLowerCase(); | 88 | const q = query.toLowerCase(); |
| 50 | if (item.kind === 'rejection') { | 89 | if (item.kind === 'rejection') { |
| 51 | return item.data.title.toLowerCase().includes(q) | 90 | return ( |
| 52 | || (item.pr.author?.toLowerCase().includes(q) ?? false); | 91 | item.data.title.toLowerCase().includes(q) || |
| 92 | (item.pr.author?.toLowerCase().includes(q) ?? false) | ||
| 93 | ); | ||
| 53 | } | 94 | } |
| 54 | const all = [...svc(item.data).added, ...svc(item.data).removed, ...svc(item.data).modified]; | 95 | const all = [ |
| 55 | return all.some(c => c.name.toLowerCase().includes(q) | 96 | ...svc(item.data).added, |
| 56 | || `${c.category} ${c.section}`.toLowerCase().includes(q)) | 97 | ...svc(item.data).removed, |
| 57 | || (item.pr?.author?.toLowerCase().includes(q) ?? false); | 98 | ...svc(item.data).modified, |
| 99 | ]; | ||
| 100 | return ( | ||
| 101 | all.some( | ||
| 102 | (c) => | ||
| 103 | c.name.toLowerCase().includes(q) || | ||
| 104 | `${c.category} ${c.section}`.toLowerCase().includes(q), | ||
| 105 | ) || | ||
| 106 | (item.pr?.author?.toLowerCase().includes(q) ?? false) | ||
| 107 | ); | ||
| 58 | } | 108 | } |
| 59 | 109 | ||
| 60 | const pl = (n: number, word: string) => `${n} ${word}${n > 1 ? 's' : ''}`; | 110 | const pl = (n: number, word: string) => `${n} ${word}${n > 1 ? 's' : ''}`; |
| 61 | 111 | ||
| 62 | function summarize(entry: ChangelogEntry): string { | 112 | function summarize(entry: ChangelogEntry): string { |
| 63 | const s = svc(entry), sc = sec(entry); | 113 | const s = svc(entry), |
| 114 | sc = sec(entry); | ||
| 64 | const parts: string[] = []; | 115 | const parts: string[] = []; |
| 65 | if (s.added.length) parts.push(pl(s.added.length, 'addition')); | 116 | if (s.added.length) parts.push(pl(s.added.length, 'addition')); |
| 66 | if (s.removed.length) parts.push(pl(s.removed.length, 'removal')); | 117 | if (s.removed.length) parts.push(pl(s.removed.length, 'removal')); |
| @@ -71,52 +122,136 @@ | |||
| 71 | } | 122 | } |
| 72 | 123 | ||
| 73 | function serviceLink(s: ServiceChange, isRemoval: boolean): string { | 124 | function serviceLink(s: ServiceChange, isRemoval: boolean): string { |
| 74 | const c = slugify(s.category), sc = slugify(s.section); | 125 | const c = slugify(s.category), |
| 126 | sc = slugify(s.section); | ||
| 75 | return isRemoval ? `/${c}/${sc}` : `/${c}/${sc}/${slugify(s.name)}`; | 127 | return isRemoval ? `/${c}/${sc}` : `/${c}/${sc}/${slugify(s.name)}`; |
| 76 | } | 128 | } |
| 77 | 129 | ||
| 78 | type ChangeRow = { badge: string; cls: string; name: string; href: string; path: string; fields?: string[] }; | 130 | type ChangeRow = { |
| 131 | badge: string; | ||
| 132 | cls: string; | ||
| 133 | name: string; | ||
| 134 | href: string; | ||
| 135 | path: string; | ||
| 136 | fields?: string[]; | ||
| 137 | }; | ||
| 79 | 138 | ||
| 80 | function changeRows(e: ChangelogEntry): ChangeRow[] { | 139 | function changeRows(e: ChangelogEntry): ChangeRow[] { |
| 81 | const s = svc(e), sc = sec(e), ct = cat(e); | 140 | const s = svc(e), |
| 141 | sc = sec(e), | ||
| 142 | ct = cat(e); | ||
| 82 | return [ | 143 | return [ |
| 83 | ...s.added.map(v => ({ badge: 'Added', cls: 'add', name: v.name, href: serviceLink(v, false), path: `into ${v.category} › ${v.section}` })), | 144 | ...s.added.map((v) => ({ |
| 84 | ...s.removed.map(v => ({ badge: 'Removed', cls: 'rem', name: v.name, href: serviceLink(v, true), path: `from ${v.category} › ${v.section}` })), | 145 | badge: 'Added', |
| 85 | ...s.modified.map(v => ({ badge: 'Amended', cls: 'mod', name: v.name, href: serviceLink(v, false), path: `in ${v.category} › ${v.section}`, fields: v.fields })), | 146 | cls: 'add', |
| 86 | ...sc.added.map(v => ({ badge: 'New Section', cls: 'add', name: v.name, href: `/${slugify(v.category)}/${slugify(v.name)}` })), | 147 | name: v.name, |
| 87 | ...sc.removed.map(v => ({ badge: 'Section Removed', cls: 'rem', name: v.name, href: '' })), | 148 | href: serviceLink(v, false), |
| 88 | ...ct.added.map(v => ({ badge: 'New Category', cls: 'add', name: v, href: '' })), | 149 | path: `into ${v.category} › ${v.section}`, |
| 89 | ...ct.removed.map(v => ({ badge: 'Category Removed', cls: 'rem', name: v, href: '' })), | 150 | })), |
| 151 | ...s.removed.map((v) => ({ | ||
| 152 | badge: 'Removed', | ||
| 153 | cls: 'rem', | ||
| 154 | name: v.name, | ||
| 155 | href: serviceLink(v, true), | ||
| 156 | path: `from ${v.category} › ${v.section}`, | ||
| 157 | })), | ||
| 158 | ...s.modified.map((v) => ({ | ||
| 159 | badge: 'Amended', | ||
| 160 | cls: 'mod', | ||
| 161 | name: v.name, | ||
| 162 | href: serviceLink(v, false), | ||
| 163 | path: `in ${v.category} › ${v.section}`, | ||
| 164 | fields: v.fields, | ||
| 165 | })), | ||
| 166 | ...sc.added.map((v) => ({ | ||
| 167 | badge: 'New Section', | ||
| 168 | cls: 'add', | ||
| 169 | name: v.name, | ||
| 170 | href: `/${slugify(v.category)}/${slugify(v.name)}`, | ||
| 171 | })), | ||
| 172 | ...sc.removed.map((v) => ({ | ||
| 173 | badge: 'Section Removed', | ||
| 174 | cls: 'rem', | ||
| 175 | name: v.name, | ||
| 176 | href: '', | ||
| 177 | })), | ||
| 178 | ...ct.added.map((v) => ({ | ||
| 179 | badge: 'New Category', | ||
| 180 | cls: 'add', | ||
| 181 | name: v, | ||
| 182 | href: '', | ||
| 183 | })), | ||
| 184 | ...ct.removed.map((v) => ({ | ||
| 185 | badge: 'Category Removed', | ||
| 186 | cls: 'rem', | ||
| 187 | name: v, | ||
| 188 | href: '', | ||
| 189 | })), | ||
| 90 | ]; | 190 | ]; |
| 91 | } | 191 | } |
| 92 | 192 | ||
| 93 | $: allItems = [ | 193 | $: allItems = [ |
| 94 | ...entries.map((e): TimelineItem => ({ kind: 'entry', date: e.date, sha: e.sha, pr: e.pr, data: e })), | 194 | ...entries.map( |
| 95 | ...rejections.map((r): TimelineItem => ({ kind: 'rejection', date: r.date, sha: `rej-${r.pr.number}`, pr: r.pr, data: r })), | 195 | (e): TimelineItem => ({ |
| 196 | kind: 'entry', | ||
| 197 | date: e.date, | ||
| 198 | sha: e.sha, | ||
| 199 | pr: e.pr, | ||
| 200 | data: e, | ||
| 201 | }), | ||
| 202 | ), | ||
| 203 | ...rejections.map( | ||
| 204 | (r): TimelineItem => ({ | ||
| 205 | kind: 'rejection', | ||
| 206 | date: r.date, | ||
| 207 | sha: `rej-${r.pr.number}`, | ||
| 208 | pr: r.pr, | ||
| 209 | data: r, | ||
| 210 | }), | ||
| 211 | ), | ||
| 96 | ].sort((a, b) => b.date.localeCompare(a.date)); | 212 | ].sort((a, b) => b.date.localeCompare(a.date)); |
| 97 | 213 | ||
| 98 | $: filtered = allItems.filter(item => matchesFilters(item, on) && matchesSearch(item, searchQuery)); | 214 | $: filtered = allItems.filter( |
| 215 | (item) => matchesFilters(item, on) && matchesSearch(item, searchQuery), | ||
| 216 | ); | ||
| 99 | 217 | ||
| 100 | $: grouped = filtered.reduce<Record<string, TimelineItem[]>>((acc, item) => { | 218 | $: grouped = filtered.reduce<Record<string, TimelineItem[]>>((acc, item) => { |
| 101 | const d = new Date(item.date + 'T00:00:00Z'); | 219 | const d = new Date(item.date + 'T00:00:00Z'); |
| 102 | const key = d.toLocaleDateString('en-US', { year: 'numeric', month: 'long', timeZone: 'UTC' }); | 220 | const key = d.toLocaleDateString('en-US', { |
| 221 | year: 'numeric', | ||
| 222 | month: 'long', | ||
| 223 | timeZone: 'UTC', | ||
| 224 | }); | ||
| 103 | (acc[key] ??= []).push(item); | 225 | (acc[key] ??= []).push(item); |
| 104 | return acc; | 226 | return acc; |
| 105 | }, {}); | 227 | }, {}); |
| 106 | 228 | ||
| 107 | function formatDate(dateStr: string): string { | 229 | function formatDate(dateStr: string): string { |
| 108 | return new Date(dateStr + 'T00:00:00Z') | 230 | return new Date(dateStr + 'T00:00:00Z').toLocaleDateString('en-US', { |
| 109 | .toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' }); | 231 | month: 'short', |
| 232 | day: 'numeric', | ||
| 233 | year: 'numeric', | ||
| 234 | timeZone: 'UTC', | ||
| 235 | }); | ||
| 110 | } | 236 | } |
| 111 | </script> | 237 | </script> |
| 112 | 238 | ||
| 113 | <details class="controls"> | 239 | <details class="controls"> |
| 114 | <summary>Search & Filter</summary> | 240 | <summary>Search & Filter</summary> |
| 115 | <div class="controls-body"> | 241 | <div class="controls-body"> |
| 116 | <input class="search" type="text" placeholder="Search..." bind:value={searchQuery} /> | 242 | <input |
| 243 | class="search" | ||
| 244 | type="text" | ||
| 245 | placeholder="Search..." | ||
| 246 | bind:value={searchQuery} | ||
| 247 | /> | ||
| 117 | <div class="filters"> | 248 | <div class="filters"> |
| 118 | {#each filterDefs as f (f.key)} | 249 | {#each filterDefs as f (f.key)} |
| 119 | <button class="pill {f.key}" class:active={on[f.key]} on:click={() => toggle(f.key)}> | 250 | <button |
| 251 | class="pill {f.key}" | ||
| 252 | class:active={on[f.key]} | ||
| 253 | on:click={() => toggle(f.key)} | ||
| 254 | > | ||
| 120 | <span class="icon">{f.icon}</span>{f.label} | 255 | <span class="icon">{f.icon}</span>{f.label} |
| 121 | </button> | 256 | </button> |
| 122 | {/each} | 257 | {/each} |
| @@ -136,18 +271,42 @@ | |||
| 136 | <div class="entry-body"> | 271 | <div class="entry-body"> |
| 137 | <div class="summary"> | 272 | <div class="summary"> |
| 138 | {#if item.pr?.authorAvatar} | 273 | {#if item.pr?.authorAvatar} |
| 139 | <a href={`https://github.com/${item.pr.author}`} target="_blank" rel="noreferrer"> | 274 | <a |
| 140 | <img class="avatar" src={item.pr.authorAvatar} alt="" width="20" height="20" loading="lazy" /> | 275 | href={`https://github.com/${item.pr.author}`} |
| 276 | target="_blank" | ||
| 277 | rel="noreferrer" | ||
| 278 | > | ||
| 279 | <img | ||
| 280 | class="avatar" | ||
| 281 | src={item.pr.authorAvatar} | ||
| 282 | alt="" | ||
| 283 | width="20" | ||
| 284 | height="20" | ||
| 285 | loading="lazy" | ||
| 286 | /> | ||
| 141 | </a> | 287 | </a> |
| 142 | {/if} | 288 | {/if} |
| 143 | {#if item.pr?.author} | 289 | {#if item.pr?.author} |
| 144 | <span class="author"><a href={`https://github.com/${item.pr.author}`} target="_blank" rel="noreferrer">@{item.pr.author}</a></span> | 290 | <span class="author" |
| 291 | ><a | ||
| 292 | href={`https://github.com/${item.pr.author}`} | ||
| 293 | target="_blank" | ||
| 294 | rel="noreferrer">@{item.pr.author}</a | ||
| 295 | ></span | ||
| 296 | > | ||
| 145 | {/if} | 297 | {/if} |
| 146 | <span class="summary-text"> | 298 | <span class="summary-text"> |
| 147 | {item.kind === 'rejection' ? 'Submission Reviewed' : summarize(item.data)} | 299 | {item.kind === 'rejection' |
| 300 | ? 'Submission Reviewed' | ||
| 301 | : summarize(item.data)} | ||
| 148 | </span> | 302 | </span> |
| 149 | {#if item.pr} | 303 | {#if item.pr} |
| 150 | <a class="pr-link" href={item.pr.url} target="_blank" rel="noreferrer">#{item.pr.number}</a> | 304 | <a |
| 305 | class="pr-link" | ||
| 306 | href={item.pr.url} | ||
| 307 | target="_blank" | ||
| 308 | rel="noreferrer">#{item.pr.number}</a | ||
| 309 | > | ||
| 151 | {/if} | 310 | {/if} |
| 152 | </div> | 311 | </div> |
| 153 | 312 | ||
| @@ -155,7 +314,12 @@ | |||
| 155 | {#if item.kind === 'rejection'} | 314 | {#if item.kind === 'rejection'} |
| 156 | <div class="change"> | 315 | <div class="change"> |
| 157 | <span class="badge rej">Rejected</span> | 316 | <span class="badge rej">Rejected</span> |
| 158 | <a class="svc-name" href={item.pr.url} target="_blank" rel="noreferrer">{item.data.title}</a> | 317 | <a |
| 318 | class="svc-name" | ||
| 319 | href={item.pr.url} | ||
| 320 | target="_blank" | ||
| 321 | rel="noreferrer">{item.data.title}</a | ||
| 322 | > | ||
| 159 | <span class="path">Not merged</span> | 323 | <span class="path">Not merged</span> |
| 160 | </div> | 324 | </div> |
| 161 | {:else} | 325 | {:else} |
| @@ -163,12 +327,19 @@ | |||
| 163 | <div class="change"> | 327 | <div class="change"> |
| 164 | <span class="badge {row.cls}">{row.badge}</span> | 328 | <span class="badge {row.cls}">{row.badge}</span> |
| 165 | {#if row.href} | 329 | {#if row.href} |
| 166 | <a class="svc-name" class:removed={row.cls === 'rem'} href={row.href}>{row.name}</a> | 330 | <a |
| 331 | class="svc-name" | ||
| 332 | class:removed={row.cls === 'rem'} | ||
| 333 | href={row.href}>{row.name}</a | ||
| 334 | > | ||
| 167 | {:else} | 335 | {:else} |
| 168 | <strong>{row.name}</strong> | 336 | <strong>{row.name}</strong> |
| 169 | {/if} | 337 | {/if} |
| 170 | {#if row.fields}<span class="fields">updated {row.fields.join(', ')}</span>{/if} | 338 | {#if row.fields}<span class="fields" |
| 171 | {#if row.path && !row.fields}<span class="path">{row.path}</span>{/if} | 339 | >updated {row.fields.join(', ')}</span |
| 340 | >{/if} | ||
| 341 | {#if row.path && !row.fields}<span class="path">{row.path}</span | ||
| 342 | >{/if} | ||
| 172 | </div> | 343 | </div> |
| 173 | {/each} | 344 | {/each} |
| 174 | {/if} | 345 | {/if} |
| @@ -179,14 +350,15 @@ | |||
| 179 | {/each} | 350 | {/each} |
| 180 | 351 | ||
| 181 | <style lang="scss"> | 352 | <style lang="scss"> |
| 353 | @use '../../styles/mixins' as *; | ||
| 182 | .controls { | 354 | .controls { |
| 183 | margin-bottom: 1rem; | 355 | margin-bottom: var(--space-md); |
| 184 | 356 | ||
| 185 | summary { | 357 | summary { |
| 186 | cursor: pointer; | 358 | cursor: pointer; |
| 187 | width: fit-content; | 359 | width: fit-content; |
| 188 | font-family: 'Lekton', sans-serif; | 360 | font-family: var(--font-subtitle); |
| 189 | opacity: 0.6; | 361 | opacity: var(--opacity-muted); |
| 190 | &:hover { | 362 | &:hover { |
| 191 | opacity: 1; | 363 | opacity: 1; |
| 192 | } | 364 | } |
| @@ -196,16 +368,16 @@ | |||
| 196 | display: flex; | 368 | display: flex; |
| 197 | align-items: flex-end; | 369 | align-items: flex-end; |
| 198 | justify-content: space-between; | 370 | justify-content: space-between; |
| 199 | gap: 1rem; | 371 | gap: var(--space-md); |
| 200 | margin-top: 0.5rem; | 372 | margin-top: var(--space-sm); |
| 201 | } | 373 | } |
| 202 | 374 | ||
| 203 | .search { | 375 | .search { |
| 204 | width: 200px; | 376 | width: 200px; |
| 205 | padding: 0.35rem 0.75rem; | 377 | padding: 0.35rem 0.75rem; |
| 206 | border: 2px solid var(--box-outline); | 378 | border: var(--border-heavy); |
| 207 | border-radius: var(--curve-lg); | 379 | border-radius: var(--curve-lg); |
| 208 | box-shadow: 2px 2px 0 var(--box-outline); | 380 | box-shadow: var(--shadow-xs); |
| 209 | background: var(--accent-fg); | 381 | background: var(--accent-fg); |
| 210 | color: var(--foreground); | 382 | color: var(--foreground); |
| 211 | &:focus { | 383 | &:focus { |
| @@ -214,7 +386,7 @@ | |||
| 214 | box-shadow: 2px 2px 0 var(--accent); | 386 | box-shadow: 2px 2px 0 var(--accent); |
| 215 | } | 387 | } |
| 216 | &::placeholder { | 388 | &::placeholder { |
| 217 | opacity: 0.5; | 389 | opacity: var(--opacity-dim); |
| 218 | } | 390 | } |
| 219 | } | 391 | } |
| 220 | 392 | ||
| @@ -227,20 +399,20 @@ | |||
| 227 | .pill { | 399 | .pill { |
| 228 | display: flex; | 400 | display: flex; |
| 229 | align-items: center; | 401 | align-items: center; |
| 230 | gap: 0.25rem; | 402 | gap: var(--space-xs); |
| 231 | padding: 0.15rem 0.5rem; | 403 | padding: 0.15rem var(--space-sm); |
| 232 | border: 1px solid transparent; | 404 | border: 1px solid transparent; |
| 233 | border-radius: var(--curve-md); | 405 | border-radius: var(--curve-md); |
| 234 | background: var(--background); | 406 | background: var(--background); |
| 235 | color: var(--foreground); | 407 | color: var(--foreground); |
| 236 | cursor: pointer; | 408 | cursor: pointer; |
| 237 | font-family: 'Lekton', sans-serif; | 409 | font-family: var(--font-subtitle); |
| 238 | font-size: 0.75rem; | 410 | font-size: var(--text-xs); |
| 239 | opacity: 0.5; | 411 | opacity: var(--opacity-dim); |
| 240 | transition: opacity 0.2s ease-in-out; | 412 | transition: var(--transition-normal); |
| 241 | 413 | ||
| 242 | .icon { | 414 | .icon { |
| 243 | font-size: 0.85rem; | 415 | font-size: var(--text-sm); |
| 244 | line-height: 1; | 416 | line-height: 1; |
| 245 | } | 417 | } |
| 246 | &.active { | 418 | &.active { |
| @@ -248,42 +420,58 @@ | |||
| 248 | border-color: currentColor; | 420 | border-color: currentColor; |
| 249 | } | 421 | } |
| 250 | &.added { | 422 | &.added { |
| 251 | &.active { color: var(--changelog-add); } | 423 | &.active { |
| 252 | &:hover { background: color-mix(in srgb, var(--changelog-add) 10%, transparent); } | 424 | color: var(--changelog-add); |
| 425 | } | ||
| 426 | &:hover { | ||
| 427 | background: color-mix(in srgb, var(--changelog-add) 10%, transparent); | ||
| 428 | } | ||
| 253 | } | 429 | } |
| 254 | &.removed { | 430 | &.removed { |
| 255 | &.active { color: var(--changelog-rem); } | 431 | &.active { |
| 256 | &:hover { background: color-mix(in srgb, var(--changelog-rem) 10%, transparent); } | 432 | color: var(--changelog-rem); |
| 433 | } | ||
| 434 | &:hover { | ||
| 435 | background: color-mix(in srgb, var(--changelog-rem) 10%, transparent); | ||
| 436 | } | ||
| 257 | } | 437 | } |
| 258 | &.modified { | 438 | &.modified { |
| 259 | &.active { color: var(--changelog-mod); } | 439 | &.active { |
| 260 | &:hover { background: color-mix(in srgb, var(--changelog-mod) 10%, transparent); } | 440 | color: var(--changelog-mod); |
| 441 | } | ||
| 442 | &:hover { | ||
| 443 | background: color-mix(in srgb, var(--changelog-mod) 10%, transparent); | ||
| 444 | } | ||
| 261 | } | 445 | } |
| 262 | &.rejected { | 446 | &.rejected { |
| 263 | &.active { color: var(--changelog-rej); } | 447 | &.active { |
| 264 | &:hover { background: color-mix(in srgb, var(--changelog-rej) 10%, transparent); } | 448 | color: var(--changelog-rej); |
| 449 | } | ||
| 450 | &:hover { | ||
| 451 | background: color-mix(in srgb, var(--changelog-rej) 10%, transparent); | ||
| 452 | } | ||
| 265 | } | 453 | } |
| 266 | } | 454 | } |
| 267 | } | 455 | } |
| 268 | 456 | ||
| 269 | .empty { | 457 | .empty { |
| 270 | text-align: center; | 458 | text-align: center; |
| 271 | opacity: 0.6; | 459 | opacity: var(--opacity-muted); |
| 272 | margin: 2rem 0; | 460 | margin: var(--space-lg) 0; |
| 273 | } | 461 | } |
| 274 | 462 | ||
| 275 | .month-header { | 463 | .month-header { |
| 276 | font-size: 1.3rem; | 464 | font-size: var(--text-lg); |
| 277 | margin: 1.5rem 0 0.5rem 0; | 465 | margin: 1.5rem 0 var(--space-sm) 0; |
| 278 | padding-bottom: 0.3rem; | 466 | padding-bottom: 0.3rem; |
| 279 | border-bottom: 1px solid var(--accent-3); | 467 | border-bottom: 1px solid var(--accent-3); |
| 280 | color: var(--accent-3); | 468 | color: var(--accent-3); |
| 281 | font-family: 'Lekton', sans-serif; | 469 | font-family: var(--font-subtitle); |
| 282 | } | 470 | } |
| 283 | 471 | ||
| 284 | .entry { | 472 | .entry { |
| 285 | display: flex; | 473 | display: flex; |
| 286 | gap: 1rem; | 474 | gap: var(--space-md); |
| 287 | padding: 0.6rem 0; | 475 | padding: 0.6rem 0; |
| 288 | border-bottom: 1px solid rgba(255, 255, 255, 0.05); | 476 | border-bottom: 1px solid rgba(255, 255, 255, 0.05); |
| 289 | &:last-child { | 477 | &:last-child { |
| @@ -294,7 +482,7 @@ | |||
| 294 | min-width: 7rem; | 482 | min-width: 7rem; |
| 295 | opacity: 0.75; | 483 | opacity: 0.75; |
| 296 | padding-top: 0.15rem; | 484 | padding-top: 0.15rem; |
| 297 | font-family: 'Lekton', sans-serif; | 485 | font-family: var(--font-subtitle); |
| 298 | } | 486 | } |
| 299 | 487 | ||
| 300 | .entry-body { | 488 | .entry-body { |
| @@ -309,8 +497,8 @@ | |||
| 309 | gap: 0.4rem; | 497 | gap: 0.4rem; |
| 310 | flex-wrap: wrap; | 498 | flex-wrap: wrap; |
| 311 | margin-bottom: 0.3rem; | 499 | margin-bottom: 0.3rem; |
| 312 | font-size: 0.85rem; | 500 | font-size: var(--text-sm); |
| 313 | opacity: 0.8; | 501 | opacity: var(--opacity-subtle); |
| 314 | .author a { | 502 | .author a { |
| 315 | color: var(--foreground); | 503 | color: var(--foreground); |
| 316 | &:hover { | 504 | &:hover { |
| @@ -326,7 +514,7 @@ | |||
| 326 | background: var(--accent-3); | 514 | background: var(--accent-3); |
| 327 | color: var(--foreground); | 515 | color: var(--foreground); |
| 328 | text-decoration: none; | 516 | text-decoration: none; |
| 329 | font-family: 'Lekton', sans-serif; | 517 | font-family: var(--font-subtitle); |
| 330 | &:hover { | 518 | &:hover { |
| 331 | opacity: 0.85; | 519 | opacity: 0.85; |
| 332 | } | 520 | } |
| @@ -346,12 +534,7 @@ | |||
| 346 | } | 534 | } |
| 347 | 535 | ||
| 348 | .badge { | 536 | .badge { |
| 349 | font-size: 0.8rem; | 537 | @include changelog-badge; |
| 350 | padding: 0.05rem 0.35rem; | ||
| 351 | border-radius: var(--curve-sm); | ||
| 352 | font-family: 'Lekton', sans-serif; | ||
| 353 | text-transform: uppercase; | ||
| 354 | font-weight: bold; | ||
| 355 | &.add { | 538 | &.add { |
| 356 | background: color-mix(in srgb, var(--changelog-add) 33%, transparent); | 539 | background: color-mix(in srgb, var(--changelog-add) 33%, transparent); |
| 357 | color: var(--changelog-add); | 540 | color: var(--changelog-add); |
| @@ -382,14 +565,14 @@ | |||
| 382 | 565 | ||
| 383 | .path, | 566 | .path, |
| 384 | .fields { | 567 | .fields { |
| 385 | font-size: 0.8rem; | 568 | font-size: var(--text-sm); |
| 386 | opacity: 0.6; | 569 | opacity: var(--opacity-muted); |
| 387 | } | 570 | } |
| 388 | .fields { | 571 | .fields { |
| 389 | font-style: italic; | 572 | font-style: italic; |
| 390 | } | 573 | } |
| 391 | 574 | ||
| 392 | @media (max-width: 600px) { | 575 | @media (max-width: 768px) { |
| 393 | .entry { | 576 | .entry { |
| 394 | flex-direction: column; | 577 | flex-direction: column; |
| 395 | gap: 0.2rem; | 578 | gap: 0.2rem; |
web/src/components/things/DataActions.svelte +78 −35
| @@ -52,17 +52,36 @@ | |||
| 52 | {#each history as h (h.date + h.type)} | 52 | {#each history as h (h.date + h.type)} |
| 53 | <li> | 53 | <li> |
| 54 | <span class="history-badge {h.type}"> | 54 | <span class="history-badge {h.type}"> |
| 55 | {h.type === 'added' ? 'Added' : h.type === 'removed' ? 'Removed' : 'Amended'} | 55 | {h.type === 'added' |
| 56 | ? 'Added' | ||
| 57 | : h.type === 'removed' | ||
| 58 | ? 'Removed' | ||
| 59 | : 'Amended'} | ||
| 56 | </span> | 60 | </span> |
| 57 | <time>{new Date(h.date + 'T00:00:00Z').toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' })}</time> | 61 | <time |
| 58 | {#if h.fields}<span class="history-fields">({h.fields.join(', ')})</span>{/if} | 62 | >{new Date(h.date + 'T00:00:00Z').toLocaleDateString('en-US', { |
| 63 | month: 'short', | ||
| 64 | day: 'numeric', | ||
| 65 | year: 'numeric', | ||
| 66 | timeZone: 'UTC', | ||
| 67 | })}</time | ||
| 68 | > | ||
| 69 | {#if h.fields}<span class="history-fields">({h.fields.join(', ')})</span | ||
| 70 | >{/if} | ||
| 59 | {#if h.pr?.author} | 71 | {#if h.pr?.author} |
| 60 | <span class="history-author">by | 72 | <span class="history-author" |
| 61 | <a href={`https://github.com/${h.pr.author}`} target="_blank" rel="noreferrer">@{h.pr.author}</a> | 73 | >by |
| 74 | <a | ||
| 75 | href={`https://github.com/${h.pr.author}`} | ||
| 76 | target="_blank" | ||
| 77 | rel="noreferrer">@{h.pr.author}</a | ||
| 78 | > | ||
| 62 | </span> | 79 | </span> |
| 63 | {/if} | 80 | {/if} |
| 64 | {#if h.pr} | 81 | {#if h.pr} |
| 65 | <a class="history-pr" href={h.pr.url} target="_blank" rel="noreferrer">#{h.pr.number}</a> | 82 | <a class="history-pr" href={h.pr.url} target="_blank" rel="noreferrer" |
| 83 | >#{h.pr.number}</a | ||
| 84 | > | ||
| 66 | {/if} | 85 | {/if} |
| 67 | </li> | 86 | </li> |
| 68 | {/each} | 87 | {/each} |
| @@ -120,37 +139,38 @@ | |||
| 120 | {/if} | 139 | {/if} |
| 121 | 140 | ||
| 122 | <style lang="scss"> | 141 | <style lang="scss"> |
| 142 | @use '../../styles/mixins' as *; | ||
| 123 | h4 { | 143 | h4 { |
| 124 | font-size: 1.4rem; | 144 | font-size: var(--text-lg); |
| 125 | margin-bottom: 0; | 145 | margin-bottom: 0; |
| 126 | } | 146 | } |
| 127 | p { | 147 | p { |
| 128 | margin: 0.25rem 0 0.5rem 0; | 148 | margin: var(--space-xs) 0 var(--space-sm) 0; |
| 129 | } | 149 | } |
| 130 | 150 | ||
| 131 | .button-wrap { | 151 | .button-wrap { |
| 132 | display: flex; | 152 | display: flex; |
| 133 | gap: 1rem; | 153 | gap: var(--space-md); |
| 134 | justify-content: center; | 154 | justify-content: center; |
| 135 | margin: 1rem auto; | 155 | margin: var(--space-md) auto; |
| 136 | @media (max-width: 768px) { | 156 | @media (max-width: 768px) { |
| 137 | flex-direction: column; | 157 | flex-direction: column; |
| 138 | } | 158 | } |
| 139 | } | 159 | } |
| 140 | .button-link { | 160 | .button-link { |
| 141 | background: var(--accent-3); | 161 | background: var(--accent-3); |
| 142 | border: 1px solid var(--box-outline); | 162 | border: var(--border-light); |
| 143 | box-shadow: 3px 3px 0 var(--box-outline); | 163 | box-shadow: var(--shadow-sm); |
| 144 | color: var(--accent-fg); | 164 | color: var(--accent-fg); |
| 145 | text-decoration: none; | 165 | text-decoration: none; |
| 146 | border-radius: 18px; | 166 | border-radius: var(--curve-pill); |
| 147 | padding: 0.5rem 1rem; | 167 | padding: var(--space-sm) var(--space-md); |
| 148 | font-weight: bold; | 168 | font-weight: bold; |
| 149 | min-width: 15rem; | 169 | min-width: 15rem; |
| 150 | display: inline-block; | 170 | display: inline-block; |
| 151 | text-align: center; | 171 | text-align: center; |
| 152 | font-family: 'Lekton', sans-serif; | 172 | font-family: var(--font-subtitle); |
| 153 | font-size: 1.2rem; | 173 | font-size: var(--text-md); |
| 154 | :global(svg) { | 174 | :global(svg) { |
| 155 | width: 1rem; | 175 | width: 1rem; |
| 156 | height: 1rem; | 176 | height: 1rem; |
| @@ -160,7 +180,7 @@ | |||
| 160 | .history { | 180 | .history { |
| 161 | list-style: none; | 181 | list-style: none; |
| 162 | padding: 0; | 182 | padding: 0; |
| 163 | margin: 0.5rem 0 1rem 0; | 183 | margin: var(--space-sm) 0 var(--space-md) 0; |
| 164 | li { | 184 | li { |
| 165 | display: flex; | 185 | display: flex; |
| 166 | align-items: baseline; | 186 | align-items: baseline; |
| @@ -169,35 +189,58 @@ | |||
| 169 | padding: 0.3rem 0; | 189 | padding: 0.3rem 0; |
| 170 | font-size: 0.95rem; | 190 | font-size: 0.95rem; |
| 171 | border-bottom: 1px solid rgba(255, 255, 255, 0.05); | 191 | border-bottom: 1px solid rgba(255, 255, 255, 0.05); |
| 172 | &:last-child { border-bottom: none; } | 192 | &:last-child { |
| 193 | border-bottom: none; | ||
| 194 | } | ||
| 195 | } | ||
| 196 | time { | ||
| 197 | opacity: var(--opacity-muted); | ||
| 198 | font-family: var(--font-subtitle); | ||
| 199 | font-size: var(--text-sm); | ||
| 173 | } | 200 | } |
| 174 | time { opacity: 0.6; font-family: 'Lekton', sans-serif; font-size: 0.85rem; } | ||
| 175 | } | 201 | } |
| 176 | .history-badge { | 202 | .history-badge { |
| 177 | font-size: 0.7rem; | 203 | @include changelog-badge; |
| 178 | padding: 0.05rem 0.35rem; | 204 | font-size: var(--text-xs); |
| 179 | border-radius: var(--curve-sm); | 205 | &.added { |
| 180 | font-family: 'Lekton', sans-serif; | 206 | background: color-mix(in srgb, var(--changelog-add) 33%, transparent); |
| 181 | text-transform: uppercase; | 207 | color: var(--changelog-add); |
| 182 | font-weight: bold; | 208 | } |
| 183 | &.added { background: color-mix(in srgb, var(--changelog-add) 33%, transparent); color: var(--changelog-add); } | 209 | &.removed { |
| 184 | &.removed { background: color-mix(in srgb, var(--changelog-rem) 33%, transparent); color: var(--changelog-rem); } | 210 | background: color-mix(in srgb, var(--changelog-rem) 33%, transparent); |
| 185 | &.modified { background: color-mix(in srgb, var(--changelog-mod) 33%, transparent); color: var(--changelog-mod); } | 211 | color: var(--changelog-rem); |
| 212 | } | ||
| 213 | &.modified { | ||
| 214 | background: color-mix(in srgb, var(--changelog-mod) 33%, transparent); | ||
| 215 | color: var(--changelog-mod); | ||
| 216 | } | ||
| 217 | } | ||
| 218 | .history-fields { | ||
| 219 | font-size: var(--text-sm); | ||
| 220 | opacity: var(--opacity-dim); | ||
| 221 | font-style: italic; | ||
| 186 | } | 222 | } |
| 187 | .history-fields { font-size: 0.8rem; opacity: 0.5; font-style: italic; } | ||
| 188 | .history-author { | 223 | .history-author { |
| 189 | font-size: 0.85rem; opacity: 0.7; | 224 | font-size: var(--text-sm); |
| 190 | a { color: var(--foreground); &:hover { color: var(--accent); } } | 225 | opacity: var(--opacity-soft); |
| 226 | a { | ||
| 227 | color: var(--foreground); | ||
| 228 | &:hover { | ||
| 229 | color: var(--accent); | ||
| 230 | } | ||
| 231 | } | ||
| 191 | } | 232 | } |
| 192 | .history-pr { | 233 | .history-pr { |
| 193 | font-size: 0.75rem; | 234 | font-size: var(--text-xs); |
| 194 | padding: 0.05rem 0.3rem; | 235 | padding: 0.05rem 0.3rem; |
| 195 | border-radius: var(--curve-sm); | 236 | border-radius: var(--curve-sm); |
| 196 | background: var(--accent-3); | 237 | background: var(--accent-3); |
| 197 | color: var(--accent-fg); | 238 | color: var(--accent-fg); |
| 198 | text-decoration: none; | 239 | text-decoration: none; |
| 199 | font-family: 'Lekton', sans-serif; | 240 | font-family: var(--font-subtitle); |
| 200 | &:hover { opacity: 0.85; } | 241 | &:hover { |
| 242 | opacity: 0.85; | ||
| 243 | } | ||
| 201 | } | 244 | } |
| 202 | 245 | ||
| 203 | .yaml-embed { | 246 | .yaml-embed { |
| @@ -206,7 +249,7 @@ | |||
| 206 | border: 1px solid var(--accent-3); | 249 | border: 1px solid var(--accent-3); |
| 207 | border-radius: var(--curve-lg); | 250 | border-radius: var(--curve-lg); |
| 208 | padding: 0; | 251 | padding: 0; |
| 209 | margin: 1rem auto; | 252 | margin: var(--space-md) auto; |
| 210 | box-shadow: 3px 3px 0 var(--accent-3); | 253 | box-shadow: 3px 3px 0 var(--accent-3); |
| 211 | } | 254 | } |
| 212 | </style> | 255 | </style> |
web/src/components/things/DeleteListing.svelte +3 −3
| @@ -54,14 +54,14 @@ | |||
| 54 | right: 3.5rem; | 54 | right: 3.5rem; |
| 55 | top: 1rem; | 55 | top: 1rem; |
| 56 | width: 2.8rem; | 56 | width: 2.8rem; |
| 57 | gap: 1rem; | 57 | gap: var(--space-md); |
| 58 | opacity: 0; | 58 | opacity: 0; |
| 59 | display: flex; | 59 | display: flex; |
| 60 | transition: all 0.2s ease-in-out; | 60 | transition: var(--transition-normal); |
| 61 | a { | 61 | a { |
| 62 | color: var(--foreground); | 62 | color: var(--foreground); |
| 63 | width: 1rem; | 63 | width: 1rem; |
| 64 | transition: all 0.2s ease-in-out; | 64 | transition: var(--transition-normal); |
| 65 | &:hover { | 65 | &:hover { |
| 66 | color: var(--accent-3); | 66 | color: var(--accent-3); |
| 67 | opacity: 1; | 67 | opacity: 1; |
web/src/components/things/DiscordDetailedInfo.astro +12 −37
| @@ -50,53 +50,28 @@ const { discordData } = Astro.props; | |||
| 50 | </div> | 50 | </div> |
| 51 | 51 | ||
| 52 | <style lang="scss"> | 52 | <style lang="scss"> |
| 53 | @use '../../styles/mixins' as *; | ||
| 53 | .discord-info-wrapper { | 54 | .discord-info-wrapper { |
| 54 | display: flex; | 55 | display: flex; |
| 55 | flex-direction: column; | 56 | flex-direction: column; |
| 56 | max-width: 400px; | 57 | max-width: 400px; |
| 57 | } | 58 | } |
| 58 | 59 | ||
| 60 | @include detail-info-base; | ||
| 61 | |||
| 59 | h3 { | 62 | h3 { |
| 60 | margin: 0; | 63 | margin: 0; |
| 61 | font-size: 1.6rem; | 64 | font-size: var(--text-xl); |
| 62 | } | ||
| 63 | |||
| 64 | h4 { | ||
| 65 | margin: 1rem 0 0 0; | ||
| 66 | font-size: 1.2rem; | ||
| 67 | } | 65 | } |
| 68 | 66 | ||
| 69 | ul { | 67 | ul { |
| 70 | padding-left: 0; | 68 | &.list-table li { |
| 71 | list-style: none; | 69 | .lbl { |
| 72 | max-height: 300px; | 70 | font-weight: 400; |
| 73 | overflow-y: auto; | 71 | } |
| 74 | overflow-x: hidden; | 72 | .val { |
| 75 | img { | 73 | img { |
| 76 | border-radius: var(--curve-sm); | 74 | margin-right: var(--space-sm); |
| 77 | } | ||
| 78 | .list-item { | ||
| 79 | display: flex; | ||
| 80 | flex-direction: column; | ||
| 81 | margin-bottom: 0.5rem; | ||
| 82 | } | ||
| 83 | &.list-table { | ||
| 84 | font-size: 0.9rem; | ||
| 85 | padding-left: 0; | ||
| 86 | li { | ||
| 87 | display: flex; | ||
| 88 | justify-content: space-between; | ||
| 89 | padding: 0.1rem 0; | ||
| 90 | .lbl { | ||
| 91 | font-weight: 400; | ||
| 92 | } | ||
| 93 | .val { | ||
| 94 | img { | ||
| 95 | margin-right: 0.5rem; | ||
| 96 | } | ||
| 97 | } | ||
| 98 | &:not(:last-child) { | ||
| 99 | border-bottom: 1px solid #5f53f440; | ||
| 100 | } | 75 | } |
| 101 | } | 76 | } |
| 102 | } | 77 | } |
| @@ -104,7 +79,7 @@ const { discordData } = Astro.props; | |||
| 104 | 79 | ||
| 105 | .banner { | 80 | .banner { |
| 106 | width: 80%; | 81 | width: 80%; |
| 107 | margin: 1rem auto 0 auto; | 82 | margin: var(--space-md) auto 0 auto; |
| 108 | display: flex; | 83 | display: flex; |
| 109 | border-radius: var(--curve-md); | 84 | border-radius: var(--curve-md); |
| 110 | } | 85 | } |
web/src/components/things/DockerDetailedInfo.astro +15 −39
| @@ -136,28 +136,23 @@ const formatBigNumber = (num: number): string => { | |||
| 136 | </div> | 136 | </div> |
| 137 | 137 | ||
| 138 | <style lang="scss"> | 138 | <style lang="scss"> |
| 139 | @use '../../styles/mixins' as *; | ||
| 139 | .docker-info-wrap { | 140 | .docker-info-wrap { |
| 140 | display: flex; | 141 | @include detail-info-layout; |
| 141 | flex-wrap: wrap; | ||
| 142 | justify-content: space-between; | ||
| 143 | .left, .right { | ||
| 144 | width: 50%; | ||
| 145 | @media (max-width: 768px) { | ||
| 146 | width: 100%; | ||
| 147 | } | ||
| 148 | } | ||
| 149 | } | 142 | } |
| 150 | 143 | ||
| 144 | @include detail-info-base; | ||
| 145 | |||
| 151 | .left { | 146 | .left { |
| 152 | .dockerhub-title, .dockerhub-description { | 147 | .dockerhub-title, .dockerhub-description { |
| 153 | font-size: 0.9rem; | 148 | font-size: var(--text-sm); |
| 154 | opacity: 0.8; | 149 | opacity: var(--opacity-subtle); |
| 155 | display: -webkit-box; | 150 | display: -webkit-box; |
| 156 | -webkit-line-clamp: 1; | 151 | -webkit-line-clamp: 1; |
| 157 | -webkit-box-orient: vertical; | 152 | -webkit-box-orient: vertical; |
| 158 | overflow: hidden; | 153 | overflow: hidden; |
| 159 | border-left: 2px solid var(--accent-3); | 154 | border-left: 2px solid var(--accent-3); |
| 160 | padding-left: 0.5rem; | 155 | padding-left: var(--space-sm); |
| 161 | } | 156 | } |
| 162 | .dockerhub-title { | 157 | .dockerhub-title { |
| 163 | font-weight: 500; | 158 | font-weight: 500; |
| @@ -184,50 +179,31 @@ const formatBigNumber = (num: number): string => { | |||
| 184 | } | 179 | } |
| 185 | } | 180 | } |
| 186 | 181 | ||
| 187 | h4 { | ||
| 188 | margin: 1rem 0 0 0; | ||
| 189 | font-size: 1.2rem; | ||
| 190 | } | ||
| 191 | p { | ||
| 192 | margin: 0; | ||
| 193 | display: flex; | ||
| 194 | align-items: center; | ||
| 195 | gap: 0.25rem; | ||
| 196 | :global(svg) { | ||
| 197 | width: 1rem; | ||
| 198 | } | ||
| 199 | img { | ||
| 200 | border-radius: var(--curve-sm); | ||
| 201 | } | ||
| 202 | } | ||
| 203 | .tags { | 182 | .tags { |
| 204 | display: flex; | 183 | display: flex; |
| 205 | flex-wrap: wrap; | 184 | flex-wrap: wrap; |
| 206 | .tag { | 185 | .tag { |
| 207 | margin: 0.1rem; | 186 | margin: 0.1rem; |
| 208 | background: #5f53f440; | 187 | background: var(--accent-3-translucent); |
| 209 | border-radius: var(--curve-sm); | 188 | border-radius: var(--curve-sm); |
| 210 | padding: 0.05rem 0.2rem; | 189 | padding: 0.05rem 0.2rem; |
| 211 | font-size: 0.8rem; | 190 | font-size: var(--text-sm); |
| 212 | opacity: 0.8; | 191 | opacity: var(--opacity-subtle); |
| 213 | } | 192 | } |
| 214 | } | 193 | } |
| 215 | ul { | 194 | ul { |
| 216 | padding-left: 1rem; | 195 | padding-left: var(--space-md); |
| 217 | list-style: circle; | 196 | list-style: circle; |
| 218 | max-height: 400px; | 197 | max-height: 400px; |
| 219 | overflow: auto; | 198 | overflow: auto; |
| 220 | img { | ||
| 221 | border-radius: var(--curve-sm); | ||
| 222 | } | ||
| 223 | } | 199 | } |
| 224 | 200 | ||
| 225 | pre { | 201 | pre { |
| 226 | font-family: 'Courier New', Courier, monospace; | 202 | font-family: var(--font-code); |
| 227 | background: var(--background-form); | 203 | background: var(--background-form); |
| 228 | padding: 0.6rem 1rem; | 204 | padding: 0.6rem var(--space-md); |
| 229 | border-radius: var(--curve-sm); | 205 | border-radius: var(--curve-sm); |
| 230 | font-size: 0.8rem; | 206 | font-size: var(--text-sm); |
| 231 | overflow-x: auto; | 207 | overflow-x: auto; |
| 232 | } | 208 | } |
| 233 | </style> | 209 | </style> |
web/src/components/things/GetSharableLink.svelte +7 −7
| @@ -61,24 +61,24 @@ | |||
| 61 | } | 61 | } |
| 62 | .save-button { | 62 | .save-button { |
| 63 | background: var(--accent-3); | 63 | background: var(--accent-3); |
| 64 | border: 1px solid var(--box-outline); | 64 | border: var(--border-light); |
| 65 | box-shadow: 3px 3px 0 var(--box-outline); | 65 | box-shadow: var(--shadow-sm); |
| 66 | padding: 0.25rem 0.5rem; | 66 | padding: var(--space-xs) var(--space-sm); |
| 67 | border-radius: var(--curve-sm); | 67 | border-radius: var(--curve-sm); |
| 68 | color: var(--foreground); | 68 | color: var(--foreground); |
| 69 | font-family: Lekton; | 69 | font-family: var(--font-subtitle); |
| 70 | font-size: 1.2rem; | 70 | font-size: var(--text-md); |
| 71 | cursor: pointer; | 71 | cursor: pointer; |
| 72 | } | 72 | } |
| 73 | .success-msg { | 73 | .success-msg { |
| 74 | font-size: 1rem; | 74 | font-size: var(--text-base); |
| 75 | color: var(--success); | 75 | color: var(--success); |
| 76 | a { | 76 | a { |
| 77 | color: var(--success); | 77 | color: var(--success); |
| 78 | } | 78 | } |
| 79 | } | 79 | } |
| 80 | .error-msg { | 80 | .error-msg { |
| 81 | font-size: 1rem; | 81 | font-size: var(--text-base); |
| 82 | color: var(--danger); | 82 | color: var(--danger); |
| 83 | } | 83 | } |
| 84 | </style> | 84 | </style> |
web/src/components/things/GitHubDetailedInfo.astro +13 −37
| @@ -212,16 +212,9 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD | |||
| 212 | </div> | 212 | </div> |
| 213 | 213 | ||
| 214 | <style lang="scss"> | 214 | <style lang="scss"> |
| 215 | @use '../../styles/mixins' as *; | ||
| 215 | .gh-info-wrap { | 216 | .gh-info-wrap { |
| 216 | display: flex; | 217 | @include detail-info-layout; |
| 217 | flex-wrap: wrap; | ||
| 218 | justify-content: space-between; | ||
| 219 | .left, .right { | ||
| 220 | width: 50%; | ||
| 221 | @media (max-width: 768px) { | ||
| 222 | width: 100%; | ||
| 223 | } | ||
| 224 | } | ||
| 225 | .long-list-data { | 218 | .long-list-data { |
| 226 | width: 100%; | 219 | width: 100%; |
| 227 | display: flex; | 220 | display: flex; |
| @@ -229,57 +222,40 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD | |||
| 229 | justify-content: space-between; | 222 | justify-content: space-between; |
| 230 | .list-wrap { | 223 | .list-wrap { |
| 231 | .date { | 224 | .date { |
| 232 | font-size: 0.8rem; | 225 | font-size: var(--text-sm); |
| 233 | opacity: 0.6; | 226 | opacity: var(--opacity-muted); |
| 234 | } | 227 | } |
| 235 | .commit-msg { | 228 | .commit-msg { |
| 236 | font-size: 0.8rem; | 229 | font-size: var(--text-sm); |
| 237 | opacity: 0.8; | 230 | opacity: var(--opacity-subtle); |
| 238 | display: -webkit-box; | 231 | display: -webkit-box; |
| 239 | -webkit-line-clamp: 2; | 232 | -webkit-line-clamp: 2; |
| 240 | -webkit-box-orient: vertical; | 233 | -webkit-box-orient: vertical; |
| 241 | overflow: hidden; | 234 | overflow: hidden; |
| 242 | } | 235 | } |
| 243 | } | 236 | } |
| 244 | } | 237 | } |
| 245 | } | 238 | } |
| 246 | 239 | ||
| 247 | h4 { | 240 | @include detail-info-base; |
| 248 | margin: 1rem 0 0 0; | 241 | |
| 249 | font-size: 1.2rem; | ||
| 250 | } | ||
| 251 | p { | ||
| 252 | margin: 0; | ||
| 253 | display: flex; | ||
| 254 | align-items: center; | ||
| 255 | gap: 0.25rem; | ||
| 256 | :global(svg) { | ||
| 257 | width: 1rem; | ||
| 258 | } | ||
| 259 | img { | ||
| 260 | border-radius: var(--curve-sm); | ||
| 261 | } | ||
| 262 | } | ||
| 263 | .tags { | 242 | .tags { |
| 264 | display: flex; | 243 | display: flex; |
| 265 | flex-wrap: wrap; | 244 | flex-wrap: wrap; |
| 266 | .tag { | 245 | .tag { |
| 267 | margin: 0.1rem; | 246 | margin: 0.1rem; |
| 268 | background: #5f53f440; | 247 | background: var(--accent-3-translucent); |
| 269 | border-radius: var(--curve-sm); | 248 | border-radius: var(--curve-sm); |
| 270 | padding: 0.05rem 0.2rem; | 249 | padding: 0.05rem 0.2rem; |
| 271 | font-size: 0.8rem; | 250 | font-size: var(--text-sm); |
| 272 | opacity: 0.8; | 251 | opacity: var(--opacity-subtle); |
| 273 | } | 252 | } |
| 274 | } | 253 | } |
| 275 | ul { | 254 | ul { |
| 276 | padding-left: 1rem; | 255 | padding-left: var(--space-md); |
| 277 | list-style: circle; | 256 | list-style: circle; |
| 278 | max-height: 400px; | 257 | max-height: 400px; |
| 279 | overflow: auto; | 258 | overflow: auto; |
| 280 | img { | ||
| 281 | border-radius: var(--curve-sm); | ||
| 282 | } | ||
| 283 | } | 259 | } |
| 284 | .languages-img { | 260 | .languages-img { |
| 285 | width: 100%; | 261 | width: 100%; |
web/src/components/things/IosAppDetailedInfo.astro +19 −68
| @@ -127,76 +127,27 @@ const putCommaInNumber = (num: number | string | undefined) => { | |||
| 127 | 127 | ||
| 128 | 128 | ||
| 129 | <style lang="scss"> | 129 | <style lang="scss"> |
| 130 | @use '../../styles/mixins' as *; | ||
| 130 | .website-info-wrapper { | 131 | .website-info-wrapper { |
| 131 | display: flex; | 132 | @include detail-info-layout; |
| 132 | flex-wrap: wrap; | ||
| 133 | justify-content: space-between; | ||
| 134 | gap: 1rem; | ||
| 135 | .left, .right { | ||
| 136 | width: calc(50% - 1rem); | ||
| 137 | @media screen and (max-width: 768px){ | ||
| 138 | width: 100%; | ||
| 139 | } | ||
| 140 | } | ||
| 141 | } | 133 | } |
| 142 | 134 | ||
| 143 | h4 { | 135 | @include detail-info-base; |
| 144 | margin: 1rem 0 0 0; | ||
| 145 | font-size: 1.2rem; | ||
| 146 | } | ||
| 147 | p { | ||
| 148 | margin: 0; | ||
| 149 | display: flex; | ||
| 150 | align-items: center; | ||
| 151 | gap: 0.25rem; | ||
| 152 | :global(svg) { | ||
| 153 | width: 1rem; | ||
| 154 | } | ||
| 155 | img { | ||
| 156 | border-radius: var(--curve-sm); | ||
| 157 | } | ||
| 158 | } | ||
| 159 | 136 | ||
| 160 | ul { | 137 | ul { |
| 161 | padding-left: 0; | 138 | &.list-table li { |
| 162 | list-style: none; | 139 | .lbl { |
| 163 | max-height: 300px; | 140 | font-weight: 400; |
| 164 | overflow-y: auto; | ||
| 165 | overflow-x: hidden; | ||
| 166 | img { | ||
| 167 | border-radius: var(--curve-sm); | ||
| 168 | } | ||
| 169 | .list-item { | ||
| 170 | display: flex; | ||
| 171 | flex-direction: column; | ||
| 172 | margin-bottom: 0.5rem; | ||
| 173 | } | ||
| 174 | &.list-table { | ||
| 175 | font-size: 0.9rem; | ||
| 176 | padding-left: 0; | ||
| 177 | li { | ||
| 178 | display: flex; | ||
| 179 | justify-content: space-between; | ||
| 180 | padding: 0.1rem 0; | ||
| 181 | .lbl { | ||
| 182 | font-weight: 400; | ||
| 183 | } | ||
| 184 | &:not(:last-child) { | ||
| 185 | border-bottom: 1px solid #5f53f440; | ||
| 186 | } | ||
| 187 | } | 141 | } |
| 188 | } | 142 | } |
| 189 | } | 143 | } |
| 190 | 144 | ||
| 191 | .website-title, .website-description { | 145 | .website-title, .website-description { |
| 192 | font-size: 0.9rem; | 146 | font-size: var(--text-sm); |
| 193 | opacity: 0.8; | 147 | opacity: var(--opacity-subtle); |
| 194 | display: -webkit-box; | 148 | @include line-clamp(1); |
| 195 | -webkit-line-clamp: 1; | ||
| 196 | -webkit-box-orient: vertical; | ||
| 197 | overflow: hidden; | ||
| 198 | border-left: 2px solid var(--accent-3); | 149 | border-left: 2px solid var(--accent-3); |
| 199 | padding-left: 0.5rem; | 150 | padding-left: var(--space-sm); |
| 200 | } | 151 | } |
| 201 | .website-title { | 152 | .website-title { |
| 202 | font-weight: 500; | 153 | font-weight: 500; |
| @@ -206,17 +157,17 @@ ul { | |||
| 206 | -webkit-line-clamp: 3; | 157 | -webkit-line-clamp: 3; |
| 207 | } | 158 | } |
| 208 | .explainer { | 159 | .explainer { |
| 209 | font-size: 0.8rem; | 160 | font-size: var(--text-sm); |
| 210 | opacity: 0.8; | 161 | opacity: var(--opacity-subtle); |
| 211 | font-style: italic; | 162 | font-style: italic; |
| 212 | } | 163 | } |
| 213 | 164 | ||
| 214 | .star-rating { | 165 | .star-rating { |
| 215 | position: relative; | 166 | position: relative; |
| 216 | display: inline-block; | 167 | display: inline-block; |
| 217 | margin: 1rem 0; | 168 | margin: var(--space-md) 0; |
| 218 | :global(svg) { | 169 | :global(svg) { |
| 219 | font-size: 2rem; | 170 | font-size: var(--text-3xl); |
| 220 | gap: 0; | 171 | gap: 0; |
| 221 | margin: 0; | 172 | margin: 0; |
| 222 | padding: 0; | 173 | padding: 0; |
| @@ -224,7 +175,7 @@ ul { | |||
| 224 | .back-stars { | 175 | .back-stars { |
| 225 | display: flex; | 176 | display: flex; |
| 226 | :global(svg) { | 177 | :global(svg) { |
| 227 | color: #ddddd8; | 178 | color: var(--foreground); |
| 228 | } | 179 | } |
| 229 | .front-stars { | 180 | .front-stars { |
| 230 | position: absolute; | 181 | position: absolute; |
| @@ -235,21 +186,21 @@ ul { | |||
| 235 | width: 0; | 186 | width: 0; |
| 236 | display: flex; | 187 | display: flex; |
| 237 | :global(svg) { | 188 | :global(svg) { |
| 238 | color: #e8e800; | 189 | color: var(--rating-neutral); |
| 239 | } | 190 | } |
| 240 | } | 191 | } |
| 241 | } | 192 | } |
| 242 | } | 193 | } |
| 243 | 194 | ||
| 244 | .rating-description { | 195 | .rating-description { |
| 245 | font-size: 0.8rem; | 196 | font-size: var(--text-sm); |
| 246 | opacity: 0.8; | 197 | opacity: var(--opacity-subtle); |
| 247 | font-style: italic; | 198 | font-style: italic; |
| 248 | } | 199 | } |
| 249 | 200 | ||
| 250 | .screenshots { | 201 | .screenshots { |
| 251 | display: flex; | 202 | display: flex; |
| 252 | gap: 0.5rem; | 203 | gap: var(--space-sm); |
| 253 | overflow-x: auto; | 204 | overflow-x: auto; |
| 254 | } | 205 | } |
| 255 | 206 | ||
web/src/components/things/ItemGitHubMetrics.astro +9 −9
| @@ -124,25 +124,25 @@ const { | |||
| 124 | .github-metrics { | 124 | .github-metrics { |
| 125 | display: flex; | 125 | display: flex; |
| 126 | align-items: center; | 126 | align-items: center; |
| 127 | gap: 1rem; | 127 | gap: var(--space-md); |
| 128 | font-size: 0.9rem; | 128 | font-size: var(--text-sm); |
| 129 | opacity: 0.6; | 129 | opacity: var(--opacity-muted); |
| 130 | flex-wrap: wrap; | 130 | flex-wrap: wrap; |
| 131 | span { | 131 | span { |
| 132 | display: flex; | 132 | display: flex; |
| 133 | align-items: center; | 133 | align-items: center; |
| 134 | justify-content: center; | 134 | justify-content: center; |
| 135 | color: var(--foreground); | 135 | color: var(--foreground); |
| 136 | gap: 0.25rem; | 136 | gap: var(--space-xs); |
| 137 | padding: 0.5rem 0; | 137 | padding: var(--space-sm) 0; |
| 138 | 138 | ||
| 139 | a { | 139 | a { |
| 140 | color: var(--foreground); | 140 | color: var(--foreground); |
| 141 | text-decoration: none; | 141 | text-decoration: none; |
| 142 | align-items: center; | 142 | align-items: center; |
| 143 | display: flex; | 143 | display: flex; |
| 144 | gap: 0.25rem; | 144 | gap: var(--space-xs); |
| 145 | transition: all 0.2s ease-in-out; | 145 | transition: var(--transition-normal); |
| 146 | color: var(--accent-3); | 146 | color: var(--accent-3); |
| 147 | &:hover { | 147 | &:hover { |
| 148 | color: var(--accent-3); | 148 | color: var(--accent-3); |
| @@ -156,8 +156,8 @@ const { | |||
| 156 | } | 156 | } |
| 157 | :global(svg) { | 157 | :global(svg) { |
| 158 | color: var(--foregroung); | 158 | color: var(--foregroung); |
| 159 | width: 1.1rem; | 159 | width: var(--text-md); |
| 160 | height: 1.1rem; | 160 | height: var(--text-md); |
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | </style> | 163 | </style> |
web/src/components/things/PrivacyPolicyDetails.astro +25 −25
| @@ -98,7 +98,7 @@ const removeDuplicates = () => { | |||
| 98 | display: flex; | 98 | display: flex; |
| 99 | flex-wrap: wrap; | 99 | flex-wrap: wrap; |
| 100 | justify-content: space-between; | 100 | justify-content: space-between; |
| 101 | gap: 1rem; | 101 | gap: var(--space-md); |
| 102 | .left, .right { | 102 | .left, .right { |
| 103 | width: calc(50% - 1rem); | 103 | width: calc(50% - 1rem); |
| 104 | @media screen and (max-width: 768px){ | 104 | @media screen and (max-width: 768px){ |
| @@ -108,16 +108,16 @@ const removeDuplicates = () => { | |||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | h4 { | 110 | h4 { |
| 111 | margin: 1rem 0 0 0; | 111 | margin: var(--space-md) 0 0 0; |
| 112 | font-size: 1.2rem; | 112 | font-size: var(--text-md); |
| 113 | } | 113 | } |
| 114 | p { | 114 | p { |
| 115 | margin: 0; | 115 | margin: 0; |
| 116 | display: flex; | 116 | display: flex; |
| 117 | align-items: center; | 117 | align-items: center; |
| 118 | gap: 0.25rem; | 118 | gap: var(--space-xs); |
| 119 | :global(svg) { | 119 | :global(svg) { |
| 120 | width: 1rem; | 120 | width: var(--text-base); |
| 121 | } | 121 | } |
| 122 | img { | 122 | img { |
| 123 | border-radius: var(--curve-sm); | 123 | border-radius: var(--curve-sm); |
| @@ -125,17 +125,17 @@ h4 { | |||
| 125 | } | 125 | } |
| 126 | li { | 126 | li { |
| 127 | :global(svg) { | 127 | :global(svg) { |
| 128 | width: 1rem; | 128 | width: var(--text-base); |
| 129 | margin-right: 0.2rem; | 129 | margin-right: 0.2rem; |
| 130 | } | 130 | } |
| 131 | &.clasification { | 131 | &.clasification { |
| 132 | &.good :global(svg) { color: #35b969; } | 132 | &.good :global(svg) { color: var(--rating-a); } |
| 133 | &.neutral :global(svg) { color: #ecd40f; } | 133 | &.neutral :global(svg) { color: var(--rating-neutral); } |
| 134 | &.bad :global(svg) { color: #e3154f; } | 134 | &.bad :global(svg) { color: var(--rating-g); } |
| 135 | } | 135 | } |
| 136 | } | 136 | } |
| 137 | ul { | 137 | ul { |
| 138 | padding-left: 1rem; | 138 | padding-left: var(--space-md); |
| 139 | list-style: circle; | 139 | list-style: circle; |
| 140 | max-height: 700px; | 140 | max-height: 700px; |
| 141 | overflow-y: auto; | 141 | overflow-y: auto; |
| @@ -146,42 +146,42 @@ h4 { | |||
| 146 | .list-item { | 146 | .list-item { |
| 147 | display: flex; | 147 | display: flex; |
| 148 | flex-direction: column; | 148 | flex-direction: column; |
| 149 | margin-bottom: 0.5rem; | 149 | margin-bottom: var(--space-sm); |
| 150 | .date-block { | 150 | .date-block { |
| 151 | 151 | ||
| 152 | font-size: 0.8rem; | 152 | font-size: var(--text-sm); |
| 153 | opacity: 0.7; | 153 | opacity: var(--opacity-soft); |
| 154 | } | 154 | } |
| 155 | } | 155 | } |
| 156 | &.no-point { | 156 | &.no-point { |
| 157 | list-style: none; | 157 | list-style: none; |
| 158 | padding-left: 0.25rem; | 158 | padding-left: var(--space-xs); |
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | .rating { | 162 | .rating { |
| 163 | font-size: 4rem; | 163 | font-size: 4rem; |
| 164 | width: fit-content; | 164 | width: fit-content; |
| 165 | padding: 0.5rem 1.5rem; | 165 | padding: var(--space-sm) 1.5rem; |
| 166 | border-radius: var(--curve-lg); | 166 | border-radius: var(--curve-lg); |
| 167 | border: 4px solid; | 167 | border: 4px solid; |
| 168 | margin: 0 auto; | 168 | margin: 0 auto; |
| 169 | font-weight: bold; | 169 | font-weight: bold; |
| 170 | 170 | ||
| 171 | &.rating-A { --rating-color: #35b969; } | 171 | &.rating-A { --rating-color: var(--rating-a); } |
| 172 | &.rating-B { --rating-color: #6bb935; } | 172 | &.rating-B { --rating-color: var(--rating-b); } |
| 173 | &.rating-C { --rating-color: #c7cc22; } | 173 | &.rating-C { --rating-color: var(--rating-c); } |
| 174 | &.rating-D { --rating-color: #e1bb23; } | 174 | &.rating-D { --rating-color: var(--rating-d); } |
| 175 | &.rating-E { --rating-color: #df8b1e; } | 175 | &.rating-E { --rating-color: var(--rating-e); } |
| 176 | &.rating-F { --rating-color: #df541e; } | 176 | &.rating-F { --rating-color: var(--rating-f); } |
| 177 | &.rating-G { --rating-color: #df1e1e; } | 177 | &.rating-G { --rating-color: var(--rating-g); } |
| 178 | color: var(--rating-color); | 178 | color: var(--rating-color); |
| 179 | border-color: var(--rating-color); | 179 | border-color: var(--rating-color); |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | .about-tosdr { | 182 | .about-tosdr { |
| 183 | display: inline; | 183 | display: inline; |
| 184 | font-size: 0.8rem; | 184 | font-size: var(--text-sm); |
| 185 | opacity: 0.7; | 185 | opacity: var(--opacity-soft); |
| 186 | } | 186 | } |
| 187 | </style> | 187 | </style> |
web/src/components/things/RedditDetailedInfo.astro +19 −66
| @@ -73,83 +73,36 @@ const { redditData } = Astro.props; | |||
| 73 | </div> | 73 | </div> |
| 74 | 74 | ||
| 75 | <style lang="scss"> | 75 | <style lang="scss"> |
| 76 | @use '../../styles/mixins' as *; | ||
| 76 | .reddit-info-wrapper { | 77 | .reddit-info-wrapper { |
| 77 | display: flex; | 78 | @include detail-info-layout; |
| 78 | flex-wrap: wrap; | ||
| 79 | justify-content: space-between; | ||
| 80 | gap: 1rem; | ||
| 81 | .left, | ||
| 82 | .right { | ||
| 83 | width: calc(50% - 1rem); | ||
| 84 | @media screen and (max-width: 768px) { | ||
| 85 | width: 100%; | ||
| 86 | } | ||
| 87 | } | ||
| 88 | } | 79 | } |
| 89 | 80 | ||
| 81 | @include detail-info-base; | ||
| 82 | |||
| 90 | .banner { | 83 | .banner { |
| 91 | margin: 0.5rem auto; | 84 | margin: var(--space-sm) auto; |
| 92 | border-radius: var(--curve-md); | 85 | border-radius: var(--curve-md); |
| 93 | width: 100%; | 86 | width: 100%; |
| 94 | } | 87 | } |
| 95 | 88 | ||
| 96 | h3 { | 89 | h3 { |
| 97 | margin: 0 0 1rem 0; | 90 | margin: 0 0 var(--space-md) 0; |
| 98 | font-size: 1.6rem; | 91 | font-size: var(--text-xl); |
| 99 | } | ||
| 100 | |||
| 101 | h4 { | ||
| 102 | margin: 1rem 0 0 0; | ||
| 103 | font-size: 1.2rem; | ||
| 104 | } | ||
| 105 | p { | ||
| 106 | margin: 0; | ||
| 107 | display: flex; | ||
| 108 | align-items: center; | ||
| 109 | gap: 0.25rem; | ||
| 110 | :global(svg) { | ||
| 111 | width: 1rem; | ||
| 112 | } | ||
| 113 | img { | ||
| 114 | border-radius: var(--curve-sm); | ||
| 115 | } | ||
| 116 | } | 92 | } |
| 117 | 93 | ||
| 118 | ul { | 94 | ul { |
| 119 | padding-left: 0; | 95 | &.list-table li { |
| 120 | list-style: none; | 96 | .lbl { |
| 121 | max-height: 300px; | 97 | font-weight: 400; |
| 122 | overflow-y: auto; | ||
| 123 | overflow-x: hidden; | ||
| 124 | img { | ||
| 125 | border-radius: var(--curve-sm); | ||
| 126 | } | ||
| 127 | .list-item { | ||
| 128 | display: flex; | ||
| 129 | flex-direction: column; | ||
| 130 | margin-bottom: 0.5rem; | ||
| 131 | } | ||
| 132 | &.list-table { | ||
| 133 | font-size: 0.9rem; | ||
| 134 | padding-left: 0; | ||
| 135 | li { | ||
| 136 | display: flex; | ||
| 137 | justify-content: space-between; | ||
| 138 | padding: 0.1rem 0; | ||
| 139 | .lbl { | ||
| 140 | font-weight: 400; | ||
| 141 | } | ||
| 142 | &:not(:last-child) { | ||
| 143 | border-bottom: 1px solid #5f53f440; | ||
| 144 | } | ||
| 145 | } | 98 | } |
| 146 | } | 99 | } |
| 147 | } | 100 | } |
| 148 | 101 | ||
| 149 | .posts { | 102 | .posts { |
| 150 | list-style: circle; | 103 | list-style: circle; |
| 151 | padding-left: 1rem; | 104 | padding-left: var(--space-md); |
| 152 | font-size: 0.9rem; | 105 | font-size: var(--text-sm); |
| 153 | li { | 106 | li { |
| 154 | display: -webkit-box; | 107 | display: -webkit-box; |
| 155 | -webkit-line-clamp: 1; | 108 | -webkit-line-clamp: 1; |
| @@ -159,22 +112,22 @@ const { redditData } = Astro.props; | |||
| 159 | max-width: 80%; | 112 | max-width: 80%; |
| 160 | } | 113 | } |
| 161 | .votes { | 114 | .votes { |
| 162 | font-size: 0.8rem; | 115 | font-size: var(--text-sm); |
| 163 | opacity: 0.5; | 116 | opacity: var(--opacity-dim); |
| 164 | } | 117 | } |
| 165 | } | 118 | } |
| 166 | } | 119 | } |
| 167 | 120 | ||
| 168 | .website-title, | 121 | .website-title, |
| 169 | .website-description { | 122 | .website-description { |
| 170 | font-size: 0.9rem; | 123 | font-size: var(--text-sm); |
| 171 | opacity: 0.8; | 124 | opacity: var(--opacity-subtle); |
| 172 | display: -webkit-box; | 125 | display: -webkit-box; |
| 173 | -webkit-line-clamp: 1; | 126 | -webkit-line-clamp: 1; |
| 174 | -webkit-box-orient: vertical; | 127 | -webkit-box-orient: vertical; |
| 175 | overflow: hidden; | 128 | overflow: hidden; |
| 176 | border-left: 2px solid var(--accent-3); | 129 | border-left: 2px solid var(--accent-3); |
| 177 | padding-left: 0.5rem; | 130 | padding-left: var(--space-sm); |
| 178 | } | 131 | } |
| 179 | .website-title { | 132 | .website-title { |
| 180 | font-weight: 500; | 133 | font-weight: 500; |
| @@ -184,8 +137,8 @@ const { redditData } = Astro.props; | |||
| 184 | -webkit-line-clamp: 3; | 137 | -webkit-line-clamp: 3; |
| 185 | } | 138 | } |
| 186 | .explainer { | 139 | .explainer { |
| 187 | font-size: 0.8rem; | 140 | font-size: var(--text-sm); |
| 188 | opacity: 0.8; | 141 | opacity: var(--opacity-subtle); |
| 189 | font-style: italic; | 142 | font-style: italic; |
| 190 | } | 143 | } |
| 191 | </style> | 144 | </style> |
web/src/components/things/SaveListing.svelte +13 −13
| @@ -58,28 +58,28 @@ | |||
| 58 | .wrapper-or-something { | 58 | .wrapper-or-something { |
| 59 | display: flex; | 59 | display: flex; |
| 60 | flex-direction: row-reverse; | 60 | flex-direction: row-reverse; |
| 61 | gap: 0.25rem; | 61 | gap: var(--space-xs); |
| 62 | } | 62 | } |
| 63 | .save-container { | 63 | .save-container { |
| 64 | cursor: pointer; | 64 | cursor: pointer; |
| 65 | background: none; | 65 | background: none; |
| 66 | border: none; | 66 | border: none; |
| 67 | display: flex; | 67 | display: flex; |
| 68 | gap: 0.5rem; | 68 | gap: var(--space-sm); |
| 69 | align-items: center; | 69 | align-items: center; |
| 70 | transition: all 0.2s ease-in-out; | 70 | transition: var(--transition-normal); |
| 71 | span { | 71 | span { |
| 72 | font-size: 1.2rem; | 72 | font-size: var(--text-md); |
| 73 | opacity: 0.8; | 73 | opacity: var(--opacity-subtle); |
| 74 | color: var(--foreground); | 74 | color: var(--foreground); |
| 75 | font-family: 'Lekton'; | 75 | font-family: var(--font-subtitle); |
| 76 | } | 76 | } |
| 77 | :global(svg) { | 77 | :global(svg) { |
| 78 | color: var(--foreground); | 78 | color: var(--foreground); |
| 79 | width: 1.2rem; | 79 | width: 1.2rem; |
| 80 | height: 1.2rem; | 80 | height: 1.2rem; |
| 81 | opacity: 0.5; | 81 | opacity: var(--opacity-dim); |
| 82 | transition: all 0.2s ease-in-out; | 82 | transition: var(--transition-normal); |
| 83 | } | 83 | } |
| 84 | &:hover { | 84 | &:hover { |
| 85 | :global(svg) { | 85 | :global(svg) { |
| @@ -96,20 +96,20 @@ | |||
| 96 | &.label-button { | 96 | &.label-button { |
| 97 | padding: 0.2rem 0.4rem; | 97 | padding: 0.2rem 0.4rem; |
| 98 | border-radius: var(--curve-sm); | 98 | border-radius: var(--curve-sm); |
| 99 | box-shadow: 3px 3px 0 var(--box-outline); | 99 | box-shadow: var(--shadow-sm); |
| 100 | border: 1px solid var(--box-outline); | 100 | border: var(--border-light); |
| 101 | background: var(--background-form); | 101 | background: var(--background-form); |
| 102 | 102 | ||
| 103 | &:hover { | 103 | &:hover { |
| 104 | box-shadow: 4px 4px 0 var(--box-outline); | 104 | box-shadow: var(--shadow-sm-hover); |
| 105 | } | 105 | } |
| 106 | } | 106 | } |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | .done-msg { | 109 | .done-msg { |
| 110 | max-width: 165px; | 110 | max-width: 165px; |
| 111 | font-size: 0.8rem; | 111 | font-size: var(--text-sm); |
| 112 | opacity: 0.6; | 112 | opacity: var(--opacity-muted); |
| 113 | @media (max-width: 768px) { | 113 | @media (max-width: 768px) { |
| 114 | display: none; | 114 | display: none; |
| 115 | } | 115 | } |
web/src/components/things/SavedServices.svelte +6 −6
| @@ -75,8 +75,8 @@ | |||
| 75 | .saved-services { | 75 | .saved-services { |
| 76 | display: grid; | 76 | display: grid; |
| 77 | grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); | 77 | grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); |
| 78 | gap: 1rem; | 78 | gap: var(--space-md); |
| 79 | margin-top: 1rem; | 79 | margin-top: var(--space-md); |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | .nothing-yet { | 82 | .nothing-yet { |
| @@ -85,14 +85,14 @@ | |||
| 85 | margin: 0; | 85 | margin: 0; |
| 86 | } | 86 | } |
| 87 | small { | 87 | small { |
| 88 | font-size: 0.8rem; | 88 | font-size: var(--text-sm); |
| 89 | opacity: 0.6; | 89 | opacity: var(--opacity-muted); |
| 90 | } | 90 | } |
| 91 | .nope { | 91 | .nope { |
| 92 | font-weight: bold; | 92 | font-weight: bold; |
| 93 | margin: 2rem 0; | 93 | margin: var(--space-lg) 0; |
| 94 | opacity: 0.2; | 94 | opacity: 0.2; |
| 95 | font-size: 1.6rem; | 95 | font-size: var(--text-xl); |
| 96 | } | 96 | } |
| 97 | } | 97 | } |
| 98 | </style> | 98 | </style> |
web/src/components/things/Search.svelte +15 −16
| @@ -136,28 +136,27 @@ | |||
| 136 | display: flex; | 136 | display: flex; |
| 137 | flex-direction: column; | 137 | flex-direction: column; |
| 138 | position: relative; | 138 | position: relative; |
| 139 | margin: 1rem auto; | ||
| 140 | max-width: 900px; | 139 | max-width: 900px; |
| 141 | margin: 0 auto; | 140 | margin: 0 auto; |
| 142 | width: 80vw; | 141 | width: 80vw; |
| 143 | label { | 142 | label { |
| 144 | margin: 0.5rem 0; | 143 | margin: var(--space-sm) 0; |
| 145 | display: flex; | 144 | display: flex; |
| 146 | justify-content: space-between; | 145 | justify-content: space-between; |
| 147 | align-items: center; | 146 | align-items: center; |
| 148 | flex-wrap: wrap; | 147 | flex-wrap: wrap; |
| 149 | .enter-hint { | 148 | .enter-hint { |
| 150 | font-size: 0.8rem; | 149 | font-size: var(--text-sm); |
| 151 | opacity: 0.7; | 150 | opacity: var(--opacity-soft); |
| 152 | } | 151 | } |
| 153 | } | 152 | } |
| 154 | 153 | ||
| 155 | input { | 154 | input { |
| 156 | padding: 0.5rem 1rem; | 155 | padding: var(--space-sm) var(--space-md); |
| 157 | font-size: 1.8rem; | 156 | font-size: var(--text-2xl); |
| 158 | border: 2px solid var(--box-outline); | 157 | border: var(--border-heavy); |
| 159 | border-radius: var(--curve-lg); | 158 | border-radius: var(--curve-lg); |
| 160 | box-shadow: 3px 3px 0 var(--box-outline); | 159 | box-shadow: var(--shadow-sm); |
| 161 | z-index: 4; | 160 | z-index: 4; |
| 162 | background: var(--accent-fg); | 161 | background: var(--accent-fg); |
| 163 | color: var(--foreground); | 162 | color: var(--foreground); |
| @@ -178,16 +177,16 @@ | |||
| 178 | list-style: none; | 177 | list-style: none; |
| 179 | padding: 0; | 178 | padding: 0; |
| 180 | margin: 0; | 179 | margin: 0; |
| 181 | border: 2px solid var(--box-outline); | 180 | border: var(--border-heavy); |
| 182 | border-radius: 0 0 var(--curve-lg) var(--curve-lg); | 181 | border-radius: 0 0 var(--curve-lg) var(--curve-lg); |
| 183 | box-shadow: 3px 3px 0 var(--box-outline); | 182 | box-shadow: var(--shadow-sm); |
| 184 | transform: translateY(-0.5rem); | 183 | transform: translateY(-0.5rem); |
| 185 | max-height: 500px; | 184 | max-height: 500px; |
| 186 | overflow-y: scroll; | 185 | overflow-y: scroll; |
| 187 | background: var(--background-form); | 186 | background: var(--background-form); |
| 188 | li.result-row { | 187 | li.result-row { |
| 189 | padding: 0.5rem 1rem; | 188 | padding: var(--space-sm) var(--space-md); |
| 190 | margin: 0.5rem 0; | 189 | margin: var(--space-sm) 0; |
| 191 | a { | 190 | a { |
| 192 | color: var(--foreground); | 191 | color: var(--foreground); |
| 193 | text-decoration: none; | 192 | text-decoration: none; |
| @@ -197,7 +196,7 @@ | |||
| 197 | .name { | 196 | .name { |
| 198 | display: flex; | 197 | display: flex; |
| 199 | align-items: center; | 198 | align-items: center; |
| 200 | gap: 0.5rem; | 199 | gap: var(--space-sm); |
| 201 | i { | 200 | i { |
| 202 | color: var(--accent); | 201 | color: var(--accent); |
| 203 | font-weight: bold; | 202 | font-weight: bold; |
| @@ -210,13 +209,13 @@ | |||
| 210 | font-size: 10px; | 209 | font-size: 10px; |
| 211 | color: var(--accent); | 210 | color: var(--accent); |
| 212 | overflow: hidden; | 211 | overflow: hidden; |
| 213 | background: #f453974d; | 212 | background: var(--accent-translucent); |
| 214 | padding: 1px; | 213 | padding: 1px; |
| 215 | } | 214 | } |
| 216 | } | 215 | } |
| 217 | .path { | 216 | .path { |
| 218 | font-size: 0.85rem; | 217 | font-size: var(--text-sm); |
| 219 | opacity: 0.7; | 218 | opacity: var(--opacity-soft); |
| 220 | } | 219 | } |
| 221 | } | 220 | } |
| 222 | &:hover { | 221 | &:hover { |
web/src/components/things/SectionList.astro +17 −53
| @@ -52,6 +52,7 @@ const { title, sections, bigTitle } = Astro.props; | |||
| 52 | </div> | 52 | </div> |
| 53 | 53 | ||
| 54 | <style lang="scss"> | 54 | <style lang="scss"> |
| 55 | @use '../../styles/mixins' as *; | ||
| 55 | .wrap { | 56 | .wrap { |
| 56 | position: relative; | 57 | position: relative; |
| 57 | &:hover { | 58 | &:hover { |
| @@ -63,18 +64,18 @@ const { title, sections, bigTitle } = Astro.props; | |||
| 63 | } | 64 | } |
| 64 | 65 | ||
| 65 | h2 { | 66 | h2 { |
| 66 | font-family: 'Lekton', sans-serif; | 67 | font-family: var(--font-subtitle); |
| 67 | font-size: 2rem; | 68 | font-size: var(--text-3xl); |
| 68 | margin: -2rem 0 2rem -2rem; | 69 | margin: -2rem 0 var(--space-lg) -2rem; |
| 69 | box-shadow: 6px 6px 0 var(--box-outline); | 70 | box-shadow: var(--shadow-lg); |
| 70 | border: 2px solid var(--box-outline); | 71 | border: var(--border-heavy); |
| 71 | background: var(--accent); | 72 | background: var(--accent); |
| 72 | color: var(--accent-fg); | 73 | color: var(--accent-fg); |
| 73 | width: fit-content; | 74 | width: fit-content; |
| 74 | padding: 0.25rem 0.5rem; | 75 | padding: var(--space-xs) var(--space-sm); |
| 75 | display: flex; | 76 | display: flex; |
| 76 | justify-content: center; | 77 | justify-content: center; |
| 77 | gap: 1rem; | 78 | gap: var(--space-md); |
| 78 | :global(svg) { | 79 | :global(svg) { |
| 79 | width: 2rem; | 80 | width: 2rem; |
| 80 | height: 2rem; | 81 | height: 2rem; |
| @@ -88,61 +89,24 @@ const { title, sections, bigTitle } = Astro.props; | |||
| 88 | z-index: 2; | 89 | z-index: 2; |
| 89 | position: relative; | 90 | position: relative; |
| 90 | h3 { | 91 | h3 { |
| 91 | font-family: 'Lekton', sans-serif; | 92 | font-family: var(--font-subtitle); |
| 92 | font-weight: bold; | 93 | font-weight: bold; |
| 93 | margin: 0; | 94 | margin: 0; |
| 94 | font-size: 1.8rem; | 95 | font-size: var(--text-2xl); |
| 95 | position: relative; | 96 | @include underline-hover(var(--accent), 3px, 80%); |
| 96 | &:after { | ||
| 97 | background: none repeat scroll 0 0 transparent; | ||
| 98 | bottom: 0; | ||
| 99 | content: ''; | ||
| 100 | display: block; | ||
| 101 | height: 3px; | ||
| 102 | left: 50%; | ||
| 103 | position: absolute; | ||
| 104 | background: var(--accent); | ||
| 105 | transition: | ||
| 106 | width 0.3s ease 0s, | ||
| 107 | left 0.3s ease 0s; | ||
| 108 | width: 0; | ||
| 109 | } | ||
| 110 | &:hover:after { | ||
| 111 | width: 80%; | ||
| 112 | left: 0; | ||
| 113 | } | ||
| 114 | } | 97 | } |
| 115 | } | 98 | } |
| 116 | 99 | ||
| 117 | ul { | 100 | ul { |
| 118 | list-style: circle; | 101 | list-style: circle; |
| 119 | padding-left: 1rem; | 102 | padding-left: var(--space-md); |
| 120 | li { | 103 | li { |
| 121 | margin: 0.5rem 0; | 104 | margin: var(--space-sm) 0; |
| 122 | font-size: 1.25rem; | 105 | font-size: var(--text-md); |
| 123 | a { | 106 | a { |
| 124 | text-decoration: none; | 107 | text-decoration: none; |
| 125 | color: var(--foreground); | 108 | color: var(--foreground); |
| 126 | position: relative; | 109 | @include underline-hover(var(--accent-3), 2px, 80%, 0.15s); |
| 127 | &:after { | ||
| 128 | background: none repeat scroll 0 0 transparent; | ||
| 129 | bottom: 0; | ||
| 130 | content: ''; | ||
| 131 | display: block; | ||
| 132 | height: 2px; | ||
| 133 | left: 50%; | ||
| 134 | position: absolute; | ||
| 135 | background: var(--accent-3); | ||
| 136 | transition: | ||
| 137 | width 0.15s ease 0s, | ||
| 138 | left 0.15s ease 0s; | ||
| 139 | width: 0; | ||
| 140 | } | ||
| 141 | &:hover:after { | ||
| 142 | text-decoration: underline; | ||
| 143 | width: 80%; | ||
| 144 | left: 0; | ||
| 145 | } | ||
| 146 | } | 110 | } |
| 147 | .service-count { | 111 | .service-count { |
| 148 | color: var(--accent-3); | 112 | color: var(--accent-3); |
| @@ -158,10 +122,10 @@ const { title, sections, bigTitle } = Astro.props; | |||
| 158 | :global(svg) { | 122 | :global(svg) { |
| 159 | width: 2rem; | 123 | width: 2rem; |
| 160 | height: 2rem; | 124 | height: 2rem; |
| 161 | opacity: 0.5; | 125 | opacity: var(--opacity-dim); |
| 162 | text-shadow: 3px 3px 0 black; | 126 | text-shadow: 3px 3px 0 black; |
| 163 | color: var(--accent-3); | 127 | color: var(--accent-3); |
| 164 | transition: all 0.2s ease-in-out; | 128 | transition: var(--transition-normal); |
| 165 | } | 129 | } |
| 166 | } | 130 | } |
| 167 | </style> | 131 | </style> |
web/src/components/things/ServiceList.astro +34 −56
| @@ -201,8 +201,9 @@ const { | |||
| 201 | </section> | 201 | </section> |
| 202 | 202 | ||
| 203 | <style lang="scss"> | 203 | <style lang="scss"> |
| 204 | @use '../../styles/mixins' as *; | ||
| 204 | section { | 205 | section { |
| 205 | padding: 1rem 0; | 206 | padding: var(--space-md) 0; |
| 206 | position: relative; | 207 | position: relative; |
| 207 | &:not(:last-child) { | 208 | &:not(:last-child) { |
| 208 | border-bottom: 2px solid var(--accent-3); | 209 | border-bottom: 2px solid var(--accent-3); |
| @@ -210,62 +211,43 @@ const { | |||
| 210 | } | 211 | } |
| 211 | 212 | ||
| 212 | .nothing-yet { | 213 | .nothing-yet { |
| 213 | font-size: 1.4rem; | 214 | font-size: var(--text-lg); |
| 214 | opacity: 0.8; | 215 | opacity: var(--opacity-subtle); |
| 215 | font-style: italic; | 216 | font-style: italic; |
| 216 | text-align: center; | 217 | text-align: center; |
| 217 | margin-bottom: 3rem; | 218 | margin-bottom: var(--space-xl); |
| 218 | .quick-submit { | 219 | .quick-submit { |
| 219 | margin-top: 1rem; | 220 | margin-top: var(--space-md); |
| 220 | font-size: 0.8rem; | 221 | font-size: var(--text-sm); |
| 221 | opacity: 0.8; | 222 | opacity: var(--opacity-subtle); |
| 222 | } | 223 | } |
| 223 | } | 224 | } |
| 224 | 225 | ||
| 225 | ul { | 226 | ul { |
| 226 | list-style: none; | 227 | list-style: none; |
| 227 | padding: 0; | 228 | padding: 0; |
| 228 | margin: 0 0 3rem 0; | 229 | margin: 0 0 var(--space-xl) 0; |
| 229 | li { | 230 | li { |
| 230 | margin-bottom: 1rem; | 231 | margin-bottom: var(--space-md); |
| 231 | position: relative; | 232 | position: relative; |
| 232 | .save-listing { | 233 | .save-listing { |
| 233 | position: absolute; | 234 | position: absolute; |
| 234 | right: 1rem; | 235 | right: var(--space-md); |
| 235 | top: 1rem; | 236 | top: var(--space-md); |
| 236 | } | 237 | } |
| 237 | .service-head { | 238 | .service-head { |
| 238 | display: flex; | 239 | display: flex; |
| 239 | align-items: center; | 240 | align-items: center; |
| 240 | gap: 0.5rem; | 241 | gap: var(--space-sm); |
| 241 | flex-wrap: wrap; | 242 | flex-wrap: wrap; |
| 242 | .service-title { | 243 | .service-title { |
| 243 | text-decoration: none; | 244 | text-decoration: none; |
| 244 | color: var(--foreground); | 245 | color: var(--foreground); |
| 246 | @include underline-hover(var(--accent-3)); | ||
| 245 | h3, | 247 | h3, |
| 246 | h4 { | 248 | h4 { |
| 247 | margin: 0; | 249 | margin: 0; |
| 248 | font-size: 1.6rem; | 250 | font-size: var(--text-xl); |
| 249 | } | ||
| 250 | |||
| 251 | position: relative; | ||
| 252 | &:after { | ||
| 253 | background: none repeat scroll 0 0 transparent; | ||
| 254 | bottom: 0; | ||
| 255 | content: ''; | ||
| 256 | display: block; | ||
| 257 | height: 3px; | ||
| 258 | left: 50%; | ||
| 259 | position: absolute; | ||
| 260 | background: var(--accent-3); | ||
| 261 | transition: | ||
| 262 | width 0.3s ease 0s, | ||
| 263 | left 0.3s ease 0s; | ||
| 264 | width: 0; | ||
| 265 | } | ||
| 266 | &:hover:after { | ||
| 267 | width: 100%; | ||
| 268 | left: 0; | ||
| 269 | } | 251 | } |
| 270 | } | 252 | } |
| 271 | 253 | ||
| @@ -279,24 +261,22 @@ const { | |||
| 279 | color: var(--accent); | 261 | color: var(--accent); |
| 280 | } | 262 | } |
| 281 | .follow-with { | 263 | .follow-with { |
| 282 | opacity: 0.7; | 264 | opacity: var(--opacity-soft); |
| 283 | font-style: italic; | 265 | font-style: italic; |
| 284 | margin: 0; | 266 | margin: 0; |
| 285 | } | 267 | } |
| 286 | .service-link { | 268 | .service-link { |
| 287 | max-width: 300px; | 269 | max-width: 300px; |
| 288 | text-overflow: ellipsis; | 270 | @include truncate; |
| 289 | overflow: hidden; | ||
| 290 | white-space: nowrap; | ||
| 291 | } | 271 | } |
| 292 | } | 272 | } |
| 293 | 273 | ||
| 294 | .service-body { | 274 | .service-body { |
| 295 | margin: 0.5rem 0 2rem; | 275 | margin: var(--space-sm) 0 var(--space-lg); |
| 296 | opacity: 0.8; | 276 | opacity: var(--opacity-subtle); |
| 297 | :global(p) { | 277 | :global(p) { |
| 298 | margin: 0; | 278 | margin: 0; |
| 299 | font-size: 1.2rem; | 279 | font-size: var(--text-md); |
| 300 | :global(a) { | 280 | :global(a) { |
| 301 | color: var(--foregorund); | 281 | color: var(--foregorund); |
| 302 | } | 282 | } |
| @@ -304,24 +284,24 @@ const { | |||
| 304 | .service-stats { | 284 | .service-stats { |
| 305 | .left { | 285 | .left { |
| 306 | display: flex; | 286 | display: flex; |
| 307 | gap: 1rem; | 287 | gap: var(--space-md); |
| 308 | flex-wrap: wrap; | 288 | flex-wrap: wrap; |
| 309 | align-items: center; | 289 | align-items: center; |
| 310 | } | 290 | } |
| 311 | display: flex; | 291 | display: flex; |
| 312 | gap: 1rem; | 292 | gap: var(--space-md); |
| 313 | flex-wrap: wrap; | 293 | flex-wrap: wrap; |
| 314 | align-items: center; | 294 | align-items: center; |
| 315 | justify-content: space-between; | 295 | justify-content: space-between; |
| 316 | } | 296 | } |
| 317 | .view-service { | 297 | .view-service { |
| 318 | transition: all 0.2s ease-in-out; | 298 | transition: var(--transition-normal); |
| 319 | opacity: 0.95; | 299 | opacity: 0.95; |
| 320 | a { | 300 | a { |
| 321 | padding: 0.25rem 0.6rem; | 301 | padding: var(--space-xs) 0.6rem; |
| 322 | width: fit-content; | 302 | width: fit-content; |
| 323 | right: 1rem; | 303 | right: var(--space-md); |
| 324 | font-size: 0.9rem; | 304 | font-size: var(--text-sm); |
| 325 | background: var(--accent-3); | 305 | background: var(--accent-3); |
| 326 | color: var(--accent-fg); | 306 | color: var(--accent-fg); |
| 327 | text-decoration: none; | 307 | text-decoration: none; |
| @@ -337,11 +317,9 @@ const { | |||
| 337 | .warning { | 317 | .warning { |
| 338 | display: flex; | 318 | display: flex; |
| 339 | align-items: center; | 319 | align-items: center; |
| 340 | // justify-content: center; | 320 | gap: var(--space-xs); |
| 341 | gap: 0.25rem; | 321 | font-size: var(--text-sm); |
| 342 | // opacity: 0.6; | 322 | padding: var(--space-sm) 0; |
| 343 | font-size: 0.9rem; | ||
| 344 | padding: 0.5rem 0; | ||
| 345 | :global(svg) { | 323 | :global(svg) { |
| 346 | color: var(--foreground); | 324 | color: var(--foreground); |
| 347 | width: 1.2rem; | 325 | width: 1.2rem; |
| @@ -351,7 +329,7 @@ const { | |||
| 351 | text-decoration: none; | 329 | text-decoration: none; |
| 352 | color: var(--foreground); | 330 | color: var(--foreground); |
| 353 | display: flex; | 331 | display: flex; |
| 354 | gap: 0.25rem; | 332 | gap: var(--space-xs); |
| 355 | &:hover { | 333 | &:hover { |
| 356 | color: var(--accent-3); | 334 | color: var(--accent-3); |
| 357 | :global(svg) { | 335 | :global(svg) { |
| @@ -367,9 +345,9 @@ const { | |||
| 367 | } | 345 | } |
| 368 | } | 346 | } |
| 369 | .great { | 347 | .great { |
| 370 | color: #0fb953; // var(--success); | 348 | color: var(--success-muted); |
| 371 | :global(svg) { | 349 | :global(svg) { |
| 372 | color: #0fb953; // var(--success); | 350 | color: var(--success-muted); |
| 373 | } | 351 | } |
| 374 | } | 352 | } |
| 375 | } | 353 | } |
| @@ -379,13 +357,13 @@ const { | |||
| 379 | section :global(.view-all) { | 357 | section :global(.view-all) { |
| 380 | width: fit-content; | 358 | width: fit-content; |
| 381 | position: absolute; | 359 | position: absolute; |
| 382 | right: 1rem; | 360 | right: var(--space-md); |
| 383 | margin-top: -2.5rem; | 361 | margin-top: -2.5rem; |
| 384 | background: var(--accent-3); | 362 | background: var(--accent-3); |
| 385 | } | 363 | } |
| 386 | 364 | ||
| 387 | li:hover :global(.actions) { | 365 | li:hover :global(.actions) { |
| 388 | opacity: 0.6; | 366 | opacity: var(--opacity-muted); |
| 389 | :global(a):hover { | 367 | :global(a):hover { |
| 390 | opacity: 1; | 368 | opacity: 1; |
| 391 | } | 369 | } |
web/src/components/things/SmartSuggestions.svelte +13 −15
| @@ -79,45 +79,45 @@ | |||
| 79 | </section> | 79 | </section> |
| 80 | 80 | ||
| 81 | <style lang="scss"> | 81 | <style lang="scss"> |
| 82 | @use '../../styles/mixins' as *; | ||
| 82 | h3 { | 83 | h3 { |
| 83 | width: 80vw; | 84 | width: 80vw; |
| 84 | max-width: 900px; | 85 | max-width: 900px; |
| 85 | margin: 1rem auto; | 86 | margin: var(--space-md) auto; |
| 86 | color: var(--accent-3); | 87 | color: var(--accent-3); |
| 87 | font-size: 1.6rem; | 88 | font-size: var(--text-xl); |
| 88 | } | 89 | } |
| 89 | section { | 90 | section { |
| 90 | display: grid; | 91 | display: grid; |
| 91 | grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | 92 | grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); |
| 92 | gap: 1rem; | 93 | gap: var(--space-md); |
| 93 | width: 80vw; | 94 | width: 80vw; |
| 94 | max-width: 900px; | 95 | max-width: 900px; |
| 95 | margin: 0 auto; | 96 | margin: 0 auto; |
| 96 | .service-result { | 97 | .service-result { |
| 97 | background: var(--accent-fg); | 98 | background: var(--accent-fg); |
| 98 | padding: 1rem; | 99 | padding: var(--space-md); |
| 99 | border-radius: var(--curve-sm); | 100 | border-radius: var(--curve-sm); |
| 100 | border: 1px solid var(--box-outline); | 101 | border: var(--border-light); |
| 101 | box-shadow: 3px 3px 0 var(--box-outline); | 102 | box-shadow: var(--shadow-sm); |
| 102 | color: var(--foreground); | 103 | color: var(--foreground); |
| 103 | text-decoration: none; | 104 | text-decoration: none; |
| 104 | 105 | ||
| 105 | .service-head { | 106 | .service-head { |
| 106 | display: flex; | 107 | display: flex; |
| 107 | align-items: center; | 108 | align-items: center; |
| 108 | gap: 0.5rem; | 109 | gap: var(--space-sm); |
| 109 | h4 { | 110 | h4 { |
| 110 | margin: 0; | 111 | margin: 0; |
| 111 | font-size: 1.6rem; | 112 | font-size: var(--text-xl); |
| 112 | display: flex; | 113 | display: flex; |
| 113 | align-items: center; | 114 | align-items: center; |
| 114 | gap: 0.5rem; | 115 | gap: var(--space-sm); |
| 115 | .follow-with { | 116 | .follow-with { |
| 116 | opacity: 0.7; | 117 | opacity: var(--opacity-soft); |
| 117 | font-style: italic; | 118 | font-style: italic; |
| 118 | margin: 0; | 119 | margin: 0; |
| 119 | font-size: 0.85rem; | 120 | font-size: var(--text-sm); |
| 120 | font-weight: 400; | ||
| 121 | max-width: 100px; | 121 | max-width: 100px; |
| 122 | display: -webkit-box; | 122 | display: -webkit-box; |
| 123 | -webkit-line-clamp: 2; | 123 | -webkit-line-clamp: 2; |
| @@ -137,9 +137,7 @@ | |||
| 137 | 137 | ||
| 138 | .service-link { | 138 | .service-link { |
| 139 | max-width: 300px; | 139 | max-width: 300px; |
| 140 | text-overflow: ellipsis; | 140 | @include truncate; |
| 141 | overflow: hidden; | ||
| 142 | white-space: nowrap; | ||
| 143 | } | 141 | } |
| 144 | } | 142 | } |
| 145 | } | 143 | } |
web/src/components/things/WebsiteDetailedInfo.astro +42 −87
| @@ -74,7 +74,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; | |||
| 74 | <li class="all-bad"> | 74 | <li class="all-bad"> |
| 75 | <FontAwesome iconName="blacklistFound" /> {check} | 75 | <FontAwesome iconName="blacklistFound" /> {check} |
| 76 | </li> | 76 | </li> |
| 77 | ))} | 77 | ))} |
| 78 | </ul> | 78 | </ul> |
| 79 | </> | 79 | </> |
| 80 | ) : ( | 80 | ) : ( |
| @@ -113,7 +113,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; | |||
| 113 | <span class="val">{websiteInfo.server_details.asn}</span> | 113 | <span class="val">{websiteInfo.server_details.asn}</span> |
| 114 | </li> | 114 | </li> |
| 115 | </ul> | 115 | </ul> |
| 116 | 116 | ||
| 117 | {siteCategories.length > 0 && ( | 117 | {siteCategories.length > 0 && ( |
| 118 | <h4>Categories</h4> | 118 | <h4>Categories</h4> |
| 119 | <p class="explainer">Some proxies may block this service, as it falls into the following categories</p> | 119 | <p class="explainer">Some proxies may block this service, as it falls into the following categories</p> |
| @@ -144,7 +144,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; | |||
| 144 | <ul> | 144 | <ul> |
| 145 | { | 145 | { |
| 146 | websiteInfo.domain_blacklist.engines | 146 | websiteInfo.domain_blacklist.engines |
| 147 | .sort((a, b) => Number(b.detected) - Number(a.detected)) | 147 | .sort((a, b) => Number(b.detected) - Number(a.detected)) |
| 148 | .map((engine) => ( | 148 | .map((engine) => ( |
| 149 | engine.detected ? ( | 149 | engine.detected ? ( |
| 150 | <li class="blacklist-check blacklisted"> | 150 | <li class="blacklist-check blacklisted"> |
| @@ -162,109 +162,64 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`; | |||
| 162 | <h4>Website Preview</h4> | 162 | <h4>Website Preview</h4> |
| 163 | <img class="preview-shot" src={screenshotUrl} width="300" height="50" /> | 163 | <img class="preview-shot" src={screenshotUrl} width="300" height="50" /> |
| 164 | <div class="link-to-web-check"> | 164 | <div class="link-to-web-check"> |
| 165 | <Button url={`https://web-check.xyz/results/${url}`}> | 165 | <Button url={`https://web-check.xyz/check/${url}`}> |
| 166 | <span>View full report at</span><br /><b class="web-check-title">web-check.xyz</b> | 166 | <span>View full report at</span><br /><b class="web-check-title">web-check.xyz</b> |
| 167 | </Button> | 167 | </Button> |
| 168 | </div> | 168 | </div> |
| 169 | 169 | ||
| 170 | </div> | 170 | </div> |
| 171 | </div> | 171 | </div> |
| 172 | 172 | ||
| 173 | 173 | ||
| 174 | <style lang="scss"> | 174 | <style lang="scss"> |
| 175 | @use '../../styles/mixins' as *; | ||
| 175 | .website-info-wrapper { | 176 | .website-info-wrapper { |
| 176 | display: flex; | 177 | @include detail-info-layout; |
| 177 | flex-wrap: wrap; | ||
| 178 | justify-content: space-between; | ||
| 179 | gap: 1rem; | ||
| 180 | .left, .right { | ||
| 181 | width: calc(50% - 1rem); | ||
| 182 | @media screen and (max-width: 768px){ | ||
| 183 | width: 100%; | ||
| 184 | } | ||
| 185 | } | ||
| 186 | } | 178 | } |
| 187 | 179 | ||
| 188 | h4 { | 180 | @include detail-info-base; |
| 189 | margin: 1rem 0 0 0; | 181 | |
| 190 | font-size: 1.2rem; | ||
| 191 | } | ||
| 192 | p { | 182 | p { |
| 193 | margin: 0; | ||
| 194 | display: flex; | ||
| 195 | align-items: center; | ||
| 196 | gap: 0.25rem; | ||
| 197 | :global(svg) { | ||
| 198 | width: 1rem; | ||
| 199 | } | ||
| 200 | img { | ||
| 201 | border-radius: var(--curve-sm); | ||
| 202 | } | ||
| 203 | &.all-good { | 183 | &.all-good { |
| 204 | :global(svg) { | 184 | :global(svg) { |
| 205 | color: #35b969; | 185 | color: var(--rating-a); |
| 206 | } | 186 | } |
| 207 | } | 187 | } |
| 208 | &.all-bad { | 188 | &.all-bad { |
| 209 | :global(svg) { | 189 | :global(svg) { |
| 210 | color: #e3154f; | 190 | color: var(--rating-g); |
| 211 | } | 191 | } |
| 212 | } | 192 | } |
| 213 | } | 193 | } |
| 214 | li { | 194 | li { |
| 215 | :global(svg) { | 195 | :global(svg) { |
| 216 | width: 1rem; | 196 | width: var(--text-base); |
| 217 | } | 197 | } |
| 218 | 198 | ||
| 219 | &.not-blacklisted :global(svg) { color: #35b969; } | 199 | &.not-blacklisted :global(svg) { color: var(--rating-a); } |
| 220 | &.blacklisted :global(svg), &.all-bad :global(svg) { color: #e3154f; } | 200 | &.blacklisted :global(svg), &.all-bad :global(svg) { color: var(--rating-g); } |
| 221 | 201 | ||
| 222 | } | 202 | } |
| 223 | ul { | 203 | ul { |
| 224 | padding-left: 0; | ||
| 225 | list-style: none; | ||
| 226 | max-height: 300px; | ||
| 227 | overflow-y: auto; | ||
| 228 | overflow-x: hidden; | ||
| 229 | img { | ||
| 230 | border-radius: var(--curve-sm); | ||
| 231 | } | ||
| 232 | .list-item { | 204 | .list-item { |
| 233 | display: flex; | ||
| 234 | flex-direction: column; | ||
| 235 | margin-bottom: 0.5rem; | ||
| 236 | .date-block { | 205 | .date-block { |
| 237 | 206 | font-size: var(--text-sm); | |
| 238 | font-size: 0.8rem; | 207 | opacity: var(--opacity-soft); |
| 239 | opacity: 0.7; | ||
| 240 | } | 208 | } |
| 241 | } | 209 | } |
| 242 | &.list-table { | 210 | &.list-table li { |
| 243 | font-size: 0.9rem; | 211 | .lbl { |
| 244 | padding-left: 0; | 212 | font-weight: 500; |
| 245 | li { | ||
| 246 | display: flex; | ||
| 247 | justify-content: space-between; | ||
| 248 | padding: 0.1rem 0; | ||
| 249 | .lbl { | ||
| 250 | font-weight: 500; | ||
| 251 | } | ||
| 252 | &:not(:last-child) { | ||
| 253 | border-bottom: 1px solid #5f53f440; | ||
| 254 | } | ||
| 255 | } | 213 | } |
| 256 | } | 214 | } |
| 257 | } | 215 | } |
| 258 | 216 | ||
| 259 | .website-title, .website-description { | 217 | .website-title, .website-description { |
| 260 | font-size: 0.9rem; | 218 | font-size: var(--text-sm); |
| 261 | opacity: 0.8; | 219 | opacity: var(--opacity-subtle); |
| 262 | display: -webkit-box; | 220 | @include line-clamp(1); |
| 263 | -webkit-line-clamp: 1; | ||
| 264 | -webkit-box-orient: vertical; | ||
| 265 | overflow: hidden; | ||
| 266 | border-left: 2px solid var(--accent-3); | 221 | border-left: 2px solid var(--accent-3); |
| 267 | padding-left: 0.5rem; | 222 | padding-left: var(--space-sm); |
| 268 | } | 223 | } |
| 269 | .website-title { | 224 | .website-title { |
| 270 | font-weight: 500; | 225 | font-weight: 500; |
| @@ -274,26 +229,26 @@ h4 { | |||
| 274 | -webkit-line-clamp: 3; | 229 | -webkit-line-clamp: 3; |
| 275 | } | 230 | } |
| 276 | .explainer { | 231 | .explainer { |
| 277 | font-size: 0.8rem; | 232 | font-size: var(--text-sm); |
| 278 | opacity: 0.8; | 233 | opacity: var(--opacity-subtle); |
| 279 | font-style: italic; | 234 | font-style: italic; |
| 280 | } | 235 | } |
| 281 | 236 | ||
| 282 | .risk { | 237 | .risk { |
| 283 | font-size: 2rem; | 238 | font-size: var(--text-3xl); |
| 284 | width: fit-content; | 239 | width: fit-content; |
| 285 | padding: 0.5rem 0.5rem; | 240 | padding: var(--space-sm) var(--space-sm); |
| 286 | border-radius: var(--curve-lg); | 241 | border-radius: var(--curve-lg); |
| 287 | border: 4px solid; | 242 | border: 4px solid; |
| 288 | margin: 0.5rem 0; | 243 | margin: var(--space-sm) 0; |
| 289 | font-weight: bold; | 244 | font-weight: bold; |
| 290 | 245 | ||
| 291 | &.risk-unknown { --rating-color: grey; } | 246 | &.risk-unknown { --rating-color: var(--rating-unknown); } |
| 292 | &.risk-safe { --rating-color: #35b969; } | 247 | &.risk-safe { --rating-color: var(--rating-a); } |
| 293 | &.risk-moderately-safe { --rating-color: #c7cc22; } | 248 | &.risk-moderately-safe { --rating-color: var(--rating-c); } |
| 294 | &.risk-risky { --rating-color: #df8b1e; } | 249 | &.risk-risky { --rating-color: var(--rating-e); } |
| 295 | &.risk-dangerous { --rating-color: #df541e; } | 250 | &.risk-dangerous { --rating-color: var(--rating-f); } |
| 296 | &.risk-very-dangerous { --rating-color: #df1e1e; } | 251 | &.risk-very-dangerous { --rating-color: var(--rating-g); } |
| 297 | color: var(--rating-color); | 252 | color: var(--rating-color); |
| 298 | border-color: var(--rating-color); | 253 | border-color: var(--rating-color); |
| 299 | } | 254 | } |
| @@ -303,26 +258,26 @@ h4 { | |||
| 303 | height: auto; | 258 | height: auto; |
| 304 | border-radius: var(--curve-sm); | 259 | border-radius: var(--curve-sm); |
| 305 | border: 2px solid var(--accent-3); | 260 | border: 2px solid var(--accent-3); |
| 306 | margin: 0.5rem auto; | 261 | margin: var(--space-sm) auto; |
| 307 | display: flex; | 262 | display: flex; |
| 308 | } | 263 | } |
| 309 | 264 | ||
| 310 | .link-to-web-check { | 265 | .link-to-web-check { |
| 311 | width: 180px; | 266 | width: 180px; |
| 312 | float: right; | 267 | float: right; |
| 313 | font-size: 1rem; | 268 | font-size: var(--text-base); |
| 314 | transform: scale(0.8); | 269 | transform: scale(0.8); |
| 315 | opacity: 0.85; | 270 | opacity: var(--opacity-subtle); |
| 316 | transition: all 0.2s ease-in-out; | 271 | transition: var(--transition-normal); |
| 317 | &:hover { transform: scale(0.85); opacity: 1; } | 272 | &:hover { transform: scale(0.85); opacity: 1; } |
| 318 | :global(.button) { | 273 | :global(.button) { |
| 319 | background: var(--accent-3); | 274 | background: var(--accent-3); |
| 320 | } | 275 | } |
| 321 | span { | 276 | span { |
| 322 | font-size: 0.8rem; | 277 | font-size: var(--text-sm); |
| 323 | } | 278 | } |
| 324 | .web-check-title { | 279 | .web-check-title { |
| 325 | font-size: 1.4rem; | 280 | font-size: var(--text-lg); |
| 326 | } | 281 | } |
| 327 | } | 282 | } |
| 328 | 283 | ||
web/src/components/things/service-card.scss +22 −46
| @@ -1,9 +1,11 @@ | |||
| 1 | @use '../../styles/mixins' as *; | ||
| 2 | |||
| 1 | .service { | 3 | .service { |
| 2 | display: flex; | 4 | display: flex; |
| 3 | flex-direction: column; | 5 | flex-direction: column; |
| 4 | padding: 1rem; | 6 | padding: var(--space-md); |
| 5 | border: 2px solid var(--box-outline); | 7 | border: var(--border-heavy); |
| 6 | box-shadow: 6px 6px 0 var(--box-outline); | 8 | box-shadow: var(--shadow-lg); |
| 7 | background: var(--accent-fg); | 9 | background: var(--accent-fg); |
| 8 | border-radius: var(--curve-sm); | 10 | border-radius: var(--curve-sm); |
| 9 | position: relative; | 11 | position: relative; |
| @@ -12,86 +14,62 @@ | |||
| 12 | .service-head { | 14 | .service-head { |
| 13 | display: flex; | 15 | display: flex; |
| 14 | align-items: center; | 16 | align-items: center; |
| 15 | gap: 0.5rem; | 17 | gap: var(--space-sm); |
| 16 | h4 { | 18 | h4 { |
| 17 | margin: 0; | 19 | margin: 0; |
| 18 | font-size: 1.4rem; | 20 | font-size: var(--text-lg); |
| 19 | color: var(--foreground); | 21 | color: var(--foreground); |
| 22 | text-decoration: none; | ||
| 23 | @include underline-hover(var(--accent-3), 3px, 100%, 0.2s); | ||
| 20 | } | 24 | } |
| 21 | p { | 25 | p { |
| 22 | margin: 0; | 26 | margin: 0; |
| 23 | font-size: 1rem; | 27 | font-size: var(--text-base); |
| 24 | opacity: 0.7; | 28 | opacity: var(--opacity-soft); |
| 25 | } | 29 | } |
| 26 | a { | 30 | a { |
| 27 | text-decoration: none; | 31 | text-decoration: none; |
| 28 | } | 32 | } |
| 29 | h4 { | ||
| 30 | text-decoration: none; | ||
| 31 | position: relative; | ||
| 32 | &:after { | ||
| 33 | background: none repeat scroll 0 0 transparent; | ||
| 34 | bottom: 0; | ||
| 35 | content: ''; | ||
| 36 | display: block; | ||
| 37 | height: 3px; | ||
| 38 | left: 50%; | ||
| 39 | position: absolute; | ||
| 40 | background: var(--accent-3); | ||
| 41 | transition: | ||
| 42 | width 0.2s ease 0s, | ||
| 43 | left 0.2s ease 0s; | ||
| 44 | width: 0; | ||
| 45 | } | ||
| 46 | &:hover:after { | ||
| 47 | width: 100%; | ||
| 48 | left: 0; | ||
| 49 | } | ||
| 50 | } | ||
| 51 | } | 33 | } |
| 52 | 34 | ||
| 53 | .save-listing { | 35 | .save-listing { |
| 54 | position: absolute; | 36 | position: absolute; |
| 55 | top: 0.5rem; | 37 | top: var(--space-sm); |
| 56 | right: 0.5rem; | 38 | right: var(--space-sm); |
| 57 | } | 39 | } |
| 58 | 40 | ||
| 59 | .service-body { | 41 | .service-body { |
| 60 | display: flex; | 42 | display: flex; |
| 61 | align-items: center; | 43 | align-items: center; |
| 62 | gap: 0.5rem; | 44 | gap: var(--space-sm); |
| 63 | img { | 45 | img { |
| 64 | border-radius: var(--curve-sm); | 46 | border-radius: var(--curve-sm); |
| 65 | font-size: 0.6rem; | 47 | font-size: 0.6rem; |
| 66 | color: var(--accent); | 48 | color: var(--accent); |
| 67 | } | 49 | } |
| 68 | :global(p) { | 50 | :global(p) { |
| 69 | display: -webkit-box; | 51 | @include line-clamp(3); |
| 70 | -webkit-line-clamp: 3; | 52 | margin: var(--space-sm) 0; |
| 71 | -webkit-box-orient: vertical; | ||
| 72 | overflow: hidden; | ||
| 73 | margin: 0.5rem 0; | ||
| 74 | width: calc(100% - 2rem); | 53 | width: calc(100% - 2rem); |
| 75 | overflow-x: hidden; | ||
| 76 | } | 54 | } |
| 77 | } | 55 | } |
| 78 | 56 | ||
| 79 | .service-links { | 57 | .service-links { |
| 80 | display: flex; | 58 | display: flex; |
| 81 | gap: 0.5rem; | 59 | gap: var(--space-sm); |
| 82 | justify-content: space-between; | 60 | justify-content: space-between; |
| 83 | a { | 61 | a { |
| 84 | color: var(--accent-3); | 62 | color: var(--accent-3); |
| 85 | font-size: 0.8rem; | 63 | font-size: var(--text-sm); |
| 86 | display: inline-flex; | 64 | display: inline-flex; |
| 87 | align-items: center; | 65 | align-items: center; |
| 88 | gap: 0.25rem; | 66 | gap: var(--space-xs); |
| 89 | opacity: 0.85; | 67 | opacity: var(--opacity-subtle); |
| 90 | text-decoration: none; | 68 | text-decoration: none; |
| 91 | max-width: 50%; | 69 | max-width: 50%; |
| 92 | min-width: 25%; | 70 | min-width: 25%; |
| 93 | &:not(:last-child) { | 71 | &:not(:last-child) { |
| 94 | margin-right: 0.5rem; | 72 | margin-right: var(--space-sm); |
| 95 | } | 73 | } |
| 96 | &:hover { | 74 | &:hover { |
| 97 | text-decoration: underline; | 75 | text-decoration: underline; |
| @@ -103,9 +81,7 @@ | |||
| 103 | } | 81 | } |
| 104 | span { | 82 | span { |
| 105 | max-width: calc(100% - 1rem); | 83 | max-width: calc(100% - 1rem); |
| 106 | text-overflow: ellipsis; | 84 | @include truncate; |
| 107 | white-space: nowrap; | ||
| 108 | overflow: hidden; | ||
| 109 | } | 85 | } |
| 110 | } | 86 | } |
| 111 | } | 87 | } |
web/src/layouts/Layout.astro +116 −1
| @@ -154,7 +154,7 @@ const makeSearchLd = () => { | |||
| 154 | @import '../styles/typography.css'; | 154 | @import '../styles/typography.css'; |
| 155 | </style> | 155 | </style> |
| 156 | 156 | ||
| 157 | <style is:global> | 157 | <style is:global lang="scss"> |
| 158 | html { | 158 | html { |
| 159 | ::selection { | 159 | ::selection { |
| 160 | background: var(--accent); | 160 | background: var(--accent); |
| @@ -168,4 +168,119 @@ const makeSearchLd = () => { | |||
| 168 | color: var(--foreground); | 168 | color: var(--foreground); |
| 169 | background: var(--background); | 169 | background: var(--background); |
| 170 | } | 170 | } |
| 171 | |||
| 172 | :focus-visible { | ||
| 173 | outline: 2px solid var(--accent); | ||
| 174 | outline-offset: 2px; | ||
| 175 | } | ||
| 176 | |||
| 177 | .pagination-navigation { | ||
| 178 | display: flex; | ||
| 179 | justify-content: space-between; | ||
| 180 | align-items: center; | ||
| 181 | padding: var(--space-md) 0; | ||
| 182 | .button { | ||
| 183 | min-width: 120px; | ||
| 184 | width: fit-content; | ||
| 185 | padding: var(--space-xs) var(--space-md); | ||
| 186 | text-align: right; | ||
| 187 | &:first-child { | ||
| 188 | text-align: left; | ||
| 189 | } | ||
| 190 | p { | ||
| 191 | margin: 0; | ||
| 192 | font-weight: normal; | ||
| 193 | font-size: var(--text-base); | ||
| 194 | } | ||
| 195 | span { | ||
| 196 | font-size: var(--text-sm); | ||
| 197 | } | ||
| 198 | } | ||
| 199 | .nothing { | ||
| 200 | width: 120px; | ||
| 201 | } | ||
| 202 | .go-to-category { | ||
| 203 | color: var(--foreground); | ||
| 204 | font-size: var(--text-sm); | ||
| 205 | opacity: var(--opacity-dim); | ||
| 206 | @media (max-width: 768px) { | ||
| 207 | display: none; | ||
| 208 | } | ||
| 209 | } | ||
| 210 | } | ||
| 211 | |||
| 212 | .breadcrumbs { | ||
| 213 | opacity: var(--opacity-dim); | ||
| 214 | font-size: var(--text-sm); | ||
| 215 | position: absolute; | ||
| 216 | right: var(--space-md); | ||
| 217 | top: var(--space-md); | ||
| 218 | a { | ||
| 219 | color: var(--foreground); | ||
| 220 | transition: var(--transition-fast); | ||
| 221 | &:hover { | ||
| 222 | color: var(--accent); | ||
| 223 | } | ||
| 224 | } | ||
| 225 | @media (max-width: 768px) { | ||
| 226 | display: none; | ||
| 227 | } | ||
| 228 | } | ||
| 229 | |||
| 230 | .accent-heading { | ||
| 231 | font-size: var(--text-3xl); | ||
| 232 | margin: calc(var(--space-lg) * -1) 0 var(--space-md) | ||
| 233 | calc(var(--space-lg) * -1); | ||
| 234 | box-shadow: var(--shadow-lg); | ||
| 235 | background: var(--accent); | ||
| 236 | color: var(--accent-fg); | ||
| 237 | width: fit-content; | ||
| 238 | padding: var(--space-xs) var(--space-sm); | ||
| 239 | @media (max-width: 768px) { | ||
| 240 | margin: calc(var(--space-lg) * -1) auto var(--space-lg) auto; | ||
| 241 | } | ||
| 242 | } | ||
| 243 | |||
| 244 | .further-info, | ||
| 245 | .notable-mentions, | ||
| 246 | .word-of-warning, | ||
| 247 | .submit-alternative { | ||
| 248 | h3 { | ||
| 249 | font-size: var(--text-lg); | ||
| 250 | margin: var(--space-md) 0; | ||
| 251 | } | ||
| 252 | p { | ||
| 253 | font-size: var(--text-sm); | ||
| 254 | opacity: var(--opacity-soft); | ||
| 255 | strong { | ||
| 256 | font-weight: 500; | ||
| 257 | } | ||
| 258 | a { | ||
| 259 | color: var(--foreground); | ||
| 260 | transition: var(--transition-fast); | ||
| 261 | &:hover { | ||
| 262 | color: var(--accent); | ||
| 263 | } | ||
| 264 | } | ||
| 265 | } | ||
| 266 | strong { | ||
| 267 | font-weight: 500; | ||
| 268 | } | ||
| 269 | h4 { | ||
| 270 | font-size: var(--text-md); | ||
| 271 | margin: var(--space-sm) 0 0 0; | ||
| 272 | } | ||
| 273 | ul { | ||
| 274 | list-style: circle; | ||
| 275 | padding-left: var(--space-md); | ||
| 276 | font-size: var(--text-sm); | ||
| 277 | opacity: var(--opacity-soft); | ||
| 278 | li { | ||
| 279 | margin-bottom: var(--space-xs); | ||
| 280 | p { | ||
| 281 | display: inline; | ||
| 282 | } | ||
| 283 | } | ||
| 284 | } | ||
| 285 | } | ||
| 171 | </style> | 286 | </style> |
web/src/pages/404.astro +8 −8
| @@ -49,21 +49,21 @@ import Buton from '@components/form/Button.astro'; | |||
| 49 | .what-happened { | 49 | .what-happened { |
| 50 | font-size: 4rem; | 50 | font-size: 4rem; |
| 51 | margin: 0; | 51 | margin: 0; |
| 52 | opacity: 0.8; | 52 | opacity: var(--opacity-subtle); |
| 53 | } | 53 | } |
| 54 | .why-happened { | 54 | .why-happened { |
| 55 | font-size: 1.5rem; | 55 | font-size: 1.5rem; |
| 56 | text-align: center; | 56 | text-align: center; |
| 57 | margin-bottom: 2rem; | 57 | margin-bottom: var(--space-lg); |
| 58 | opacity: 0.6; | 58 | opacity: var(--opacity-muted); |
| 59 | } | 59 | } |
| 60 | .back-you-go-then :global(a) { | 60 | .back-you-go-then :global(a) { |
| 61 | font-size: 2rem; | 61 | font-size: var(--text-3xl); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | .other-places { | 64 | .other-places { |
| 65 | opacity: 0.8; | 65 | opacity: var(--opacity-subtle); |
| 66 | margin: 2rem auto 1rem auto; | 66 | margin: var(--space-lg) auto var(--space-md) auto; |
| 67 | text-align: center; | 67 | text-align: center; |
| 68 | &:hover { | 68 | &:hover { |
| 69 | opacity: 1; | 69 | opacity: 1; |
| @@ -72,11 +72,11 @@ import Buton from '@components/form/Button.astro'; | |||
| 72 | list-style: none; | 72 | list-style: none; |
| 73 | display: flex; | 73 | display: flex; |
| 74 | padding: 0; | 74 | padding: 0; |
| 75 | gap: 0.5rem; | 75 | gap: var(--space-sm); |
| 76 | li { | 76 | li { |
| 77 | &:not(:last-child) { | 77 | &:not(:last-child) { |
| 78 | border-right: 1px solid var(--accent); | 78 | border-right: 1px solid var(--accent); |
| 79 | padding-right: 0.5rem; | 79 | padding-right: var(--space-sm); |
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | li a { | 82 | li a { |
web/src/pages/[...listing].astro +61 −145
| @@ -180,8 +180,15 @@ const websiteData = | |||
| 180 | // Filter changelog entries relevant to this service | 180 | // Filter changelog entries relevant to this service |
| 181 | const serviceHistory = await fetchChangelog().then(({ entries }) => { | 181 | const serviceHistory = await fetchChangelog().then(({ entries }) => { |
| 182 | const isMatch = (c: { name: string; category: string; section: string }) => | 182 | const isMatch = (c: { name: string; category: string; section: string }) => |
| 183 | c.name === name && c.category === categoryName && c.section === parentSection.name; | 183 | c.name === name && |
| 184 | const results: Array<{ date: string; type: 'added' | 'removed' | 'modified'; fields?: string[]; pr?: import('@utils/fetch-changelog').ChangelogPr | null }> = []; | 184 | c.category === categoryName && |
| 185 | c.section === parentSection.name; | ||
| 186 | const results: Array<{ | ||
| 187 | date: string; | ||
| 188 | type: 'added' | 'removed' | 'modified'; | ||
| 189 | fields?: string[]; | ||
| 190 | pr?: import('@utils/fetch-changelog').ChangelogPr | null; | ||
| 191 | }> = []; | ||
| 185 | for (const e of entries) { | 192 | for (const e of entries) { |
| 186 | const s = e.changes?.services; | 193 | const s = e.changes?.services; |
| 187 | const added = (s?.added || []).find(isMatch); | 194 | const added = (s?.added || []).find(isMatch); |
| @@ -189,7 +196,13 @@ const serviceHistory = await fetchChangelog().then(({ entries }) => { | |||
| 189 | const modified = (s?.modified || []).find(isMatch); | 196 | const modified = (s?.modified || []).find(isMatch); |
| 190 | if (added) results.push({ date: e.date, type: 'added', pr: e.pr }); | 197 | if (added) results.push({ date: e.date, type: 'added', pr: e.pr }); |
| 191 | else if (removed) results.push({ date: e.date, type: 'removed', pr: e.pr }); | 198 | else if (removed) results.push({ date: e.date, type: 'removed', pr: e.pr }); |
| 192 | else if (modified) results.push({ date: e.date, type: 'modified', fields: modified.fields, pr: e.pr }); | 199 | else if (modified) |
| 200 | results.push({ | ||
| 201 | date: e.date, | ||
| 202 | type: 'modified', | ||
| 203 | fields: modified.fields, | ||
| 204 | pr: e.pr, | ||
| 205 | }); | ||
| 193 | } | 206 | } |
| 194 | return results; | 207 | return results; |
| 195 | }); | 208 | }); |
| @@ -333,8 +346,8 @@ const getApiEndpoint = () => { | |||
| 333 | <li> | 346 | <li> |
| 334 | <b>Web info:</b> | 347 | <b>Web info:</b> |
| 335 | <a | 348 | <a |
| 336 | href={`https://web-check.xyz/results/${formatLink(url)}`} | 349 | href={`https://web-check.xyz/check/${formatLink(url)}`} |
| 337 | >{`web-check.xyz/results/${formatLink(url).split('/')[0]}`}</a> | 350 | >{`web-check.xyz/check/${formatLink(url).split('/')[0]}`}</a> |
| 338 | </li> | 351 | </li> |
| 339 | ) | 352 | ) |
| 340 | } | 353 | } |
| @@ -563,48 +576,48 @@ const getApiEndpoint = () => { | |||
| 563 | 576 | ||
| 564 | <style lang="scss"> | 577 | <style lang="scss"> |
| 565 | main { | 578 | main { |
| 566 | margin: 2rem auto; | 579 | margin: var(--space-lg) auto; |
| 567 | padding: 1rem; | 580 | padding: var(--space-md); |
| 568 | width: 1200px; | 581 | width: var(--width-container); |
| 569 | max-width: calc(100% - 5rem); | 582 | max-width: var(--width-container-max); |
| 570 | position: relative; | 583 | position: relative; |
| 571 | @media (max-width: 768px) { | 584 | @media (max-width: 768px) { |
| 572 | max-width: 95%; | 585 | max-width: 95%; |
| 573 | padding: 0.5rem; | 586 | padding: var(--space-sm); |
| 574 | margin: 0 auto; | 587 | margin: 0 auto; |
| 575 | } | 588 | } |
| 576 | } | 589 | } |
| 577 | 590 | ||
| 578 | section { | 591 | section { |
| 579 | margin: 1rem 0 4rem 0; | 592 | margin: var(--space-md) 0 var(--space-2xl) 0; |
| 580 | padding: 1rem; | 593 | padding: var(--space-md); |
| 581 | min-height: 8rem; | 594 | min-height: 8rem; |
| 582 | position: relative; | 595 | position: relative; |
| 583 | border: 2px solid var(--box-outline); | 596 | border: var(--border-heavy); |
| 584 | box-shadow: 6px 6px 0 var(--box-outline); | 597 | box-shadow: var(--shadow-lg); |
| 585 | background: var(--accent-fg); | 598 | background: var(--accent-fg); |
| 586 | } | 599 | } |
| 587 | 600 | ||
| 588 | p { | 601 | p { |
| 589 | margin: 0.25rem 0 0.5rem 0; | 602 | margin: var(--space-xs) 0 var(--space-sm) 0; |
| 590 | } | 603 | } |
| 591 | 604 | ||
| 592 | h3 { | 605 | h3 { |
| 593 | font-size: 2rem; | 606 | font-size: var(--text-3xl); |
| 594 | margin: -2rem 0 1rem -2rem; | 607 | margin: -2rem 0 var(--space-md) -2rem; |
| 595 | box-shadow: 6px 6px 0 var(--box-outline); | 608 | box-shadow: var(--shadow-lg); |
| 596 | background: var(--accent); | 609 | background: var(--accent); |
| 597 | color: var(--accent-fg); | 610 | color: var(--accent-fg); |
| 598 | width: fit-content; | 611 | width: fit-content; |
| 599 | padding: 0.25rem 0.5rem; | 612 | padding: var(--space-xs) var(--space-sm); |
| 600 | @media (max-width: 768px) { | 613 | @media (max-width: 768px) { |
| 601 | margin: -2rem auto 2rem auto; | 614 | margin: -2rem auto var(--space-lg) auto; |
| 602 | } | 615 | } |
| 603 | } | 616 | } |
| 604 | 617 | ||
| 605 | .service-head { | 618 | .service-head { |
| 606 | h2 { | 619 | h2 { |
| 607 | font-size: 3rem; | 620 | font-size: var(--text-4xl); |
| 608 | margin: 0; | 621 | margin: 0; |
| 609 | @media (max-width: 768px) { | 622 | @media (max-width: 768px) { |
| 610 | text-align: center; | 623 | text-align: center; |
| @@ -613,13 +626,13 @@ const getApiEndpoint = () => { | |||
| 613 | .url-wrap { | 626 | .url-wrap { |
| 614 | display: flex; | 627 | display: flex; |
| 615 | align-items: center; | 628 | align-items: center; |
| 616 | gap: 0.5rem; | 629 | gap: var(--space-sm); |
| 617 | a { | 630 | a { |
| 618 | font-size: 1.2rem; | 631 | font-size: var(--text-md); |
| 619 | } | 632 | } |
| 620 | .follow-with { | 633 | .follow-with { |
| 621 | font-style: italic; | 634 | font-style: italic; |
| 622 | opacity: 0.6; | 635 | opacity: var(--opacity-muted); |
| 623 | } | 636 | } |
| 624 | @media (max-width: 768px) { | 637 | @media (max-width: 768px) { |
| 625 | flex-direction: column; | 638 | flex-direction: column; |
| @@ -627,60 +640,41 @@ const getApiEndpoint = () => { | |||
| 627 | } | 640 | } |
| 628 | } | 641 | } |
| 629 | 642 | ||
| 630 | .breadcrumbs { | ||
| 631 | opacity: 0.5; | ||
| 632 | font-size: 0.8rem; | ||
| 633 | position: absolute; | ||
| 634 | right: 1rem; | ||
| 635 | top: 1rem; | ||
| 636 | a { | ||
| 637 | color: var(--foreground); | ||
| 638 | transition: all 0.15s ease-in-out; | ||
| 639 | |||
| 640 | &:hover { | ||
| 641 | color: var(--accent); | ||
| 642 | } | ||
| 643 | } | ||
| 644 | @media (max-width: 768px) { | ||
| 645 | display: none; | ||
| 646 | } | ||
| 647 | } | ||
| 648 | |||
| 649 | .save-listing { | 643 | .save-listing { |
| 650 | position: absolute; | 644 | position: absolute; |
| 651 | top: 3rem; | 645 | top: var(--space-xl); |
| 652 | right: 1rem; | 646 | right: var(--space-md); |
| 653 | } | 647 | } |
| 654 | 648 | ||
| 655 | h4 { | 649 | h4 { |
| 656 | font-size: 1.4rem; | 650 | font-size: var(--text-lg); |
| 657 | margin-bottom: 0; | 651 | margin-bottom: 0; |
| 658 | } | 652 | } |
| 659 | 653 | ||
| 660 | .intro { | 654 | .intro { |
| 661 | font-size: 1.2rem; | 655 | font-size: var(--text-md); |
| 662 | font-style: italic; | 656 | font-style: italic; |
| 663 | opacity: 0.9; | 657 | opacity: 0.9; |
| 664 | display: flex; | 658 | display: flex; |
| 665 | gap: 0.5rem; | 659 | gap: var(--space-sm); |
| 666 | @media (max-width: 768px) { | 660 | @media (max-width: 768px) { |
| 667 | flex-direction: column; | 661 | flex-direction: column; |
| 668 | } | 662 | } |
| 669 | .service-icon { | 663 | .service-icon { |
| 670 | border-radius: var(--curve-md); | 664 | border-radius: var(--curve-md); |
| 671 | margin-top: 1rem; | 665 | margin-top: var(--space-md); |
| 672 | @media (max-width: 768px) { | 666 | @media (max-width: 768px) { |
| 673 | margin: 1rem auto 0 auto; | 667 | margin: var(--space-md) auto 0 auto; |
| 674 | } | 668 | } |
| 675 | } | 669 | } |
| 676 | ul { | 670 | ul { |
| 677 | padding-left: 1rem; | 671 | padding-left: var(--space-md); |
| 678 | list-style: circle; | 672 | list-style: circle; |
| 679 | font-style: normal; | 673 | font-style: normal; |
| 680 | font-size: 1rem; | 674 | font-size: var(--text-base); |
| 681 | margin-top: 0; | 675 | margin-top: 0; |
| 682 | b { | 676 | b { |
| 683 | font-size: 1rem; | 677 | font-size: var(--text-base); |
| 684 | font-weight: 400; | 678 | font-weight: 400; |
| 685 | min-width: 100px; | 679 | min-width: 100px; |
| 686 | display: inline-block; | 680 | display: inline-block; |
| @@ -692,93 +686,16 @@ const getApiEndpoint = () => { | |||
| 692 | } | 686 | } |
| 693 | } | 687 | } |
| 694 | 688 | ||
| 695 | .pagination-navigation { | ||
| 696 | display: flex; | ||
| 697 | justify-content: space-between; | ||
| 698 | align-items: center; | ||
| 699 | padding: 1rem 0; | ||
| 700 | :global(.button) { | ||
| 701 | min-width: 120px; | ||
| 702 | width: fit-content; | ||
| 703 | padding: 0.25rem 1rem; | ||
| 704 | text-align: right; | ||
| 705 | &:first-child { | ||
| 706 | text-align: left; | ||
| 707 | } | ||
| 708 | p { | ||
| 709 | margin: 0; | ||
| 710 | font-weight: normal; | ||
| 711 | font-size: 1rem; | ||
| 712 | } | ||
| 713 | span { | ||
| 714 | font-size: 0.8rem; | ||
| 715 | } | ||
| 716 | } | ||
| 717 | .nothing { | ||
| 718 | width: 120px; | ||
| 719 | } | ||
| 720 | .go-to-category { | ||
| 721 | color: var(--foreground); | ||
| 722 | font-size: 0.8rem; | ||
| 723 | opacity: 0.5; | ||
| 724 | @media (max-width: 768px) { | ||
| 725 | display: none; | ||
| 726 | } | ||
| 727 | } | ||
| 728 | } | ||
| 729 | |||
| 730 | .further-info, | ||
| 731 | .notable-mentions, | ||
| 732 | .word-of-warning { | ||
| 733 | h3 { | ||
| 734 | font-size: 1.4rem; | ||
| 735 | margin: 1rem 0; | ||
| 736 | } | ||
| 737 | :global(p) { | ||
| 738 | font-size: 0.9rem; | ||
| 739 | opacity: 0.7; | ||
| 740 | :global(strong) { | ||
| 741 | font-weight: 500; | ||
| 742 | } | ||
| 743 | :global(a) { | ||
| 744 | color: var(--foreground); | ||
| 745 | transition: all 0.15s ease-in-out; | ||
| 746 | &:hover { | ||
| 747 | color: var(--accent); | ||
| 748 | } | ||
| 749 | } | ||
| 750 | } | ||
| 751 | :global(strong) { | ||
| 752 | font-weight: 500; | ||
| 753 | } | ||
| 754 | :global(h4) { | ||
| 755 | font-size: 1.2rem; | ||
| 756 | margin: 0.5rem 0 0 0; | ||
| 757 | } | ||
| 758 | :global(ul) { | ||
| 759 | list-style: circle; | ||
| 760 | padding-left: 1rem; | ||
| 761 | font-size: 0.9rem; | ||
| 762 | opacity: 0.7; | ||
| 763 | li { | ||
| 764 | margin-bottom: 0.25rem; | ||
| 765 | :global(p) { | ||
| 766 | display: inline; | ||
| 767 | } | ||
| 768 | } | ||
| 769 | } | ||
| 770 | } | ||
| 771 | |||
| 772 | pre { | 689 | pre { |
| 773 | a { | 690 | a { |
| 774 | text-decoration: none; | 691 | text-decoration: none; |
| 775 | color: var(--foreground); | 692 | color: var(--foreground); |
| 776 | code { | 693 | code { |
| 777 | background: #acabb782; | 694 | background: var(--code-bg); |
| 778 | padding: 0.2rem 0.4rem; | 695 | padding: 0.2rem 0.4rem; |
| 779 | border-radius: var(--curve-sm); | 696 | border-radius: var(--curve-sm); |
| 780 | font-family: Courier New; | 697 | font-family: var(--font-code); |
| 781 | font-size: 0.9rem; | 698 | font-size: var(--text-sm); |
| 782 | @media (max-width: 768px) { | 699 | @media (max-width: 768px) { |
| 783 | white-space: break-spaces; | 700 | white-space: break-spaces; |
| 784 | } | 701 | } |
| @@ -788,14 +705,14 @@ const getApiEndpoint = () => { | |||
| 788 | 705 | ||
| 789 | .social-wrap { | 706 | .social-wrap { |
| 790 | display: flex; | 707 | display: flex; |
| 791 | gap: 1rem; | 708 | gap: var(--space-md); |
| 792 | flex-wrap: wrap; | 709 | flex-wrap: wrap; |
| 793 | justify-content: space-between; | 710 | justify-content: space-between; |
| 794 | } | 711 | } |
| 795 | 712 | ||
| 796 | .highlights { | 713 | .highlights { |
| 797 | display: flex; | 714 | display: flex; |
| 798 | gap: 1rem; | 715 | gap: var(--space-md); |
| 799 | flex-wrap: wrap; | 716 | flex-wrap: wrap; |
| 800 | align-items: center; | 717 | align-items: center; |
| 801 | justify-content: end; | 718 | justify-content: end; |
| @@ -804,21 +721,20 @@ const getApiEndpoint = () => { | |||
| 804 | .warning { | 721 | .warning { |
| 805 | display: flex; | 722 | display: flex; |
| 806 | align-items: center; | 723 | align-items: center; |
| 807 | // justify-content: center; | 724 | gap: var(--space-xs); |
| 808 | gap: 0.25rem; | 725 | opacity: var(--opacity-muted); |
| 809 | opacity: 0.6; | 726 | font-size: var(--text-sm); |
| 810 | font-size: 0.9rem; | 727 | padding: var(--space-sm) 0; |
| 811 | padding: 0.5rem 0; | ||
| 812 | :global(svg) { | 728 | :global(svg) { |
| 813 | color: var(--foreground); | 729 | color: var(--foreground); |
| 814 | width: 1.2rem; | 730 | width: var(--text-md); |
| 815 | height: 1.2rem; | 731 | height: var(--text-md); |
| 816 | } | 732 | } |
| 817 | a { | 733 | a { |
| 818 | text-decoration: none; | 734 | text-decoration: none; |
| 819 | color: var(--foreground); | 735 | color: var(--foreground); |
| 820 | display: flex; | 736 | display: flex; |
| 821 | gap: 0.25rem; | 737 | gap: var(--space-xs); |
| 822 | &:hover { | 738 | &:hover { |
| 823 | color: var(--accent-3); | 739 | color: var(--accent-3); |
| 824 | :global(svg) { | 740 | :global(svg) { |
| @@ -834,9 +750,9 @@ const getApiEndpoint = () => { | |||
| 834 | } | 750 | } |
| 835 | } | 751 | } |
| 836 | .great { | 752 | .great { |
| 837 | color: #007930; // var(--success); | 753 | color: var(--success-muted); |
| 838 | :global(svg) { | 754 | :global(svg) { |
| 839 | color: #007930; // var(--success); | 755 | color: var(--success-muted); |
| 840 | } | 756 | } |
| 841 | } | 757 | } |
| 842 | } | 758 | } |
web/src/pages/[...section].astro +8 −98
| @@ -251,126 +251,36 @@ const { previous, next } = makePaginationLinks(); | |||
| 251 | <style lang="scss"> | 251 | <style lang="scss"> |
| 252 | 252 | ||
| 253 | section { | 253 | section { |
| 254 | padding-bottom: 1rem; | 254 | padding-bottom: var(--space-md); |
| 255 | &:not(:last-child) { | 255 | &:not(:last-child) { |
| 256 | border-bottom: 2px solid var(--accent-3); | 256 | border-bottom: 2px solid var(--accent-3); |
| 257 | } | 257 | } |
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | h2 { | 260 | h2 { |
| 261 | font-size: 2rem; | 261 | font-size: var(--text-3xl); |
| 262 | margin: -2rem 0 2rem -2rem; | 262 | margin: -2rem 0 var(--space-lg) -2rem; |
| 263 | box-shadow: 6px 6px 0 var(--box-outline); | 263 | box-shadow: var(--shadow-lg); |
| 264 | background: var(--accent); | 264 | background: var(--accent); |
| 265 | color: var(--accent-fg); | 265 | color: var(--accent-fg); |
| 266 | width: fit-content; | 266 | width: fit-content; |
| 267 | padding: 0.25rem 0.5rem; | 267 | padding: var(--space-xs) var(--space-sm); |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | .pagination-navigation { | ||
| 271 | display: flex; | ||
| 272 | justify-content: space-between; | ||
| 273 | align-items: center; | ||
| 274 | padding: 1rem 0; | ||
| 275 | :global(.button) { | ||
| 276 | min-width: 120px; | ||
| 277 | width: fit-content; | ||
| 278 | padding: 0.25rem 1rem; | ||
| 279 | text-align: right; | ||
| 280 | &:first-child { text-align: left; } | ||
| 281 | p { | ||
| 282 | margin: 0; | ||
| 283 | font-weight: normal; | ||
| 284 | font-size: 1rem; | ||
| 285 | } | ||
| 286 | span { | ||
| 287 | font-size: 0.8rem; | ||
| 288 | } | ||
| 289 | |||
| 290 | } | ||
| 291 | .nothing { | ||
| 292 | width: 120px; | ||
| 293 | } | ||
| 294 | .go-to-category { | ||
| 295 | color: var(--foreground); | ||
| 296 | font-size: 0.8rem; | ||
| 297 | opacity: 0.5; | ||
| 298 | @media (max-width: 768px) { | ||
| 299 | display: none; | ||
| 300 | } | ||
| 301 | } | ||
| 302 | } | ||
| 303 | 270 | ||
| 304 | .intro { | 271 | .intro { |
| 305 | font-style: italic; | 272 | font-style: italic; |
| 306 | opacity: 0.7; | 273 | opacity: var(--opacity-soft); |
| 307 | } | 274 | } |
| 308 | 275 | ||
| 309 | 276 | ||
| 310 | .further-info, .notable-mentions, .word-of-warning, .submit-alternative { | ||
| 311 | h3 { | ||
| 312 | font-size: 1.4rem; | ||
| 313 | margin: 1rem 0; | ||
| 314 | } | ||
| 315 | :global(p) { | ||
| 316 | font-size: 0.9rem; | ||
| 317 | opacity: 0.7; | ||
| 318 | :global(strong) { | ||
| 319 | font-weight: 500; | ||
| 320 | } | ||
| 321 | :global(a) { | ||
| 322 | color: var(--foreground); | ||
| 323 | transition: all 0.15s ease-in-out; | ||
| 324 | &:hover { | ||
| 325 | color: var(--accent); | ||
| 326 | } | ||
| 327 | } | ||
| 328 | } | ||
| 329 | :global(strong) { | ||
| 330 | font-weight: 500; | ||
| 331 | } | ||
| 332 | :global(h4) { | ||
| 333 | font-size: 1.2rem; | ||
| 334 | margin: 0.5rem 0 0 0; | ||
| 335 | } | ||
| 336 | :global(ul) { | ||
| 337 | list-style: circle; | ||
| 338 | padding-left: 1rem; | ||
| 339 | font-size: 0.9rem; | ||
| 340 | opacity: 0.7; | ||
| 341 | li { | ||
| 342 | margin-bottom: 0.25rem; | ||
| 343 | :global(p) { | ||
| 344 | display: inline; | ||
| 345 | } | ||
| 346 | } | ||
| 347 | } | ||
| 348 | } | ||
| 349 | .about-this-page { | 277 | .about-this-page { |
| 350 | summary { | 278 | summary { |
| 351 | display: none; | 279 | display: none; |
| 352 | } | 280 | } |
| 353 | font-size: 0.9rem; | 281 | font-size: var(--text-sm); |
| 354 | opacity: 0.7; | 282 | opacity: var(--opacity-soft); |
| 355 | } | 283 | } |
| 356 | 284 | ||
| 357 | .breadcrumbs { | ||
| 358 | opacity: 0.5; | ||
| 359 | font-size: 0.8rem; | ||
| 360 | position: absolute; | ||
| 361 | right: 1rem; | ||
| 362 | top: 1rem; | ||
| 363 | a { | ||
| 364 | color: var(--foreground); | ||
| 365 | transition: all 0.15s ease-in-out; | ||
| 366 | |||
| 367 | &:hover { | ||
| 368 | color: var(--accent); | ||
| 369 | } | ||
| 370 | } | ||
| 371 | @media(max-width: 768px) { | ||
| 372 | display: none; | ||
| 373 | } | ||
| 374 | } | ||
| 375 | 285 | ||
| 376 | </style> | 286 | </style> |
web/src/pages/[category].astro −53
| @@ -109,56 +109,3 @@ const { previous, next } = makePaginationLinks(); | |||
| 109 | </div> | 109 | </div> |
| 110 | </Main> | 110 | </Main> |
| 111 | </Layout> | 111 | </Layout> |
| 112 | |||
| 113 | <style lang="scss"> | ||
| 114 | .pagination-navigation { | ||
| 115 | display: flex; | ||
| 116 | justify-content: space-between; | ||
| 117 | align-items: center; | ||
| 118 | padding: 1rem 0; | ||
| 119 | :global(.button) { | ||
| 120 | min-width: 120px; | ||
| 121 | width: fit-content; | ||
| 122 | padding: 0.25rem 1rem; | ||
| 123 | text-align: right; | ||
| 124 | &:first-child { | ||
| 125 | text-align: left; | ||
| 126 | } | ||
| 127 | p { | ||
| 128 | margin: 0; | ||
| 129 | font-weight: normal; | ||
| 130 | font-size: 1rem; | ||
| 131 | } | ||
| 132 | span { | ||
| 133 | font-size: 0.8rem; | ||
| 134 | } | ||
| 135 | } | ||
| 136 | .nothing { | ||
| 137 | width: 120px; | ||
| 138 | } | ||
| 139 | .go-to-category { | ||
| 140 | color: var(--foreground); | ||
| 141 | font-size: 0.8rem; | ||
| 142 | opacity: 0.5; | ||
| 143 | } | ||
| 144 | } | ||
| 145 | |||
| 146 | .breadcrumbs { | ||
| 147 | opacity: 0.5; | ||
| 148 | font-size: 0.8rem; | ||
| 149 | position: absolute; | ||
| 150 | right: 1rem; | ||
| 151 | top: 1rem; | ||
| 152 | a { | ||
| 153 | color: var(--foreground); | ||
| 154 | transition: all 0.15s ease-in-out; | ||
| 155 | |||
| 156 | &:hover { | ||
| 157 | color: var(--accent); | ||
| 158 | } | ||
| 159 | } | ||
| 160 | @media (max-width: 768px) { | ||
| 161 | display: none; | ||
| 162 | } | ||
| 163 | } | ||
| 164 | </style> | ||
web/src/pages/about.astro +40 −42
| @@ -310,15 +310,16 @@ const licenseContent = async () => { | |||
| 310 | </Layout> | 310 | </Layout> |
| 311 | 311 | ||
| 312 | <style lang="scss"> | 312 | <style lang="scss"> |
| 313 | @use '../styles/mixins' as *; | ||
| 313 | h2 { | 314 | h2 { |
| 314 | font-size: 2rem; | 315 | font-size: var(--text-3xl); |
| 315 | margin: 1rem 0 0.5rem 0; | 316 | margin: var(--space-md) 0 var(--space-sm) 0; |
| 316 | } | 317 | } |
| 317 | p { | 318 | p { |
| 318 | font-size: 1.2rem; | 319 | font-size: var(--text-md); |
| 319 | } | 320 | } |
| 320 | hr { | 321 | hr { |
| 321 | margin: 2rem 0; | 322 | margin: var(--space-lg) 0; |
| 322 | border: 0; | 323 | border: 0; |
| 323 | border-top: 2px solid var(--accent); | 324 | border-top: 2px solid var(--accent); |
| 324 | &:nth-child(6) { | 325 | &:nth-child(6) { |
| @@ -330,59 +331,59 @@ const licenseContent = async () => { | |||
| 330 | } | 331 | } |
| 331 | 332 | ||
| 332 | h3 { | 333 | h3 { |
| 333 | font-size: 1.6rem; | 334 | font-size: var(--text-xl); |
| 334 | } | 335 | } |
| 335 | 336 | ||
| 336 | .software-requirements, | 337 | .software-requirements, |
| 337 | .about-the-data { | 338 | .about-the-data { |
| 338 | :global(p) { | 339 | :global(p) { |
| 339 | font-size: 1.2rem; | 340 | font-size: var(--text-md); |
| 340 | margin: 0 0 0.5rem 0; | 341 | margin: 0 0 var(--space-sm) 0; |
| 341 | } | 342 | } |
| 342 | :global(ul) { | 343 | :global(ul) { |
| 343 | padding-left: 0.5rem; | 344 | padding-left: var(--space-sm); |
| 344 | list-style: none; | 345 | list-style: none; |
| 345 | font-size: 1.2rem; | 346 | font-size: var(--text-md); |
| 346 | :global(li ul) { | 347 | :global(li ul) { |
| 347 | padding: 0 0 0.5rem 1rem; | 348 | padding: 0 0 var(--space-sm) var(--space-md); |
| 348 | list-style: circle; | 349 | list-style: circle; |
| 349 | } | 350 | } |
| 350 | } | 351 | } |
| 351 | :global(h3) { | 352 | :global(h3) { |
| 352 | font-size: 1.6rem; | 353 | font-size: var(--text-xl); |
| 353 | margin-bottom: 0; | 354 | margin-bottom: 0; |
| 354 | } | 355 | } |
| 355 | :global(strong) { | 356 | :global(strong) { |
| 356 | font-weight: 500; | 357 | font-weight: 500; |
| 357 | } | 358 | } |
| 358 | :global(small) { | 359 | :global(small) { |
| 359 | font-size: 0.8rem; | 360 | font-size: var(--text-sm); |
| 360 | opacity: 0.7; | 361 | opacity: var(--opacity-soft); |
| 361 | :global(a) { | 362 | :global(a) { |
| 362 | color: var(--accent-3); | 363 | color: var(--accent-3); |
| 363 | } | 364 | } |
| 364 | } | 365 | } |
| 365 | :global(code) { | 366 | :global(code) { |
| 366 | font-family: 'Courier New', Courier, monospace; | 367 | font-family: var(--font-code); |
| 367 | background: #acabb782; | 368 | background: var(--code-bg); |
| 368 | padding: 0.2rem 0.4rem; | 369 | padding: 0.2rem 0.4rem; |
| 369 | border-radius: var(--curve-sm); | 370 | border-radius: var(--curve-sm); |
| 370 | font-size: 0.9rem; | 371 | font-size: var(--text-sm); |
| 371 | } | 372 | } |
| 372 | } | 373 | } |
| 373 | 374 | ||
| 374 | .user-list { | 375 | .user-list { |
| 375 | display: flex; | 376 | display: flex; |
| 376 | flex-wrap: wrap; | 377 | flex-wrap: wrap; |
| 377 | gap: 0.25rem; | 378 | gap: var(--space-xs); |
| 378 | margin: 2rem 0; | 379 | margin: var(--space-lg) 0; |
| 379 | .user { | 380 | .user { |
| 380 | width: 6rem; | 381 | width: 6rem; |
| 381 | overflow: hidden; | 382 | overflow: hidden; |
| 382 | text-align: center; | 383 | text-align: center; |
| 383 | padding: 0.5rem; | 384 | padding: var(--space-sm); |
| 384 | border-radius: var(--curve-sm); | 385 | border-radius: var(--curve-sm); |
| 385 | transition: background 0.2s ease-in-out; | 386 | transition: var(--transition-normal); |
| 386 | &:hover { | 387 | &:hover { |
| 387 | background: var(--background-form); | 388 | background: var(--background-form); |
| 388 | } | 389 | } |
| @@ -392,19 +393,16 @@ const licenseContent = async () => { | |||
| 392 | border-radius: var(--curve-md); | 393 | border-radius: var(--curve-md); |
| 393 | } | 394 | } |
| 394 | p { | 395 | p { |
| 395 | margin: 0.5rem auto 0 auto; | 396 | margin: var(--space-sm) auto 0 auto; |
| 396 | font-size: 1rem; | 397 | font-size: var(--text-base); |
| 397 | display: -webkit-box; | 398 | @include line-clamp(1); |
| 398 | -webkit-line-clamp: 1; | ||
| 399 | -webkit-box-orient: vertical; | ||
| 400 | overflow: hidden; | ||
| 401 | } | 399 | } |
| 402 | } | 400 | } |
| 403 | } | 401 | } |
| 404 | 402 | ||
| 405 | .fallback-img { | 403 | .fallback-img { |
| 406 | max-width: 100%; | 404 | max-width: 100%; |
| 407 | margin: 2rem 0; | 405 | margin: var(--space-lg) 0; |
| 408 | border-radius: var(--curve-sm); | 406 | border-radius: var(--curve-sm); |
| 409 | } | 407 | } |
| 410 | 408 | ||
| @@ -414,33 +412,33 @@ const licenseContent = async () => { | |||
| 414 | background: var(--background-form); | 412 | background: var(--background-form); |
| 415 | width: fit-content; | 413 | width: fit-content; |
| 416 | border-radius: var(--curve-sm); | 414 | border-radius: var(--curve-sm); |
| 417 | padding: 0.5rem; | 415 | padding: var(--space-sm); |
| 418 | font-size: 0.7rem; | 416 | font-size: var(--text-xs); |
| 419 | font-family: 'Lekton', monospace; | 417 | font-family: var(--font-subtitle); |
| 420 | max-width: 100vw; | 418 | max-width: 100vw; |
| 421 | white-space: pre-line; | 419 | white-space: pre-line; |
| 422 | } | 420 | } |
| 423 | 421 | ||
| 424 | .help-list { | 422 | .help-list { |
| 425 | padding-left: 1rem; | 423 | padding-left: var(--space-md); |
| 426 | list-style: circle; | 424 | list-style: circle; |
| 427 | font-size: 1.1rem; | 425 | font-size: var(--text-md); |
| 428 | } | 426 | } |
| 429 | 427 | ||
| 430 | .author { | 428 | .author { |
| 431 | p { | 429 | p { |
| 432 | margin: 1rem 0 0 0; | 430 | margin: var(--space-md) 0 0 0; |
| 433 | } | 431 | } |
| 434 | ul { | 432 | ul { |
| 435 | padding-left: 1.5rem; | 433 | padding-left: 1.5rem; |
| 436 | list-style: circle; | 434 | list-style: circle; |
| 437 | margin-bottom: 0; | 435 | margin-bottom: 0; |
| 438 | li { | 436 | li { |
| 439 | font-size: 1.1rem; | 437 | font-size: var(--text-md); |
| 440 | } | 438 | } |
| 441 | } | 439 | } |
| 442 | .about { | 440 | .about { |
| 443 | font-size: 1.4rem; | 441 | font-size: var(--text-lg); |
| 444 | font-style: italic; | 442 | font-style: italic; |
| 445 | font-weight: 300; | 443 | font-weight: 300; |
| 446 | color: var(--accent-3); | 444 | color: var(--accent-3); |
| @@ -450,24 +448,24 @@ const licenseContent = async () => { | |||
| 450 | } | 448 | } |
| 451 | 449 | ||
| 452 | small { | 450 | small { |
| 453 | font-size: 1rem; | 451 | font-size: var(--text-base); |
| 454 | margin: 1rem 0; | 452 | margin: var(--space-md) 0; |
| 455 | } | 453 | } |
| 456 | .pic-and-socials { | 454 | .pic-and-socials { |
| 457 | float: right; | 455 | float: right; |
| 458 | img { | 456 | img { |
| 459 | margin: 0.5rem 1rem; | 457 | margin: var(--space-sm) var(--space-md); |
| 460 | border-radius: var(--curve-md); | 458 | border-radius: var(--curve-md); |
| 461 | border: 2px solid var(--box-outline); | 459 | border: var(--border-heavy); |
| 462 | box-shadow: 4px 4px 0 var(--box-outline); | 460 | box-shadow: var(--shadow-md); |
| 463 | } | 461 | } |
| 464 | .socials { | 462 | .socials { |
| 465 | display: flex; | 463 | display: flex; |
| 466 | margin: 0.5rem 1rem; | 464 | margin: var(--space-sm) var(--space-md); |
| 467 | justify-content: space-between; | 465 | justify-content: space-between; |
| 468 | :global(a svg) { | 466 | :global(a svg) { |
| 469 | color: var(--foreground); | 467 | color: var(--foreground); |
| 470 | transition: color 0.2s ease-in-out; | 468 | transition: var(--transition-normal); |
| 471 | &:hover { | 469 | &:hover { |
| 472 | color: var(--color); | 470 | color: var(--color); |
| 473 | } | 471 | } |
web/src/pages/all.astro +36 −37
| @@ -112,10 +112,10 @@ const toggleSidebar = () => { | |||
| 112 | <style lang="scss"> | 112 | <style lang="scss"> |
| 113 | 113 | ||
| 114 | main { | 114 | main { |
| 115 | margin: 0 auto 2rem auto; | 115 | margin: 0 auto var(--space-lg) auto; |
| 116 | padding: 1rem; | 116 | padding: var(--space-md); |
| 117 | width: 1200px; | 117 | width: var(--width-container); |
| 118 | max-width: calc(100% - 5rem); | 118 | max-width: var(--width-container-max); |
| 119 | 119 | ||
| 120 | display: flex; | 120 | display: flex; |
| 121 | justify-content: space-between; | 121 | justify-content: space-between; |
| @@ -134,12 +134,11 @@ main { | |||
| 134 | width: 600px; | 134 | width: 600px; |
| 135 | margin: 0 auto; | 135 | margin: 0 auto; |
| 136 | background: var(--background-form); | 136 | background: var(--background-form); |
| 137 | padding: 1rem; | 137 | padding: var(--space-md); |
| 138 | border-radius: var(--curve-sm); | 138 | border-radius: var(--curve-sm); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | #toggle-sidebar { | 141 | #toggle-sidebar { |
| 142 | // float: right; | ||
| 143 | background: none; | 142 | background: none; |
| 144 | outline: none; | 143 | outline: none; |
| 145 | border: none; | 144 | border: none; |
| @@ -154,13 +153,13 @@ main { | |||
| 154 | .sidebar { | 153 | .sidebar { |
| 155 | border-radius: var(--curve-md); | 154 | border-radius: var(--curve-md); |
| 156 | .sidebar-title { | 155 | .sidebar-title { |
| 157 | font-size: 1.6rem; | 156 | font-size: var(--text-xl); |
| 158 | background: var(--accent-3); | 157 | background: var(--accent-3); |
| 159 | color: var(--accent-fg); | 158 | color: var(--accent-fg); |
| 160 | border: 2px solid var(--box-outline); | 159 | border: var(--border-heavy); |
| 161 | box-shadow: 6px 6px 0 var(--box-outline); | 160 | box-shadow: var(--shadow-lg); |
| 162 | border-radius: var(--curve-sm); | 161 | border-radius: var(--curve-sm); |
| 163 | margin: 1rem auto; | 162 | margin: var(--space-md) auto; |
| 164 | text-align: center; | 163 | text-align: center; |
| 165 | } | 164 | } |
| 166 | ul { | 165 | ul { |
| @@ -170,7 +169,7 @@ main { | |||
| 170 | a { | 169 | a { |
| 171 | text-decoration: none; | 170 | text-decoration: none; |
| 172 | color: var(--foreground); | 171 | color: var(--foreground); |
| 173 | transition: all 0.18s ease-in-out; | 172 | transition: var(--transition-fast); |
| 174 | &:hover { | 173 | &:hover { |
| 175 | color: var(--accent); | 174 | color: var(--accent); |
| 176 | opacity: 1; | 175 | opacity: 1; |
| @@ -181,61 +180,61 @@ main { | |||
| 181 | } | 180 | } |
| 182 | .top-level { | 181 | .top-level { |
| 183 | font-weight: bold; | 182 | font-weight: bold; |
| 184 | margin-top: 0.5rem; | 183 | margin-top: var(--space-sm); |
| 185 | &:hover a { | 184 | &:hover a { |
| 186 | color: var(--accent-3); | 185 | color: var(--accent-3); |
| 187 | } | 186 | } |
| 188 | } | 187 | } |
| 189 | } | 188 | } |
| 190 | } | 189 | } |
| 191 | 190 | ||
| 192 | .section { | 191 | .section { |
| 193 | display: grid; | 192 | display: grid; |
| 194 | grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | 193 | grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); |
| 195 | gap: 1rem; | 194 | gap: var(--space-md); |
| 196 | width: 100%; | 195 | width: 100%; |
| 197 | margin: 0 auto; | 196 | margin: 0 auto; |
| 198 | } | 197 | } |
| 199 | 198 | ||
| 200 | .card { | 199 | .card { |
| 201 | margin: 2rem auto 5rem auto; | 200 | margin: var(--space-lg) auto 5rem auto; |
| 202 | padding: 0 2rem; | 201 | padding: 0 var(--space-lg); |
| 203 | border: 2px solid var(--box-outline); | 202 | border: var(--border-heavy); |
| 204 | box-shadow: 6px 6px 0 var(--box-outline); | 203 | box-shadow: var(--shadow-lg); |
| 205 | background: var(--accent-fg); | 204 | background: var(--accent-fg); |
| 206 | } | 205 | } |
| 207 | 206 | ||
| 208 | h2 { | 207 | h2 { |
| 209 | margin: 2rem auto 0 auto; | 208 | margin: var(--space-lg) auto 0 auto; |
| 210 | font-size: 3rem; | 209 | font-size: var(--text-4xl); |
| 211 | text-align: center; | 210 | text-align: center; |
| 212 | opacity: 0.6; | 211 | opacity: var(--opacity-muted); |
| 213 | display: flex; | 212 | display: flex; |
| 214 | justify-content: center; | 213 | justify-content: center; |
| 215 | align-items: center; | 214 | align-items: center; |
| 216 | gap: 1rem; | 215 | gap: var(--space-md); |
| 217 | a { | 216 | a { |
| 218 | color: var(--accent-3); | 217 | color: var(--accent-3); |
| 219 | text-decoration: none; | 218 | text-decoration: none; |
| 220 | } | 219 | } |
| 221 | :global(svg) { | 220 | :global(svg) { |
| 222 | width: 3rem; | 221 | width: var(--text-4xl); |
| 223 | height: 3rem; | 222 | height: var(--text-4xl); |
| 224 | color: var(--accent-3); | 223 | color: var(--accent-3); |
| 225 | } | 224 | } |
| 226 | } | 225 | } |
| 227 | 226 | ||
| 228 | h3 { | 227 | h3 { |
| 229 | font-size: 2rem; | 228 | font-size: var(--text-3xl); |
| 230 | margin: 2rem 0 1rem 0; | 229 | margin: var(--space-lg) 0 var(--space-md) 0; |
| 231 | box-shadow: 6px 6px 0 var(--box-outline); | 230 | box-shadow: var(--shadow-lg); |
| 232 | background: var(--accent); | 231 | background: var(--accent); |
| 233 | color: var(--accent-fg); | 232 | color: var(--accent-fg); |
| 234 | width: fit-content; | 233 | width: fit-content; |
| 235 | padding: 0.25rem 0.5rem; | 234 | padding: var(--space-xs) var(--space-sm); |
| 236 | a { | 235 | a { |
| 237 | color: var(--accent-fg); | 236 | color: var(--accent-fg); |
| 238 | font-family: "Lekton", sans-serif; | 237 | font-family: var(--font-subtitle); |
| 239 | text-decoration: none; | 238 | text-decoration: none; |
| 240 | } | 239 | } |
| 241 | } | 240 | } |
| @@ -244,22 +243,22 @@ h3 { | |||
| 244 | width: 100%; | 243 | width: 100%; |
| 245 | margin: 0 auto; | 244 | margin: 0 auto; |
| 246 | background: var(--accent-fg); | 245 | background: var(--accent-fg); |
| 247 | border: 2px solid var(--box-outline); | 246 | border: var(--border-heavy); |
| 248 | box-shadow: 6px 6px 0 var(--box-outline); | 247 | box-shadow: var(--shadow-lg); |
| 249 | border-radius: var(--curve-sm); | 248 | border-radius: var(--curve-sm); |
| 250 | display: flex; | 249 | display: flex; |
| 251 | 250 | ||
| 252 | p { | 251 | p { |
| 253 | font-size: 1.2rem; | 252 | font-size: var(--text-md); |
| 254 | opacity: 0.8; | 253 | opacity: var(--opacity-subtle); |
| 255 | font-style: italic; | 254 | font-style: italic; |
| 256 | text-align: center; | 255 | text-align: center; |
| 257 | margin: 4rem auto; | 256 | margin: var(--space-2xl) auto; |
| 258 | } | 257 | } |
| 259 | .quick-submit { | 258 | .quick-submit { |
| 260 | margin-top: 1rem; | 259 | margin-top: var(--space-md); |
| 261 | font-size: 0.8rem; | 260 | font-size: var(--text-sm); |
| 262 | opacity: 0.8; | 261 | opacity: var(--opacity-subtle); |
| 263 | } | 262 | } |
| 264 | } | 263 | } |
| 265 | 264 | ||
web/src/pages/browse.astro +23 −23
| @@ -121,34 +121,34 @@ const categories: Category[] = (await fetchData())?.categories; | |||
| 121 | 121 | ||
| 122 | <style lang="scss"> | 122 | <style lang="scss"> |
| 123 | .head-wrap { | 123 | .head-wrap { |
| 124 | margin: 1rem auto 0 auto; | 124 | margin: var(--space-md) auto 0 auto; |
| 125 | width: 85vw; | 125 | width: 85vw; |
| 126 | display: flex; | 126 | display: flex; |
| 127 | align-items: center; | 127 | align-items: center; |
| 128 | justify-content: space-between; | 128 | justify-content: space-between; |
| 129 | flex-wrap: wrap; | 129 | flex-wrap: wrap; |
| 130 | .press-enter { | 130 | .press-enter { |
| 131 | margin: 0.5rem 0 0 0; | 131 | margin: var(--space-sm) 0 0 0; |
| 132 | opacity: 0.5; | 132 | opacity: var(--opacity-dim); |
| 133 | visibility: hidden; | 133 | visibility: hidden; |
| 134 | } | 134 | } |
| 135 | input { | 135 | input { |
| 136 | padding: 0.5rem; | 136 | padding: var(--space-sm); |
| 137 | border: 2px solid var(--box-outline); | 137 | border: var(--border-heavy); |
| 138 | border-radius: var(--curve-sm); | 138 | border-radius: var(--curve-sm); |
| 139 | font-size: 1.2rem; | 139 | font-size: var(--text-md); |
| 140 | box-shadow: 3px 3px 0 var(--box-outline); | 140 | box-shadow: var(--shadow-sm); |
| 141 | color: var(--accent-3); | 141 | color: var(--accent-3); |
| 142 | background: var(--background-form); | 142 | background: var(--background-form); |
| 143 | &:focus { | 143 | &:focus { |
| 144 | outline: none; | 144 | outline: none; |
| 145 | box-shadow: 4px 4px 0 var(--box-outline); | 145 | box-shadow: var(--shadow-sm-hover); |
| 146 | } | 146 | } |
| 147 | } | 147 | } |
| 148 | h2 { | 148 | h2 { |
| 149 | font-family: 'Lekton', sans-serif; | 149 | font-family: var(--font-subtitle); |
| 150 | font-weight: bold; | 150 | font-weight: bold; |
| 151 | font-size: 3rem; | 151 | font-size: var(--text-4xl); |
| 152 | margin: 0; | 152 | margin: 0; |
| 153 | color: var(--accent-3); | 153 | color: var(--accent-3); |
| 154 | } | 154 | } |
| @@ -165,52 +165,52 @@ const categories: Category[] = (await fetchData())?.categories; | |||
| 165 | .no-results { | 165 | .no-results { |
| 166 | text-align: center; | 166 | text-align: center; |
| 167 | width: 85vw; | 167 | width: 85vw; |
| 168 | margin: 2rem auto 4rem auto; | 168 | margin: var(--space-lg) auto var(--space-2xl) auto; |
| 169 | display: none; | 169 | display: none; |
| 170 | .zilch { | 170 | .zilch { |
| 171 | font-size: 2rem; | 171 | font-size: var(--text-3xl); |
| 172 | color: var(--accent-3); | 172 | color: var(--accent-3); |
| 173 | opacity: 0.5; | 173 | opacity: var(--opacity-dim); |
| 174 | font-weight: bold; | 174 | font-weight: bold; |
| 175 | } | 175 | } |
| 176 | p { | 176 | p { |
| 177 | margin: 0.25rem; | 177 | margin: var(--space-xs); |
| 178 | } | 178 | } |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | .categories { | 181 | .categories { |
| 182 | columns: 6 300px; | 182 | columns: 6 300px; |
| 183 | column-gap: 1rem; | 183 | column-gap: var(--space-md); |
| 184 | margin: 0 auto; | 184 | margin: 0 auto; |
| 185 | width: 85vw; | 185 | width: 85vw; |
| 186 | max-width: 1800px; | 186 | max-width: 1800px; |
| 187 | padding: 1rem 0 2rem 0; | 187 | padding: var(--space-md) 0 var(--space-lg) 0; |
| 188 | @media (max-width: 768px) { | 188 | @media (max-width: 768px) { |
| 189 | padding: 0; | 189 | padding: 0; |
| 190 | width: 95%; | 190 | width: 95%; |
| 191 | } | 191 | } |
| 192 | .category { | 192 | .category { |
| 193 | background: var(--accent-fg); | 193 | background: var(--accent-fg); |
| 194 | border: 2px solid var(--box-outline); | 194 | border: var(--border-heavy); |
| 195 | border-radius: var(--curve-sm); | 195 | border-radius: var(--curve-sm); |
| 196 | box-shadow: 4px 4px 0 var(--box-outline); | 196 | box-shadow: var(--shadow-md); |
| 197 | padding: 1rem; | 197 | padding: var(--space-md); |
| 198 | width: 85%; | 198 | width: 85%; |
| 199 | display: inline-flex; | 199 | display: inline-flex; |
| 200 | flex-direction: column; | 200 | flex-direction: column; |
| 201 | margin: 1rem; | 201 | margin: var(--space-md); |
| 202 | .category-title { | 202 | .category-title { |
| 203 | text-decoration: none; | 203 | text-decoration: none; |
| 204 | color: var(--foreground); | 204 | color: var(--foreground); |
| 205 | } | 205 | } |
| 206 | h3 { | 206 | h3 { |
| 207 | font-family: 'Lekton', sans-serif; | 207 | font-family: var(--font-subtitle); |
| 208 | font-weight: bold; | 208 | font-weight: bold; |
| 209 | margin: 0; | 209 | margin: 0; |
| 210 | font-size: 1.8rem; | 210 | font-size: var(--text-2xl); |
| 211 | } | 211 | } |
| 212 | .sections { | 212 | .sections { |
| 213 | padding-left: 1rem; | 213 | padding-left: var(--space-md); |
| 214 | .section { | 214 | .section { |
| 215 | a { | 215 | a { |
| 216 | text-decoration: none; | 216 | text-decoration: none; |
web/src/pages/changelog.astro +4 −4
| @@ -27,15 +27,15 @@ const changelog = await fetchChangelog(); | |||
| 27 | 27 | ||
| 28 | <style lang="scss"> | 28 | <style lang="scss"> |
| 29 | h2 { | 29 | h2 { |
| 30 | font-size: 2rem; | 30 | font-size: var(--text-3xl); |
| 31 | margin: 0; | 31 | margin: 0; |
| 32 | } | 32 | } |
| 33 | p { | 33 | p { |
| 34 | font-size: 1.2rem; | 34 | font-size: var(--text-md); |
| 35 | margin: 0 0 1rem 0; | 35 | margin: 0 0 var(--space-md) 0; |
| 36 | } | 36 | } |
| 37 | .fallback { | 37 | .fallback { |
| 38 | text-align: center; | 38 | text-align: center; |
| 39 | opacity: 0.6; | 39 | opacity: var(--opacity-muted); |
| 40 | } | 40 | } |
| 41 | </style> | 41 | </style> |
web/src/pages/index.astro +22 −40
| @@ -80,11 +80,12 @@ const description = | |||
| 80 | </Layout> | 80 | </Layout> |
| 81 | 81 | ||
| 82 | <style lang="scss"> | 82 | <style lang="scss"> |
| 83 | @use '../styles/mixins' as *; | ||
| 83 | main { | 84 | main { |
| 84 | margin: auto; | 85 | margin: auto; |
| 85 | padding: 1rem; | 86 | padding: var(--space-md); |
| 86 | width: 1100px; | 87 | width: var(--width-container); |
| 87 | max-width: calc(100% - 5rem); | 88 | max-width: var(--width-container-max); |
| 88 | font-size: 20px; | 89 | font-size: 20px; |
| 89 | line-height: 1.6; | 90 | line-height: 1.6; |
| 90 | @media (max-width: 768px) { | 91 | @media (max-width: 768px) { |
| @@ -95,69 +96,50 @@ const description = | |||
| 95 | width: 16rem; | 96 | width: 16rem; |
| 96 | margin: 0 auto; | 97 | margin: 0 auto; |
| 97 | span { | 98 | span { |
| 98 | opacity: 0.5; | 99 | opacity: var(--opacity-dim); |
| 99 | font-size: 1rem; | 100 | font-size: var(--text-base); |
| 100 | } | 101 | } |
| 101 | } | 102 | } |
| 102 | } | 103 | } |
| 103 | h2 { | 104 | h2 { |
| 104 | font-size: 3rem; | 105 | font-size: var(--text-4xl); |
| 105 | color: var(--accent-3); | 106 | color: var(--accent-3); |
| 106 | font-family: 'Lekton', sans-serif; | 107 | font-family: var(--font-subtitle); |
| 107 | text-align: center; | 108 | text-align: center; |
| 108 | margin: 3rem 0 1rem 0; | 109 | margin: var(--space-xl) 0 var(--space-md) 0; |
| 109 | a { | 110 | a { |
| 110 | text-decoration: none; | 111 | text-decoration: none; |
| 111 | color: var(--accent-3); | 112 | color: var(--accent-3); |
| 112 | font-family: 'Lekton', sans-serif; | 113 | @include underline-hover(var(--accent)); |
| 113 | position: relative; | ||
| 114 | &:after { | ||
| 115 | background: none repeat scroll 0 0 transparent; | ||
| 116 | bottom: 0; | ||
| 117 | content: ''; | ||
| 118 | display: block; | ||
| 119 | height: 3px; | ||
| 120 | left: 50%; | ||
| 121 | position: absolute; | ||
| 122 | background: var(--accent); | ||
| 123 | transition: | ||
| 124 | width 0.3s ease 0s, | ||
| 125 | left 0.3s ease 0s; | ||
| 126 | width: 0; | ||
| 127 | } | ||
| 128 | &:hover:after { | ||
| 129 | width: 100%; | ||
| 130 | left: 0; | ||
| 131 | } | ||
| 132 | } | 114 | } |
| 133 | } | 115 | } |
| 134 | 116 | ||
| 135 | .about-summary { | 117 | .about-summary { |
| 136 | background: var(--accent-fg); | 118 | background: var(--accent-fg); |
| 137 | border: 2px solid var(--box-outline); | 119 | border: var(--border-heavy); |
| 138 | border-radius: var(--curve-sm); | 120 | border-radius: var(--curve-sm); |
| 139 | box-shadow: 4px 4px 0 var(--box-outline); | 121 | box-shadow: var(--shadow-md); |
| 140 | padding: 1rem; | 122 | padding: var(--space-md); |
| 141 | width: 85%; | 123 | width: 85%; |
| 142 | margin: 0 auto; | 124 | margin: 0 auto; |
| 143 | } | 125 | } |
| 144 | 126 | ||
| 145 | .categories { | 127 | .categories { |
| 146 | columns: 6 300px; | 128 | columns: 6 300px; |
| 147 | column-gap: 1rem; | 129 | column-gap: var(--space-md); |
| 148 | padding: 0; | 130 | padding: 0; |
| 149 | .category { | 131 | .category { |
| 150 | background: var(--accent-fg); | 132 | background: var(--accent-fg); |
| 151 | border: 2px solid var(--box-outline); | 133 | border: var(--border-heavy); |
| 152 | border-radius: var(--curve-sm); | 134 | border-radius: var(--curve-sm); |
| 153 | box-shadow: 4px 4px 0 var(--box-outline); | 135 | box-shadow: var(--shadow-md); |
| 154 | padding: 1rem; | 136 | padding: var(--space-md); |
| 155 | width: 85%; | 137 | width: 85%; |
| 156 | display: inline-flex; | 138 | display: inline-flex; |
| 157 | flex-direction: column; | 139 | flex-direction: column; |
| 158 | margin: 1rem; | 140 | margin: var(--space-md); |
| 159 | @media (max-width: 768px) { | 141 | @media (max-width: 768px) { |
| 160 | margin: 1rem 0; | 142 | margin: var(--space-md) 0; |
| 161 | width: 90%; | 143 | width: 90%; |
| 162 | } | 144 | } |
| 163 | .category-title { | 145 | .category-title { |
| @@ -165,13 +147,13 @@ const description = | |||
| 165 | color: var(--foreground); | 147 | color: var(--foreground); |
| 166 | } | 148 | } |
| 167 | h3 { | 149 | h3 { |
| 168 | font-family: 'Lekton', sans-serif; | 150 | font-family: var(--font-subtitle); |
| 169 | font-weight: bold; | 151 | font-weight: bold; |
| 170 | margin: 0; | 152 | margin: 0; |
| 171 | font-size: 1.8rem; | 153 | font-size: var(--text-2xl); |
| 172 | } | 154 | } |
| 173 | .sections { | 155 | .sections { |
| 174 | padding-left: 1rem; | 156 | padding-left: var(--space-md); |
| 175 | .section { | 157 | .section { |
| 176 | a { | 158 | a { |
| 177 | text-decoration: none; | 159 | text-decoration: none; |
web/src/pages/inventory/[...inventoryId].astro +13 −13
| @@ -60,32 +60,32 @@ if (serviceList.error) { | |||
| 60 | 60 | ||
| 61 | <style lang="scss"> | 61 | <style lang="scss"> |
| 62 | main { | 62 | main { |
| 63 | margin: 0 auto 2rem auto; | 63 | margin: 0 auto var(--space-lg) auto; |
| 64 | padding: 1rem; | 64 | padding: var(--space-md); |
| 65 | width: 1200px; | 65 | width: var(--width-container); |
| 66 | max-width: calc(100% - 5rem); | 66 | max-width: var(--width-container-max); |
| 67 | display: flex; | 67 | display: flex; |
| 68 | justify-content: space-between; | 68 | justify-content: space-between; |
| 69 | flex-direction: column; | 69 | flex-direction: column; |
| 70 | min-height: calc(100vh - 12rem); | 70 | min-height: calc(100vh - 12rem); |
| 71 | font-size: 1.25rem; | 71 | font-size: var(--text-md); |
| 72 | h2 { | 72 | h2 { |
| 73 | font-family: 'Lekton', sans-serif; | 73 | font-family: var(--font-subtitle); |
| 74 | font-weight: bold; | 74 | font-weight: bold; |
| 75 | font-size: 3rem; | 75 | font-size: var(--text-4xl); |
| 76 | margin: 0; | 76 | margin: 0; |
| 77 | color: var(--accent-3); | 77 | color: var(--accent-3); |
| 78 | } | 78 | } |
| 79 | .buttons { | 79 | .buttons { |
| 80 | margin: 1rem auto; | 80 | margin: var(--space-md) auto; |
| 81 | display: flex; | 81 | display: flex; |
| 82 | flex-direction: column; | 82 | flex-direction: column; |
| 83 | } | 83 | } |
| 84 | .error { | 84 | .error { |
| 85 | text-align: center; | 85 | text-align: center; |
| 86 | font-size: 1.4rem; | 86 | font-size: var(--text-lg); |
| 87 | .oh-deary-me { | 87 | .oh-deary-me { |
| 88 | font-size: 1.8rem; | 88 | font-size: var(--text-2xl); |
| 89 | margin: 0.2rem auto; | 89 | margin: 0.2rem auto; |
| 90 | } | 90 | } |
| 91 | .what-the-fuck-happened { | 91 | .what-the-fuck-happened { |
| @@ -93,9 +93,9 @@ if (serviceList.error) { | |||
| 93 | margin: 0.2rem auto; | 93 | margin: 0.2rem auto; |
| 94 | } | 94 | } |
| 95 | .what-next { | 95 | .what-next { |
| 96 | font-size: 1rem; | 96 | font-size: var(--text-base); |
| 97 | margin-top: 3rem; | 97 | margin-top: var(--space-xl); |
| 98 | opacity: 0.6; | 98 | opacity: var(--opacity-muted); |
| 99 | a { | 99 | a { |
| 100 | color: var(--foreground); | 100 | color: var(--foreground); |
| 101 | } | 101 | } |
web/src/pages/inventory/index.astro +9 −9
| @@ -28,30 +28,30 @@ const categories = (await fetchData())?.categories || ([] as Category[]); | |||
| 28 | 28 | ||
| 29 | <style lang="scss"> | 29 | <style lang="scss"> |
| 30 | main { | 30 | main { |
| 31 | margin: 0 auto 2rem auto; | 31 | margin: 0 auto var(--space-lg) auto; |
| 32 | padding: 1rem; | 32 | padding: var(--space-md); |
| 33 | width: 1200px; | 33 | width: var(--width-container); |
| 34 | max-width: calc(100% - 5rem); | 34 | max-width: var(--width-container-max); |
| 35 | display: flex; | 35 | display: flex; |
| 36 | justify-content: space-between; | 36 | justify-content: space-between; |
| 37 | flex-direction: column; | 37 | flex-direction: column; |
| 38 | min-height: calc(100vh - 12rem); | 38 | min-height: calc(100vh - 12rem); |
| 39 | font-size: 1.25rem; | 39 | font-size: var(--text-md); |
| 40 | .top-row { | 40 | .top-row { |
| 41 | display: flex; | 41 | display: flex; |
| 42 | justify-content: space-between; | 42 | justify-content: space-between; |
| 43 | align-items: center; | 43 | align-items: center; |
| 44 | margin-bottom: 1rem; | 44 | margin-bottom: var(--space-md); |
| 45 | } | 45 | } |
| 46 | h2 { | 46 | h2 { |
| 47 | font-family: 'Lekton', sans-serif; | 47 | font-family: var(--font-subtitle); |
| 48 | font-weight: bold; | 48 | font-weight: bold; |
| 49 | font-size: 3rem; | 49 | font-size: var(--text-4xl); |
| 50 | margin: 0; | 50 | margin: 0; |
| 51 | color: var(--accent-3); | 51 | color: var(--accent-3); |
| 52 | } | 52 | } |
| 53 | .buttons { | 53 | .buttons { |
| 54 | margin: 1rem auto; | 54 | margin: var(--space-md) auto; |
| 55 | display: flex; | 55 | display: flex; |
| 56 | flex-direction: column; | 56 | flex-direction: column; |
| 57 | } | 57 | } |
web/src/pages/search/[...searchTerm].astro +26 −27
| @@ -114,18 +114,17 @@ const beer = putResultsIntoGroups(); | |||
| 114 | section { | 114 | section { |
| 115 | display: flex; | 115 | display: flex; |
| 116 | flex-direction: column; | 116 | flex-direction: column; |
| 117 | padding: 1rem; | 117 | margin: var(--space-lg) auto; |
| 118 | margin: 2rem auto; | 118 | padding: var(--space-md); |
| 119 | padding: 1rem; | ||
| 120 | width: calc(100% - 2rem); | 119 | width: calc(100% - 2rem); |
| 121 | max-width: 1100px; | 120 | max-width: var(--width-container); |
| 122 | 121 | ||
| 123 | h1 { | 122 | h1 { |
| 124 | font-size: 3rem; | 123 | font-size: var(--text-4xl); |
| 125 | color: var(--accent-3); | 124 | color: var(--accent-3); |
| 126 | font-family: 'Lekton', sans-serif; | 125 | font-family: var(--font-subtitle); |
| 127 | text-align: center; | 126 | text-align: center; |
| 128 | margin: 1rem 0; | 127 | margin: var(--space-md) 0; |
| 129 | } | 128 | } |
| 130 | } | 129 | } |
| 131 | 130 | ||
| @@ -133,35 +132,35 @@ const beer = putResultsIntoGroups(); | |||
| 133 | padding: 0; | 132 | padding: 0; |
| 134 | width: 80vw; | 133 | width: 80vw; |
| 135 | max-width: 900px; | 134 | max-width: 900px; |
| 136 | margin: 1rem auto 0 auto; | 135 | margin: var(--space-md) auto 0 auto; |
| 137 | h3 { | 136 | h3 { |
| 138 | margin: 0; | 137 | margin: 0; |
| 139 | color: var(--accent-3); | 138 | color: var(--accent-3); |
| 140 | font-size: 1.6rem; | 139 | font-size: var(--text-xl); |
| 141 | } | 140 | } |
| 142 | p { | 141 | p { |
| 143 | margin: 0; | 142 | margin: 0; |
| 144 | opacity: 0.6; | 143 | opacity: var(--opacity-muted); |
| 145 | } | 144 | } |
| 146 | } | 145 | } |
| 147 | 146 | ||
| 148 | .results { | 147 | .results { |
| 149 | margin: 0 auto 2rem auto; | 148 | margin: 0 auto var(--space-lg) auto; |
| 150 | padding: 1rem; | 149 | padding: var(--space-md); |
| 151 | width: calc(100% - 2rem); | 150 | width: calc(100% - 2rem); |
| 152 | max-width: 1100px; | 151 | max-width: var(--width-container); |
| 153 | columns: 6 300px; | 152 | columns: 6 300px; |
| 154 | column-gap: 1rem; | 153 | column-gap: var(--space-md); |
| 155 | .category { | 154 | .category { |
| 156 | padding: 1rem; | 155 | padding: var(--space-md); |
| 157 | box-shadow: 4px 4px 0 var(--box-outline); | 156 | box-shadow: var(--shadow-md); |
| 158 | background: var(--accent-fg); | 157 | background: var(--accent-fg); |
| 159 | border: 2px solid var(--box-outline); | 158 | border: var(--border-heavy); |
| 160 | border-radius: var(--curve-sm); | 159 | border-radius: var(--curve-sm); |
| 161 | display: inline-flex; | 160 | display: inline-flex; |
| 162 | flex-direction: column; | 161 | flex-direction: column; |
| 163 | width: 85%; | 162 | width: 85%; |
| 164 | margin: 1rem; | 163 | margin: var(--space-md); |
| 165 | position: relative; | 164 | position: relative; |
| 166 | .category-title { | 165 | .category-title { |
| 167 | text-decoration: none; | 166 | text-decoration: none; |
| @@ -169,24 +168,24 @@ const beer = putResultsIntoGroups(); | |||
| 169 | z-index: 2; | 168 | z-index: 2; |
| 170 | position: relative; | 169 | position: relative; |
| 171 | h3 { | 170 | h3 { |
| 172 | font-family: 'Lekton', sans-serif; | 171 | font-family: var(--font-subtitle); |
| 173 | font-weight: bold; | 172 | font-weight: bold; |
| 174 | margin: 0; | 173 | margin: 0; |
| 175 | font-size: 1.8rem; | 174 | font-size: var(--text-2xl); |
| 176 | } | 175 | } |
| 177 | } | 176 | } |
| 178 | .section-icon { | 177 | .section-icon { |
| 179 | position: absolute; | 178 | position: absolute; |
| 180 | right: 0.5rem; | 179 | right: var(--space-sm); |
| 181 | top: 0.5rem; | 180 | top: var(--space-sm); |
| 182 | width: fit-content; | 181 | width: fit-content; |
| 183 | :global(svg) { | 182 | :global(svg) { |
| 184 | width: 2rem; | 183 | width: var(--text-3xl); |
| 185 | height: 2rem; | 184 | height: var(--text-3xl); |
| 186 | opacity: 0.5; | 185 | opacity: var(--opacity-dim); |
| 187 | text-shadow: 3px 3px 0 black; | 186 | text-shadow: 3px 3px 0 black; |
| 188 | color: var(--accent-3); | 187 | color: var(--accent-3); |
| 189 | transition: all 0.2s ease-in-out; | 188 | transition: var(--transition-normal); |
| 190 | } | 189 | } |
| 191 | } | 190 | } |
| 192 | .section-list { | 191 | .section-list { |
| @@ -194,7 +193,7 @@ const beer = putResultsIntoGroups(); | |||
| 194 | padding: 0; | 193 | padding: 0; |
| 195 | margin: 0; | 194 | margin: 0; |
| 196 | h4 { | 195 | h4 { |
| 197 | margin: 1rem 0 0 0; | 196 | margin: var(--space-md) 0 0 0; |
| 198 | } | 197 | } |
| 199 | .service-list { | 198 | .service-list { |
| 200 | list-style: none; | 199 | list-style: none; |
web/src/pages/search/index.astro +14 −15
| @@ -23,32 +23,31 @@ const categories = (await fetchData())?.categories; | |||
| 23 | section { | 23 | section { |
| 24 | display: flex; | 24 | display: flex; |
| 25 | flex-direction: column; | 25 | flex-direction: column; |
| 26 | padding: 1rem; | 26 | box-shadow: var(--shadow-md); |
| 27 | box-shadow: 4px 4px 0 var(--box-outline); | ||
| 28 | background: var(--accent-fg); | 27 | background: var(--accent-fg); |
| 29 | border: 2px solid var(--box-outline); | 28 | border: var(--border-heavy); |
| 30 | border-radius: var(--curve-sm); | 29 | border-radius: var(--curve-sm); |
| 31 | margin: 2rem auto; | 30 | margin: var(--space-lg) auto; |
| 32 | padding: 1rem; | 31 | padding: var(--space-md); |
| 33 | width: calc(100% - 5rem); | 32 | width: var(--width-container-max); |
| 34 | max-width: 1100px; | 33 | max-width: var(--width-container); |
| 35 | min-height: 80vh; | 34 | min-height: 80vh; |
| 36 | 35 | ||
| 37 | h1 { | 36 | h1 { |
| 38 | font-size: 3rem; | 37 | font-size: var(--text-4xl); |
| 39 | color: var(--accent-3); | 38 | color: var(--accent-3); |
| 40 | font-family: 'Lekton', sans-serif; | 39 | font-family: var(--font-subtitle); |
| 41 | text-align: center; | 40 | text-align: center; |
| 42 | margin: 1rem 0; | 41 | margin: var(--space-md) 0; |
| 43 | } | 42 | } |
| 44 | .sitemap-link { | 43 | .sitemap-link { |
| 45 | opacity: 0.6; | 44 | opacity: var(--opacity-muted); |
| 46 | text-align: center; | 45 | text-align: center; |
| 47 | font-size: 0.8rem; | 46 | font-size: var(--text-sm); |
| 48 | margin: 2rem auto; | 47 | margin: var(--space-lg) auto; |
| 49 | transition: all 0.2s ease-in-out; | 48 | transition: var(--transition-normal); |
| 50 | &:hover { | 49 | &:hover { |
| 51 | opacity: 0.8; | 50 | opacity: var(--opacity-subtle); |
| 52 | } | 51 | } |
| 53 | } | 52 | } |
| 54 | } | 53 | } |
web/src/pages/sitemap.astro +29 −32
| @@ -142,31 +142,30 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | |||
| 142 | 142 | ||
| 143 | <style lang="scss"> | 143 | <style lang="scss"> |
| 144 | main { | 144 | main { |
| 145 | padding: 1rem; | 145 | width: var(--width-container-narrow); |
| 146 | width: 1000px; | 146 | max-width: var(--width-container-max); |
| 147 | max-width: calc(100% - 5rem); | 147 | margin: var(--space-2xl) auto 5rem auto; |
| 148 | margin: 4rem auto 5rem auto; | 148 | padding: 0 var(--space-lg); |
| 149 | padding: 0 2rem; | 149 | border: var(--border-heavy); |
| 150 | border: 2px solid var(--box-outline); | 150 | box-shadow: var(--shadow-lg); |
| 151 | box-shadow: 6px 6px 0 var(--box-outline); | ||
| 152 | background: var(--accent-fg); | 151 | background: var(--accent-fg); |
| 153 | position: relative; | 152 | position: relative; |
| 154 | p { | 153 | p { |
| 155 | font-size: 1.3rem; | 154 | font-size: var(--text-lg); |
| 156 | margin: 0; | 155 | margin: 0; |
| 157 | small { | 156 | small { |
| 158 | font-size: 0.8rem; | 157 | font-size: var(--text-sm); |
| 159 | opacity: 0.5; | 158 | opacity: var(--opacity-dim); |
| 160 | transition: all 0.2s ease-in-out; | 159 | transition: var(--transition-normal); |
| 161 | &:hover { | 160 | &:hover { |
| 162 | opacity: 0.8; | 161 | opacity: var(--opacity-subtle); |
| 163 | } | 162 | } |
| 164 | } | 163 | } |
| 165 | } | 164 | } |
| 166 | ul { | 165 | ul { |
| 167 | padding-left: 1.2rem; | 166 | padding-left: 1.2rem; |
| 168 | list-style: none; | 167 | list-style: none; |
| 169 | border-left: 3px solid #5f53f482; | 168 | border-left: 3px solid var(--transparent-accent); |
| 170 | border-radius: 4px; | 169 | border-radius: 4px; |
| 171 | li { | 170 | li { |
| 172 | font-weight: 600; | 171 | font-weight: 600; |
| @@ -181,11 +180,11 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | |||
| 181 | } | 180 | } |
| 182 | &::before { | 181 | &::before { |
| 183 | content: '━ '; | 182 | content: '━ '; |
| 184 | color: #5f53f482; | 183 | color: var(--transparent-accent); |
| 185 | margin-left: -1.2rem; | 184 | margin-left: -1.2rem; |
| 186 | } | 185 | } |
| 187 | a { | 186 | a { |
| 188 | transition: all ease-in-out 0.2s; | 187 | transition: var(--transition-normal); |
| 189 | text-decoration: none; | 188 | text-decoration: none; |
| 190 | &:hover { | 189 | &:hover { |
| 191 | text-decoration: underline; | 190 | text-decoration: underline; |
| @@ -196,24 +195,22 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | |||
| 196 | } | 195 | } |
| 197 | 196 | ||
| 198 | h2 { | 197 | h2 { |
| 199 | margin: 0; | 198 | font-size: var(--text-3xl); |
| 200 | gap: 1rem; | 199 | margin: -2rem 0 var(--space-lg) -4rem; |
| 201 | font-size: 2rem; | 200 | box-shadow: var(--shadow-lg); |
| 202 | margin: -2rem 0 2rem -4rem; | ||
| 203 | box-shadow: 6px 6px 0 var(--box-outline); | ||
| 204 | background: var(--accent); | 201 | background: var(--accent); |
| 205 | color: var(--accent-fg); | 202 | color: var(--accent-fg); |
| 206 | width: fit-content; | 203 | width: fit-content; |
| 207 | padding: 0.25rem 0.5rem; | 204 | padding: var(--space-xs) var(--space-sm); |
| 208 | @media (max-width: 768px) { | 205 | @media (max-width: 768px) { |
| 209 | margin: -2rem auto 1rem auto; | 206 | margin: -2rem auto var(--space-md) auto; |
| 210 | } | 207 | } |
| 211 | } | 208 | } |
| 212 | 209 | ||
| 213 | .search-controlls { | 210 | .search-controlls { |
| 214 | float: right; | 211 | float: right; |
| 215 | top: 1rem; | 212 | top: var(--space-md); |
| 216 | right: 1rem; | 213 | right: var(--space-md); |
| 217 | position: absolute; | 214 | position: absolute; |
| 218 | @media (max-width: 768px) { | 215 | @media (max-width: 768px) { |
| 219 | position: relative; | 216 | position: relative; |
| @@ -222,22 +219,22 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || []; | |||
| 222 | right: 0; | 219 | right: 0; |
| 223 | } | 220 | } |
| 224 | .press-enter { | 221 | .press-enter { |
| 225 | margin: 0.5rem 0 0 0; | 222 | margin: var(--space-sm) 0 0 0; |
| 226 | opacity: 0.5; | 223 | opacity: var(--opacity-dim); |
| 227 | visibility: hidden; | 224 | visibility: hidden; |
| 228 | font-size: 1rem; | 225 | font-size: var(--text-base); |
| 229 | } | 226 | } |
| 230 | input { | 227 | input { |
| 231 | padding: 0.25rem; | 228 | padding: var(--space-xs); |
| 232 | border: 2px solid var(--box-outline); | 229 | border: var(--border-heavy); |
| 233 | border-radius: var(--curve-sm); | 230 | border-radius: var(--curve-sm); |
| 234 | font-size: 1rem; | 231 | font-size: var(--text-base); |
| 235 | box-shadow: 3px 3px 0 var(--box-outline); | 232 | box-shadow: var(--shadow-sm); |
| 236 | color: var(--accent-3); | 233 | color: var(--accent-3); |
| 237 | background: var(--background-form); | 234 | background: var(--background-form); |
| 238 | &:focus { | 235 | &:focus { |
| 239 | outline: none; | 236 | outline: none; |
| 240 | box-shadow: 4px 4px 0 var(--box-outline); | 237 | box-shadow: var(--shadow-sm-hover); |
| 241 | } | 238 | } |
| 242 | } | 239 | } |
| 243 | } | 240 | } |
web/src/pages/submit.astro +13 −14
| @@ -136,51 +136,50 @@ const commits = ((await fetchGitHubStats('lissy93/awesome-privacy')) || {}) | |||
| 136 | 136 | ||
| 137 | <style lang="scss"> | 137 | <style lang="scss"> |
| 138 | section { | 138 | section { |
| 139 | margin: 2rem auto; | 139 | margin: var(--space-lg) auto; |
| 140 | padding: 1rem; | 140 | width: var(--width-container-narrow); |
| 141 | width: 1000px; | 141 | max-width: var(--width-container-max); |
| 142 | max-width: calc(100% - 5rem); | ||
| 143 | display: flex; | 142 | display: flex; |
| 144 | flex-direction: column; | 143 | flex-direction: column; |
| 145 | justify-content: space-between; | 144 | justify-content: space-between; |
| 146 | padding: 0 2rem; | 145 | padding: 0 var(--space-lg); |
| 147 | border: 2px solid var(--box-outline); | 146 | border: var(--border-heavy); |
| 148 | box-shadow: 6px 6px 0 var(--box-outline); | 147 | box-shadow: var(--shadow-lg); |
| 149 | background: var(--accent-fg); | 148 | background: var(--accent-fg); |
| 150 | border-radius: var(--curve-sm); | 149 | border-radius: var(--curve-sm); |
| 151 | @media (max-width: 768px) { | 150 | @media (max-width: 768px) { |
| 152 | max-width: 95%; | 151 | max-width: 95%; |
| 153 | padding: 0.5rem; | 152 | padding: var(--space-sm); |
| 154 | margin: 0 auto; | 153 | margin: 0 auto; |
| 155 | } | 154 | } |
| 156 | p { | 155 | p { |
| 157 | margin-top: 0; | 156 | margin-top: 0; |
| 158 | } | 157 | } |
| 159 | h2 { | 158 | h2 { |
| 160 | margin-bottom: 0.5rem; | 159 | margin-bottom: var(--space-sm); |
| 161 | } | 160 | } |
| 162 | ul { | 161 | ul { |
| 163 | margin-top: 0; | 162 | margin-top: 0; |
| 164 | padding-left: 1rem; | 163 | padding-left: var(--space-md); |
| 165 | list-style: circle; | 164 | list-style: circle; |
| 166 | } | 165 | } |
| 167 | .about-data { | 166 | .about-data { |
| 168 | font-size: 1.2rem; | 167 | font-size: var(--text-md); |
| 169 | } | 168 | } |
| 170 | 169 | ||
| 171 | .commit-log { | 170 | .commit-log { |
| 172 | column-width: 350px; | 171 | column-width: 350px; |
| 173 | li { | 172 | li { |
| 174 | small { | 173 | small { |
| 175 | font-size: 0.8rem; | 174 | font-size: var(--text-sm); |
| 176 | opacity: 0.7; | 175 | opacity: var(--opacity-soft); |
| 177 | a { | 176 | a { |
| 178 | text-transform: capitalize; | 177 | text-transform: capitalize; |
| 179 | } | 178 | } |
| 180 | } | 179 | } |
| 181 | img { | 180 | img { |
| 182 | border-radius: var(--curve-md); | 181 | border-radius: var(--curve-md); |
| 183 | margin-right: 0.5rem; | 182 | margin-right: var(--space-sm); |
| 184 | } | 183 | } |
| 185 | } | 184 | } |
| 186 | } | 185 | } |
web/src/styles/_mixins.scss added +109
| @@ -0,0 +1,109 @@ | |||
| 1 | $bp-mobile: 768px; | ||
| 2 | |||
| 3 | @mixin underline-hover( | ||
| 4 | $color: var(--accent), | ||
| 5 | $height: 3px, | ||
| 6 | $width: 100%, | ||
| 7 | $speed: 0.3s | ||
| 8 | ) { | ||
| 9 | position: relative; | ||
| 10 | &:after { | ||
| 11 | content: ''; | ||
| 12 | display: block; | ||
| 13 | position: absolute; | ||
| 14 | bottom: 0; | ||
| 15 | left: 50%; | ||
| 16 | width: 0; | ||
| 17 | height: $height; | ||
| 18 | background: $color; | ||
| 19 | transition: | ||
| 20 | width $speed ease, | ||
| 21 | left $speed ease; | ||
| 22 | } | ||
| 23 | &:hover:after { | ||
| 24 | width: $width; | ||
| 25 | left: 0; | ||
| 26 | } | ||
| 27 | } | ||
| 28 | |||
| 29 | @mixin truncate { | ||
| 30 | text-overflow: ellipsis; | ||
| 31 | overflow: hidden; | ||
| 32 | white-space: nowrap; | ||
| 33 | } | ||
| 34 | |||
| 35 | @mixin line-clamp($lines: 3) { | ||
| 36 | display: -webkit-box; | ||
| 37 | -webkit-line-clamp: $lines; | ||
| 38 | -webkit-box-orient: vertical; | ||
| 39 | overflow: hidden; | ||
| 40 | } | ||
| 41 | |||
| 42 | @mixin detail-info-layout { | ||
| 43 | display: flex; | ||
| 44 | flex-wrap: wrap; | ||
| 45 | justify-content: space-between; | ||
| 46 | gap: var(--space-md); | ||
| 47 | .left, | ||
| 48 | .right { | ||
| 49 | width: calc(50% - 1rem); | ||
| 50 | @media screen and (max-width: $bp-mobile) { | ||
| 51 | width: 100%; | ||
| 52 | } | ||
| 53 | } | ||
| 54 | } | ||
| 55 | |||
| 56 | @mixin detail-info-base { | ||
| 57 | h4 { | ||
| 58 | margin: var(--space-md) 0 0 0; | ||
| 59 | font-size: var(--text-md); | ||
| 60 | } | ||
| 61 | p { | ||
| 62 | margin: 0; | ||
| 63 | display: flex; | ||
| 64 | align-items: center; | ||
| 65 | gap: var(--space-xs); | ||
| 66 | :global(svg) { | ||
| 67 | width: var(--text-base); | ||
| 68 | } | ||
| 69 | img { | ||
| 70 | border-radius: var(--curve-sm); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | ul { | ||
| 74 | padding-left: 0; | ||
| 75 | list-style: none; | ||
| 76 | max-height: 300px; | ||
| 77 | overflow-y: auto; | ||
| 78 | overflow-x: hidden; | ||
| 79 | img { | ||
| 80 | border-radius: var(--curve-sm); | ||
| 81 | } | ||
| 82 | .list-item { | ||
| 83 | display: flex; | ||
| 84 | flex-direction: column; | ||
| 85 | margin-bottom: var(--space-sm); | ||
| 86 | } | ||
| 87 | &.list-table { | ||
| 88 | font-size: var(--text-sm); | ||
| 89 | padding-left: 0; | ||
| 90 | li { | ||
| 91 | display: flex; | ||
| 92 | justify-content: space-between; | ||
| 93 | padding: 0.1rem 0; | ||
| 94 | &:not(:last-child) { | ||
| 95 | border-bottom: 1px solid var(--accent-3-translucent); | ||
| 96 | } | ||
| 97 | } | ||
| 98 | } | ||
| 99 | } | ||
| 100 | } | ||
| 101 | |||
| 102 | @mixin changelog-badge { | ||
| 103 | font-size: var(--text-sm); | ||
| 104 | padding: 0.05rem 0.35rem; | ||
| 105 | border-radius: var(--curve-sm); | ||
| 106 | font-family: var(--font-subtitle); | ||
| 107 | text-transform: uppercase; | ||
| 108 | font-weight: bold; | ||
| 109 | } | ||
web/src/styles/values.css +64 −17
| @@ -11,11 +11,16 @@ html { | |||
| 11 | --curve-sm: 4px; | 11 | --curve-sm: 4px; |
| 12 | --curve-md: 6px; | 12 | --curve-md: 6px; |
| 13 | --curve-lg: 12px; | 13 | --curve-lg: 12px; |
| 14 | --curve-pill: 18px; | ||
| 14 | 15 | ||
| 15 | --danger: #ff0048; | 16 | --danger: #ff0048; |
| 16 | --success: #00ff64; | 17 | --success: #00ff64; |
| 18 | --success-muted: #0fb953; | ||
| 17 | 19 | ||
| 18 | --transparent-accent: #5f53f482; | 20 | --transparent-accent: #5f53f482; |
| 21 | --accent-translucent: #f453974d; | ||
| 22 | --accent-3-translucent: #5f53f440; | ||
| 23 | --code-bg: #acabb782; | ||
| 19 | 24 | ||
| 20 | --background: #151517; | 25 | --background: #151517; |
| 21 | --bg-gradient-comp-1: #151517; | 26 | --bg-gradient-comp-1: #151517; |
| @@ -24,31 +29,73 @@ html { | |||
| 24 | 29 | ||
| 25 | --box-outline: #000; | 30 | --box-outline: #000; |
| 26 | 31 | ||
| 32 | --font-heading: 'Libre Franklin', sans-serif; | ||
| 33 | --font-subtitle: 'Lekton', sans-serif; | ||
| 34 | --font-body: 'Rubik', sans-serif; | ||
| 35 | |||
| 36 | --shadow-lg: 6px 6px 0 var(--box-outline); | ||
| 37 | --shadow-md: 4px 4px 0 var(--box-outline); | ||
| 38 | --shadow-sm: 3px 3px 0 var(--box-outline); | ||
| 39 | --shadow-xs: 2px 2px 0 var(--box-outline); | ||
| 40 | |||
| 41 | --shadow-lg-hover: 8px 8px 0 var(--box-outline); | ||
| 42 | --shadow-sm-hover: 4px 4px 0 var(--box-outline); | ||
| 43 | --shadow-xs-hover: 3px 3px 0 var(--box-outline); | ||
| 44 | |||
| 45 | --border-heavy: 2px solid var(--box-outline); | ||
| 46 | --border-light: 1px solid var(--box-outline); | ||
| 47 | |||
| 48 | --font-code: 'Courier New', Courier, monospace; | ||
| 49 | |||
| 50 | --text-xs: 0.75rem; | ||
| 51 | --text-sm: 0.85rem; | ||
| 52 | --text-base: 1rem; | ||
| 53 | --text-md: 1.2rem; | ||
| 54 | --text-lg: 1.4rem; | ||
| 55 | --text-xl: 1.6rem; | ||
| 56 | --text-2xl: 1.8rem; | ||
| 57 | --text-3xl: 2rem; | ||
| 58 | --text-4xl: 3rem; | ||
| 59 | --text-5xl: 5rem; | ||
| 60 | |||
| 61 | --space-xs: 0.25rem; | ||
| 62 | --space-sm: 0.5rem; | ||
| 63 | --space-md: 1rem; | ||
| 64 | --space-lg: 2rem; | ||
| 65 | --space-xl: 3rem; | ||
| 66 | --space-2xl: 4rem; | ||
| 67 | |||
| 68 | --opacity-dim: 0.5; | ||
| 69 | --opacity-muted: 0.6; | ||
| 70 | --opacity-soft: 0.7; | ||
| 71 | --opacity-subtle: 0.8; | ||
| 72 | |||
| 73 | --width-container: 1200px; | ||
| 74 | --width-container-narrow: 1000px; | ||
| 75 | --width-container-max: calc(100% - 5rem); | ||
| 76 | |||
| 77 | --transition-fast: all 0.15s ease-in-out; | ||
| 78 | --transition-normal: all 0.2s ease-in-out; | ||
| 79 | |||
| 80 | --rating-a: #35b969; | ||
| 81 | --rating-b: #6bb935; | ||
| 82 | --rating-c: #c7cc22; | ||
| 83 | --rating-d: #e1bb23; | ||
| 84 | --rating-e: #df8b1e; | ||
| 85 | --rating-f: #df541e; | ||
| 86 | --rating-g: #df1e1e; | ||
| 87 | --rating-neutral: #ecd40f; | ||
| 88 | --rating-unknown: grey; | ||
| 89 | |||
| 27 | --changelog-add: #6fdd8b; | 90 | --changelog-add: #6fdd8b; |
| 28 | --changelog-rem: #fdcc0b; | 91 | --changelog-rem: #fdcc0b; |
| 29 | --changelog-mod: #42c1ff; | 92 | --changelog-mod: #42c1ff; |
| 30 | --changelog-rej: #ff2d55; | 93 | --changelog-rej: #ff2d55; |
| 31 | 94 | ||
| 32 | &[data-theme='light'] { | 95 | &[data-theme='light'] { |
| 33 | --accent: #f45397; | ||
| 34 | --accent-fg: #fff; | 96 | --accent-fg: #fff; |
| 35 | |||
| 36 | --accent-2: #ffdf60; | ||
| 37 | --accent-3: #5f53f4; | ||
| 38 | --accent-4: #28dffd; | ||
| 39 | |||
| 40 | --foreground: #13151a; | 97 | --foreground: #13151a; |
| 41 | 98 | --background: #f1ebf1; | |
| 42 | --curve-sm: 4px; | ||
| 43 | --curve-md: 6px; | ||
| 44 | --curve-lg: 12px; | ||
| 45 | |||
| 46 | --danger: #ff0048; | ||
| 47 | --success: #00ff64; | ||
| 48 | |||
| 49 | --transparent-accent: #5f53f482; | ||
| 50 | |||
| 51 | --background: #feecff; | ||
| 52 | --bg-gradient-comp-1: #feecff; | 99 | --bg-gradient-comp-1: #feecff; |
| 53 | --bg-gradient-comp-2: #e1e4fb; | 100 | --bg-gradient-comp-2: #e1e4fb; |
| 54 | --background-form: #fff; | 101 | --background-form: #fff; |
web/src/utils/fetch-changelog.ts +2 −2
| @@ -1,8 +1,8 @@ | |||
| 1 | import { error } from './logger'; | 1 | import { error } from './logger'; |
| 2 | 2 | ||
| 3 | const changelogUrl = | 3 | const changelogUrl = |
| 4 | 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json'; | 4 | // 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json'; |
| 5 | // 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/0d5f8fbbb642be62af94fae8f83ed55b48ed355c/changelog.json'; | 5 | 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/d0f897eae31bdccce58744d0dc8b444a45beba3b/changelog.json'; |
| 6 | 6 | ||
| 7 | export interface ChangelogPr { | 7 | export interface ChangelogPr { |
| 8 | number: number; | 8 | number: number; |